summaryrefslogtreecommitdiffstatshomepage
path: root/run_after_canonical-desktop.sh.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'run_after_canonical-desktop.sh.tmpl')
-rw-r--r--run_after_canonical-desktop.sh.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/run_after_canonical-desktop.sh.tmpl b/run_after_canonical-desktop.sh.tmpl
new file mode 100644
index 0000000..54e0a72
--- /dev/null
+++ b/run_after_canonical-desktop.sh.tmpl
@@ -0,0 +1,8 @@
+{{ if eq (default "host" (index . "machineRole")) "canonical" -}}
+#!/bin/sh
+set -eu
+case "${XDG_CURRENT_DESKTOP:-}" in
+ *GNOME*|*gnome*) /usr/bin/python3 "$HOME/.local/lib/dotfiles/canonical_desktop.py" settings ;;
+ *) echo 'Run just canonical-desktop from GNOME to apply desktop keys.' ;;
+esac
+{{ end -}}