diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-04 22:45:56 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-04 22:45:56 +0200 |
commit | 1914d16f1693a3c31f8ad9e07b1469df1604d690 (patch) | |
tree | a8a623823adc077f7371de379b9e70eb7a7b485c /config/hyprland/waybar | |
parent | 49bbf6906089b5d957e2a781002d32b811ae630d (diff) | |
parent | e850f3a1702b4d8b9d0cfec5c07d710b5201ed29 (diff) |
Merge branch 'main' of /var/git/dotfiles
Diffstat (limited to 'config/hyprland/waybar')
-rw-r--r-- | config/hyprland/waybar/config.jsonc | 24 | ||||
-rw-r--r-- | config/hyprland/waybar/schemes/base16.css | 12 |
2 files changed, 29 insertions, 7 deletions
diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index 816a851..d2bad38 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -1,10 +1,21 @@ { "layer": "top", - "modules-left": ["battery", "clock", "wlr/workspaces", "mpd"], + "modules-left": ["battery", "clock", "hyprland/workspaces", "mpd"], "modules-center": ["hyprland/window"], - "modules-right": ["network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"], - "wlr/workspaces": { - "on-click": "activate", + "modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"], + "hyprland/workspaces": { + "format": "{icon}", + "format-icons": { + "1": "I", + "2": "II", + "3": "III", + "4": "IV", + "5": "V", + "6": "VI", + "7": "VII", + "8": "VIII", + "9": "IX", + }, }, "mpd": { "tooltip": false, @@ -44,6 +55,11 @@ "default":["", "", "", "", ""] }, }, + "custom/wireguard": { + "exec": "ip addr show dev wg0", + "format": "wg0", + "restart-interval": 3, + }, "network": { "format-wifi": " ", "tooltip-format-wifi": "{ifname} {essid}", diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css index eced638..589cc12 100644 --- a/config/hyprland/waybar/schemes/base16.css +++ b/config/hyprland/waybar/schemes/base16.css @@ -39,7 +39,7 @@ window#waybar.PCSX2 #window { #mpd, #battery, #window, -#network, #pulseaudio, #temperature, #cpu, #custom-memory { +#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory { margin-left: 8px; padding-left: 16px; padding-right: 16px; @@ -48,7 +48,7 @@ window#waybar.PCSX2 #window { #workspaces, #mpd, #battery, #clock, #window, -#network, #pulseaudio, #temperature, #cpu, #custom-memory, #tray { +#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory, #tray { border: solid @background 2px; margin-top: 4px; margin-bottom: 2px; @@ -75,7 +75,7 @@ window#waybar.PCSX2 #window { } #workspaces button.active { - text-shadow: 1px 0px 1px @background; + text-shadow: 0px 1px 0px @color1; } #workspaces button:hover { @@ -112,6 +112,12 @@ window#waybar.PCSX2 #window { background: @color4; } +#custom-wireguard { + color: @color5; + border-color: @color8; + background: @background; +} + #network { color: @background; background: @color5; |