diff options
author | Patrick Simianer <pks@pks.rocks> | 2018-10-27 20:53:31 +0200 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2018-10-27 20:53:31 +0200 |
commit | ecbcb30f2577350d2b663b5004f5fa4d28274d35 (patch) | |
tree | 11492b2d9be8830b690510dfa2f4a30e53ee3591 | |
parent | 3c9c034876bdfb848bb2de51b3d31637be1574eb (diff) |
autostart
-rwxr-xr-x | autostart | 47 |
1 files changed, 24 insertions, 23 deletions
@@ -1,24 +1,25 @@ #!/bin/sh feh --no-xinerama --image-bg black --bg-fill "$HOME/image/MIPS-R3000A-die.jpg" & - -mkdir -p /tmp/pks/.cache /tmp/pks/.ccache /tmp/mutt & - -exec xmodmap ${HOME}/.Xmodmap & -xbindkeys & - -~/.local/bin/urxvtd -q -f -o - -imwheel & -unclutter -idle 5 & - xset s 0 & xset b off & +mkdir -p /tmp/pks/.cache /tmp/pks/.ccache /tmp/mutt & -~/.local/bin/notification-daemon-launch & - -exec ${HOME}/bin/ratcpi & -exec ${HOME}/.local/bin/mouse-settings & +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 & +fi +exec imwheel &>/dev/null & +exec unclutter -idle 5 & +exec $HOME/.local/bin/notification-daemon-launch & +if [[ $RATPOISON == "ratpoison" && -x $(which acpi 2&>/dev/null) ]]; then + exec $HOME/.local/bin/ratcpi & +fi +exec $HOME/.local/bin/mouse-settings & if [[ $(hostname) == "barkley" ]]; then xmodmap -e "keycode 66 = Shift_L NoSymbol Shift_L" @@ -26,16 +27,16 @@ if [[ $(hostname) == "barkley" ]]; then /bin/bash syncthing -no-browser -home=$HOME/.config/syncthing &> $HOME/.config/syncthing/log.txt & fi -if [[ $(hostname) == "bryant" ]]; then - #exec xrandr --output DP-7 --rotate right & - exec xrandr --output HDMI-2 --rotate right & - exec sudo nvidia-settings -a "[gpu:0]/GPUFanControlState=1" -a "[fan-0]/GPUTargetFanSpeed=1" & -fi - if [[ $(hostname) == "bogues" ]]; then - xrandr --output VGA-0 --off & + xrandr --output VGA1 --off & xrandr --output VGA0 --off & + xrandr --output VGA-0 --off & xrandr --output VGA-1 --off & - xrandr --output VGA1 --off & +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" & fi |