mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-02-16 16:40:49 +01:00
fix themechanging scripts
This commit is contained in:
parent
7b4a275fc0
commit
678afeb440
@ -10,7 +10,7 @@ pkgs.writeShellScriptBin "theme-selector" ''
|
||||
if [ -n "$1" ]; then
|
||||
themechange "$chosen"
|
||||
else
|
||||
themechange "$chosen"
|
||||
${pkgs.libnotify}/bin/notify-send "'$chosen' theme is building this will take a second" &
|
||||
themechange "$chosen"
|
||||
fi
|
||||
''
|
||||
|
@ -7,8 +7,7 @@ pkgs.writeShellScriptBin "themechange" ''
|
||||
replacement="$1"
|
||||
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
|
||||
sudo nixos-rebuild switch --flake ${flakeDir}/#workstation
|
||||
${pkgs.toybox}/bin/pkill ${pkgs.swaynotificationcenter}/bin/swaync
|
||||
${pkgs.toybox}/bin/nohup ${pkgs.swaynotificationcenter}/bin/swaync &
|
||||
rm nohup.out
|
||||
swaync-client -R
|
||||
swaync-client -rs
|
||||
fi
|
||||
''
|
||||
|
@ -20,7 +20,7 @@
|
||||
gitEmail = "tylerzanekelley@gmail.com";
|
||||
theLocale = "en_US.UTF-8";
|
||||
theTimezone = "America/Chicago";
|
||||
theme = "gigavolt";
|
||||
theme = "atelier-cave-light";
|
||||
browser = "firefox";
|
||||
wallpaperGit = "https://gitlab.com/Zaney/my-wallpapers.git";
|
||||
wallpaperDir = "/home/${username}/Pictures/Wallpapers";
|
||||
|
1
home.nix
1
home.nix
@ -70,6 +70,7 @@
|
||||
(import ./config/scripts/squirtle.nix { inherit pkgs; })
|
||||
(import ./config/scripts/wallsetter.nix { inherit pkgs; inherit wallpaperDir; })
|
||||
(import ./config/scripts/themechange.nix { inherit pkgs; inherit flakeDir; })
|
||||
(import ./config/scripts/theme-selector.nix { inherit pkgs; })
|
||||
];
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user