Import DISPLAY to systemd for user services

This commit is contained in:
ItsDrike 2022-03-09 22:02:12 +01:00
parent 6134d95062
commit 1c2b7cac0d
No known key found for this signature in database
GPG key ID: B014E761034AF742

View file

@ -13,7 +13,7 @@ xrandr --output HDMI-1 --auto --output eDP-1 --right-of HDMI-1 --auto &
setbg & setbg &
# Use xresources file in ~/.config/x11 # Use xresources file in ~/.config/x11
xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdb -merge ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources &
# Start compositor manager to allow transparency # Start compositor manager to allow transparency
picom -b --experimental-backends & picom -b --experimental-backends &
@ -45,3 +45,6 @@ xhost +local:
# Change x shaped default cursor (fonts are located in /usr/include/X11/cursorfont.h) # Change x shaped default cursor (fonts are located in /usr/include/X11/cursorfont.h)
xsetroot -cursor_name left_ptr xsetroot -cursor_name left_ptr
# import DISPLAY environment variable for systemd user services
systemctl --user import-environment DISPLAY