Only run onChange for GNOME when installed 🐛
As GNOME is always enabled on the Home Manager side, the command might try to run when GNOME is not installed.
This commit is contained in:
parent
ba324393e9
commit
638f2d86c4
1 changed files with 4 additions and 2 deletions
|
|
@ -31,8 +31,10 @@ with lib;
|
|||
let theme = import ./theme.nix { inherit pkgs config; };
|
||||
in "${theme}/share/gnome-shell/gnome-shell.css";
|
||||
onChange = ''
|
||||
gnome-extensions disable user-theme@gnome-shell-extensions.gcampax.github.com
|
||||
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
||||
if [ -x "$(command -v gnome-extensions)" ]; then
|
||||
gnome-extensions disable user-theme@gnome-shell-extensions.gcampax.github.com
|
||||
gnome-extensions enable user-theme@gnome-shell-extensions.gcampax.github.com
|
||||
fi
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue