change waybar design
This commit is contained in:
parent
f4cacf8d44
commit
f477bf3511
|
@ -2,13 +2,12 @@
|
||||||
let
|
let
|
||||||
custom = {
|
custom = {
|
||||||
font = "JetBrainsMono Nerd Font";
|
font = "JetBrainsMono Nerd Font";
|
||||||
fontsize = "12";
|
fontsize = "15";
|
||||||
primary_accent = "cba6f7";
|
primary_accent = "cba6f7";
|
||||||
secondary_accent= "89b4fa";
|
secondary_accent= "89b4fa";
|
||||||
tertiary_accent = "f5f5f5";
|
tertiary_accent = "f5f5f5";
|
||||||
background = "11111B";
|
background = "11111B";
|
||||||
opacity = "0.98";
|
opacity = "0.98";
|
||||||
cursor = "Numix-Cursor";
|
|
||||||
palette = rec {
|
palette = rec {
|
||||||
primary_accent_hex = "cba6f7";
|
primary_accent_hex = "cba6f7";
|
||||||
secondary_accent_hex = "89b4fa";
|
secondary_accent_hex = "89b4fa";
|
||||||
|
|
|
@ -1,30 +1,15 @@
|
||||||
{
|
{ ... }:
|
||||||
custom ? {
|
|
||||||
font = "JetBrainsMono Nerd Font";
|
|
||||||
fontsize = "12";
|
|
||||||
primary_accent = "cba6f7";
|
|
||||||
secondary_accent = "89b4fa";
|
|
||||||
tertiary_accent = "f5f5f5";
|
|
||||||
background = "11111B";
|
|
||||||
opacity = ".85";
|
|
||||||
cursor = "Numix-Cursor";
|
|
||||||
},
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
{
|
||||||
programs.waybar.settings.mainBar = {
|
programs.waybar.settings.mainBar = {
|
||||||
position= "top";
|
position= "bottom";
|
||||||
layer= "top";
|
layer= "bottom";
|
||||||
# height= 15;
|
height= 5;
|
||||||
margin-top= 0;
|
margin-top= 0;
|
||||||
margin-bottom= 0;
|
margin-bottom= 0;
|
||||||
margin-left= 0;
|
margin-left= 0;
|
||||||
margin-right= 0;
|
margin-right= 0;
|
||||||
modules-left= [
|
modules-left= [
|
||||||
"custom/launcher"
|
"custom/launcher"
|
||||||
"custom/playerctl#backward"
|
|
||||||
"custom/playerctl#play"
|
|
||||||
"custom/playerctl#forward"
|
|
||||||
];
|
];
|
||||||
modules-center= [
|
modules-center= [
|
||||||
"hyprland/workspaces"
|
"hyprland/workspaces"
|
||||||
|
@ -59,31 +44,6 @@
|
||||||
sort-by-number= true;
|
sort-by-number= true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"custom/playerctl#backward"= {
|
|
||||||
format= " ";
|
|
||||||
on-click= "playerctl previous";
|
|
||||||
on-scroll-up = "playerctl volume .05+";
|
|
||||||
on-scroll-down = "playerctl volume .05-";
|
|
||||||
};
|
|
||||||
"custom/playerctl#play"= {
|
|
||||||
format= "{icon}";
|
|
||||||
return-type= "json";
|
|
||||||
exec= "playerctl -a metadata --format '{\"text\": \"{{artist}} - {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F";
|
|
||||||
on-click= "playerctl play-pause";
|
|
||||||
on-scroll-up = "playerctl volume .05+";
|
|
||||||
on-scroll-down = "playerctl volume .05-";
|
|
||||||
format-icons= {
|
|
||||||
Playing = "<span> </span>";
|
|
||||||
Paused = "<span> </span>";
|
|
||||||
Stopped = "<span> </span>";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"custom/playerctl#forward"= {
|
|
||||||
format= " ";
|
|
||||||
on-click= "playerctl next";
|
|
||||||
on-scroll-up = "playerctl volume .05+";
|
|
||||||
on-scroll-down = "playerctl volume .05-";
|
|
||||||
};
|
|
||||||
memory= {
|
memory= {
|
||||||
format= " {}%";
|
format= " {}%";
|
||||||
format-alt= " {used} GiB"; #
|
format-alt= " {used} GiB"; #
|
||||||
|
|
|
@ -1,37 +1,25 @@
|
||||||
{
|
{ custom, ... }:
|
||||||
custom ? {
|
|
||||||
font = "JetBrainsMono Nerd Font";
|
|
||||||
fontsize = "12";
|
|
||||||
primary_accent = "cba6f7";
|
|
||||||
secondary_accent = "89b4fa";
|
|
||||||
tertiary_accent = "cdd6f4";
|
|
||||||
background = "11111B";
|
|
||||||
opacity = ".98";
|
|
||||||
cursor = "Numix-Cursor";
|
|
||||||
},
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
{
|
||||||
programs.waybar.style = ''
|
programs.waybar.style = ''
|
||||||
|
* { all: initial; }
|
||||||
|
|
||||||
* {
|
* {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
min-height: 0px;
|
||||||
font-family: ${custom.font};
|
font-family: ${custom.font};
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
min-height: 0;
|
|
||||||
opacity: ${custom.opacity};
|
opacity: ${custom.opacity};
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background: none;
|
background: rgba(24, 24, 37, 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
background: #${custom.palette.tertiary_background_hex};
|
|
||||||
margin: 5px 5px;
|
|
||||||
padding: 8px 12px;
|
|
||||||
border-radius: 12px 12px 24px 24px;
|
|
||||||
color: #${custom.primary_accent}
|
color: #${custom.primary_accent}
|
||||||
}
|
}
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
|
@ -60,104 +48,51 @@
|
||||||
background-size: 200% 200%;
|
background-size: 200% 200%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray, #pulseaudio, #network, #cpu, #memory, #disk,
|
#tray, #pulseaudio, #network, #cpu, #memory, #disk, #clock, custom-launcher {
|
||||||
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.forward{
|
color: #${custom.tertiary_accent};
|
||||||
background: #${custom.palette.tertiary_background_hex};
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 5px 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#cpu {
|
#cpu {
|
||||||
color: #${custom.tertiary_accent};
|
|
||||||
border-radius: 10px 0px 0px 24px;
|
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
padding-right: 9px;
|
padding-right: 9px;
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
}
|
}
|
||||||
#memory {
|
#memory {
|
||||||
color: #${custom.tertiary_accent};
|
|
||||||
border-radius: 0px 0 0px 0px;
|
|
||||||
padding-left: 9px;
|
padding-left: 9px;
|
||||||
padding-right: 9px;
|
padding-right: 9px;
|
||||||
}
|
}
|
||||||
#disk {
|
#disk {
|
||||||
color: #${custom.tertiary_accent};
|
|
||||||
border-radius: 0px 24px 10px 0px;
|
|
||||||
padding-left: 9px;
|
padding-left: 9px;
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
color: #${custom.tertiary_accent};
|
|
||||||
border-radius: 10px 24px 10px 24px;
|
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
color: #${custom.tertiary_accent};
|
|
||||||
border-radius: 10px 0px 0px 24px;
|
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
padding-right: 9px;
|
padding-right: 9px;
|
||||||
margin-left: 7px;
|
margin-left: 7px;
|
||||||
}
|
}
|
||||||
#network {
|
#network {
|
||||||
color: #${custom.tertiary_accent};
|
|
||||||
border-radius: 0px 24px 10px 0px;
|
|
||||||
padding-left: 9px;
|
padding-left: 9px;
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
color: #${custom.tertiary_accent};
|
padding-left: 9px;
|
||||||
background: #${custom.palette.tertiary_background_hex};
|
padding-right: 15px;
|
||||||
border-radius: 0px 0px 0px 40px;
|
|
||||||
padding: 10px 10px 15px 25px;
|
|
||||||
margin-left: 7px;
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
}
|
||||||
#custom-launcher {
|
#custom-launcher {
|
||||||
color: #${custom.secondary_accent};
|
margin-left: 10px;
|
||||||
background: #${custom.palette.tertiary_background_hex};
|
|
||||||
border-radius: 0px 0px 40px 0px;
|
|
||||||
margin: 0px;
|
|
||||||
padding: 0px 30px 0px 10px;
|
|
||||||
font-size: 28px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-playerctl.backward, #custom-playerctl.play, #custom-playerctl.forward {
|
|
||||||
background: #${custom.palette.tertiary_background_hex};
|
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
}
|
}
|
||||||
#custom-playerctl.backward:hover, #custom-playerctl.play:hover, #custom-playerctl.forward: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.forward {
|
|
||||||
color: #${custom.primary_accent};
|
|
||||||
border-radius: 0px 10px 24px 0px;
|
|
||||||
padding-right: 12px;
|
|
||||||
margin-right: 7px
|
|
||||||
}
|
|
||||||
#window{
|
#window{
|
||||||
background: #${custom.palette.tertiary_background_hex};
|
background: #${custom.palette.tertiary_background_hex};
|
||||||
padding-left: 15px;
|
|
||||||
padding-right: 15px;
|
|
||||||
border-radius: 16px;
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue