Configure waybar to work with desktop
This commit is contained in:
parent
e0b26ff48b
commit
53068da6b6
|
@ -226,7 +226,7 @@ modules-right:
|
|||
}
|
||||
|
||||
|
||||
#cpu, #pulseaudio {
|
||||
#cpu {
|
||||
background-color: @altblend;
|
||||
margin: 3px 0px 3px 2px;
|
||||
padding-right: 5px;
|
||||
|
@ -234,6 +234,25 @@ modules-right:
|
|||
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 {
|
||||
background-color: @altblend;
|
||||
margin: 3px 4px 3px 0px;
|
||||
|
@ -255,7 +274,11 @@ modules-right:
|
|||
font-size: 12px;
|
||||
}
|
||||
|
||||
#mode {color: @magenta;}
|
||||
#mode {
|
||||
color: @magenta;
|
||||
text-shadow: 0px 0px 2px shade(@magenta, 1.05);
|
||||
}
|
||||
|
||||
#cpu {color: @green;}
|
||||
#memory {color: @yellow;}
|
||||
#temperature {color: @blue;}
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
# manager, so it's fine.
|
||||
|
||||
import ../../common/home-manager/wayland/waybar.nix
|
||||
[ "sway/workspaces" "sway/mode" ]
|
||||
[ "sway/workspaces" "sway/mode" "custom/sep" "cpu" "memory" "temperature" ]
|
||||
[ "sway/window" ]
|
||||
[ "pulseaudio" "network" "clock" "idle_inhibitor" ]
|
||||
|
|
Loading…
Reference in a new issue