dwl: latest changes - dotfiles - 🍚 personal arsenal of "rice"
HTML git clone https://git.drkhsh.at/dotfiles.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 9df4d0215ab6e5c07913ea1b68cb9f3cefb7cf7f
DIR parent 02db4004e45865b0fd617727989113d1b909c4d4
HTML Author: drkhsh <me@drkhsh.at>
Date: Sun, 30 Mar 2025 18:28:36 +0200
dwl: latest changes
Diffstat:
M dwl/config.h | 14 +++++++-------
M waybar/.config/waybar/bars/laptop.… | 3 ++-
M waybar/.config/waybar/modules.jsonc | 14 ++++++--------
M waybar/.config/waybar/style.css | 13 +++++--------
4 files changed, 20 insertions(+), 24 deletions(-)
---
DIR diff --git a/dwl/config.h b/dwl/config.h
@@ -41,13 +41,13 @@ static const Rule rules[] = {
/* examples: */
{ "Gimp", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
{ "pavucontrol", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
- { "Pinentry-gtk-2", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
- { "Pinentry-gnome-3", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
- { "Pinentry-gnome", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
- { "Pinentry", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
- { "Gcr-prompter", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
- { "Zenity", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
- { "Drawterm", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
+ { "Pinentry-gtk-2", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
+ { "Pinentry-gnome-3", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
+ { "Pinentry-gnome", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
+ { "Pinentry", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
+ { "Gcr-prompter", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
+ { "Zenity", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
+ { "Drawterm", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
{ "Tor Browser", NULL, 0, 1, -1 }, /* Start on currently visible tags floating, not tiled */
};
DIR diff --git a/waybar/.config/waybar/bars/laptop.jsonc b/waybar/.config/waybar/bars/laptop.jsonc
@@ -6,7 +6,7 @@
"height": 43,
"modules-left": [
"dwl/tags",
- "idle_inhibitor",
+ "dwl/layout",
"dwl/window",
"custom/yubikey"
],
@@ -17,6 +17,7 @@
],
"modules-right": [
"tray",
+ "idle_inhibitor",
"network#icon",
"network",
"cpu#icon",
DIR diff --git a/waybar/.config/waybar/modules.jsonc b/waybar/.config/waybar/modules.jsonc
@@ -31,17 +31,15 @@
}
},
"dwl/tags": {
- "num-tags": 9
+ "num-tags": 9,
+ "hide-vacant": true
},
- "dwl/window#layout": {
- "format": "{layout}",
- "align": 0,
- "justify": "left",
- "min-length": 1,
- "max-length": 3
+ "dwl/layout": {
+ "format": "{layout}"
},
"dwl/window": {
- "format": "{layout} {title}",
+ "format": "{title}",
+ "hide-empty": true,
"max-length": 50,
"rewrite": {
"(.*) - Mozilla Firefox": "🌎 $1",
DIR diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css
@@ -34,10 +34,6 @@ window#waybar.hidden {
opacity: 0.9;
}
-#tags button.occupied {
- box-shadow: inset -1px -2px rgba(28,97,194,0.5);
-}
-
#workspaces button.active, #tags button.focused {
background-color: #0abdc6;
color: #000b1e;
@@ -76,7 +72,8 @@ window#waybar.hidden {
#cava,
#mpris,
#mpris.icon,
-#window {
+#window,
+#layout {
opacity: 0.9;
border-radius: 0px;
margin: 6px 3px;
@@ -144,7 +141,7 @@ tooltip label {
border-bottom-right-radius: 0;
}
-#memory.icon, #cpu.icon, #battery.icon, #wireplumber.icon, #network.icon, #mpris.icon, #window.layout {
+#memory.icon, #cpu.icon, #battery.icon, #wireplumber.icon, #network.icon, #mpris.icon, #layout {
padding-left: 7px;
padding-right: 7px;
}
@@ -158,7 +155,7 @@ tooltip label {
padding-right: 11px;
}
-#idle_inhibitor, #tray, #custom-logout, #custom-hyprsunset, #window, #custom-yubikey, #custom-ws3 {
+#idle_inhibitor, #tray, #custom-logout, #custom-hyprsunset, #window, #custom-yubikey, #custom-ws3, #layout {
border: 1px solid #0abdc6;
}
#custom-logout {
@@ -166,7 +163,7 @@ tooltip label {
padding-bottom: 0;
color: #ff0000;
}
-#idle_inhibitor, #custom-hyprsunset, #custom-ws3, #custom-logout, #wireplumber.icon, #battery.icon, #wireplumber.icon, #network.icon, #mpris.icon, #memory.icon, #memory.icon, #cpu.icon, #window.layout {
+#idle_inhibitor, #custom-hyprsunset, #custom-ws3, #custom-logout, #wireplumber.icon, #battery.icon, #wireplumber.icon, #network.icon, #mpris.icon, #memory.icon, #memory.icon, #cpu.icon, #layout {
font-size: 14px;
padding-top:0;
padding-bottom:0;