summaryrefslogtreecommitdiff
path: root/.xinitrc
blob: 95e42223f9b6cc06f8213432dfd1deff31c3f7f1 (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
#!/bin/sh

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

if [ -f $HOME/.local/bin/statusbar ]; then
  . $HOME/.local/bin/statusbar
fi

export GTK_IM_MODULE='ibus'
export QT_IM_MODULE='ibus'
export XMODIFIERS='@im=ibus'

dbus-update-activation-environment \
    --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY

export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus

rfkill block all

ibus-daemon -dxrR

xrandr --auto --output HDMI-A-0 --mode 1920x1080 --primary
xrandr --auto --output DisplayPort-2 --mode 1600x900 --left-of HDMI-A-0

xset s off -dpms

setxkbmap -option "ctrl:nocaps"

xwallpaper --maximize "$(/usr/bin/ls -d -1 /hdd/Pictures/wallpaper/* | shuf -n1)" &

compton --config $HOME/.config/compton/compton.conf -b

exec dwm