rename xinitrc to xprofile
[~bandali/configs] / x / .xprofile
CommitLineData
3aeeb20d
AB
1#!/bin/sh
2#
3# ~/.xinitrc
4#
5# Executed by startx (run your window manager from here)
6
7if [ -d /etc/X11/xinit/xinitrc.d ]; then
8 for f in /etc/X11/xinit/xinitrc.d/*; do
9 [ -x "$f" ] && . "$f"
10 done
11 unset f
12fi
13
73cd9ce5 14# workaround for some java apps, when running a non-reparenting window manager
22611512
AB
15export _JAVA_AWT_WM_NONREPARENTING=1
16
3aeeb20d 17xrdb -merge ~/.Xresources
73cd9ce5
AB
18
19# set the cursor icon
20xsetroot -cursor_name left_ptr &
21
22# set the wallpaper
b176d960 23sh ~/.fehbg &
73cd9ce5
AB
24
25# font stuff
3aeeb20d
AB
26xset +fp /usr/share/fonts/local
27xset +fp ~/.fonts
28xset fp rehash
29xset b off
73cd9ce5
AB
30
31# the compositor
3af214ef 32compton &
73cd9ce5
AB
33
34# xbacklight -set 50
35
36# synaptics (touchpad) configs
3aeeb20d
AB
37synclient TapButton2=3
38synclient TapButton3=2
39synclient HorizTwoFingerScroll=1
40synclient VertScrollDelta=-237
41synclient HorizScrollDelta=-237
73cd9ce5
AB
42
43# swap caps lock and esc
d0c8be2e 44setxkbmap -option caps:swapescape
3aeeb20d 45
faafd14a
AB
46# MPD daemon start (if no other instance exists)
47[ -z $(pidof mpd) ] && mpd &
48
3aeeb20d
AB
49# screen powersave
50xset +dpms
51xset dpms 0 0 300
73cd9ce5
AB
52
53# lock the screen using lightdm after 5 minutes
54xautolock -time 5 -locker "dm-tool lock" &
55
3aeeb20d
AB
56
57# exec gnome-session
58# exec startkde
73cd9ce5 59# exec startxfce4
3aeeb20d 60# ...or the Window Manager of your choice
73cd9ce5
AB
61# source ~/.profile
62# sxhkd &
63# panel &
64
65# DEFAULTSESSION=bspwm
66# case "$1" in
67# i3) exec i3;;
68# bspwm) exec bspwm;;
69# *) exec $DEFAULTSESSION ;;
70# esac