dotfiles/sysmenu/config
2022-05-22 15:32:36 -04:00

93 lines
1.5 KiB
Text

[global]
background = #2A2A2E
foreground = #FFFFFF
highlight = #3D4558
padding_y = 8
padding_x = 8
[font:fira]
family = Fira Code
size = 11
[menu:lan]
items = label:ssid label:myip button:pingtest
x = 1632
y = 32
[menu:redshift]
items = button:redshift label:rs_period label:rs_temp
x = 1632
y = 32
[menu:system]
items = label:user button:lock button:sleep button:reboot button:poweroff
x = 5
y = 32
[button:logout]
text = Logout
command = i3-msg exit
[button:lock]
text = Lock
command = slock
[button:pingtest]
text = Ping Test
command = ~/.script/inet/is-back
condition = $(if ! pidof ping; then echo true; fi)
[button:poweroff]
text = Poweroff
command = poweroff
[button:reboot]
text = Reboot
command = reboot
[button:redshift]
text = Redshift
command = ~/.config/sysmenu/script/redshift_tog.sh
[button:sleep]
text = Sleep
command = ~/.script/sleep.sh
[button:term]
text = Open Terminal
command = wezterm
[button:wally]
text = Wally
command = wally
[label:cal]
font = fira
text = $(cal)
eval = true
strip = right
[label:myip]
font = fira
text = $(~/.script/myip.sh)
eval = true
[label:rs_period]:
#text = $(redshift -p 2> /dev/null | grep "Period" | awk '{ print $2 }')
text = $(~/.config/sysmenu/script/redshift_period.sh)
eval = true
[label:rs_temp]
#text = $(redshift -p 2> /dev/null | grep "temperature" | awk '{ print $3 }')
text = $(~/.config/sysmenu/script/redshift_temp.sh)
eval = true
[label:ssid]
font = fira
text = $(~/.config/sysmenu/script/ssid.sh)
eval = true
[label:user]
font = fira
text = $(whoami)@$(hostname)
eval = true