From f0c4a223a66b9416b8e3bd0f3b900fd8edce5929 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 12 Nov 2023 08:55:36 +0900 Subject: [PATCH] updated waybar modules - scrollable workspace --- config/waybar/configs/config-Left | 2 +- config/waybar/configs/config-Right | 2 +- config/waybar/configs/config-default | 2 +- config/waybar/modules | 45 +++++++++++++++------------- 4 files changed, 28 insertions(+), 23 deletions(-) diff --git a/config/waybar/configs/config-Left b/config/waybar/configs/config-Left index e692801..8f24d7c 100644 --- a/config/waybar/configs/config-Left +++ b/config/waybar/configs/config-Left @@ -19,7 +19,7 @@ ], "modules-center": [ - "hyprland/workspaces#2", + "hyprland/workspaces", ], "modules-right": [ diff --git a/config/waybar/configs/config-Right b/config/waybar/configs/config-Right index ee928a4..ab9307e 100644 --- a/config/waybar/configs/config-Right +++ b/config/waybar/configs/config-Right @@ -19,7 +19,7 @@ ], "modules-center": [ - "hyprland/workspaces#2", + "hyprland/workspaces", ], "modules-right": [ diff --git a/config/waybar/configs/config-default b/config/waybar/configs/config-default index 2d88c80..c3e705a 100644 --- a/config/waybar/configs/config-default +++ b/config/waybar/configs/config-default @@ -14,7 +14,7 @@ "margin-right": 8, "modules-left": [ - "hyprland/workspaces", + "hyprland/workspaces#3", "custom/separator#dot-line", "cpu", "custom/separator#dot-line", diff --git a/config/waybar/modules b/config/waybar/modules index fc0e7db..301b6b9 100644 --- a/config/waybar/modules +++ b/config/waybar/modules @@ -1,69 +1,75 @@ +//* ---- 💫 https://github.com/JaKooLit 💫 ---- *// + { -// HYPRLAND WORKSPACES. CHOOSE as required +// HYPRLAND WORKSPACES. CHOOSE as desired and place on waybar configs // CIRCLES Style - "hyprland/workspaces": { - "all-outputs": true, +"hyprland/workspaces": { + "active-only": false, + "all-outputs": true, "format": "{icon}", + "show-special": false, "on-click": "activate", -"on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-up": "hyprctl dispatch workspace e+1", "on-scroll-down": "hyprctl dispatch workspace e-1", "persistent_workspaces": { "1": [], "2": [], "3": [], "4": [], - "5": [] + "5": [], }, "format-icons": { "active": "", "default": "", + }, }, - "active-only": false, - "all-outputs": true -}, - // ROMAN Numerals style "hyprland/workspaces#2": { "active-only":false, "all-outputs": true, "format": "{icon}", + "show-special": false, "on-click": "activate", + "on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-down": "hyprctl dispatch workspace e-1", "persistent_workspaces":{ "1": [], "2": [], "3": [], "4": [], - "5": [] + "5": [], }, "format-icons": { "1": "I", "2": "II", "3": "III", "4": "IV", - "5": "V" + "5": "V", - } + }, }, - // PACMAN Style "hyprland/workspaces#3": { "active-only":false, "all-outputs": true, "format": "{icon}", "on-click": "activate", + "on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-down": "hyprctl dispatch workspace e-1", + "show-special": false, "persistent_workspaces":{ "1": [], "2": [], "3": [], "4": [], - "5": [] + "5": [], }, "format": "{icon}", "format-icons": { "active": " 󰮯 ", "default": "  ", - "persistent":"󰑊" - } + "persistent":"󰑊", + }, }, // NUMBERS and ICONS style @@ -73,6 +79,8 @@ //"format": " {icon} ", "show-special": false, "on-click": "activate", + "on-scroll-up": "hyprctl dispatch workspace e+1", + "on-scroll-down": "hyprctl dispatch workspace e-1", "all-outputs": true, "sort-by-number": true, "format-icons": { @@ -88,11 +96,8 @@ "10": "10", "focused": "", "default": "", - }, - "on-scroll-up": "hyprctl dispatch workspace e+1", - "on-scroll-down": "hyprctl dispatch workspace e-1", + }, }, - "backlight": { "interval": 2, "align": 0,