added idle inhibitor

This commit is contained in:
Maximilian Wagner
2025-06-21 17:50:50 +02:00
parent 5c3a739b02
commit f62454848f
2 changed files with 64 additions and 45 deletions

102
config
View File

@@ -2,10 +2,10 @@
"layer": "top", "layer": "top",
"margin-bottom": 5, "margin-bottom": 5,
"margin-top": 0, "margin-top": 0,
"modules-left": ["cpu", "memory", "network", "tray"], "modules-left": ["idle_inhibitor", "cpu", "memory", "network", "tray"],
"modules-center": ["hyprland/workspaces"], "modules-center": ["hyprland/workspaces"],
"modules-right": ["backlight", "wireplumber", "clock", "battery", "custom/power"], "modules-right": ["backlight", "wireplumber", "clock", "battery", "custom/power"],
"pulseaudio": { "pulseaudio": {
"tooltip": false, "tooltip": false,
"scroll-step": 5, "scroll-step": 5,
@@ -16,16 +16,17 @@
"default": ["", "", ""] "default": ["", "", ""]
} }
}, },
"wireplumber": { "wireplumber": {
"tooltip": false, "tooltip": false,
"scroll-step": 5, "scroll-step": 5,
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
"format-muted": " {volume}%", "format-muted": " {volume}%",
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"format-icons": ["", "", ""] "format-icons": ["", "", ""]
}, },
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "󰀂", "format-wifi": "󰀂",
"format-ethernet": "󰛳", "format-ethernet": "󰛳",
//"tooltip-format": "{essid} ({signalStrength}%)", //"tooltip-format": "{essid} ({signalStrength}%)",
@@ -33,7 +34,8 @@
"format-linked": "{ifname} (No IP) 󰛳", "format-linked": "{ifname} (No IP) 󰛳",
"format-disconnected": "󰲜", "format-disconnected": "󰲜",
"format-alt": "{ifname}: {essid}" "format-alt": "{ifname}: {essid}"
}, },
"backlight": { "backlight": {
"tooltip": false, "tooltip": false,
"format": " {}%", "format": " {}%",
@@ -41,44 +43,54 @@
"on-scroll-up": "brightnessctl -q set +5%", "on-scroll-up": "brightnessctl -q set +5%",
"on-scroll-down": "brightnessctl -q set 5%-" "on-scroll-down": "brightnessctl -q set 5%-"
}, },
"battery": {
"states": { "battery": {
"good": 90, "states": {
"warning": 30, "good": 90,
"critical": 20 "warning": 30,
}, "critical": 20
"format": "{icon} {capacity}%", },
"format-charging": " {capacity}%", "format": "{icon} {capacity}%",
"format-plugged": " {capacity}%", "format-charging": " {capacity}%",
"format-alt": "{icon} {time}", "format-plugged": " {capacity}%",
"tooltip": false, "format-alt": "{icon} {time}",
"format-icons": ["", "", "", "", ""] "tooltip": false,
}, "format-icons": ["", "", "", "", ""]
},
"tray":{ "tray":{
"icon-size":18, "icon-size":18,
"spacing": 10 "spacing": 10
}, },
"clock": {
"format": " {:%H:%M 📅 %d.%m.%y}", "clock": {
"tooltip": false "format": " {:%H:%M 📅 %d.%m.%y}",
}, "tooltip": false
"cpu": { },
"interval": 15,
"format": " {}%", "cpu": {
"max-length": 10 "interval": 15,
}, "format": " {}%",
"memory": { "max-length": 10
"interval": 30, },
"format": " {}%",
"max-length": 10 "memory": {
}, "interval": 30,
//"custom/power":{ "format": " {}%",
// "format": " ", "max-length": 10
// "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": {
"hyrpland/workspaces": { "format": "{icon}",
"format": "{icon}", "on-click": "activate"
"on-click": "activate" },
"idle_inhibitor": {
//"timeout": 30.5,
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
} }
} }

View File

@@ -132,6 +132,13 @@ window#waybar.hidden {
background: #DDB6F2; background: #DDB6F2;
} }
#idle_inhibitor {
padding-right: 12px;
transition: none;
color: #161320;
background: #89d6cb;
}
#cpu { #cpu {
transition: none; transition: none;
color: #161320; color: #161320;