diff --git a/files/.config/sway/config b/files/.config/sway/config index e3ab15e..670f163 100644 --- a/files/.config/sway/config +++ b/files/.config/sway/config @@ -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 } diff --git a/files/.config/systemd/user/multi-user.target.wants/tmux.service b/files/.config/systemd/user/multi-user.target.wants/tmux.service deleted file mode 120000 index 6ae3bc7..0000000 --- a/files/.config/systemd/user/multi-user.target.wants/tmux.service +++ /dev/null @@ -1 +0,0 @@ -/home/marchambault/.config/systemd/user/tmux.service \ No newline at end of file diff --git a/files/.tmux/plugins/tpm b/files/.tmux/plugins/tpm index 476f6ca..42bb2bf 160000 --- a/files/.tmux/plugins/tpm +++ b/files/.tmux/plugins/tpm @@ -1 +1 @@ -Subproject commit 476f6ca69922c9e67c408ae92dff0eb0ccb8ee51 +Subproject commit 42bb2bf48bef881be504278cf5156371b542cf81 diff --git a/files/.zshrc b/files/.zshrc index 086f8ae..c5f1c0a 100644 --- a/files/.zshrc +++ b/files/.zshrc @@ -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. diff --git a/files/bin/sway b/files/bin/sway index 2d8d593..802d7b5 100755 --- a/files/bin/sway +++ b/files/bin/sway @@ -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 $@