summaryrefslogtreecommitdiff
path: root/desktop/.config/waybar
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2023-10-12 06:42:57 -0400
committerKjetil Orbekk <kj@orbekk.com>2023-10-20 07:58:20 -0400
commitb491c39c9253d25589ef98fe23a5c996ed0c149c (patch)
tree20445083b334a61c267a395cc68e8f5ac25f0322 /desktop/.config/waybar
parent6977dac3fda7c8248a304bc776ed7205210a3d54 (diff)
sway config
Diffstat (limited to 'desktop/.config/waybar')
-rw-r--r--desktop/.config/waybar/config16
-rw-r--r--desktop/.config/waybar/style.css19
2 files changed, 31 insertions, 4 deletions
diff --git a/desktop/.config/waybar/config b/desktop/.config/waybar/config
index da79430..ce3dc65 100644
--- a/desktop/.config/waybar/config
+++ b/desktop/.config/waybar/config
@@ -2,13 +2,13 @@
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
- "height": 30, // Waybar height (to be removed for auto height)
+ "height": 20, // 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": ["river/tags", "river/mode", "custom/media"],
- "modules-center": ["river/window"],
- "modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray"],
+ "modules-left": ["river/tags", "river/mode", "sway/workspaces", "custom/media", "sway/mode"],
+ "modules-center": ["river/window", "sway/window"],
+ "modules-right": ["idle_inhibitor", "pulseaudio", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray"],
"keyboard-state": {
"numlock": true,
"capslock": true,
@@ -18,9 +18,17 @@
"unlocked": ""
}
},
+
"river/tags": {
"num-tags": 10
},
+
+ "sway/workspaces": {
+ "all-outputs": false,
+ "disable-scroll": true,
+ "format": "{name}"
+ },
+
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
diff --git a/desktop/.config/waybar/style.css b/desktop/.config/waybar/style.css
index 49d5ac1..edc028e 100644
--- a/desktop/.config/waybar/style.css
+++ b/desktop/.config/waybar/style.css
@@ -79,6 +79,25 @@ button:hover {
margin: 0 4px;
}
+#workspaces button {
+ padding: 0 5px;
+ background-color: transparent;
+ color: #ffffff;
+}
+
+#workspaces button:hover {
+ background: rgba(0, 0, 0, 0.2);
+}
+
+#workspaces button.focused {
+ background-color: #64727D;
+ box-shadow: inset 0 -3px #ffffff;
+}
+
+#workspaces button.urgent {
+ background-color: #eb4d4b;
+}
+
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;