1
0
Fork 0
dotfiles/home/dot_local/bin/executable_autostart-sway

13 lines
385 B
Plaintext
Raw Permalink Normal View History

2023-10-02 03:34:08 +00:00
#!/bin/bash
2020-09-02 19:47:17 +00:00
# Autostart sway if we are on tty1
if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
# setup logging
log_stdout="$XDG_RUNTIME_DIR/sway_stdout.log"
log_stderr="$XDG_RUNTIME_DIR/sway_stderr.log"
echo "Redirecting stdout to $log_stdout"
echo "Redirecting stderr to $log_stderr"
2021-04-10 20:25:27 +00:00
exec ~/.local/bin/sway 2>"$log_stderr" >"$log_stdout"
2020-09-02 19:47:17 +00:00
fi