rename xinitrc to xprofile
[~bandali/configs] / x / .xprofile
... / ...
CommitLineData
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
14# workaround for some java apps, when running a non-reparenting window manager
15export _JAVA_AWT_WM_NONREPARENTING=1
16
17xrdb -merge ~/.Xresources
18
19# set the cursor icon
20xsetroot -cursor_name left_ptr &
21
22# set the wallpaper
23sh ~/.fehbg &
24
25# font stuff
26xset +fp /usr/share/fonts/local
27xset +fp ~/.fonts
28xset fp rehash
29xset b off
30
31# the compositor
32compton &
33
34# xbacklight -set 50
35
36# synaptics (touchpad) configs
37synclient TapButton2=3
38synclient TapButton3=2
39synclient HorizTwoFingerScroll=1
40synclient VertScrollDelta=-237
41synclient HorizScrollDelta=-237
42
43# swap caps lock and esc
44setxkbmap -option caps:swapescape
45
46# MPD daemon start (if no other instance exists)
47[ -z $(pidof mpd) ] && mpd &
48
49# screen powersave
50xset +dpms
51xset dpms 0 0 300
52
53# lock the screen using lightdm after 5 minutes
54xautolock -time 5 -locker "dm-tool lock" &
55
56
57# exec gnome-session
58# exec startkde
59# exec startxfce4
60# ...or the Window Manager of your choice
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