waybar for mee<3
This commit is contained in:
+38
-12
@@ -11,30 +11,51 @@
|
|||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
|
|
||||||
settings.mainBar = {
|
settings.mainBar = {
|
||||||
modules-left = [
|
modules-center = [
|
||||||
|
"group/left"
|
||||||
|
"group/center"
|
||||||
|
"group/right"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"group/left" = {
|
||||||
|
orientation = "inherit";
|
||||||
|
modules = [
|
||||||
"hyprland/workspaces"
|
"hyprland/workspaces"
|
||||||
|
"custom/sep-left"
|
||||||
"hyprland/language"
|
"hyprland/language"
|
||||||
"keyboard-state"
|
"keyboard-state"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
"group/center" = {
|
||||||
|
orientation = "inherit";
|
||||||
|
modules = [
|
||||||
"cava"
|
"cava"
|
||||||
];
|
|
||||||
|
|
||||||
modules-center = [
|
|
||||||
"mpris"
|
"mpris"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
modules-right = [
|
|
||||||
|
"group/right" = {
|
||||||
|
orientation = "inherit";
|
||||||
|
modules = [
|
||||||
"tray"
|
"tray"
|
||||||
|
"custom/sep-left"
|
||||||
"group/system"
|
"group/system"
|
||||||
|
"custom/sep-left"
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
|
"custom/sep-left"
|
||||||
"battery"
|
"battery"
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
cava = {
|
cava = {
|
||||||
bars = 14;
|
bars = 9;
|
||||||
sleep_timer = 5;
|
|
||||||
hide_on_silence = true;
|
|
||||||
bar_delimiter = 0;
|
bar_delimiter = 0;
|
||||||
|
stereo = false;
|
||||||
input_delay = 0;
|
input_delay = 0;
|
||||||
format-icons = [" " "▁" "▂" "▃" "▄" "▅" "▆" "▇" "█"];
|
format-icons = [" " "▁" "▂" "▃" "▄" "▅" "▆" "▇" "█"];
|
||||||
};
|
};
|
||||||
@@ -62,7 +83,7 @@
|
|||||||
|
|
||||||
mpris = {
|
mpris = {
|
||||||
format = "{dynamic}";
|
format = "{dynamic}";
|
||||||
dynamic-len = if osConfig.host.laptop then 32 else 64;
|
dynamic-len = if osConfig.host.laptop then 16 else 32;
|
||||||
dynamic-order = [ "title" "artist" "album" ];
|
dynamic-order = [ "title" "artist" "album" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -72,13 +93,18 @@
|
|||||||
warning = 30;
|
warning = 30;
|
||||||
critical = 15;
|
critical = 15;
|
||||||
};
|
};
|
||||||
format = "{icon} {capacity}%";
|
format = "{icon} {capacity}% | ";
|
||||||
format-icons = {
|
format-icons = {
|
||||||
default = ["" "" "" "" "" "" "" "" "" "" ""];
|
default = ["" "" "" "" "" "" "" "" "" "" ""];
|
||||||
charging = ["" "" "" "" "" "" "" "" "" "" ""];
|
charging = ["" "" "" "" "" "" "" "" "" "" ""];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"custom/sep-left" = {
|
||||||
|
format = " | ";
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
|
||||||
"keyboard-state" = {
|
"keyboard-state" = {
|
||||||
capslock = true;
|
capslock = true;
|
||||||
format = "{icon}";
|
format = "{icon}";
|
||||||
|
|||||||
@@ -5,30 +5,45 @@
|
|||||||
accent = colors.base0E;
|
accent = colors.base0E;
|
||||||
scssFile = pkgs.writeText "waybar.scss" /*scss*/ ''
|
scssFile = pkgs.writeText "waybar.scss" /*scss*/ ''
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background: ${colors.base00}80;
|
background: transparent;
|
||||||
color: ${colors.base05};
|
color: ${colors.base05};
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: .85em;
|
font-size: .85em;
|
||||||
|
& > * {padding: 0 0 6px 0;}
|
||||||
|
}
|
||||||
|
.modules-center{
|
||||||
|
background: ${colors.base01}CC;
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 10px;
|
||||||
|
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpris,
|
#left,
|
||||||
#pulseaudio,
|
#right,
|
||||||
#network,
|
#center {
|
||||||
#battery,
|
background: ${colors.base02};
|
||||||
#cpu,
|
padding: 0 2px;
|
||||||
#temperature,
|
margin: 0 8px;
|
||||||
#custom-mem,
|
border-radius: 8px;
|
||||||
#clock {
|
|
||||||
background: ${colors.base01};
|
|
||||||
padding: 8px;
|
|
||||||
}
|
}
|
||||||
|
#left{
|
||||||
|
margin-left: 0;}
|
||||||
|
|
||||||
|
#right{
|
||||||
|
margin-right: 0;}
|
||||||
|
|
||||||
|
#clock{
|
||||||
|
padding-right: 10px;}
|
||||||
|
|
||||||
|
#cava {
|
||||||
|
padding: 0 10px;}
|
||||||
|
|
||||||
#language { padding: 8px; }
|
#language { padding: 8px; }
|
||||||
|
|
||||||
#workspaces,
|
/*#workspaces,
|
||||||
#tray {
|
#tray {
|
||||||
background: ${colors.base01};
|
background: ${colors.base01};
|
||||||
}
|
}*/
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
color: ${colors.base05};
|
color: ${colors.base05};
|
||||||
@@ -37,52 +52,51 @@
|
|||||||
border: 1pt solid transparent;
|
border: 1pt solid transparent;
|
||||||
min-width: 20px;
|
min-width: 20px;
|
||||||
|
|
||||||
&:hover { background: ${colors.base02}; }
|
&:hover { background: ${colors.base03}; }
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background: ${accent};
|
background: ${accent};
|
||||||
color: ${colors.base00};
|
color: ${colors.base00};
|
||||||
min-width: 30px;
|
min-width: 25px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: ${accent};
|
border-color: ${accent};
|
||||||
background: ${colors.base02};
|
background: ${colors.base03};
|
||||||
color: ${accent};
|
color: ${accent};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpris {
|
#mpris {
|
||||||
border-radius: 0 0 20px 20px;
|
border-radius: 8px;
|
||||||
padding: 10px;
|
padding: 4px;
|
||||||
&:hover { background: ${colors.base02}; }
|
&:hover { background: ${colors.base03}; }
|
||||||
&.playing {
|
&.playing {
|
||||||
border: 3px solid ${accent};
|
border: 2px solid ${accent};
|
||||||
border-top-color: transparent;
|
padding: 2px;
|
||||||
padding: calc(10px - 3px);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
widget {
|
widget {
|
||||||
border: 1pt solid transparent;
|
border: 1pt solid transparent;
|
||||||
&:hover { background: ${colors.base02}; }
|
&:hover { background: ${colors.base03}; }
|
||||||
& > image { padding: 8px; }
|
& > image { padding: 8px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
& > .passive { border-color: ${colors.base02}; }
|
& > .passive { border-color: ${colors.base03}; }
|
||||||
& > .needs-attention { border-color: ${colors.base09}; }
|
& > .needs-attention { border-color: ${colors.base09}; }
|
||||||
}
|
}
|
||||||
|
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
&:hover { background: ${colors.base02}; }
|
&:hover { background: ${colors.base03}; }
|
||||||
&.muted {
|
&.muted {
|
||||||
background: ${colors.base08};
|
background: ${colors.base08};
|
||||||
color: ${colors.base00};
|
color: ${colors.base01};
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: ${colors.base08};
|
color: ${colors.base08};
|
||||||
background: ${colors.base02};
|
background: ${colors.base03};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user