1
0
forked from extern/zaneyos

Finally fix theme script and implement

This commit is contained in:
Tyler Kelley 2024-01-17 04:00:40 -06:00
parent 678afeb440
commit ac52dc3301
5 changed files with 17 additions and 6 deletions

View File

@ -10,7 +10,7 @@ pkgs.writeShellScriptBin "theme-selector" ''
if [ -n "$1" ]; then
themechange "$chosen"
else
${pkgs.libnotify}/bin/notify-send "'$chosen' theme is building this will take a second" &
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
themechange "$chosen"
fi
''

View File

@ -6,8 +6,6 @@ pkgs.writeShellScriptBin "themechange" ''
else
replacement="$1"
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
sudo nixos-rebuild switch --flake ${flakeDir}/#workstation
swaync-client -R
swaync-client -rs
kitty -e sudo nixos-rebuild switch --flake ${flakeDir}#workstation && swaync-client -R && swaync-client -rs
fi
''

View File

@ -11,7 +11,7 @@
modules-left = [ "hyprland/window" ];
modules-center = [ "network" "pulseaudio" "cpu" "hyprland/workspaces" "memory" "disk" "clock" ];
modules-right = [ "custom/notification" "tray" ];
modules-right = [ "custom/themeselector" "custom/notification" "tray" ];
"hyprland/workspaces" = {
format = "{icon}";
format-icons = {
@ -72,6 +72,11 @@
};
on-click = "pavucontrol";
};
"custom/themeselector" = {
tooltip = false;
format = "";
on-click = "theme-selector";
};
"custom/notification" = {
tooltip = false;
format = "{icon} {}";
@ -227,6 +232,13 @@
margin: 5px;
padding: 2px 20px;
}
#custom-themeselector {
color: #${config.colorScheme.colors.base0D};
background: transparent;
border-radius: 5px;
margin: 5px;
padding: 2px 2px;
}
'';
};
}

View File

@ -20,7 +20,7 @@
gitEmail = "tylerzanekelley@gmail.com";
theLocale = "en_US.UTF-8";
theTimezone = "America/Chicago";
theme = "atelier-cave-light";
theme = "grayscale-light";
browser = "firefox";
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
wallpaperDir = "/home/${username}/Pictures/Wallpapers";

View File

@ -150,6 +150,7 @@
sv="sudo vim";
flake-rebuild="sudo nixos-rebuild switch --flake ~/zaneyos/#workstation";
laptop-rebuild="sudo nixos-rebuild switch --flake ~/zaneyos/#laptop";
gcCleanup="nix-collect-garbage --delete-old && sudo nix-collect-garbage -d && sudo /run/current-system/bin/switch-to-configuration boot";
v="vim";
ls="lsd";
ll="lsd -l";