mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-28 16:18:52 +01:00
17 lines
441 B
Nix
17 lines
441 B
Nix
{ pkgs }:
|
|
|
|
pkgs.writeShellScriptBin "theme-selector" ''
|
|
# Get user selection for new theme from base16-themes file
|
|
chosen=$(cat $HOME/.base16-themes | ${pkgs.rofi-wayland}/bin/rofi -dmenu)
|
|
|
|
# Exit if none chosen.
|
|
[ -z "$chosen" ] && exit
|
|
|
|
if [ -n "$1" ]; then
|
|
themechange "$chosen"
|
|
else
|
|
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
|
kitty -e themechange "$chosen"
|
|
fi
|
|
''
|