From 0ef5e0cc6aed0ec95ea7fcf772fd676adaf5c352 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 5 Aug 2026 12:30:53 -0700 Subject: [PATCH] bash env, only run the keymap command if the X session is set. --- tasks/general/acct_mgmt/users.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/general/acct_mgmt/users.yml b/tasks/general/acct_mgmt/users.yml index a62fdc2..3b4fd0f 100644 --- a/tasks/general/acct_mgmt/users.yml +++ b/tasks/general/acct_mgmt/users.yml @@ -129,7 +129,10 @@ #export_terminal: export TERMINAL="alacritty" # colors look weird. export_terminal: export TERMINAL="kitty" export_browser: export BROWSER="`which firefox || which firefox-esr || which firefox-flatpak`" - keyboard_settings: setxkbmap -layout us -variant altgr-intl + keyboard_settings: | + if [[ -n "$XDG_SESSION_ID" ]]; then + setxkbmap -layout us -variant altgr-intl + fi - name: General | Account Management | Users | Files | RC Variables set_fact: