summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-08-02 01:50:48 -0500
committerzachir <zachir@librem.one>2023-08-02 01:51:47 -0500
commit1c07e2121563da0de05ccba3188d9f96bbac7265 (patch)
tree4a796c0c934a8af24de92c8af6759a1569c2c5ee
parentbada6ae699540b949c2755c2e127b228a2f6b98a (diff)
Make hyprland use 9 workspaces with better waybar
-rw-r--r--hypr/hyprland.conf3
-rw-r--r--waybar/config13
-rw-r--r--waybar/style.css4
3 files changed, 16 insertions, 4 deletions
diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf
index f004eb9..915c9cc 100644
--- a/hypr/hyprland.conf
+++ b/hypr/hyprland.conf
@@ -220,7 +220,6 @@ bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
-bind = $mainMod, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
@@ -231,7 +230,6 @@ bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
-bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
bind = $mainMod CONTROL SHIFT, 1, movetoworkspace, 1
bind = $mainMod CONTROL SHIFT, 2, movetoworkspace, 2
bind = $mainMod CONTROL SHIFT, 3, movetoworkspace, 3
@@ -241,7 +239,6 @@ bind = $mainMod CONTROL SHIFT, 6, movetoworkspace, 6
bind = $mainMod CONTROL SHIFT, 7, movetoworkspace, 7
bind = $mainMod CONTROL SHIFT, 8, movetoworkspace, 8
bind = $mainMod CONTROL SHIFT, 9, movetoworkspace, 9
-bind = $mainMod CONTROL SHIFT, 0, movetoworkspace, 10
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
#}}}
diff --git a/waybar/config b/waybar/config
index d762544..63ac30e 100644
--- a/waybar/config
+++ b/waybar/config
@@ -18,7 +18,18 @@
"wlr/workspaces": {
"format": "{name}",
"active-only": false,
- "all-outputs": true,
+ "all-outputs": false,
+ "persistent_workspaces": {
+ "1": [],
+ "2": [],
+ "3": [],
+ "4": [],
+ "5": [],
+ "6": [],
+ "7": [],
+ "8": [],
+ "9": []
+ },
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
"on-click": "activate"
diff --git a/waybar/style.css b/waybar/style.css
index f002c9b..8b15dfb 100644
--- a/waybar/style.css
+++ b/waybar/style.css
@@ -62,6 +62,10 @@ window#waybar.hidden {
background-color: #eb4d4b;
}
+#workspaces button.persistent {
+ background: black;
+}
+
#mode {
background-color: #64727D;
border-bottom: 3px solid #ffffff;