summaryrefslogtreecommitdiff
path: root/autostart
diff options
context:
space:
mode:
authorPatrick Simianer <pks@pks.rocks>2019-07-28 16:49:49 +0200
committerPatrick Simianer <pks@pks.rocks>2019-07-28 16:49:49 +0200
commit9ea8e3ed2f30ec076f6825d9e337a1094707de32 (patch)
treefbb7a228b1418c9fcc20b093e31cf4592c7b0e23 /autostart
parentdcab8f4a4bd154c708faaeed75a2c23727cae2cc (diff)
autostart: improvements
Diffstat (limited to 'autostart')
-rwxr-xr-xautostart48
1 files changed, 31 insertions, 17 deletions
diff --git a/autostart b/autostart
index e332498..4e289f7 100755
--- a/autostart
+++ b/autostart
@@ -1,31 +1,38 @@
#!/usr/bin/env zsh
feh --no-xinerama --image-bg black --bg-fill "$HOME/image/MIPS-R3000A-die.jpg" &
+
xset s 0 &
xset b off &
xset +fp $HOME/.fonts &
+
mkdir -p /tmp/pks/.cache /tmp/pks/.ccache /tmp/mutt &
-exec xmodmap $HOME/.Xmodmap &
-exec xbindkeys &
-urxvtd=$(which urxvtd)
-if [[ -x $HOME/.local/bin/urxvtd ]]; then
- exec $HOME/.local/bin/urxvtd -q -f -o &
-elif [[ -x $urxvtd ]]; then
- exec urxvtd -q -f -o &
+xmodmap $HOME/.Xmodmap &
+xbindkeys &
+
+urxvtd -q -f -o &
+
+imwheel &>/dev/null &
+unclutter -idle 5 &
+
+if [[ -x $(which sloppy) ]]; then
+ sloppy &
fi
-exec imwheel &>/dev/null &
-exec unclutter -idle 5 &
-exec $HOME/.local/bin/notification-daemon-launch &
+
+$HOME/.local/bin/notification-daemon-launch &
+
if [[ $RATPOISON == "ratpoison" && -x $(which acpi 2&>/dev/null) ]]; then
- exec $HOME/.local/bin/ratcpi &
+ $HOME/.local/bin/ratcpi &
fi
-exec $HOME/.local/bin/mouse-settings &
+
+$HOME/.local/bin/mouse-settings &
if [[ $(hostname) == "barkley" ]]; then
xmodmap -e "keycode 66 = Shift_L NoSymbol Shift_L"
- gsettings set org.gnome.desktop.interface text-scaling-factor 1.2
- syncthing -no-browser -home=$HOME/.config/syncthing &> $HOME/.config/syncthing/log.txt &
+ if [[ -x $(which gsettings) ]]; then
+ gsettings set org.gnome.desktop.interface text-scaling-factor 1.2
+ fi
fi
if [[ $(hostname) == "bogues" ]]; then
@@ -36,8 +43,15 @@ if [[ $(hostname) == "bogues" ]]; then
fi
if [[ $(hostname) == "bryant" ]]; then
- exec xrandr --output HDMI-2 --rotate right &
- #exec xrandr --output DP-7 --rotate right &
- #exec sudo nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan-0]/GPUTargetFanSpeed=1" &
+ if [[ -f /dev/nvidia0 ]]; then
+ xrandr --output DP-7 --rotate right &
+ sudo nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan-0]/GPUTargetFanSpeed=1" &
+ else
+ xrandr --output HDMI-2 --rotate right &
+ fi
+fi
+
+if [[ -x $(which notmuchfs) ]]; then
+ notmuchfs ~/.notmuchfs -o backing_dir=$HOME/.notmuchfs_backing -o mail_dir=$HOME/.mail -o mutt_2476_workaround
fi