massive update to the waybar config fingers crossed its great

This commit is contained in:
Tyler Kelley 2024-05-17 01:53:48 -05:00
parent e98fcf127b
commit af16a4bb15
2 changed files with 219 additions and 309 deletions

View File

@ -31,13 +31,12 @@ with lib;
];
modules-right = [
"custom/hyprbindings"
"custom/exit"
"idle_inhibitor"
"custom/themeselector"
"custom/notification"
"battery"
"clock"
"tray"
"clock"
];
"hyprland/workspaces" = {
@ -126,7 +125,7 @@ with lib;
};
"custom/startmenu" = {
tooltip = false;
format = " ";
format = "";
# exec = "rofi -show drun";
on-click = "sleep 0.1 && rofi-launcher";
};
@ -189,31 +188,27 @@ with lib;
];
style = concatStrings [
''
* {
{
font-size: 16px;
border-radius: 0px;
border: none;
font-family: JetBrainsMono Nerd Font, Font Awesome, sans-serif;
font-weight: bold;
min-height: 0px;
}
window#waybar {
background-color: #${palette.base00};
border-bottom: 1px solid rgba(26,27,38,0);
border-radius: 0px;
color: #${palette.base0F};
}
#workspaces {
background: #${palette.base01};
margin: 2px;
padding: 0px 1px;
border-radius: 15px;
border: 0px;
font-style: normal;
color: #${palette.base00};
background: #${palette.base01};
margin: 5px 5px;
padding: 8px 5px;
border-radius: 16px;
}
#workspaces button {
padding: 0px 5px;
margin: 4px 3px;
border-radius: 10px;
border: 0px;
margin: 0px 3px;
border-radius: 16px;
color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base0E}, #${palette.base0F}, #${palette.base0D}, #${palette.base09});
background-size: 300% 300%;
@ -231,8 +226,7 @@ with lib;
#workspaces button.active {
padding: 0px 5px;
margin: 4px 3px;
border-radius: 10px;
border: 0px;
border-radius: 16px;
color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base0E}, #${palette.base0F}, #${palette.base0D}, #${palette.base09});
background-size: 300% 300%;
@ -249,7 +243,7 @@ with lib;
min-width: 40px;
}
#workspaces button:hover {
border-radius: 10px;
border-radius: 16px;
color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base0E}, #${palette.base0F}, #${palette.base0D}, #${palette.base09});
background-size: 300% 300%;
@ -286,27 +280,40 @@ with lib;
tooltip {
background: #${palette.base00};
border: 1px solid #${palette.base0E};
border-radius: 10px;
border-radius: 12px;
}
tooltip label {
color: #${palette.base07};
}
#window {
margin: 4px;
padding: 2px 10px;
#window, #pulseaudio, #cpu, #memory {
font-weight: bold;
margin: 5px 0px;
margin-left: 7px;
padding: 0 18px;
color: #${palette.base05};
background: #${palette.base01};
border-radius: 10px;
border-radius: 24px 10px 24px 10px;
}
#memory {
color: #${palette.base0F};
#custom-startmenu {
color: #${palette.base0D};
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
font-size: 28px;
margin: 0px;
padding: 0px 35px 0px 15px;
border-radius: 0px 0px 40px 0px;
}
#custom-hyprbindings, #idle_inhibitor, #custom-themeselector, #battery,
#custom-notification, tray {
font-weight: bold;
background: #${palette.base01};
color: #${palette.base05};
margin: 5px 0px;
margin-left: 7px;
border-radius: 10px 24px 10px 24px;
padding: 0 18px;
}
#clock {
color: #${palette.base01};
color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base0C}, #${palette.base0F}, #${palette.base0B}, #${palette.base08});
background-size: 300% 300%;
${
@ -317,103 +324,11 @@ with lib;
else
''''
}
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
margin: 0px;
padding: 0px 35px 0px 15px;
border-radius: 0px 0px 0px 40px;
}
#cpu {
color: #${palette.base07};
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
}
#disk {
color: #${palette.base03};
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
}
#battery {
color: #${palette.base08};
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
}
#network {
color: #${palette.base09};
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
}
#custom-hyprbindings {
color: #${palette.base0E};
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
}
#tray {
color: #${palette.base05};
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
}
#pulseaudio {
color: #${palette.base0D};
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
}
#custom-notification {
color: #${palette.base0C};
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
}
#custom-themeselector {
color: #${palette.base0D};
background: #${palette.base01};
margin: 4px 0px;
padding: 2px 10px 2px 5px;
border-radius: 0px 10px 10px 0px;
}
#custom-startmenu {
color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base09}, #${palette.base03}, #${palette.base0C}, #${palette.base07});
background-size: 300% 300%;
${
if waybarAnimations == true then
''
animation: gradient_horizontal 15s ease infinite;
''
else
''''
}
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
}
#idle_inhibitor {
color: #${palette.base09};
background: #${palette.base01};
margin: 4px 0px;
padding: 2px 14px;
border-radius: 0px;
}
#custom-exit {
color: #${palette.base0E};
background: #${palette.base01};
border-radius: 10px 0px 0px 10px;
margin: 4px 0px;
padding: 2px 5px 2px 15px;
} ''
];
};
}

View File

@ -142,7 +142,7 @@ in
};
# Scripts
home.packages = with pkgs; [
home.packages = [
(import ../../scripts/emopicker9000.nix { inherit pkgs; })
(import ../../scripts/task-waybar.nix { inherit pkgs; })
(import ../../scripts/squirtle.nix { inherit pkgs; })
@ -168,12 +168,7 @@ in
programs = {
gh.enable = true;
neovim =
let
toLua = str: "lua << EOF\n${str}\nEOF\n";
toLuaFile = file: "lua << EOF\n${builtins.readFile file}\nEOF\n";
in
{
neovim = {
enable = true;
defaultEditor = true;
viAlias = true;