From 62c1e9923f2c368fa61261e165a248d032f8ffb0 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Thu, 17 Jul 2025 13:57:20 +0200 Subject: [PATCH] waybar: update config --- dot-config/waybar/config.jsonc | 35 ++++++++++++++++++++++++---------- dot-config/waybar/style.css | 29 ++++++++++++++++++++-------- 2 files changed, 46 insertions(+), 18 deletions(-) diff --git a/dot-config/waybar/config.jsonc b/dot-config/waybar/config.jsonc index f9ff88b2..4dd7acf4 100644 --- a/dot-config/waybar/config.jsonc +++ b/dot-config/waybar/config.jsonc @@ -25,7 +25,6 @@ "group/sysmon", "group/display", "network", - "gamemode", "group/sndpwr", "custom/voidspacer", "group/trayclock", @@ -47,6 +46,8 @@ "window-rewrite": { "class": "", "class": "", + "class": "", + "class": "", "title<.*github.*>": "", "title<.*youtube.*>": "", "title<.*reddit.*>": "", @@ -57,6 +58,8 @@ "class": "", "class": "", "class": "󰀶", + "class": "󰺷", + "class<.*exe>": "", "org.kde.skanlite": "󰚫", "org.rncbc.qpwgraph": "󱡫", "io.github.ilya_zlobintsev.LACT": "󱡭", @@ -68,16 +71,17 @@ "class": "", }, "format-icons": { - "1": "󰖟", - "2": "", + "1": "", + "2": "󰖟", "3": "", "4": "", - "5": "", + "5": "", "6": "󰸾", - "7": "", - "8": "", + "7": "󰸷", + "8": "", "9": "", - "0": "" + "0": "", + "11": "" }, "persistent-workspaces": { "*": 6 @@ -235,8 +239,10 @@ ] }, "on-click": "~/.config/waybar/scripts/sound-source.sh", - "on-click-middle": "pavucontrol", - "on-click-right": "helvum" + "on-click-middle": "helvum", + "on-click-right": "pavucontrol", + "on-scroll-up": "~/.local/bin/wp+", + "on-scroll-down": "~/.local/bin/wp-" }, "clock": { "timezone": "Europe/Berlin", @@ -312,6 +318,7 @@ "orientation": "horizontal", "modules": [ "wireplumber", + "gamemode", "power-profiles-daemon" ] }, @@ -323,6 +330,14 @@ "hyprland/language" ] }, + "cava": { + "cava_config": "$HOME/.config/cava/waybarconfig", + "input_delay": "1", + "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ], + "actions": { + "on-click-right": "mode" + } + }, "group/sysmon": { "orientation": "horizontal", "modules": [ @@ -379,7 +394,7 @@ "default": "", "performance": "", "balanced": "", - "power-saver": "" + "power-saver": "", } }, "custom/mpris": { diff --git a/dot-config/waybar/style.css b/dot-config/waybar/style.css index 7b3a6e7a..a83e8b45 100644 --- a/dot-config/waybar/style.css +++ b/dot-config/waybar/style.css @@ -28,8 +28,8 @@ margin-right: 10px; margin-top: 5px; margin-bottom: 0px; - border: 2px solid alpha(@base03, 0.45); - background: alpha(@base00, 0.45); + border: 2px solid alpha(@base03, 0.95); + background: alpha(@base00, 0.50); border-radius: 5px; } @@ -182,7 +182,7 @@ window#waybar { background-color: transparent; transition-property: background-color; transition-duration: 0.5s; - /*background: linear-gradient(180deg, rgba(21,21,21,1) 0%, rgba(21,21,21,1) 45%, rgba(32,32,32,0.3) 100%);*/ + /*background: linear-gradient(1.0deg, rgba(21,21,21,1) 0%, rgba(21,21,21,1) 45%, rgba(32,32,32,0.3) 1.0%);*/ } /* ------------------------------------ workspaces end ------------------------------ */ @@ -355,9 +355,9 @@ window#waybar { font-weight: 500; padding-left: 6px; padding-right: 6px; - color: @base07; + color: @base05; background-color: alpha(@base01, 1.0); - border-radius: 0px 0px 4px 0px; + border-radius: 4px 4px 4px 0px; margin-top: 2px; margin-bottom: 2px; margin-top: 2px; @@ -445,7 +445,7 @@ window#waybar { #network { padding-left: 4px; padding-right: 4px; - color: @base09; + color: @base0C; background-color: alpha(@base01, 1.0); border: none; border-radius: 0px 0px 4px 4px; @@ -460,15 +460,28 @@ window#waybar { #gamemode { padding-left: 6px; padding-right: 2px; - color: @base08; + color: @base0C; background-color: alpha(@base01, 1.0); border: none; - border-radius: 0px 0px 4px 4px; + border-radius: 0px 0px 0px 0px; margin-top: 2px; margin-bottom: 2px; margin-top: 2px; margin-bottom: 2px; border: 1px solid @base01; + border-radius: 0px 0px 0px 0px; +} + +#cava { + padding-left: 4px; + padding-right: 4px; + color: @base05; + background-color: alpha(@base01, 1.0); + border: none; + border-radius: 0px 0px 4px 4px; + margin-top: 2px; + margin-bottom: 2px; + border: 1px solid @base01; border-radius: 8px 8px 8px 8px; } -- 2.51.2