From f62454848f5c735811bb95fe24d8c35f4453c608 Mon Sep 17 00:00:00 2001 From: Maximilian Wagner Date: Sat, 21 Jun 2025 17:50:50 +0200 Subject: [PATCH] added idle inhibitor --- config | 102 ++++++++++++++++++++++++++++++------------------------ style.css | 7 ++++ 2 files changed, 64 insertions(+), 45 deletions(-) diff --git a/config b/config index 9c94cf2..85b4b3b 100644 --- a/config +++ b/config @@ -2,10 +2,10 @@ "layer": "top", "margin-bottom": 5, "margin-top": 0, - "modules-left": ["cpu", "memory", "network", "tray"], + "modules-left": ["idle_inhibitor", "cpu", "memory", "network", "tray"], "modules-center": ["hyprland/workspaces"], "modules-right": ["backlight", "wireplumber", "clock", "battery", "custom/power"], - + "pulseaudio": { "tooltip": false, "scroll-step": 5, @@ -16,16 +16,17 @@ "default": ["", "", ""] } }, + "wireplumber": { - "tooltip": false, - "scroll-step": 5, - "format": "{icon} {volume}%", - "format-muted": " {volume}%", - "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", - "format-icons": ["", "", ""] + "tooltip": false, + "scroll-step": 5, + "format": "{icon} {volume}%", + "format-muted": " {volume}%", + "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", + "format-icons": ["", "", ""] }, + "network": { - // "interface": "wlp2*", // (Optional) To force the use of this interface "format-wifi": "󰀂", "format-ethernet": "󰛳", //"tooltip-format": "{essid} ({signalStrength}%)", @@ -33,7 +34,8 @@ "format-linked": "{ifname} (No IP) 󰛳", "format-disconnected": "󰲜", "format-alt": "{ifname}: {essid}" - }, + }, + "backlight": { "tooltip": false, "format": " {}%", @@ -41,44 +43,54 @@ "on-scroll-up": "brightnessctl -q set +5%", "on-scroll-down": "brightnessctl -q set 5%-" }, - "battery": { - "states": { - "good": 90, - "warning": 30, - "critical": 20 - }, - "format": "{icon} {capacity}%", - "format-charging": " {capacity}%", - "format-plugged": " {capacity}%", - "format-alt": "{icon} {time}", - "tooltip": false, - "format-icons": ["", "", "", "", ""] - }, + + "battery": { + "states": { + "good": 90, + "warning": 30, + "critical": 20 + }, + "format": "{icon} {capacity}%", + "format-charging": " {capacity}%", + "format-plugged": " {capacity}%", + "format-alt": "{icon} {time}", + "tooltip": false, + "format-icons": ["", "", "", "", ""] + }, + "tray":{ "icon-size":18, "spacing": 10 }, - "clock": { - "format": " {:%H:%M 📅 %d.%m.%y}", - "tooltip": false - }, - "cpu": { - "interval": 15, - "format": " {}%", - "max-length": 10 - }, - "memory": { - "interval": 30, - "format": " {}%", - "max-length": 10 - }, - //"custom/power":{ - // "format": " ", - // "on-click": "bash ~/.config/rofi/leave/leave.sh", - //}, - // The code following below is given in the great documentation for Waybar status bar under Useful Utilities in Hyprland wiki - "hyrpland/workspaces": { - "format": "{icon}", - "on-click": "activate" + + "clock": { + "format": " {:%H:%M 📅 %d.%m.%y}", + "tooltip": false + }, + + "cpu": { + "interval": 15, + "format": " {}%", + "max-length": 10 + }, + + "memory": { + "interval": 30, + "format": " {}%", + "max-length": 10 + }, + + "hyrpland/workspaces": { + "format": "{icon}", + "on-click": "activate" + }, + + "idle_inhibitor": { + //"timeout": 30.5, + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } } } diff --git a/style.css b/style.css index 1f13727..24d2571 100644 --- a/style.css +++ b/style.css @@ -132,6 +132,13 @@ window#waybar.hidden { background: #DDB6F2; } +#idle_inhibitor { + padding-right: 12px; + transition: none; + color: #161320; + background: #89d6cb; +} + #cpu { transition: none; color: #161320;