Sway X11 config
This commit is contained in:
parent
d0bcf189dc
commit
720780d504
@ -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
9
.config/sway/xhost-x11-root.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user