From cdf8164ed86a427c3e94ee2cb25c5c8000b3d8f0 Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Thu, 8 Oct 2026 23:42:53 +0200 Subject: [PATCH] waybar cleanup + notifications --- CONFIG/waybar/config.jsonc | 32 +++++++++++++++---- .../CONFIG/waybar/local_config.jsonc | 7 ++-- .../CONFIG/waybar/local_config.jsonc | 7 ++-- custom-sl3/CONFIG/waybar/local_config.jsonc | 3 +- custom-spro5/CONFIG/waybar/local_config.jsonc | 3 +- endos.py | 5 ++- 6 files changed, 40 insertions(+), 17 deletions(-) diff --git a/CONFIG/waybar/config.jsonc b/CONFIG/waybar/config.jsonc index 0914b7a..62b8e42 100644 --- a/CONFIG/waybar/config.jsonc +++ b/CONFIG/waybar/config.jsonc @@ -60,7 +60,7 @@ "format-ok": "Systemd ✓", "system": true, // Monitor failed systemwide units. "user": true, // Ignore failed user units. - "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x45 isd'" + "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 250x45 systemctl-tui'" }, // Configuration - modules-right @@ -82,19 +82,19 @@ "warning": 70, "critical": 90, }, - "on-click": "footclient --app-id floating_shell --window-size-chars 120x45 -e btop" + "on-click": "footclient --app-id floating_shell --window-size-chars 250x150 -e btop" }, "temperature": { "critical-threshold": 80, "format": " {temperatureC}°C", - "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 -e watch sensors'" + "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x100 -e watch sensors'" }, "memory": { "interval": 5, "format": "{:>3}%", - "on-click": "footclient --app-id floating_shell --window-size-chars 100x100 -e btop", + "on-click": "footclient --app-id floating_shell --window-size-chars 250x150 -e btop", "states": { "warning": 70, "critical": 90 @@ -106,7 +106,7 @@ "interval": 30, "format": " / {specific_free:0.0f} of {specific_total:0.0f} GB free", "unit": "GB", - "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 ncdu -x /'" + "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 250x45 gdu -d'" }, "backlight": { @@ -132,7 +132,6 @@ }, "on-click": "pavucontrol", "tooltip-format": "{icon}  {volume}% {format_source}", - "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x12 pulsemixer'", "on-click-middle": "pactl set-sink-mute @DEFAULT_SINK@ toggle", "on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +5%", "on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -5%" @@ -150,6 +149,27 @@ "format-icons": ["", "", "", "", ""] }, + "custom/notification": { + "tooltip": true, + "format": "{icon}", + "format-icons": { + "notification": "󱅫", + "none": "󰂜", + "dnd-notification": "󰂠", + "dnd-none": "󰪓", + "inhibited-notification": "󰂛", + "inhibited-none": "󰪑", + "dnd-inhibited-notification": "󰂛", + "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 + }, + "clock": { "format": "󰅐 {:%H:%M}", "format-alt": "󰅐 {:%OI:%M %p}", diff --git a/custom-droneship/CONFIG/waybar/local_config.jsonc b/custom-droneship/CONFIG/waybar/local_config.jsonc index 0ecc101..bea62ee 100644 --- a/custom-droneship/CONFIG/waybar/local_config.jsonc +++ b/custom-droneship/CONFIG/waybar/local_config.jsonc @@ -15,12 +15,12 @@ "interval": 30, "format": " /mnt/hdd1 {specific_free:0.0f} of {specific_total:0.0f} GB free", "unit": "GB", - "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 ncdu -x /mnt/hdd1/'" + "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 150x45 gdu -d'" }, "custom/nvidia": { "exec": "nvidia-smi --query-gpu=utilization.gpu,memory.used,temperature.gpu --format=csv,nounits,noheader | sed 's/\\([0-9]\\+\\), \\([0-9]\\+\\), \\([0-9]\\+\\)/\\1% \\2MB \\3°C/g'", "format": "󰓅 {}", - "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x45 nvtop'", + "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 150x45 watch nvidia-smi'", "interval": 1 }, "modules-right": [ @@ -36,6 +36,7 @@ "battery", "clock", "tray", - "custom/power" + "custom/notification", + "custom/power", ] } diff --git a/custom-mothership/CONFIG/waybar/local_config.jsonc b/custom-mothership/CONFIG/waybar/local_config.jsonc index 5376aa8..37e9525 100644 --- a/custom-mothership/CONFIG/waybar/local_config.jsonc +++ b/custom-mothership/CONFIG/waybar/local_config.jsonc @@ -15,12 +15,12 @@ "interval": 30, "format": " /mnt/hdd1 {specific_free:0.0f} of {specific_total:0.0f} GB free", "unit": "GB", - "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 80x45 ncdu -x /mnt/hdd1/'" + "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 150x45 gdu -d'" }, "custom/nvidia": { "exec": "nvidia-smi --query-gpu=utilization.gpu,memory.used,temperature.gpu --format=csv,nounits,noheader | sed 's/\\([0-9]\\+\\), \\([0-9]\\+\\), \\([0-9]\\+\\)/\\1% \\2MB \\3°C/g'", "format": "󰓅 {}", - "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x45 nvtop'", + "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 150x45 watch nvidia-smi'", "interval": 1 }, "modules-right": [ @@ -36,6 +36,7 @@ "battery", "clock", "tray", - "custom/power" + "custom/notification", + "custom/power", ] } diff --git a/custom-sl3/CONFIG/waybar/local_config.jsonc b/custom-sl3/CONFIG/waybar/local_config.jsonc index 5ae7340..f3cd964 100644 --- a/custom-sl3/CONFIG/waybar/local_config.jsonc +++ b/custom-sl3/CONFIG/waybar/local_config.jsonc @@ -20,6 +20,7 @@ "battery", "clock", "tray", - "custom/power" + "custom/notification", + "custom/power", ] } diff --git a/custom-spro5/CONFIG/waybar/local_config.jsonc b/custom-spro5/CONFIG/waybar/local_config.jsonc index 5ae7340..f3cd964 100644 --- a/custom-spro5/CONFIG/waybar/local_config.jsonc +++ b/custom-spro5/CONFIG/waybar/local_config.jsonc @@ -20,6 +20,7 @@ "battery", "clock", "tray", - "custom/power" + "custom/notification", + "custom/power", ] } diff --git a/endos.py b/endos.py index 9a0dfaa..96b95d6 100755 --- a/endos.py +++ b/endos.py @@ -58,7 +58,7 @@ installmap = dict( "go", # required for vim-hexokinase build "tree-sitter-cli", # required for nvim treesitter ), - utils=("uv", "ncdu", "unzip", "jq", "bluetui"), + utils=("uv", "gdu", "unzip", "jq", "bluetui"), gittools=( "tig", "diff-so-fancy", @@ -138,8 +138,7 @@ installmap = dict( "htop", # hardware "btop", # hardware "nvtop", # gpu - "lazyjournal", # journald - "isd", # systemd + "systemctl-tui", # systemd "bandwhich", # network "sysstat", ),