nixos-config/modules/home/waybar/style.nix

158 lines
4.2 KiB
Nix
Raw Normal View History

2023-11-12 18:26:30 +01:00
{
custom ? {
font = "JetBrainsMono Nerd Font";
fontsize = "12";
primary_accent = "cba6f7";
secondary_accent = "89b4fa";
2023-11-12 23:27:23 +01:00
tertiary_accent = "cdd6f4";
2023-11-12 18:26:30 +01:00
background = "11111B";
2023-11-12 23:59:17 +01:00
opacity = ".98";
2023-11-12 18:28:32 +01:00
cursor = "Numix-Cursor";
2023-11-12 18:26:30 +01:00
},
...
}:
2023-11-05 17:56:55 +01:00
{
2023-11-05 11:40:44 +01:00
programs.waybar.style = ''
* {
2023-11-12 18:17:37 +01:00
border: none;
border-radius: 0px;
font-family: ${custom.font};
2023-11-12 22:16:40 +01:00
font-weight: bold;
2023-11-12 22:52:27 +01:00
font-size: 14px;
2023-11-05 11:40:44 +01:00
min-height: 0;
2023-11-12 23:52:22 +01:00
opacity: ${custom.opacity};
2023-11-05 11:40:44 +01:00
}
window#waybar {
2023-11-12 21:47:05 +01:00
background: none;
2023-11-05 11:40:44 +01:00
}
#workspaces {
2023-11-12 18:17:37 +01:00
background: #${custom.palette.tertiary_background_hex};
margin: 5px 5px;
padding: 8px 5px;
2023-11-12 23:04:40 +01:00
border-radius: 15px;
2023-11-12 18:17:37 +01:00
color: #${custom.primary_accent}
2023-11-05 11:40:44 +01:00
}
#workspaces button {
2023-11-12 18:17:37 +01:00
padding: 0px 5px;
margin: 0px 3px;
2023-11-13 00:00:54 +01:00
border-radius: 10px 24px 10px 24px;
2023-11-12 23:04:40 +01:00
color: #${custom.background};
2023-11-12 23:15:40 +01:00
background: #${custom.secondary_accent};
2023-11-12 23:09:16 +01:00
transition: all 0.2s ease-in-out;
2023-11-05 11:40:44 +01:00
}
#workspaces button.active {
2023-11-12 23:15:40 +01:00
background-color: #${custom.primary_accent};
2023-11-12 18:17:37 +01:00
color: #${custom.background};
2023-11-12 23:04:40 +01:00
border-radius: 15px;
2023-11-12 23:09:16 +01:00
min-width: 35px;
2023-11-12 23:07:40 +01:00
background-size: 200% 200%;
2023-11-12 23:09:16 +01:00
transition: all 0.2s ease-in-out;
2023-11-05 11:40:44 +01:00
}
2023-11-12 18:17:37 +01:00
#workspaces button:hover {
background-color: #${custom.tertiary_accent};
color: #${custom.background};
2023-11-12 23:04:40 +01:00
border-radius: 15px;
2023-11-12 23:09:16 +01:00
min-width: 35px;
2023-11-12 23:07:40 +01:00
background-size: 200% 200%;
2023-11-05 11:40:44 +01:00
}
2023-11-12 23:51:45 +01:00
#tray, #pulseaudio, #network, #cpu, #memory,
2023-11-12 18:17:37 +01:00
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.foward{
background: #${custom.palette.tertiary_background_hex};
font-weight: bold;
margin: 5px 0px;
2023-11-05 11:40:44 +01:00
}
2023-11-12 23:44:54 +01:00
#cpu {
color: #${custom.tertiary_accent};
border-radius: 10px 0px 0px 24px;
padding-left: 15px;
2023-11-12 23:51:45 +01:00
padding-right: 9px;
2023-11-12 23:44:54 +01:00
margin-left: 7px;
}
#memory {
color: #${custom.tertiary_accent};
border-radius: 0px 24px 10px 0px;
2023-11-12 23:51:45 +01:00
padding-left: 9px;
2023-11-12 23:44:54 +01:00
padding-right: 15px;
}
2023-11-12 22:31:45 +01:00
#tray {
2023-11-12 18:17:37 +01:00
color: #${custom.tertiary_accent};
border-radius: 10px 24px 10px 24px;
2023-11-12 22:33:24 +01:00
padding: 0 20px;
2023-11-12 22:31:45 +01:00
margin-left: 7px;
}
#pulseaudio {
color: #${custom.tertiary_accent};
border-radius: 10px 0px 0px 24px;
2023-11-12 22:49:00 +01:00
padding-left: 15px;
2023-11-12 23:51:45 +01:00
padding-right: 9px;
2023-11-12 22:50:29 +01:00
margin-left: 7px;
2023-11-12 22:31:45 +01:00
}
#network {
color: #${custom.tertiary_accent};
2023-11-12 22:41:26 +01:00
border-radius: 0px 24px 10px 0px;
2023-11-12 23:51:45 +01:00
padding-left: 9px;
2023-11-12 22:49:00 +01:00
padding-right: 15px;
2023-11-05 11:40:44 +01:00
}
2023-11-12 22:31:45 +01:00
2023-11-12 18:17:37 +01:00
#clock {
color: #${custom.tertiary_accent};
background: #${custom.palette.tertiary_background_hex};
border-radius: 0px 0px 0px 40px;
padding: 10px 10px 15px 25px;
margin-left: 7px;
font-weight: bold;
2023-11-12 22:52:27 +01:00
font-size: 16px;
2023-11-12 18:17:37 +01:00
}
#custom-launcher {
color: #${custom.secondary_accent};
background: #${custom.palette.tertiary_background_hex};
border-radius: 0px 0px 40px 0px;
margin: 0px;
2023-11-12 23:17:43 +01:00
padding: 0px 30px 0px 10px;
2023-11-12 18:17:37 +01:00
font-size: 28px;
2023-11-05 11:40:44 +01:00
}
2023-11-12 18:17:37 +01:00
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.foward {
background: #${custom.palette.tertiary_background_hex};
font-size: 22px;
}
#custom-playerctl.backward:hover, #custom-playerctl.play:hover, #custom-playerctl.foward:hover{
color: #${custom.tertiary_accent};
}
#custom-playerctl.backward {
color: #${custom.primary_accent};
border-radius: 24px 0px 0px 10px;
padding-left: 16px;
margin-left: 7px;
}
#custom-playerctl.play {
color: #${custom.secondary_accent};
padding: 0 5px;
}
#custom-playerctl.foward {
color: #${custom.primary_accent};
border-radius: 0px 10px 24px 0px;
padding-right: 12px;
margin-right: 7px
}
#window{
2023-11-12 21:57:48 +01:00
background: #${custom.palette.tertiary_background_hex};
2023-11-12 18:17:37 +01:00
padding-left: 15px;
padding-right: 15px;
border-radius: 16px;
margin-top: 5px;
margin-bottom: 5px;
font-weight: normal;
font-style: normal;
2023-11-05 11:40:44 +01:00
}
'';
}