113 lines
2.6 KiB
Django/Jinja
113 lines
2.6 KiB
Django/Jinja
icons_format = "{icon}"
|
|
|
|
[icons]
|
|
icons = "awesome"
|
|
|
|
[icons.overrides]
|
|
microphone = ""
|
|
volume = ""
|
|
bat = "\uf240"
|
|
music = "\uf1bc"
|
|
|
|
[theme]
|
|
theme = "native"
|
|
|
|
[theme.overrides]
|
|
warning_fg = "#000000"
|
|
warning_bg = "#F4Bf75"
|
|
critical_fg = "#000000"
|
|
critical_bg = "#F92672"
|
|
end_separator = ""
|
|
|
|
[[block]]
|
|
block = "music"
|
|
player = "spotify"
|
|
separator = " — "
|
|
format = " $icon {$combo $prev $play $next|-} "
|
|
|
|
[[block]]
|
|
block = "sound"
|
|
driver = "pulseaudio"
|
|
max_vol = 100
|
|
format = " $icon{ $volume.eng(w:2)|} "
|
|
|
|
[[block.click]]
|
|
button = "left"
|
|
cmd = "workstation-client pulseaudio output toggle"
|
|
update = true
|
|
|
|
[[block]]
|
|
block = "sound"
|
|
driver = "pulseaudio"
|
|
device_kind = "source"
|
|
format = " $icon "
|
|
|
|
[block.theme_overrides]
|
|
warning_fg = { link = "idle_fg" }
|
|
warning_bg = { link = "idle_bg" }
|
|
idle_fg = { link = "warning_fg" }
|
|
idle_bg = { link = "warning_bg" }
|
|
|
|
[[block.click]]
|
|
button = "left"
|
|
cmd = "workstation-client pulseaudio input toggle"
|
|
update = true
|
|
|
|
[[block]]
|
|
block = "net"
|
|
format = " $icon{ $signal_strength|}{ $ssid.str(max_width:10) | }"
|
|
|
|
[[block]]
|
|
block = "battery"
|
|
interval = 10
|
|
format = " $icon $percentage $time "
|
|
charging_format = " $icon $percentage "
|
|
missing_format = ""
|
|
|
|
[[block]]
|
|
block = "toggle"
|
|
format = " $icon "
|
|
signal = 1
|
|
command_on = "workstation-client present toggle ; pkill -SIGRTMIN+1 i3status-rs"
|
|
command_off = "workstation-client present toggle ; pkill -SIGRTMIN+1 i3status-rs"
|
|
command_state = "[[ $(workstation-client present status) == on ]] && echo active"
|
|
|
|
[[block]]
|
|
block = "toggle"
|
|
format = " $icon "
|
|
command_on = "workstation-client theme light"
|
|
command_off = "workstation-client theme dark"
|
|
command_state = "[[ $(workstation-client theme status) == light ]] && echo 1"
|
|
|
|
[[block]]
|
|
block = "toggle"
|
|
format = " $icon "
|
|
command_on = "workstation-client redshift start"
|
|
command_off = "workstation-client redshift stop"
|
|
command_state = "[[ $(workstation-client redshift status) == active ]] && echo 1"
|
|
signal = 0
|
|
|
|
[[block]]
|
|
block = "toggle"
|
|
format = " $icon "
|
|
command_on = "workstation-client spotify start"
|
|
command_off = "workstation-client spotify stop"
|
|
command_state = "[[ $(workstation-client spotify status) == active ]] && echo 1"
|
|
signal = 0
|
|
|
|
[[block]]
|
|
block = "custom"
|
|
json = true
|
|
command = "ping -n -q -w 2 -c 1 8.8.8.8 >/dev/null 2>/dev/null && printf '{\"text\":\"\",\"state\":\"Info\"}' || printf '{\"text\":\"\",\"state\":\"Critical\"}'"
|
|
|
|
[[block]]
|
|
block = "custom"
|
|
command = "workstation-client weather get"
|
|
# caching is handled by the workstation daemon
|
|
interval = 60
|
|
|
|
[[block]]
|
|
block = "time"
|
|
interval = 1
|
|
format = " $timestamp.datetime(f:'[CW %V] %a %d.%m.%Y %H:%M:%S', l:de_DE) "
|