Sway X11 config

This commit is contained in:
q3aql 2025-05-12 14:24:58 +02:00
parent d0bcf189dc
commit 720780d504
2 changed files with 11 additions and 2 deletions

View File

@ -38,10 +38,10 @@ exec --no-startup-id ~/.config/sway/startwlrrandr.sh &
# If you have problems, rename this files:
# mv -v ~/.config/systemd/user/xdg-desktop-portal.service.disabled ~/.config/systemd/user/xdg-desktop-portal.service
# mv -v ~/.config/systemd/user/xdg-desktop-portal-wlr.service.disabled ~/.config/systemd/user/xdg-desktop-portal-wlr.service
exec --no-startup-id systemctl --user start xdg-desktop-portal-wlr.service &
exec --no-startup-id systemctl --user start xdg-desktop-portal-wlr.service
# Run apps with sudo
exec --no-startup-id xhost +SI:localuser:root
exec --no-startup-id ~/.config/sway/xhost-x11-root.sh &
# Configure wallpaper
exec --no-startup-id "swaybg -i ~/wallpapers/gruvbox-arch.png -m fill"

9
.config/sway/xhost-x11-root.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
repeat="30m"
xhost_while=0
while [ ${xhost_while} -eq 0 ] ; do
xhost +SI:localuser:root
sleep ${repeat}
done