Rounded widgets with transparent bar

This commit is contained in:
Sravan Balaji
2024-10-18 22:37:29 -04:00
parent 07c8cc46d3
commit e95d0bf9a9
4 changed files with 108 additions and 24 deletions

View File

@@ -576,6 +576,7 @@ static const Button buttons[] = {
killall waybar killall waybar
/usr/bin/waybar \ /usr/bin/waybar \
-l debug \
-c $HOME/.config/dwl/waybar/config.jsonc \ -c $HOME/.config/dwl/waybar/config.jsonc \
-s $HOME/.config/dwl/waybar/style.css & -s $HOME/.config/dwl/waybar/style.css &
#+END_SRC #+END_SRC
@@ -604,7 +605,9 @@ killall waybar
"reload_style_on_change": true, "reload_style_on_change": true,
"modules-left": [ "modules-left": [
"group/power-menu", "group/power-menu",
"group/dwl", "dwl/tags",
"dwl/window#title",
"dwl/window#layout",
], ],
"modules-center": [ "modules-center": [
"tray", "tray",
@@ -637,14 +640,6 @@ killall waybar
"click-to-reveal": false, "click-to-reveal": false,
}, },
}, },
"group/dwl": {
"orientation": "inherit",
"modules": [
"dwl/tags",
"dwl/window#title",
"dwl/window#layout",
],
},
"group/media-playing": { "group/media-playing": {
"orientation": "inherit", "orientation": "inherit",
"modules": [ "modules": [
@@ -674,15 +669,32 @@ killall waybar
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
window#waybar { window#waybar {
background: transparent;
}
#window {
padding: 0px 0px;
color: transparent;
background: transparent;
}
widget {
background: #282a36; background: #282a36;
border-radius: 25px;
}
label.module {
padding: 0px 10px;
}
button {
border-radius: 0px;
padding: 0px 0px;
} }
.module,button { .module,button {
border-radius: 0px;
padding: 0px 4px;
font-size: 15px; font-size: 15px;
font-family: Ubuntu Nerd Font; font-family: Ubuntu Nerd Font;
margin: 0px 0px;
} }
#+END_SRC #+END_SRC
@@ -810,21 +822,28 @@ window#waybar {
**** Styling **** Styling
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
box#dunst {
padding: 0px 10px;
}
#custom-dunst-status { #custom-dunst-status {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#custom-dunst-clear { #custom-dunst-clear {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#custom-dunst-history-view { #custom-dunst-history-view {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#custom-dunst-history-clear { #custom-dunst-history-clear {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#+END_SRC #+END_SRC
@@ -870,9 +889,13 @@ fi
**** Styling **** Styling
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
#tags {
padding: 0px 10px;
}
#tags button { #tags button {
background: transparent; background: transparent;
color: #44475a; color: #44475a;
padding: 0px 5px;
} }
#tags button.occupied { #tags button.occupied {
background: transparent; background: transparent;
@@ -889,10 +912,12 @@ fi
#window.title { #window.title {
background: transparent; background: transparent;
color: #f8f8f2; color: #f8f8f2;
padding: 0px 10px;
} }
#window.layout { #window.layout {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 10px;
} }
#+END_SRC #+END_SRC
@@ -1006,21 +1031,28 @@ fi
**** Styling **** Styling
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
box#media-playing {
padding: 0px 10px;
}
#custom-media-playing-source { #custom-media-playing-source {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
#custom-media-playing-prev { #custom-media-playing-prev {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
#custom-media-playing-play-pause { #custom-media-playing-play-pause {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
#custom-media-playing-next { #custom-media-playing-next {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
#+END_SRC #+END_SRC
@@ -1163,29 +1195,38 @@ echo '{"text":"'$mediaSourceIcon'","tooltip":"󰝚\t'$title'\r󰠃\t'$artist'\r
**** Styling **** Styling
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
box#power-menu {
padding: 0px 10px;
}
#custom-power-menu-launcher { #custom-power-menu-launcher {
background: transparent; background: transparent;
color: #8be9fd; color: #8be9fd;
padding: 0px 5px;
} }
#custom-power-menu-shutdown { #custom-power-menu-shutdown {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
#custom-power-menu-reboot { #custom-power-menu-reboot {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#custom-power-menu-sleep { #custom-power-menu-sleep {
background: transparent; background: transparent;
color: #f1fa8c; color: #f1fa8c;
padding: 0px 5px;
} }
#custom-power-menu-lock { #custom-power-menu-lock {
background: transparent; background: transparent;
color: #ff79c6; color: #ff79c6;
padding: 0px 5px;
} }
#custom-power-menu-logout { #custom-power-menu-logout {
background: transparent; background: transparent;
color: #ffb86c; color: #ffb86c;
padding: 0px 5px;
} }
#+END_SRC #+END_SRC
@@ -1278,6 +1319,7 @@ echo '{"text":"󰢮 '$graphics'","tooltip":"󰢮\t'$graphics'\r󰐥\t'$graphicsP
#+BEGIN_SRC css :tangle waybar/style.css #+BEGIN_SRC css :tangle waybar/style.css
#tray { #tray {
background: transparent; background: transparent;
padding: 0px 10px;
} }
#+END_SRC #+END_SRC

