vitorpy's Dotfiles

Add pill background to hyprwhspr waybar module

+26 -2
+14 -2
private_dot_config/waybar/config
··· 4 4 "modules-left": [ 5 5 "battery#charging", 6 6 "custom/dnf-updates", 7 - "custom/reboot-required" 7 + "custom/reboot-required", 8 + "custom/hyprwhspr" 8 9 ], 9 10 "modules-center": [ 10 11 "custom/clock" ··· 114 115 "exec": "~/.config/waybar/scripts/reboot-required.sh", 115 116 "interval": 300, 116 117 "return-type": "json" 118 + }, 119 + "custom/hyprwhspr": { 120 + "exec": "/usr/lib/hyprwhspr/config/hyprland/hyprwhspr-tray.sh status", 121 + "interval": 2, 122 + "return-type": "json", 123 + "exec-on-event": true, 124 + "format": "{}", 125 + "on-click": "/usr/lib/hyprwhspr/config/hyprland/hyprwhspr-tray.sh toggle", 126 + "on-click-right": "/usr/lib/hyprwhspr/config/hyprland/hyprwhspr-tray.sh start", 127 + "on-click-middle": "/usr/lib/hyprwhspr/config/hyprland/hyprwhspr-tray.sh restart", 128 + "tooltip": true 117 129 } 118 - } 130 + }
+12
private_dot_config/waybar/style.css
··· 1 + @import "/usr/lib/hyprwhspr/config/waybar/hyprwhspr-style.css"; 2 + 1 3 /* Global look + font */ 2 4 * { 3 5 font-family: "NotoSans Nerd Font", sans-serif; ··· 62 64 margin: 4px 8px; 63 65 padding: 0 10px; 64 66 } 67 + 68 + #custom-hyprwhspr { 69 + background: #1f1f1f; 70 + color: #dcdccc; 71 + border: 1px solid #3f3f3f; 72 + border-radius: 14px; 73 + margin: 4px 8px; 74 + padding: 0 10px; 75 + } 76 + 65 77 .modules-right { 66 78 background: #1f1f1f; 67 79 color: #dcdccc;