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:50:48 -0500
commit18e04a450d2ef16fdd2162deeac06e8ce65ddce3 (patch)
tree3cf5bce38b568ede261f0c18fde19f3b65a86b20
parent3d2d1f62fdcf773bd5c14994c36da587bcc17d56 (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 5c9d303..0ac537f 100644
--- a/hypr/hyprland.conf
+++ b/hypr/hyprland.conf
@@ -219,7 +219,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
@@ -230,7 +229,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
@@ -240,7 +238,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 401bbcd..e80da3a 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;