summaryrefslogtreecommitdiffstatshomepage
path: root/run_after_canonical-desktop.sh.tmpl
diff options
context:
space:
mode:
authorsommerfeld <sommerfeld@sommerfeld.dev>2026-09-17 15:05:36 +0100
committersommerfeld <sommerfeld@sommerfeld.dev>2026-09-17 15:05:36 +0100
commitaff435a0fb3a56b1d7b738c7dede363440884b3a (patch)
tree07acb41d37760aa169ee42dbeb69da3621cc7489 /run_after_canonical-desktop.sh.tmpl
parenta7f74c1fa4b89c5829f5896842eb7248c820704c (diff)
downloaddotfiles-aff435a0fb3a56b1d7b738c7dede363440884b3a.tar.gz
dotfiles-aff435a0fb3a56b1d7b738c7dede363440884b3a.tar.bz2
dotfiles-aff435a0fb3a56b1d7b738c7dede363440884b3a.zip
Add the Canonical laptop profile and setup workflows
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 -}}