From ecbcb30f2577350d2b663b5004f5fa4d28274d35 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 27 Oct 2018 20:53:31 +0200 Subject: autostart --- autostart | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) (limited to 'autostart') diff --git a/autostart b/autostart index 83bf0af..32c775d 100755 --- a/autostart +++ b/autostart @@ -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 -- cgit v1.2.3