Files
dotfiles/i3/i3status-rust/config.toml.j2

111 lines
2.7 KiB
Plaintext
Raw Normal View History

2024-05-05 10:56:29 +02:00
icons_format = "{icon}"
2022-12-15 22:31:50 +01:00
[icons]
icons = "awesome"
2022-12-15 22:31:50 +01:00
[icons.overrides]
2024-02-12 15:03:23 +01:00
microphone = ""
volume = ""
2024-04-10 14:41:08 +02:00
bat = "\uf240"
music = "\uf1bc"
2022-12-15 22:31:50 +01:00
[theme]
theme = "native"
2022-12-15 22:31:50 +01:00
[theme.overrides]
warning_fg = "#000000"
warning_bg = "#F4Bf75"
critical_fg = "#000000"
critical_bg = "#F92672"
end_separator = ""
2022-12-15 22:31:50 +01:00
[[block]]
block = "music"
player = "spotify"
separator = " — "
format = " $icon {$combo $prev $play $next|-} "
2022-12-15 22:31:50 +01:00
[[block]]
block = "sound"
driver = "pulseaudio"
max_vol = 100
format = " $icon{ $volume.eng(w:2)|} "
2022-12-15 22:31:50 +01:00
[[block.click]]
button = "left"
cmd = "pactl set-sink-mute '@DEFAULT_SINK@' toggle"
update = true
2022-12-15 22:31:50 +01:00
[[block]]
block = "sound"
driver = "pulseaudio"
device_kind = "source"
2024-04-10 14:41:28 +02:00
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" }
2022-12-15 22:31:50 +01:00
[[block.click]]
button = "left"
cmd = "pactl set-source-mute '@DEFAULT_SOURCE@' toggle"
update = true
2022-12-15 22:31:50 +01:00
[[block]]
block = "net"
2024-05-04 21:40:02 +02:00
format = " $icon{ $signal_strength|}{ $ssid.str(max_width:10) | }"
2022-12-15 22:31:50 +01:00
[[block]]
block = "battery"
interval = 10
2024-04-10 14:41:28 +02:00
format = " $icon $percentage $time "
charging_format = " $icon $percentage "
missing_format = ""
2022-12-15 22:31:50 +01:00
[[block]]
block = "toggle"
2022-12-16 20:19:52 +01:00
format = "  $icon "
2022-12-15 22:31:50 +01:00
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"
2022-12-16 19:34:06 +01:00
command_state = "[[ $($HOME/.i3/scripts/presentation-mode status) == on ]] && echo active"
2022-12-15 22:31:50 +01:00
2024-05-06 10:08:51 +02:00
[[block]]
block = "toggle"
format = "  $icon "
command_on = "systemctl --user start color-theme-light"
command_off = "systemctl --user start color-theme-dark"
2024-05-06 10:08:51 +02:00
command_state = "[[ $(systemctl --user is-active color-theme-light) == active ]] && echo active"
2022-12-15 22:31:50 +01:00
[[block]]
block = "toggle"
2022-12-16 20:19:52 +01:00
format = "  $icon "
2022-12-15 22:31:50 +01:00
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"
2022-12-16 20:19:52 +01:00
format = "  $icon "
2022-12-15 22:31:50 +01:00
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\"}'"
2022-12-15 22:31:50 +01:00
2022-12-16 19:43:59 +01:00
[[block]]
block = "custom"
2024-02-15 15:25:36 +01:00
command = "curl -s 'https://wttr.in/Stockholm?m&T&format=%c%t' | sed 's/ / /g'"
2024-04-26 12:04:54 +02:00
interval = 3600
2022-12-16 19:43:59 +01:00
2022-12-15 22:31:50 +01:00
[[block]]
block = "time"
interval = 1
2024-02-12 15:03:57 +01:00
format = " $timestamp.datetime(f:'[CW %V] %a %d.%m.%Y %H:%M:%S', l:de_DE) "