Configure waybar to work with desktop

This commit is contained in:
Kiana Sheibani 2022-09-25 00:43:44 -04:00
parent e0b26ff48b
commit 53068da6b6
3 changed files with 26 additions and 3 deletions

View file

@ -226,7 +226,7 @@ modules-right:
} }
#cpu, #pulseaudio { #cpu {
background-color: @altblend; background-color: @altblend;
margin: 3px 0px 3px 2px; margin: 3px 0px 3px 2px;
padding-right: 5px; padding-right: 5px;
@ -234,6 +234,25 @@ modules-right:
border-radius: 18px 0px 0px 18px; border-radius: 18px 0px 0px 18px;
} }
#pulseaudio {
background-color: @altblend;
${
if builtins.elem "backlight" modules-right then
''
margin: 3px 0px 3px 2px;
padding-right: 5px;
padding-left: 8px;
border-radius: 18px 0px 0px 18px;
''
else
''
margin: 3px 2px;
padding: 0px 8px;
border-radius: 18px;
''
}
}
#backlight, #memory { #backlight, #memory {
background-color: @altblend; background-color: @altblend;
margin: 3px 4px 3px 0px; margin: 3px 4px 3px 0px;
@ -255,7 +274,11 @@ modules-right:
font-size: 12px; font-size: 12px;
} }
#mode {color: @magenta;} #mode {
color: @magenta;
text-shadow: 0px 0px 2px shade(@magenta, 1.05);
}
#cpu {color: @green;} #cpu {color: @green;}
#memory {color: @yellow;} #memory {color: @yellow;}
#temperature {color: @blue;} #temperature {color: @blue;}

View file

@ -3,6 +3,6 @@
# manager, so it's fine. # manager, so it's fine.
import ../../common/home-manager/wayland/waybar.nix import ../../common/home-manager/wayland/waybar.nix
[ "sway/workspaces" "sway/mode" ] [ "sway/workspaces" "sway/mode" "custom/sep" "cpu" "memory" "temperature" ]
[ "sway/window" ] [ "sway/window" ]
[ "pulseaudio" "network" "clock" "idle_inhibitor" ] [ "pulseaudio" "network" "clock" "idle_inhibitor" ]