1
0
Fork 0

sway logs redirect

This commit is contained in:
Massaki Archambault 2019-10-19 21:10:09 -04:00
parent 3ee5d282b6
commit 882dd9fd6a
5 changed files with 12 additions and 3 deletions

View File

@ -93,6 +93,9 @@ workspace $ws8 output $output1
workspace $ws9 output $output1 workspace $ws9 output $output1
workspace $ws10 output $output1 workspace $ws10 output $output1
output $output1 { output $output1 {
# we need to explicitly select the mode, otherwise
# sway will select 4k 30Hz
mode 2560x1440@60Hz
position 1080 220 position 1080 220
} }

View File

@ -1 +0,0 @@
/home/marchambault/.config/systemd/user/tmux.service

@ -1 +1 @@
Subproject commit 476f6ca69922c9e67c408ae92dff0eb0ccb8ee51 Subproject commit 42bb2bf48bef881be504278cf5156371b542cf81

View File

@ -1,6 +1,12 @@
# Autostart sway if we are on tty1 # Autostart sway if we are on tty1
if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then 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 fi
# If you come from bash you might have to change your $PATH. # If you come from bash you might have to change your $PATH.

View File

@ -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" openssl x509 -req -days 365 -signkey "$wlroot_rdp_key" -in "$wlroot_rdp_csr" -out "$wlroot_rdp_cert"
fi fi
# start sway
WLR_RDP_TLS_CERT_PATH="$wlroot_rdp_cert" \ WLR_RDP_TLS_CERT_PATH="$wlroot_rdp_cert" \
WLR_RDP_TLS_KEY_PATH="$wlroot_rdp_key" \ WLR_RDP_TLS_KEY_PATH="$wlroot_rdp_key" \
exec /usr/bin/sway $@ exec /usr/bin/sway $@