more to be fix on niri

This commit is contained in:
2025-10-05 04:56:05 +02:00
parent 01c6e70dab
commit 22955ec73d
29 changed files with 478 additions and 28 deletions

View File

@@ -17,7 +17,7 @@
"custom/mediaplayer"
],
"modules-center": ["clock"],
"modules-right": ["group/monitors", "custom/separator", "group/tray-expander", "idle_inhibitor", "custom/power"],
"modules-right": ["group/monitors", "custom/separator", "group/tray-expander", "custom/caffeine", "custom/power"],
// -------------------------------------------------------------------------
// Modules
// -------------------------------------------------------------------------
@@ -53,6 +53,21 @@
"min-length": 2,
"max-length": 2
},
"custom/caffeine": {
"format": "{icon}",
"format-icons": {
"active": "",
"inactive": ""
},
"return-type": "json",
"interval": "once",
"exec": "$HOME/.config/waybar/modules/caffeine.sh",
"on-click": "$HOME/.config/waybar/modules/caffeine.sh toggle && sleep 0.2",
"exec-on-event": true,
"tooltip": false,
"min-length": 2,
"max-length": 2
},
// Time and Date
"clock": {
"format": "{:%H:%M | %e %b}",
@@ -166,7 +181,7 @@
"max-length": 6,
"min-length": 6
},
// Hyprland
// Niri
"group/workspaceactions": {
"modules": ["niri/workspaces", "custom/workspacenew"],
"orientation": "inherit"