1
0
mirror of https://gitlab.com/linuxstuff/dotfiles.git synced 2026-06-20 04:30:53 +02:00

added screenlayouts menu

This commit is contained in:
Simon
2022-02-25 19:22:46 +01:00
parent aff46a564f
commit f2af25be34
4 changed files with 21 additions and 11 deletions
@@ -11,7 +11,7 @@ line-size = 1
module-margin-left = 1
module-margin-right = 1
padding= 2
separator =|
separator =""
override-redirect = true
[bar/base_border]
@@ -31,7 +31,7 @@ offset-y = 8px
override-redirect = true
tray-detached = true
tray-maxsize = 15
tray-offset-x= 86
tray-offset-x= 136
tray-offset-y =0px
tray-padding = 3
tray-position = left
@@ -2,8 +2,8 @@
inherit="bar/base_floating"
monitor = ${env:MONITOR:DP-4}
modules-center = clock playerctl_long
modules-left = floating_popup_button pavucontrol_button_sep
modules-right = sensors_cpu_pc nvgpu memory
modules-left = floating_popup_button sep pavucontrol_button screenlayout_button sep
modules-right = sensors_cpu_pc sep nvgpu sep memory
[bar/floating_cava]
inherit = "bar/floating"
@@ -66,7 +66,7 @@ format = <label> |
[module/nvgpu]
type = custom/script
interval = 2
format = 󰹑 <label>
format = 󰢮 <label>
label-maxlen=15
label-ellipsis=true
exec = "echo $((nvidia-smi -q | grep "Gpu" | awk -F':' '{print $2}' | tr -d ' '; echo ", "; nvidia-smi -q | grep "GPU Current Temp" | awk -F':' '{print $2}' | tr -d ' C' ; echo '°') | cat | tr -d '\n')"
@@ -200,6 +200,16 @@ click-middle = "bash ~/Userdata/Scripts/Launchers/restart_pulseaudio_1s.sh"
inherit="module/pavucontrol_button"
content =󰕾 |
[module/screenlayout_button]
type = custom/text
content = 󰹑
click-left = "sh ~/.config/rofi/menus/launch.sh screenlayouts"
click-right = "setsid arandr"
[module/screenlayout_button_sep]
inherit="module/screenlayout_button"
content =󰹑 |
[module/cava]
type = custom/script
tail = true
+1 -1
View File
@@ -10,7 +10,7 @@ import re
import rofi_menu
class Menu(rofi_menu.Menu):
prompt = "Default output sink"
prompt = "Display layout"
items = []
def addEntries(self, entries):