diff options
Diffstat (limited to '.config/waybar')
-rw-r--r-- | .config/waybar/config | 26 | ||||
-rw-r--r-- | .config/waybar/style.css | 5 |
2 files changed, 29 insertions, 2 deletions
diff --git a/.config/waybar/config b/.config/waybar/config index 63f64e2..27b972c 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,16 +1,18 @@ // vi: ft=jsonc { - // "layer": "top", // Waybar at top layer + "layer": "top", // Waybar at top layer // "position": "bottom", // Waybar position (top|bottom|left|right) "height": 40, // Waybar height (to be removed for auto height) // "width": 1280, // Waybar width //"spacing": 4, // Gaps between modules (4px) // Choose the order of the modules "modules-left": [ + "wlr/workspaces", "sway/workspaces" //"sway/mode" ], "modules-center": [ + "wlr/window", "sway/window" ], "modules-right": [ @@ -38,7 +40,22 @@ "urgent": "", "focused": "", "default": "" - } + }, + "on-click": "activate" + }, + "wlr/workspaces": { + "max-width": 100, + "disable-scroll": false, + "all-outputs": false, + "format": "{name} {icon}", + "format-icons": { + "urgent": "", + "focused": "", + "default": "" + }, + "on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-down": "hyprctl dispatch workspace e-1", + "on-click": "activate" }, "keyboard-state": { "numlock": true, @@ -53,6 +70,11 @@ "format": "{short} {variant}", "on-click": "swaymsg input type:keyboard xkb_switch_layout next" }, + "wlr/mode": { + "format": "<span style=\"italic\">{}</span>", + "max-length": 50, + "tooltip": true + }, "sway/mode": { "format": "<span style=\"italic\">{}</span>", "max-length": 50, diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 9580d35..08861e3 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -63,6 +63,11 @@ window#waybar.chromium { box-shadow: inset 0 -3px #ffffff; } +#workspaces button.active { + background-color: #64727D; + box-shadow: inset 0 -3px #ffffff; +} + #workspaces button.focused { background-color: #64727D; box-shadow: inset 0 -3px #ffffff; |