shell: tweak X settings, add ~/.xsession for starting emacs (exwm)
authorAmin Bandali <bandali@gnu.org>
Fri, 6 Sep 2019 16:10:01 +0000 (12:10 -0400)
committerAmin Bandali <bandali@gnu.org>
Fri, 6 Sep 2019 16:10:01 +0000 (12:10 -0400)
- set cursor from the default ugly “x” to a left pointer
- disable bell
- remove annoying one pixel border around emacs (using ‘-ib 0’)

.profile
.xsession [new file with mode: 0755]

index af4bb6b..0f17b9b 100644 (file)
--- a/.profile
+++ b/.profile
@@ -71,7 +71,9 @@ setxkbmap \
 
 xmodmap -e "keysym Menu = Super_R"
 
+xsetroot -cursor_name left_ptr
 xset r rate 200 45
+xset b off
 
 xrdb -merge "$HOME/.Xresources"
 
diff --git a/.xsession b/.xsession
new file mode 100755 (executable)
index 0000000..15791ec
--- /dev/null
+++ b/.xsession
@@ -0,0 +1,4 @@
+[ -x "$(command -v light-locker)" ] && light-locker --lock-on-suspend &
+[ -x "$(command -v pasystray)" ] && pasystray &
+[ -x "$(command -v nm-applet)" ] && nm-applet &
+[ -x "$(command -v emacs)" ] && exec emacs -ib 0