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:
@@ -11,7 +11,7 @@ line-size = 1
|
|||||||
module-margin-left = 1
|
module-margin-left = 1
|
||||||
module-margin-right = 1
|
module-margin-right = 1
|
||||||
padding= 2
|
padding= 2
|
||||||
separator =|
|
separator =""
|
||||||
override-redirect = true
|
override-redirect = true
|
||||||
|
|
||||||
[bar/base_border]
|
[bar/base_border]
|
||||||
@@ -31,7 +31,7 @@ offset-y = 8px
|
|||||||
override-redirect = true
|
override-redirect = true
|
||||||
tray-detached = true
|
tray-detached = true
|
||||||
tray-maxsize = 15
|
tray-maxsize = 15
|
||||||
tray-offset-x= 86
|
tray-offset-x= 136
|
||||||
tray-offset-y =0px
|
tray-offset-y =0px
|
||||||
tray-padding = 3
|
tray-padding = 3
|
||||||
tray-position = left
|
tray-position = left
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
inherit="bar/base_floating"
|
inherit="bar/base_floating"
|
||||||
monitor = ${env:MONITOR:DP-4}
|
monitor = ${env:MONITOR:DP-4}
|
||||||
modules-center = clock playerctl_long
|
modules-center = clock playerctl_long
|
||||||
modules-left = floating_popup_button pavucontrol_button_sep
|
modules-left = floating_popup_button sep pavucontrol_button screenlayout_button sep
|
||||||
modules-right = sensors_cpu_pc nvgpu memory
|
modules-right = sensors_cpu_pc sep nvgpu sep memory
|
||||||
|
|
||||||
[bar/floating_cava]
|
[bar/floating_cava]
|
||||||
inherit = "bar/floating"
|
inherit = "bar/floating"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[module/separator]
|
[module/separator]
|
||||||
type = custom/text
|
type = custom/text
|
||||||
content = |
|
content =|
|
||||||
|
|
||||||
[module/sep]
|
[module/sep]
|
||||||
inherit = "module/separator"
|
inherit = "module/separator"
|
||||||
@@ -10,11 +10,11 @@ inherit = "module/separator"
|
|||||||
[module/floating_popup_button]
|
[module/floating_popup_button]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
interval = 0.5
|
interval = 0.5
|
||||||
format = <label>
|
format =<label>
|
||||||
label-maxlen = 5
|
label-maxlen = 5
|
||||||
exec = ~/.config/polybar/scripts/polypopup.sh
|
exec = ~/.config/polybar/scripts/polypopup.sh
|
||||||
click-left = ~/.config/polybar/scripts/polypopup.sh --toggle
|
click-left = ~/.config/polybar/scripts/polypopup.sh --toggle
|
||||||
content =
|
content =
|
||||||
|
|
||||||
; Module Date
|
; Module Date
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ format = <label> |
|
|||||||
[module/nvgpu]
|
[module/nvgpu]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
interval = 2
|
interval = 2
|
||||||
format = <label>
|
format = <label>
|
||||||
label-maxlen=15
|
label-maxlen=15
|
||||||
label-ellipsis=true
|
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')"
|
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')"
|
||||||
@@ -191,14 +191,24 @@ menu-0-2-exec = "playerctl next"
|
|||||||
|
|
||||||
[module/pavucontrol_button]
|
[module/pavucontrol_button]
|
||||||
type = custom/text
|
type = custom/text
|
||||||
content =
|
content =
|
||||||
click-left = "sh ~/.config/rofi/menus/launch.sh defaultsink"
|
click-left = "sh ~/.config/rofi/menus/launch.sh defaultsink"
|
||||||
click-right = "setsid pavucontrol"
|
click-right = "setsid pavucontrol"
|
||||||
click-middle = "bash ~/Userdata/Scripts/Launchers/restart_pulseaudio_1s.sh"
|
click-middle = "bash ~/Userdata/Scripts/Launchers/restart_pulseaudio_1s.sh"
|
||||||
|
|
||||||
[module/pavucontrol_button_sep]
|
[module/pavucontrol_button_sep]
|
||||||
inherit="module/pavucontrol_button"
|
inherit="module/pavucontrol_button"
|
||||||
content = |
|
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]
|
[module/cava]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import re
|
|||||||
import rofi_menu
|
import rofi_menu
|
||||||
|
|
||||||
class Menu(rofi_menu.Menu):
|
class Menu(rofi_menu.Menu):
|
||||||
prompt = "Default output sink"
|
prompt = "Display layout"
|
||||||
items = []
|
items = []
|
||||||
|
|
||||||
def addEntries(self, entries):
|
def addEntries(self, entries):
|
||||||
|
|||||||
Reference in New Issue
Block a user