aboutsummaryrefslogtreecommitdiff
path: root/.local/etc/x/xinitrc
diff options
context:
space:
mode:
Diffstat (limited to '.local/etc/x/xinitrc')
-rw-r--r--.local/etc/x/xinitrc20
1 files changed, 5 insertions, 15 deletions
diff --git a/.local/etc/x/xinitrc b/.local/etc/x/xinitrc
index 4d17b98..ccb21f3 100644
--- a/.local/etc/x/xinitrc
+++ b/.local/etc/x/xinitrc
@@ -1,14 +1,5 @@
#!/bin/sh
-# start dbus if necessary
-[ -f "/etc/X11/xinit/xinitrc.d/80-dbus" ] && source /etc/X11/xinit/xinitrc.d/80-dbus
-
-# start polkit auth agent
-eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
-export GNOME_KEYRING_PID
-export GNOME_KEYRING_SOCKET
-export SSH_AUTH_SOCK
-
# set the default mousepointer
xsetroot -cursor_name left_ptr
@@ -27,7 +18,6 @@ fi
# xkbmap options
setxkbmap \
-layout us \
- \
-option compose:menu \
-option caps:escape
@@ -37,8 +27,8 @@ xmodmap -e "keycode 108 = ISO_Level3_Shift"
# Export variables for a better X11 experience
export WINIT_X11_SCALE_FACTOR=1
-# Autostart desired applications
-while read -r application
-do
- $application &
-done < "$HOME/.local/etc/x/autostart"
+# Import X11 environment for systemd
+systemctl --user import-environment \
+ DISPLAY \
+ WINIT_X11_SCALE_FACTOR \
+ XAUTHORITY