aboutsummaryrefslogtreecommitdiffstats
path: root/modules/hyprland
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hyprland')
-rw-r--r--modules/hyprland/workspaces.jsonc26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/hyprland/workspaces.jsonc b/modules/hyprland/workspaces.jsonc
new file mode 100644
index 0000000..f32d497
--- /dev/null
+++ b/modules/hyprland/workspaces.jsonc
@@ -0,0 +1,26 @@
+// Workspaces.
+//
+// The icons are NOT here. waybar's format-icons takes text, not paths, so
+// eight themed icons can only arrive as CSS background images; see
+// styles/modules.css. The label is emptied rather than removed, because an
+// empty label still gives each button its box to draw the icon in.
+//
+// Faking this with eight custom modules would have put the icons in config,
+// at the cost of click-to-switch and the active/urgent states. Keeping the
+// real module and moving the icons to CSS keeps the behaviour.
+{
+ "hyprland/workspaces": {
+ "format": "{icon}",
+ "format-icons": {
+ "1": "", "2": "", "3": "", "4": "",
+ "5": "", "6": "", "7": "", "8": "",
+ "urgent": "", "focused": "", "default": ""
+ },
+ "persistent-workspaces": {
+ "*": [1, 2, 3, 4, 5, 6, 7, 8]
+ },
+ "on-scroll-up": "hyprctl dispatch workspace +1",
+ "on-scroll-down": "hyprctl dispatch workspace -1",
+ "cursor": true
+ }
+}