From 3761124be7d3be44f84dc10bc7e34992e36eb8b4 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Mon, 4 Nov 2024 14:38:36 +0200 Subject: [PATCH] Fix Wayland support for apps running under systemd --- .config/environment.d/99-xcursor_size.conf | 1 + .config/sway/autostart | 1 + .config/sway/config | 3 +++ 3 files changed, 5 insertions(+) create mode 100644 .config/environment.d/99-xcursor_size.conf diff --git a/.config/environment.d/99-xcursor_size.conf b/.config/environment.d/99-xcursor_size.conf new file mode 100644 index 0000000..33f5971 --- /dev/null +++ b/.config/environment.d/99-xcursor_size.conf @@ -0,0 +1 @@ +XCURSOR_SIZE=24 diff --git a/.config/sway/autostart b/.config/sway/autostart index 7cf75e4..900daf1 100644 --- a/.config/sway/autostart +++ b/.config/sway/autostart @@ -10,6 +10,7 @@ for_window [app_id="quasselclient"] move to workspace $chat_workspace exec systemd-run --user --unit=quasselclient /usr/bin/quasselclient for_window [class="Element"] move to workspace $chat_workspace +for_window [app_id="Element"] move to workspace $chat_workspace exec systemd-run --user --unit=element-desktop /usr/bin/element-desktop for_window [class="Slack"] move to workspace $chat_workspace diff --git a/.config/sway/config b/.config/sway/config index 1d8b7ce..0fb06d8 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -366,4 +366,7 @@ input 1133:16534:Logitech_ERGO_M575 { include /etc/sway/config.d/* exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway +exec systemctl --user set-environment DESKTOP_SESSION=sway +exec systemctl --user set-environment XDG_SESSION_DESKTOP=sway +exec systemctl --user set-environment XDG_SESSION_TYPE=wayland include autostart