sway logs redirect
This commit is contained in:
parent
3ee5d282b6
commit
882dd9fd6a
|
@ -93,6 +93,9 @@ workspace $ws8 output $output1
|
|||
workspace $ws9 output $output1
|
||||
workspace $ws10 output $output1
|
||||
output $output1 {
|
||||
# we need to explicitly select the mode, otherwise
|
||||
# sway will select 4k 30Hz
|
||||
mode 2560x1440@60Hz
|
||||
position 1080 220
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
/home/marchambault/.config/systemd/user/tmux.service
|
|
@ -1 +1 @@
|
|||
Subproject commit 476f6ca69922c9e67c408ae92dff0eb0ccb8ee51
|
||||
Subproject commit 42bb2bf48bef881be504278cf5156371b542cf81
|
|
@ -1,6 +1,12 @@
|
|||
# Autostart sway if we are on tty1
|
||||
if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||
exec ~/bin/sway
|
||||
# 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"
|
||||
|
||||
exec ~/bin/sway 2>"$log_stderr" >"$log_stdout"
|
||||
fi
|
||||
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
|
|
|
@ -57,6 +57,7 @@ if [[ ! -e "$wlroot_rdp_cert" ]] || [[ ! -e "$wlroot_rdp_key" ]]; then
|
|||
openssl x509 -req -days 365 -signkey "$wlroot_rdp_key" -in "$wlroot_rdp_csr" -out "$wlroot_rdp_cert"
|
||||
fi
|
||||
|
||||
# start sway
|
||||
WLR_RDP_TLS_CERT_PATH="$wlroot_rdp_cert" \
|
||||
WLR_RDP_TLS_KEY_PATH="$wlroot_rdp_key" \
|
||||
exec /usr/bin/sway $@
|
||||
|
|
Loading…
Reference in New Issue