From 0ec71118ec8435be9c57e6765738f91135b1e5c1 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Thu, 3 Oct 2024 22:19:09 -0400 Subject: [PATCH] Add dwl layout and window modules --- README.org | 44 +++++++++++++++++++++++++++++++++++++------- waybar/config.jsonc | 26 ++++++++++++++++++++++++-- waybar/style.css | 18 +++++++++++++----- 3 files changed, 74 insertions(+), 14 deletions(-) diff --git a/README.org b/README.org index b7c5ad7..59cec36 100644 --- a/README.org +++ b/README.org @@ -530,13 +530,13 @@ killall waybar "reload_style_on_change": true, "modules-left": [ "custom/power-menu", - "dwl/tags", - "group/media-playing", + "group/dwl", ], "modules-center": [ "tray", ], "modules-right": [ + "group/media-playing", "pulseaudio", "custom/system76-power", "cpu", @@ -546,6 +546,14 @@ killall waybar "clock", "group/dunst", ], + "group/dwl": { + "orientation": "inherit", + "modules": [ + "dwl/tags", + "dwl/window#title", + "dwl/window#layout", + ], + }, "group/media-playing": { "orientation": "inherit", "modules": [ @@ -752,6 +760,20 @@ fi "tag-labels": [ "󰍩 ₁", "󰠮 ₂", " ₃", "󰿎 ₄", "󰖟 ₅", " ₆", "󰊢 ₇", "󰊖 ₈", " ₉" ], "disable-click": false }, + "dwl/window#title": { + "format": "{title}", + "all-outputs": false, + "icon": true, + "icon-size": 21, + "tooltip": true, + "max-length": 30, + }, + "dwl/window#layout": { + "format": "{layout}", + "tooltip": false, + "all-outputs": false, + "icon": false, + }, #+END_SRC **** Styling @@ -773,6 +795,14 @@ fi background: #ff5555; color: #282a36; } +#window.title { + background: #8be9fd; + color: #282a36; +} +#window.layout { + background: #f1fa8c; + color: #282a36; +} #+END_SRC *** Disk @@ -855,19 +885,19 @@ fi #+BEGIN_SRC css :tangle waybar/style.css #custom-media-playing-change { - background: #50fa7b; + background: #ff79c6; color: #282a36; } #custom-media-playing-prev { - background: #50fa7b; + background: #ff79c6; color: #282a36; } #custom-media-playing-play-pause { - background: #50fa7b; + background: #ff79c6; color: #282a36; } #custom-media-playing-next { - background: #50fa7b; + background: #ff79c6; color: #282a36; } #+END_SRC @@ -1017,7 +1047,7 @@ echo '{"text":"'$mediaSourceIcon'","tooltip":"󰝚\t'$title'\r󰠃\t'$artist'\r #+BEGIN_SRC css :tangle waybar/style.css #pulseaudio { - background: #ff5555; + background: #bd93f9; color: #282a36; } #+END_SRC diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 408f791..25e501f 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -14,13 +14,13 @@ "reload_style_on_change": true, "modules-left": [ "custom/power-menu", - "dwl/tags", - "group/media-playing", + "group/dwl", ], "modules-center": [ "tray", ], "modules-right": [ + "group/media-playing", "pulseaudio", "custom/system76-power", "cpu", @@ -30,6 +30,14 @@ "clock", "group/dunst", ], + "group/dwl": { + "orientation": "inherit", + "modules": [ + "dwl/tags", + "dwl/window#title", + "dwl/window#layout", + ], + }, "group/media-playing": { "orientation": "inherit", "modules": [ @@ -127,6 +135,20 @@ "tag-labels": [ "󰍩 ₁", "󰠮 ₂", " ₃", "󰿎 ₄", "󰖟 ₅", " ₆", "󰊢 ₇", "󰊖 ₈", " ₉" ], "disable-click": false }, + "dwl/window#title": { + "format": "{title}", + "all-outputs": false, + "icon": true, + "icon-size": 21, + "tooltip": true, + "max-length": 30, + }, + "dwl/window#layout": { + "format": "{layout}", + "tooltip": false, + "all-outputs": false, + "icon": false, + }, "disk": { "interval": 60, diff --git a/waybar/style.css b/waybar/style.css index 2cebd5a..3238b3e 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -58,6 +58,14 @@ window#waybar { background: #ff5555; color: #282a36; } +#window.title { + background: #8be9fd; + color: #282a36; +} +#window.layout { + background: #f1fa8c; + color: #282a36; +} #disk { background: #f1fa8c; @@ -70,19 +78,19 @@ window#waybar { } #custom-media-playing-change { - background: #50fa7b; + background: #ff79c6; color: #282a36; } #custom-media-playing-prev { - background: #50fa7b; + background: #ff79c6; color: #282a36; } #custom-media-playing-play-pause { - background: #50fa7b; + background: #ff79c6; color: #282a36; } #custom-media-playing-next { - background: #50fa7b; + background: #ff79c6; color: #282a36; } @@ -92,7 +100,7 @@ window#waybar { } #pulseaudio { - background: #ff5555; + background: #bd93f9; color: #282a36; }