From f3b64e3f981fcfc80741c9f74c6746985d6ede7a Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 8 Apr 2025 14:23:35 +0200 Subject: [PATCH] update hypr and replacy waybor config to original --- dot_config/waybar/config.jsonc | 39 ++++++++++++------------ dot_config/waybar/modules/power_menu.xml | 28 +++++++++++++++++ 2 files changed, 48 insertions(+), 19 deletions(-) create mode 100644 dot_config/waybar/modules/power_menu.xml diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index e7a8924..1e8ca62 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -7,7 +7,7 @@ "spacing": 4, // Gaps between modules (4px) // Choose the order of the modules "modules-left": [ - "sway/workspaces", + "hyprland/workspaces", "sway/mode", "sway/scratchpad" ], @@ -26,25 +26,26 @@ "sway/language", "battery", "clock", - "tray" + "tray", + "custom/power" ], // Modules configuration - // "sway/workspaces": { - // "disable-scroll": true, - // "all-outputs": true, - // "warp-on-scroll": false, - // "format": "{name}: {icon}", - // "format-icons": { - // "1": "", - // "2": "", - // "3": "", - // "4": "", - // "5": "", - // "urgent": "", - // "focused": "", - // "default": "" - // } - // }, + "hyprland/workspaces": { + "disable-scroll": true, + "all-outputs": true, + "warp-on-scroll": false, + "format": "{name}: {icon}", + "format-icons": { + "1": "", + "2": "", + "3": "", + "4": "", + "5": "", + "urgent": "", + "focused": "", + "default": "" + } + }, "keyboard-state": { "numlock": true, "capslock": true, @@ -199,7 +200,7 @@ "format" : "⏻ ", "tooltip": false, "menu": "on-click", - "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder + "menu-file": "$HOME/.config/waybar/modules/power_menu.xml", // Menu file in resources folder "menu-actions": { "shutdown": "shutdown", "reboot": "reboot", diff --git a/dot_config/waybar/modules/power_menu.xml b/dot_config/waybar/modules/power_menu.xml new file mode 100644 index 0000000..aa2a42c --- /dev/null +++ b/dot_config/waybar/modules/power_menu.xml @@ -0,0 +1,28 @@ + + + + + + Suspend + + + + + Hibernate + + + + + Shutdown + + + + + + + + Reboot + + + +