mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-27 23:58:49 +01:00
13 lines
351 B
Nix
13 lines
351 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 -i -dmenu)
|
|
|
|
# Exit if none chosen.
|
|
[ -z "$chosen" ] && exit
|
|
|
|
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
|
themechange "$chosen"
|
|
''
|