Also enable xremap for X11 sessions

This commit is contained in:
Kenneth Benzie 2024-06-15 12:13:24 +01:00
parent 675a4eab18
commit 9fee00b0d8
2 changed files with 5 additions and 8 deletions

View File

@ -13,9 +13,3 @@
- role: gnome-shell - role: gnome-shell
when: "'GNOME' in ansible_env.XDG_CURRENT_DESKTOP" when: "'GNOME' in ansible_env.XDG_CURRENT_DESKTOP"
- role: xremap - role: xremap
when: >
'GNOME' in ansible_env.XDG_CURRENT_DESKTOP and
ansible_env.XDG_SESSION_TYPE == 'wayland' and (
ansible_os_family == "RedHat" or
ansible_os_family == "Debian"
)

View File

@ -1,8 +1,11 @@
--- ---
- assert: - assert:
that: > that: >
'GNOME' in ansible_env.XDG_CURRENT_DESKTOP and 'XDG_CURRENT_DESKTOP' in ansible_env and
ansible_env.XDG_SESSION_TYPE == 'wayland' 'GNOME' in ansible_env.XDG_CURRENT_DESKTOP and (
ansible_env.XDG_SESSION_TYPE == 'wayland' or
ansible_env.XDG_SESSION_TYPE == 'x11'
)
- set_fact: - set_fact:
install_dir: '{{ansible_env.HOME}}/.local/bin' install_dir: '{{ansible_env.HOME}}/.local/bin'