i3status-rust: Make it compatible with master/0.30
This commit is contained in:
91
i3/i3status-rust/config.toml
Normal file
91
i3/i3status-rust/config.toml
Normal file
@@ -0,0 +1,91 @@
|
||||
icons_format = "{icon}"
|
||||
|
||||
[icons]
|
||||
icons = "awesome"
|
||||
|
||||
[icons.overrides]
|
||||
|
||||
[theme]
|
||||
theme = "native"
|
||||
|
||||
[theme.overrides]
|
||||
warning_fg = "#000000"
|
||||
warning_bg = "#F4Bf75"
|
||||
critical_fg = "#000000"
|
||||
critical_bg = "#F92672"
|
||||
|
||||
[[block]]
|
||||
block = "music"
|
||||
player = "spotify"
|
||||
separator = " — "
|
||||
format = " $icon $combo $prev $play $next "
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
driver = "pulseaudio"
|
||||
max_vol = 100
|
||||
format = " $icon {$volume.eng(2) |}"
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
driver = "pulseaudio"
|
||||
device_kind = "source"
|
||||
format = " $icon "
|
||||
reverse_levels = true
|
||||
|
||||
[[block]]
|
||||
block = "net"
|
||||
format = " $signal_strength $ssid "
|
||||
|
||||
[[block]]
|
||||
block = "load"
|
||||
format = " $icon $1m.eng(4) "
|
||||
warning = 4
|
||||
critical = 1000
|
||||
interval = 1
|
||||
|
||||
[[block]]
|
||||
block = "battery"
|
||||
interval = 10
|
||||
format = " $percentage $time "
|
||||
missing_format = ""
|
||||
if_command = "test -e /sys/class/power_supply/BAT0"
|
||||
|
||||
[[block]]
|
||||
block = "toggle"
|
||||
format = " $icon "
|
||||
command_on = "$HOME/.i3/scripts/presentation-mode toggle ; pkill -SIGRTMIN+0 i3status-rs"
|
||||
command_off = "$HOME/.i3/scripts/presentation-mode toggle ; pkill -SIGRTMIN+0 i3status-rs"
|
||||
command_state = "[[ $($HOME/.i3/scripts/presentation-mode status) == off ]] || echo active"
|
||||
|
||||
[[block]]
|
||||
block = "toggle"
|
||||
format = " $icon "
|
||||
command_on = "systemctl --user start redshift"
|
||||
command_off = "systemctl --user stop redshift"
|
||||
command_state = "[[ $(systemctl --user is-active redshift) == active ]] && echo active"
|
||||
signal = 0
|
||||
|
||||
[[block]]
|
||||
block = "toggle"
|
||||
format = " $icon "
|
||||
command_on = "systemctl --user start spotify"
|
||||
command_off = "systemctl --user stop spotify"
|
||||
command_state = "[[ $(systemctl --user is-active spotify) == active ]] && echo active"
|
||||
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 = "curl -s 'https://wttr.in/Ansbach?m&T&format=%c%t' | sed 's/ / /g'"
|
||||
interval = 1800
|
||||
|
||||
[[block]]
|
||||
block = "time"
|
||||
interval = 1
|
||||
locale = "de_DE"
|
||||
format = " [CW %V] %a %d.%m.%Y %H:%M:%S "
|
||||
Reference in New Issue
Block a user