Updated Waybar Themes & Add Health Checks To Wallsetter

This commit is contained in:
Tyler Kelley 2024-02-29 12:19:53 -06:00
parent 7599a82b17
commit abf98d16a7
8 changed files with 179 additions and 117 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -24,6 +24,8 @@ in with lib; {
windowrule = float, ^(steam)$ windowrule = float, ^(steam)$
windowrule = size 1080 900, ^(steam)$ windowrule = size 1080 900, ^(steam)$
windowrule = center, ^(steam)$ windowrule = center, ^(steam)$
windowrule = fullscreen, ^(wlogout)$
windowrule = animation fade,^(wlogout)$
general { general {
gaps_in = 6 gaps_in = 6
gaps_out = 8 gaps_out = 8

View File

@ -14,7 +14,7 @@ in lib.mkIf (wezterm == false && alacritty == false
settings = { settings = {
scrollback_lines = 2000; scrollback_lines = 2000;
wheel_scroll_min_lines = 1; wheel_scroll_min_lines = 1;
window_padding_width = 0; window_padding_width = 4;
confirm_os_window_close = 0; confirm_os_window_close = 0;
background_opacity = "0.85"; background_opacity = "0.85";
}; };

View File

@ -2,6 +2,7 @@
let let
palette = config.colorScheme.palette; palette = config.colorScheme.palette;
betterTransition = "all 0.3s cubic-bezier(.55,-0.68,.48,1.682)";
inherit (import ../../options.nix) slickbar bar-number simplebar clock24h; inherit (import ../../options.nix) slickbar bar-number simplebar clock24h;
in with lib; { in with lib; {
# Configure & Theme Waybar # Configure & Theme Waybar
@ -14,7 +15,7 @@ in with lib; {
modules-center = [ "hyprland/workspaces" ] ; modules-center = [ "hyprland/workspaces" ] ;
modules-left = [ "custom/startmenu" "hyprland/window" "pulseaudio" "cpu" "memory"]; modules-left = [ "custom/startmenu" "hyprland/window" "pulseaudio" "cpu" "memory"];
modules-right = [ "custom/hyprbindings" "custom/exit" "idle_inhibitor" "custom/themeselector" "custom/notification" "pulseaudio" "clock" "tray" ]; modules-right = [ "custom/hyprbindings" "custom/exit" "idle_inhibitor" "custom/themeselector" "custom/notification" "clock" "tray" ];
"hyprland/workspaces" = { "hyprland/workspaces" = {
format = if bar-number == true then "{name}" else "{icon}"; format = if bar-number == true then "{name}" else "{icon}";
@ -102,8 +103,8 @@ in with lib; {
"idle_inhibitor" = { "idle_inhibitor" = {
format = "{icon}"; format = "{icon}";
format-icons = { format-icons = {
activated = " "; activated = "";
deactivated = " "; deactivated = "";
}; };
tooltip = "true"; tooltip = "true";
}; };
@ -146,16 +147,11 @@ in with lib; {
font-weight: bold; font-weight: bold;
} }
window#waybar { window#waybar {
${if slickbar == true then '' ${if slickbar == true || simplebar == true then ''
background-color: rgba(26,27,38,0); background-color: rgba(26,27,38,0);
border-bottom: 1px solid rgba(26,27,38,0); border-bottom: 1px solid rgba(26,27,38,0);
border-radius: 0px; border-radius: 0px;
color: #${palette.base0F}; color: #${palette.base0F};
'' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05};
background-color: #${palette.base00};
border-radius: 0px;
border-bottom: 1px solid rgba(26,27,38,0);
'' else '' '' else ''
background-color: #${palette.base00}; background-color: #${palette.base00};
border-bottom: 1px solid #${palette.base00}; border-bottom: 1px solid #${palette.base00};
@ -165,7 +161,7 @@ in with lib; {
} }
#workspaces { #workspaces {
${if slickbar == true then '' ${if slickbar == true then ''
background: linear-gradient(180deg, #${palette.base00}, #${palette.base01}); background: #${palette.base00};
margin: 5px; margin: 5px;
padding: 0px 1px; padding: 0px 1px;
border-radius: 15px; border-radius: 15px;
@ -173,13 +169,14 @@ in with lib; {
font-style: normal; font-style: normal;
color: #${palette.base00}; color: #${palette.base00};
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; color: #${palette.base00};
background: transparent; background: transparent;
margin: 4px;
border-radius: 0px; border-radius: 0px;
border: 0px; border: 0px;
font-style: normal; font-style: normal;
'' else '' '' else ''
background: linear-gradient(45deg, #${palette.base01}, #${palette.base01}); background: #${palette.base01};
margin: 4px; margin: 4px;
padding: 0px 1px; padding: 0px 1px;
border-radius: 10px; border-radius: 10px;
@ -195,24 +192,28 @@ in with lib; {
border-radius: 15px; border-radius: 15px;
border: 0px; border: 0px;
color: #${palette.base00}; color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base0D}, #${palette.base0E}); background: linear-gradient(45deg, #${palette.base0C}, #${palette.base0D}, #${palette.base0E});
opacity: 0.5; opacity: 0.5;
transition: all 0.3s ease-in-out; transition: ${betterTransition};
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; color: #${config.colorScheme.colors.base03};
background: transparent; background: #${palette.base00};
opacity: 0.3; margin: 4px 3px;
opacity: 1;
border: 0px; border: 0px;
transition: all 0.3s ease-in-out; border-radius: 15px;
transition: ${betterTransition};
'' else '' '' else ''
padding: 0px 5px; padding: 0px 5px;
margin: 4px 3px; margin: 4px 3px;
border-radius: 10px; border-radius: 10px;
border: 0px; border: 0px;
color: #${palette.base00}; color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base06}, #${palette.base0E}); background: linear-gradient(45deg, #${palette.base0E}, #${palette.base0F}, #${palette.base0D}, #${palette.base09});
background-size: 300% 300%;
animation: gradient_horizontal 15s ease infinite;
opacity: 0.5; opacity: 0.5;
transition: all 0.3s ease-in-out; transition: ${betterTransition};
''} ''}
} }
#workspaces button.active { #workspaces button.active {
@ -225,23 +226,30 @@ in with lib; {
background: linear-gradient(45deg, #${palette.base0D}, #${palette.base0E}); background: linear-gradient(45deg, #${palette.base0D}, #${palette.base0E});
opacity: 1.0; opacity: 1.0;
min-width: 40px; min-width: 40px;
transition: all 0.3s ease-in-out; transition: ${betterTransition};
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; color: #${palette.base00};
background: transparent; background: linear-gradient(118deg, #${palette.base0D} 5%, #${palette.base0F} 5%, #${palette.base0F} 20%, #${palette.base0D} 20%, #${palette.base0D} 40%, #${palette.base0F} 40%, #${palette.base0F} 60%, #${palette.base0D} 60%, #${palette.base0D} 80%, #${palette.base0F} 80%, #${palette.base0F} 95%, #${palette.base0D} 95%);
background-size: 300% 300%;
animation: swiping 15s linear infinite;
border-radius: 15px;
margin: 4px 3px;
opacity: 1.0; opacity: 1.0;
border: 0px; border: 0px;
transition: all 0.3s ease-in-out; min-width: 45px;
transition: ${betterTransition};
'' else '' '' else ''
padding: 0px 5px; padding: 0px 5px;
margin: 4px 3px; margin: 4px 3px;
border-radius: 10px; border-radius: 10px;
border: 0px; border: 0px;
color: #${palette.base00}; color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base06}, #${palette.base0E}); background: linear-gradient(45deg, #${palette.base0E}, #${palette.base0F}, #${palette.base0D}, #${palette.base09});
background-size: 300% 300%;
animation: gradient_horizontal 15s ease infinite;
transition: ${betterTransition};
opacity: 1.0; opacity: 1.0;
min-width: 40px; min-width: 40px;
transition: all 0.3s ease-in-out;
''} ''}
} }
#workspaces button:hover { #workspaces button:hover {
@ -250,19 +258,41 @@ in with lib; {
color: #${palette.base00}; color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base0D}, #${palette.base0E}); background: linear-gradient(45deg, #${palette.base0D}, #${palette.base0E});
opacity: 0.8; opacity: 0.8;
transition: ${betterTransition};
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; color: #${config.colorScheme.colors.base05};
background: transparent;
opacity: 0.8;
border: 0px; border: 0px;
transition: all 0.3s ease-in-out; border-radius: 15px;
transition: ${betterTransition};
'' else '' '' else ''
border-radius: 10px; border-radius: 10px;
color: #${palette.base00}; color: #${palette.base00};
background: linear-gradient(45deg, #${palette.base06}, #${palette.base0E}); background: linear-gradient(45deg, #${palette.base0E}, #${palette.base0F}, #${palette.base0D}, #${palette.base09});
background-size: 300% 300%;
animation: gradient_horizontal 15s ease infinite;
opacity: 0.8; opacity: 0.8;
transition: ${betterTransition};
''} ''}
} }
@keyframes gradient_horizontal {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes swiping {
0% {
background-position: 0% 200%;
}
100% {
background-position: 200% 200%;
}
}
tooltip { tooltip {
background: #${palette.base00}; background: #${palette.base00};
border: 1px solid #${palette.base0E}; border: 1px solid #${palette.base0E};
@ -279,9 +309,11 @@ in with lib; {
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; color: #${palette.base03};
background: transparent; background: #${palette.base00};
margin: 4px; margin: 6px 4px;
border-radius: 15px;
padding: 0px 10px;
'' else '' '' else ''
margin: 4px; margin: 4px;
padding: 2px 10px; padding: 2px 10px;
@ -294,13 +326,14 @@ in with lib; {
color: #${palette.base0F}; color: #${palette.base0F};
${if slickbar == true then '' ${if slickbar == true then ''
background: #${palette.base00}; background: #${palette.base00};
border-radius: 15px 50px 15px 50px; border-radius: 50px 15px 50px 15px;
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -316,27 +349,10 @@ in with lib; {
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05};
background: transparent;
margin: 4px;
'' else ''
background: #${palette.base01};
margin: 4px;
padding: 2px 10px;
border-radius: 10px;
''}
}
#idle_inhibitor {
color: #${palette.base0A};
${if slickbar == true then ''
background: #${palette.base00}; background: #${palette.base00};
border-radius: 50px 15px 50px 15px; margin: 6px 4px;
margin: 5px; padding: 0px 10px;
padding: 2px 20px; border-radius: 15px;
'' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05};
background: transparent;
margin: 4px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -352,9 +368,10 @@ in with lib; {
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -370,9 +387,10 @@ in with lib; {
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -388,9 +406,10 @@ in with lib; {
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -406,9 +425,10 @@ in with lib; {
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -420,13 +440,14 @@ in with lib; {
color: #${palette.base0E}; color: #${palette.base0E};
${if slickbar == true then '' ${if slickbar == true then ''
background: #${palette.base00}; background: #${palette.base00};
border-radius: 50px 15px 50px 15px; border-radius: 15px 50px 15px 50px;
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -442,9 +463,10 @@ in with lib; {
margin: 5px 0px 5px 5px; margin: 5px 0px 5px 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -460,9 +482,10 @@ in with lib; {
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -478,9 +501,10 @@ in with lib; {
margin: 5px; margin: 5px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -492,18 +516,19 @@ in with lib; {
color: #${palette.base0D}; color: #${palette.base0D};
${if slickbar == true then '' ${if slickbar == true then ''
background: #${palette.base00}; background: #${palette.base00};
border-radius: 15px 50px 15px 50px; border-radius: 0px 50px 15px 0px;
margin: 5px; margin: 5px 0px;
padding: 2px 20px; padding: 2px 15px 2px 5px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px 6px 0px;
margin: 4px; padding: 0px 10px 0px 5px;
border-radius: 0px 15px 15px 0px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px 0px;
padding: 2px 10px; padding: 2px 10px 2px 5px;
border-radius: 10px; border-radius: 0px 10px 10px 0px;
''} ''}
} }
#custom-startmenu { #custom-startmenu {
@ -514,9 +539,10 @@ in with lib; {
margin: 5px 5px 5px 0px; margin: 5px 5px 5px 0px;
padding: 2px 20px; padding: 2px 20px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 4px;
margin: 4px; padding: 0px 8px 0px 10px;
border-radius: 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px;
@ -528,36 +554,38 @@ in with lib; {
color: #${palette.base09}; color: #${palette.base09};
${if slickbar == true then '' ${if slickbar == true then ''
background: #${palette.base00}; background: #${palette.base00};
border-radius: 15px 50px 15px 50px; border-radius: 0px;
margin: 5px; margin: 5px 0px;
padding: 2px 20px; padding: 2px 14px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 0px;
margin: 4px; padding: 0px 14px;
border-radius: 0px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px 0px;
padding: 2px 10px; padding: 2px 14px;
border-radius: 10px; border-radius: 0px;
''} ''}
} }
#custom-exit { #custom-exit {
color: #${palette.base0E}; color: #${palette.base0E};
${if slickbar == true then '' ${if slickbar == true then ''
background: #${palette.base00}; background: #${palette.base00};
border-radius: 15px 50px 15px 50px; border-radius: 15px 0px 0px 50px;
margin: 5px; margin: 5px 0px;
padding: 2px 20px; padding: 2px 5px 2px 15px;
'' else if simplebar == true then '' '' else if simplebar == true then ''
color: #${config.colorScheme.colors.base05}; background: #${palette.base00};
background: transparent; margin: 6px 0px 6px 4px;
margin: 4px; padding: 0px 5px 0px 10px;
border-radius: 15px 0px 0px 15px;
'' else '' '' else ''
background: #${palette.base01}; background: #${palette.base01};
margin: 4px; margin: 4px 0px;
padding: 2px 10px; padding: 2px 5px 2px 10px;
border-radius: 10px; border-radius: 10px 0px 0px 10px;
''} ''}
} '' } ''
]; ];

View File

@ -30,6 +30,18 @@ in {
"text" = "Suspend"; "text" = "Suspend";
"keybind" = "u"; "keybind" = "u";
} }
{
"label" = "lock";
"action" = "sleep 1; hyprlock";
"text" = "Lock";
"keybind" = "l";
}
{
"label" = "hibernate";
"action" = "sleep 1; systemctl hibernate";
"text" = "Hibernate";
"keybind" = "h";
}
]; ];
style = '' style = ''
* { * {
@ -78,6 +90,16 @@ in {
border-radius: 20px; border-radius: 20px;
background-image: image(url("icons/reboot.png")); background-image: image(url("icons/reboot.png"));
} }
#lock {
margin: 10px;
border-radius: 20px;
background-image: image(url("icons/lock.png"));
}
#hibernate {
margin: 10px;
border-radius: 20px;
background-image: image(url("icons/hibernate.png"));
}
''; '';
}; };
} }

View File

@ -10,8 +10,18 @@ pkgs.writeShellScriptBin "wallsetter" ''
WALLPAPER=$(find ${wallpaperDir} -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1) WALLPAPER=$(find ${wallpaperDir} -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1)
PREVIOUS=$WALLPAPER PREVIOUS=$WALLPAPER
if [ -d ${wallpaperDir} ]; then if [ -d ${wallpaperDir} ]; then
cd ${wallpaperDir} num_files=$(ls -1 ${wallpaperDir} | wc -l)
git pull
if [ "$num_files" -eq 0 ]; then
notify-send "The wallpaper folder is empty. Exiting Wallsetter."
exit
elif [ "$num_files" -eq 1 ]; then
notify-send "The wallpaper folder has only one file. Exiting Wallsetter."
exit
else
cd ${wallpaperDir}
git pull
fi
else else
${pkgs.git}/bin/git clone ${wallpaperGit} ${wallpaperDir} ${pkgs.git}/bin/git clone ${wallpaperGit} ${wallpaperDir}
chown -R ${username}:users ${wallpaperDir} chown -R ${username}:users ${wallpaperDir}

View File

@ -8,7 +8,7 @@ let
hostname = "hyprnix"; hostname = "hyprnix";
userHome = "/home/${username}"; userHome = "/home/${username}";
flakeDir = "${userHome}/zaneyos"; flakeDir = "${userHome}/zaneyos";
waybarStyle = "default"; # simplebar, slickbar, or default waybarStyle = "simplebar"; # simplebar, slickbar, or default
in { in {
# User Variables # User Variables
username = "${username}"; username = "${username}";
@ -18,7 +18,7 @@ in {
theme = "gigavolt"; theme = "gigavolt";
slickbar = if waybarStyle == "slickbar" then true else false; slickbar = if waybarStyle == "slickbar" then true else false;
simplebar = if waybarStyle == "simplebar" then true else false; simplebar = if waybarStyle == "simplebar" then true else false;
bar-number = false; # Enable / Disable Workspace Numbers In Waybar bar-number = true; # Enable / Disable Workspace Numbers In Waybar
borderAnim = true; borderAnim = true;
browser = "firefox"; browser = "firefox";
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git"; # This will give you my wallpapers wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git"; # This will give you my wallpapers