View File

@@ -13,7 +13,9 @@
"reload_style_on_change": true, "reload_style_on_change": true,
"modules-left": [ "modules-left": [
"group/power-menu", "group/power-menu",
"group/dwl", "dwl/tags",
"dwl/window#title",
"dwl/window#layout",
], ],
"modules-center": [ "modules-center": [
"tray", "tray",
@@ -46,14 +48,6 @@
"click-to-reveal": false, "click-to-reveal": false,
}, },
}, },
"group/dwl": {
"orientation": "inherit",
"modules": [
"dwl/tags",
"dwl/window#title",
"dwl/window#layout",
],
},
"group/media-playing": { "group/media-playing": {
"orientation": "inherit", "orientation": "inherit",
"modules": [ "modules": [

View File

@@ -2,5 +2,6 @@
killall waybar killall waybar
/usr/bin/waybar \ /usr/bin/waybar \
-l debug \
-c $HOME/.config/dwl/waybar/config.jsonc \ -c $HOME/.config/dwl/waybar/config.jsonc \
-s $HOME/.config/dwl/waybar/style.css & -s $HOME/.config/dwl/waybar/style.css &

View File

@@ -1,13 +1,30 @@
window#waybar { window#waybar {
background: transparent;
}
#window {
padding: 0px 0px;
color: transparent;
background: transparent;
}
widget {
background: #282a36; background: #282a36;
border-radius: 25px;
}
label.module {
padding: 0px 10px;
}
button {
border-radius: 0px;
padding: 0px 0px;
} }
.module,button { .module,button {
border-radius: 0px;
padding: 0px 4px;
font-size: 15px; font-size: 15px;
font-family: Ubuntu Nerd Font; font-family: Ubuntu Nerd Font;
margin: 0px 0px;
} }
#battery { #battery {
@@ -25,26 +42,37 @@ window#waybar {
color: #bd93f9; color: #bd93f9;
} }
box#dunst {
padding: 0px 10px;
}
#custom-dunst-status { #custom-dunst-status {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#custom-dunst-clear { #custom-dunst-clear {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#custom-dunst-history-view { #custom-dunst-history-view {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#custom-dunst-history-clear { #custom-dunst-history-clear {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#tags {
padding: 0px 10px;
}
#tags button { #tags button {
background: transparent; background: transparent;
color: #44475a; color: #44475a;
padding: 0px 5px;
} }
#tags button.occupied { #tags button.occupied {
background: transparent; background: transparent;
@@ -61,10 +89,12 @@ window#waybar {
#window.title { #window.title {
background: transparent; background: transparent;
color: #f8f8f2; color: #f8f8f2;
padding: 0px 10px;
} }
#window.layout { #window.layout {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 10px;
} }
#disk { #disk {
@@ -86,46 +116,62 @@ window#waybar {
color: #8be9fd; color: #8be9fd;
} }
box#media-playing {
padding: 0px 10px;
}
#custom-media-playing-source { #custom-media-playing-source {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
#custom-media-playing-prev { #custom-media-playing-prev {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
#custom-media-playing-play-pause { #custom-media-playing-play-pause {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
#custom-media-playing-next { #custom-media-playing-next {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
box#power-menu {
padding: 0px 10px;
}
#custom-power-menu-launcher { #custom-power-menu-launcher {
background: transparent; background: transparent;
color: #8be9fd; color: #8be9fd;
padding: 0px 5px;
} }
#custom-power-menu-shutdown { #custom-power-menu-shutdown {
background: transparent; background: transparent;
color: #ff5555; color: #ff5555;
padding: 0px 5px;
} }
#custom-power-menu-reboot { #custom-power-menu-reboot {
background: transparent; background: transparent;
color: #50fa7b; color: #50fa7b;
padding: 0px 5px;
} }
#custom-power-menu-sleep { #custom-power-menu-sleep {
background: transparent; background: transparent;
color: #f1fa8c; color: #f1fa8c;
padding: 0px 5px;
} }
#custom-power-menu-lock { #custom-power-menu-lock {
background: transparent; background: transparent;
color: #ff79c6; color: #ff79c6;
padding: 0px 5px;
} }
#custom-power-menu-logout { #custom-power-menu-logout {
background: transparent; background: transparent;
color: #ffb86c; color: #ffb86c;
padding: 0px 5px;
} }
#pulseaudio { #pulseaudio {
@@ -140,4 +186,5 @@ window#waybar {
#tray { #tray {
background: transparent; background: transparent;
padding: 0px 10px;
} }