commit 47977fac7a08165145a798800e2a58159e62fe98
parent 866aa5b6877883155a12695bf0cc88c62807ed7d
Author: jacob@thinkpad <jacobouno@protonmail.com>
Date: Tue, 2 Jun 2020 21:21:31 -0700
Simplify Xorg init configs
Diffstat:
3 files changed, 12 insertions(+), 26 deletions(-)
diff --git a/profile/.profile b/profile/.profile
@@ -26,13 +26,6 @@ export SCREENSHOTS="$HOME/own/image/screenshots"
export NOTES="$HOME/own/text/notes"
export STICKY="$HOME/own/text/sticky"
-# TODO: make this look good
-# compile PATH
PATH=$HOME/.cargo/bin:$PATH
-PATH=$HOME/.local/bin:$PATH
-PATH=$($HOME/bin/utils/recurse-d $HOME/bin):$PATH
-PATH=$($HOME/bin/utils/recurse-d $HOME/.local/bin/):$PATH
+PATH=$HOME/bin:$PATH
export PATH
-
-# TODO: run once on login to TTY
-lesskey ~/.config/lesskey
diff --git a/xinitrc/.xinitrc b/xinitrc/.xinitrc
@@ -31,26 +31,21 @@ fi
#}}}
# X utilitys
-xsetroot -xcf ~/.icons/Quintom/cursors/left_ptr 13 &
xwallpaper --zoom $XDG_CONFIG_HOME/wallpaper &
-xbanish &
-
-if [ "$PLATFORM" = 'laptop' ]; then
- xautolock -corners ---- -time 3 -locker "$HOME/bin/lock" &
- xset dpms 320 &
-fi
+xsetroot -xcf ~/.icons/Quintom/cursors/left_ptr 13 &
# kbd
-setxkbmap -option ctrl:nocaps
xmodmap -e "keycode 117 = Super_R" &
xmodmap -e "keycode 66 = Escape" &
xset r rate 250 30 &
-# notifications
-dunst &
-pynotify &
-notifyb &
+# setup
+lesskey ~/.config/lesskey
+# daemons
+xbanish &
+dunst &
+battery &
sxhkd &
slstatus &
exec dwm
diff --git a/xsession/.xsession b/xsession/.xsession
@@ -1,13 +1,8 @@
-# this is a bad thing, don't do this
-# I suppose I should make it read only?
. ~/.profile
# disable core dumps.
ulimit -Sc 0
-#pynotify &
-notifyb &
-
/usr/X11R6/bin/setxkbmap -option ctrl:nocaps &
/usr/X11R6/bin/xmodmap -e "keycode 66 = Escape" &
/usr/X11R6/bin/xmodmap -e "keycode 117 = Super_R" &
@@ -15,10 +10,13 @@ notifyb &
/usr/X11R6/bin/xset r rate 250 30 &
/usr/X11R6/bin/xsetroot -xcf /home/jacob/.icons/Quintom/cursors/left_ptr 13 &
-xrdb -load ~/.Xresources
+battery &
+/usr/X11R6/bin/xrdb -load ~/.Xresources &
+/usr/bin/lesskey ~/.config/lesskey &
/usr/local/bin/xwallpaper --zoom /home/jacob/.config/wallpaper &
/usr/local/bin/dunst &
/usr/local/bin/xbanish &
/usr/local/bin/slstatus &
/usr/local/bin/sxhkd &
/usr/bin/dwm
+