Redirect stderr to logs

This commit is contained in:
crater2150 2023-10-24 17:11:15 +02:00
parent 584c900e84
commit ffd832d066
19 changed files with 31 additions and 5 deletions
barrierc
barriers
blueman-applet
kdeconnect
mpd
new-service
onboard
picom
pipewire-pulse
polkit-auth-agent
pueued
redshift
syncthing
synergys
taralli
touchegg
udiskie
xiccd
xss-lock

View file

@ -8,4 +8,6 @@ if [[ ! -e ${0:a:h}/server ]] then
fi fi
source ${0:a:h:h}/import-env.zsh source ${0:a:h:h}/import-env.zsh
import-env awesome || exit 1 import-env awesome || exit 1
exec 2>&1
exec barrierc --no-daemon $(<${0:a:h}/server) exec barrierc --no-daemon $(<${0:a:h}/server)

View file

@ -1,4 +1,6 @@
#!/bin/zsh #!/bin/zsh
source ${0:a:h:h}/import-env.zsh source ${0:a:h:h}/import-env.zsh
import-env awesome || exit 1 import-env awesome || exit 1
exec 2>&1
exec barriers --no-daemon -c ${XDG_CONFIG_HOME:-$HOME/.config}/Debauchee/home.conf exec barriers --no-daemon -c ${XDG_CONFIG_HOME:-$HOME/.config}/Debauchee/home.conf

View file

@ -1,2 +1,4 @@
#!/bin/zsh #!/bin/zsh
exec 2>&1
exec blueman-applet exec blueman-applet

View file

@ -4,4 +4,6 @@ if ! pgrep -x awesome; then
exit 1 exit 1
fi fi
export DISPLAY=:0 export DISPLAY=:0
exec 2>&1
exec kdeconnect-indicator exec kdeconnect-indicator

View file

@ -1,2 +1,4 @@
#!/bin/sh #!/bin/sh
exec 2>&1
exec mpd --no-daemon exec mpd --no-daemon

View file

@ -10,6 +10,7 @@ ln -s ${XDG_RUNTIME_DIR:-/run/user/$UID}/supervise.$1 $1/supervise
echo 'source ${0:a:h:h}/import-env.zsh' echo 'source ${0:a:h:h}/import-env.zsh'
echo "import-env ${importenv[2]} || exit 1" echo "import-env ${importenv[2]} || exit 1"
fi fi
echo 'exec 2>&1'
echo "exec $*" echo "exec $*"
} > $1/run } > $1/run
chmod +x $1/run chmod +x $1/run

View file

@ -1,2 +1,4 @@
#!/bin/zsh #!/bin/zsh
exec 2>&1
exec onboard exec onboard

View file

@ -1,4 +1,6 @@
#!/bin/zsh #!/bin/zsh
source ${0:A:h:h}/import-env.zsh source ${0:A:h:h}/import-env.zsh
import-env awesome || exit 1 import-env awesome || exit 1
exec 2>&1
exec picom exec picom

View file

@ -1,2 +1,3 @@
#!/bin/sh #!/bin/sh
exec 2>&1
exec pipewire-pulse exec pipewire-pulse

View file

@ -1,2 +1,4 @@
#!/bin/zsh #!/bin/zsh
exec 2>&1
exec /usr/libexec/polkit-gnome-authentication-agent-1 exec /usr/libexec/polkit-gnome-authentication-agent-1

View file

@ -1,2 +1,4 @@
#!/bin/sh #!/bin/sh
exec 2>&1
exec pueued exec pueued

View file

@ -5,4 +5,5 @@ if ! pidof awesome; then
exit exit
fi fi
exec 2>&1
exec redshift-gtk exec redshift-gtk

View file

@ -5,4 +5,3 @@ export HOME="/home/$USERNAME"
exec 2>&1 exec 2>&1
exec syncthing -logflags 0 exec syncthing -logflags 0

View file

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
env > /tmp/env.synergys env > /tmp/env.synergys
exec synergys --enable-crypto --config /home/crater2150/.synergy.conf -f 2>&1 exec synergys --enable-crypto --config /home/crater2150/.synergy.conf -f 2>&1

View file

@ -2,4 +2,6 @@
export DISPLAY=:0 export DISPLAY=:0
export XAUTHORITY=/home/crater2150/.Xauthority export XAUTHORITY=/home/crater2150/.Xauthority
if ! pidof awesome; then sleep 5; exit; fi if ! pidof awesome; then sleep 5; exit; fi
exec 2>&1
exec /home/crater2150/.local/bin/taralli exec /home/crater2150/.local/bin/taralli

View file

@ -1,2 +1,3 @@
#!/bin/zsh #!/bin/zsh
exec 2>&1
exec touchegg exec touchegg

View file

@ -1,2 +1,3 @@
#!/bin/zsh #!/bin/zsh
exec 2>&1
exec udiskie -ant exec udiskie -ant

View file

@ -1,8 +1,7 @@
#!/bin/zsh #!/bin/zsh
if ! pidof awesome; then source ${0:a:h:h}/import-env.zsh
sleep 5 import-env awesome || exit 1
exit
fi
exec 2>&1
exec xiccd exec xiccd

View file

@ -1,4 +1,6 @@
#!/bin/zsh #!/bin/zsh
source ${0:a:h:h}/import-env.zsh source ${0:a:h:h}/import-env.zsh
import-env awesome || exit 1 import-env awesome || exit 1
exec 2>&1
exec xss-lock -l -- xsecurelock-wrapper 2>&1 exec xss-lock -l -- xsecurelock-wrapper 2>&1