fix the tilde key on Macbook Air
[~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# xrdb -merge ~/.base16-tomorrow.dark.256.xresources
19xrdb -merge ~/.gotham.xresources
20# xrdb -merge ~/.zenburn.xresources
21
22# set the cursor icon
23# xsetroot -cursor_name left_ptr &
24
25# set the wallpaper
26# sh ~/.fehbg &
27
28# font stuff
29# xset +fp /usr/share/fonts/local
30# xset +fp ~/.fonts
31# xset fp rehash
32# xset b off
33
34# the compositor
35compton &
36
37# xbacklight -set 50
38
39# synaptics (touchpad) configs
40synclient TapButton2=3
41synclient TapButton3=2
42synclient HorizTwoFingerScroll=1
43synclient VertScrollDelta=-237
44synclient HorizScrollDelta=-237
45
46# swap caps lock and esc
47setxkbmap -option caps:swapescape
48
49# fix the tilde key on MacBook Air
50xmodmap ~/.Xmodmap
51
52# MPD daemon start (if no other instance exists)
53[ -z $(pidof mpd) ] && mpd &
54
55# screen powersave
56# xset +dpms
57# xset dpms 0 0 300
58
59# lock the screen using lightdm after 5 minutes
60# xautolock -time 5 -locker "slimlock" &
61
62
63# exec gnome-session
64# exec startkde
65# exec startxfce4
66# ...or the Window Manager of your choice
67# source ~/.profile
68bspwm &
69sxhkd &
70sleep 1 && pnmixer &
71# panel &
72
73# DEFAULTSESSION=bspwm
74# case "$1" in
75# i3) exec i3;;
76# bspwm) exec bspwm;;
77# *) exec $DEFAULTSESSION ;;
78# esac
79