Skip to content

Commit

Permalink
Quick fixes of waybar layout on laptop
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffser committed Nov 19, 2023
1 parent 8c4f40b commit 0097f04
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .config/waybar/config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"custom/arch",
"clock",
"custom/weather",
"hyprland/workspaces",
"backlight"
"hyprland/workspaces"
],
"modules-center": [
"hyprland/window"
Expand All @@ -45,11 +44,12 @@
"tray",
"hyprland/language",
"battery",
"backlight",
"network",
"bluetooth"
],
"include": [
"~/.config/waybar/default-modules.jsonc"
]
}
]
]
15 changes: 15 additions & 0 deletions .config/waybar/scripts/cava.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/bash

bar="▁▂▃▄▅▆▇█"
dict="s/;//g;"

i=0
while [ $i -lt ${#bar} ]
do
dict="${dict}s/$i/${bar:$i:1}/g;"
i=$((i=i+1))
done

cava -p ~/.config/cava/config-waybar | while read -r line; do
echo $line | sed $dict
done
7 changes: 5 additions & 2 deletions .config/waybar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ tooltip {
}

#backlight {
border-radius: 10px 0px 0px 10px;
color: mix(@BANANA, @theme_fg_color, 0.5);
margin-right: 0px;
border-radius: 0px;
}

#tray {}
Expand Down Expand Up @@ -167,10 +169,11 @@ tooltip {
#battery {
color: mix(@LIME, @theme_fg_color, 0.5);
border-radius: 10px 0px 0px 10px;
margin-right: 0px;
}

#custom-weather {
color: mix(@ORANGE, @theme_fg_color, 0.5);
border-radius: 0px 10px 10px 0px;
margin-left: 0px;
}
}

0 comments on commit 0097f04

Please sign in to comment.