diff --git a/home/executable_dot_xinitrc b/home/executable_dot_xinitrc index 78a7935..e982f8e 100644 --- a/home/executable_dot_xinitrc +++ b/home/executable_dot_xinitrc @@ -22,7 +22,6 @@ if [ -f "$usermodmap" ]; then xmodmap "$usermodmap" fi -# start some nice programs if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/?*.sh; do @@ -33,6 +32,17 @@ fi [ -f ~/.xprofile ] && . ~/.xprofile +# taken from nixos wiki +if test -z "$DBUS_SESSION_BUS_ADDRESS"; then + eval "$(dbus-launch --exit-with-session --sh-syntax)" +fi + +systemctl --user import-environment DISPLAY XAUTHORITY + +if command -v dbus-update-activation-environment >/dev/null 2>&1; then + dbus-update-activation-environment DISPLAY XAUTHORITY +fi + # eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) # export SSH_AUTH_SOCK @@ -51,6 +61,6 @@ qtile) ;; *) export DESKTOP_SESSION=qtile - exec qtile start + exec dbus-launch qtile start ;; esac diff --git a/home/executable_dot_xprofile b/home/executable_dot_xprofile index f3c7c8f..662eac2 100644 --- a/home/executable_dot_xprofile +++ b/home/executable_dot_xprofile @@ -2,16 +2,15 @@ # enable touch on only laptop monitor # this isn't working for some reason -xinput --map-to-output '18' eDP-1 +# xinput --map-to-output '18' eDP-1 -xss-lock -- ~/bin/lock & - -unclutter --timeout 1 & +# xset 1200 +# xss-lock -- ~/bin/lock & # set a new random color -~/.config/qtile/colors.py +~/.config/qtile/colors.py & -SKIP_WM_RESET=1 autorandr -c --default default +SKIP_WM_RESET=1 autorandr -c --default default & # https://github.com/alacritty/alacritty/issues/3465 export WINIT_X11_SCALE_FACTOR=1