diff options
Diffstat (limited to '.config/waybar')
-rw-r--r-- | .config/waybar/config.jsonc | 24 | ||||
-rw-r--r-- | .config/waybar/style.css | 11 |
2 files changed, 28 insertions, 7 deletions
diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index c2aef8e..513c578 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -30,7 +30,8 @@ "network", "battery", "backlight", - "tray" + "tray", + "custom/toggle-laptop-keyboard" ], "hyprland/window": { "format": "{}" @@ -100,9 +101,19 @@ }, "cpu": { "interval": 5, - "format": " {usage}% ", + // "format": " {usage}% ", + "format-critical":"<span color='#c20821'><b> {usage}%</b></span>", + "format-high": "<span color='#e03c52'> {usage}%</span>", + "format-medium": "<span color='#f9e2af'> {usage}%</span>", + "format-low": "<span color='#b2beb5'> {usage}%</span>", "tooltip": false, - "on-click": "foot --term -e htop" + "on-click": "foot --term -e htop", + "states": { + "critical": 80, + "high": 50, + "medium": 5, + "low": 0, + }, }, "temperature": { "interval": 5, @@ -211,5 +222,10 @@ "tray": { "icon-size": 18, "spacing": 10 - } + }, + "custom/toggle-laptop-keyboard": { + "format": " ", + "on-click": "~/.scripts/toggle-keyboard-hypr", + "tooltip-format": "Toggle Laptop Keyboard" + } } diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 91059bd..4ac1b0d 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -5,7 +5,7 @@ /*font-family: Iosevka, FontAwesome, Noto Sans CJK;*/ font-family: "JetBrainsMono Nerd Font"; font-weight: bold; - font-size: 15.9px; + font-size: 15.8px; min-height: 0; } @@ -75,6 +75,7 @@ tooltip { #custom-memory, #workspaces, #tray, +#custom-toggle-laptop-keyboard, #backlight, #custom-playerctl, #custom-playerlabel { @@ -98,8 +99,12 @@ tooltip { } #tray { - border-radius: 10px; - margin-right: 5px; + border-radius: 10px 0px 0px 10px; +} + +#custom-toggle-laptop-keyboard{ + border-radius: 0px 10px 10px 0px; + margin-right: 2px } #workspaces { |