diff options
author | Ryan Kavanagh <rak@rak.ac> | 2025-09-29 14:01:45 -0400 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2025-09-29 14:02:32 -0400 |
commit | 206c143183a0ad30610ec2dc69c86c466980f27f (patch) | |
tree | a73887d1fd1d3ef7eeab05d2254c3252527dfda7 | |
parent | alias -> functions (diff) |
waybar config to include notifications
-rw-r--r-- | dot_config/waybar/config | 25 | ||||
-rw-r--r-- | dot_config/waybar/style.css | 4 |
2 files changed, 26 insertions, 3 deletions
diff --git a/dot_config/waybar/config b/dot_config/waybar/config index 234ba92..f1ded1a 100644 --- a/dot_config/waybar/config +++ b/dot_config/waybar/config @@ -7,7 +7,7 @@ // Choose the order of the modules "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"], "modules-center": ["sway/window"], - "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "battery", "battery#bat2", "clock", "tray"], + "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "battery", "battery#bat2", "clock", "tray", "custom/notification"], // "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"], // Modules configuration // "sway/workspaces": { @@ -161,8 +161,27 @@ "default": "🎜" }, "escape": true, - "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder + "exec": "/usr/share/waybar/custom_modules/mediaplayer.py 2> /dev/null" // Script in resources folder // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name + }, + "custom/notification": { + "tooltip": false, + "format": "{icon}", + "format-icons": { + "notification": "<span foreground='red'><sup></sup></span>", + "none": "", + "dnd-notification": "<span foreground='red'><sup></sup></span>", + "dnd-none": "", + "inhibited-notification": "<span foreground='red'><sup></sup></span>", + "inhibited-none": "", + "dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>", + "dnd-inhibited-none": "" + }, + "return-type": "json", + "exec-if": "which swaync-client", + "exec": "swaync-client -swb", + "on-click": "swaync-client -t -sw", + "on-click-right": "swaync-client -d -sw", + "escape": true } } - diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css index ebddece..645bf9e 100644 --- a/dot_config/waybar/style.css +++ b/dot_config/waybar/style.css @@ -279,3 +279,7 @@ label:focus { #scratchpad.empty { background-color: transparent; } +#custom-notification { + font-family: "NotoSansMono Nerd Font"; + margin: 0 5px; +} |