From f4c4550e327d9090c82a735d39d104d0bedb602d Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 30 Mar 2025 01:00:51 -0400 Subject: Loads of laptop shit --- .config/waybar/config.json | 9 ++++++--- .config/waybar/modules.json | 34 +++++++++++++++++++++++++--------- .config/waybar/style.css | 14 ++++++++++++-- 3 files changed, 43 insertions(+), 14 deletions(-) (limited to '.config/waybar') diff --git a/.config/waybar/config.json b/.config/waybar/config.json index f61d9bd..70606e5 100644 --- a/.config/waybar/config.json +++ b/.config/waybar/config.json @@ -1,4 +1,5 @@ { + "reload_style_on_change": false, "position": "top", "layer": "top", "height": 12, @@ -7,8 +8,9 @@ "_Modules_": "Choose the order of the modules", "modules-left": [ - "dwl/tags", - "dwl/window", + "river/tags", + "river/layout", + "river/window" ], "modules-center": [ @@ -18,9 +20,10 @@ "custom/dotfiles", "custom/mail", "custom/eselect", + "custom/layout", "custom/date", "custom/time", - "custom/battery", + "custom/battery" ], "include": "~/.config/waybar/modules.json" diff --git a/.config/waybar/modules.json b/.config/waybar/modules.json index 6902c6b..618806b 100644 --- a/.config/waybar/modules.json +++ b/.config/waybar/modules.json @@ -1,17 +1,26 @@ { + "river/layout": { + "format": " {} ", + "min-length": 4, + "align": "right" + }, + "river/window": { + "format": "{}", + }, + "river/tags": { + "num-tags": 9, + "set-tags": [ + 1, 2, 4, 8, 16, 32, 64, 128, 256 + ], + "tag-labels": [ + "1", "2", "3", "4", "5", "6", "7", "8", "9" + ], + }, "dwl/tags": { "num-tags": 9, "disable-click": true, "tag-labels": [ - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9" + "1", "2", "3", "4", "5", "6", "7", "8", "9" ], }, "dwl/window": { @@ -33,6 +42,13 @@ "interval": 3600, "signal": 7, }, + "custom/layout": { + "format": "{}", + "return-type": "json", + "exec": "/home/master/.local/bin/dwmbar/dwmb-layout", + "interval": 3600, + "signal": 4, + }, "custom/mail": { "format": "{}", "return-type": "json", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index a7e49ca..05791ab 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -1,6 +1,6 @@ * { /* `otf-font-awesome` is required to be installed for icons */ - font-size: 11px; + font-size: 20; padding: 0px; font-family: sans-serif; /* color: #1b1d1b; */ @@ -11,6 +11,16 @@ window#waybar { background-color: rgba(27, 29, 27, 0.78); /* #1b1d1b */ } +#layout { + padding-right: 5px; + margin-right: 5px; +} + +#window { + padding-left: 5px; + margin-left: 5px; +} + #tags { font-family: sans-serif; } @@ -32,7 +42,7 @@ window#waybar { color: rgba(68, 122, 108, 1); /* #447a6c */ } -#tags button.focused, #window { +#tags button.focused, #window, #layout { background-color: rgba(125,75,35,0.8); /* #7d4b23 */ color: rgba(27, 29, 27, 1); /* #1b1d1b */ } -- cgit v1.2.3