commit 6e7572ad5b983ed3e69e6de679f6fd16af4517e8
parent b1f80e6856084258b836ab6a15556b976317d219
Author: jacob@thinkpad <jacobouno@protonmail.com>
Date: Fri, 10 Apr 2020 19:04:00 -0700
refactor
Diffstat:
1 file changed, 11 insertions(+), 17 deletions(-)
diff --git a/xinitrc/.xinitrc b/xinitrc/.xinitrc
@@ -1,4 +1,4 @@
-#!/bin/sh {{{
+#!/usr/bin/env sh {{{
# vim: foldmethod=marker
userresources=$HOME/.Xresources
@@ -8,19 +8,19 @@ sysmodmap=/etc/X11/xinit/.Xmodmap
if [ -f $sysresources ]; then
xrdb -merge $sysresources
- fi
+fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
- fi
+fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
- fi
+fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
- fi
+fi
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
@@ -28,30 +28,24 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
done
unset f
fi
-
#}}}
# X utilitys
-xrdb -load ~/.Xresources &
xsetroot -xcf ~/.icons/Quintom/cursors/left_ptr 13 &
xwallpaper --zoom $HOME/.wallpaper &
+setxkbmap -option ctrl:nocaps &
+xset r rate 250 30 &
+xbanish &
if [ "$PLATFORM" = 'laptop' ]; then
xautolock -corners ---- -time 3 -locker "$HOME/bin/lock" &
xset dpms 320 &
fi
-setxkbmap -option ctrl:nocaps &
-xset r rate 250 30
-xbanish &
-# scrips
-battery-notify &
-#pynotify &
-#mpd-notify &
-
-#picom &
+# notifications
dunst &
-#lemon "$PLATFORM" &
+pynotify &
+battery-notify &
sxhkd -c ~/.config/sxhkd/dwm &
dwmstatus 2>&1 >/dev/null &