summaryrefslogtreecommitdiffstats
path: root/.xinitrc
blob: 64ea3c570c7d8c683620e05477af5e1054db2924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
cd "$HOME" || exit 1

export VDPAU_NVIDIA_NO_OVERLAY=1
#export SDL_AUDIODRIVER=alsa
export SDL_AUDIODRIVER=pulse
#export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/keyring/ssh"
export QT_QPA_PLATFORMTHEME="qt5ct"

export LANG=en_US.UTF-8
export TZ=Europe/Vienna

[[ -f ~/.nvidia-settings-rc ]] && nvidia-settings -l
#xrandr --output DP-4 --left-of DP-2

#nvidia-settings -a '[gpu:0]/GPUGraphicsClockOffset[3]=150'
#nvidia-settings -a '[gpu:0]/GPUMemoryTransferRateOffset[3]=400'

# I don't like no background ;)
dash "$HOME/.bg" &

numlockx
xset -dpms
xset r rate 250 50 &
#source $HOME/bin/gpg-agent.sh
#gpg-connect-agent -q UPDATESTARTUPTTY /bye

systemctl --user import-environment DISPLAY XAUTHORITY
dbus-update-activation-environment DISPLAY XAUTHORITY

eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
export GNOME_KEYRING_CONTROL
export GNOME_KEYRING_PID
export DBUS_SESSION_BUS_ADDRESS
export DBUS_SESSION_BUS_PID

systemctl --user import-environment GNOME_KEYRING_CONTROL GNOME_KEYRING_PID SSH_AUTH_SOCK


# autostart entries
setxkbmap us altgr-intl
#sup --delay-after 3 --delay 1 --reset-after 0 xbindkeys -n &
xkbcomp ~/.xkbmap "$DISPLAY" &
xautolock -nowlocker "$HOME/bin/screen-locker.sh" -locker "$HOME/bin/screen-locker.sh" -time 10 &
#pulseaudio --start &
remote-notify-client.sh </dev/null &
# might need --glx-copy-from-front to reduce lag in urxvt
#compton -bfzCG --backend glx --vsync opengl-swc --paint-on-overlay -D2 #--glx-no-rebind-pixmap --glx-no-stencil --unredir-if-possible
redshift -l 48.190:15.62 -t 5700:3400 -m randr &
mount-ssh &
dunst &

if [[ -e ~/perl5 ]]; then
	eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
fi

#systemd-run -G --user -E PATH="$PATH" -E PERL5LIB="$PERL5LIB" --unit imap-notify imap-notify.pl --debug

#rm -f "$HOME/passwords.kdb.lock"
#keepassxc &
#transmission-remote-gtk &
#claws-mail &
#thunderbird &
#kwalletd5 &
#kded5 &
#kmail &
firefox &
#steam &
#copyq &
parcellite &

exec i3