From d7a21e259b80010ce7368e8aaa0863886a947085 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Thu, 11 Jul 2024 19:53:42 +0200 Subject: swayrbar: add config --- .config/swayrbar/config.toml | 107 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 .config/swayrbar/config.toml (limited to '.config/swayrbar/config.toml') diff --git a/.config/swayrbar/config.toml b/.config/swayrbar/config.toml new file mode 100644 index 0000000..a0aa955 --- /dev/null +++ b/.config/swayrbar/config.toml @@ -0,0 +1,107 @@ +refresh_interval = 1000 + +[[modules]] +name = "window" +instance = "0" +format = "๐ŸชŸ {title} โ€” {app_name}" +html_escape = false + +[modules.on_click] +Left = [ + "swayr", + "switch-to-urgent-or-lru-window", +] +Right = [ + "kill", + "{pid}", +] + +[[modules]] +name = "cmd" +instance = "0" +format = "{HOME}/.config/swayrbar/scripts/idle-status" +html_escape = false + +[modules.on_click] +Left = ["{HOME}/.config/swayrbar/scripts/idle-toggle"] + +[[modules]] +name = "sysinfo" +instance = "0" +format = "๎‰ฆ CPU: {cpu_usage:{:5.1}}% Mem: {mem_usage:{:5.1}}%" +html_escape = false + +[modules.on_click] +Left = [ + "foot", + "htop", +] + +[[modules]] +name = "battery" +instance = "0" +format = "๐Ÿ”‹ {state_of_charge:{:5.1}}%, {state}" +html_escape = false + +[[modules]] +name = "pactl" +instance = "0" +format = "๐Ÿ”ˆ{volume:{:3}}%{muted}" +html_escape = true + +[[modules]] +name = "nmcli" +instance = "0" +format = "๓ฐคจ {name} {signal}" +html_escape = true + +[modules.on_click] +Right = [ + "pactl", + "set-sink-mute", + "@DEFAULT_SINK@", + "toggle", +] +WheelDown = [ + "pactl", + "set-sink-volume", + "@DEFAULT_SINK@", + "-1%", +] +Left = ["pavucontrol"] +WheelUp = [ + "pactl", + "set-sink-volume", + "@DEFAULT_SINK@", + "+1%", +] + +[[modules]] +name = "cmd" +instance = "1" +format = "{HOME}/.config/swayrbar/scripts/brightness-status" +html_escape = false + +[modules.on_click] +WheelUp = [ + "brightnessctl", + "set", + "5%+", +] +WheelDown = [ + "brightnessctl", + "set", + "5%-", +] + +[[modules]] +name = "cmd" +instance = "2" +format = "{HOME}/.config/swayrbar/scripts/temp-status" +html_escape = false + +[[modules]] +name = "date" +instance = "0" +format = "๓ฑ‘† %F %X" +html_escape = false -- cgit v1.2.3