1
0
Fork 0

update sway config, enable freesync

This commit is contained in:
Massaki Archambault 2020-09-02 15:47:17 -04:00
parent 9df7c3615d
commit 70ddf4e58d
3 changed files with 15 additions and 10 deletions

13
files/.config/sway/autostart.sh Executable file
View File

@ -0,0 +1,13 @@
#/bin/bash
# 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"
exec ~/bin/sway 2>"$log_stderr" >"$log_stdout"
fi

View File

@ -118,6 +118,7 @@ output $output1 {
# we need to explicitly select the mode, otherwise # we need to explicitly select the mode, otherwise
# sway will select 4k 30Hz # sway will select 4k 30Hz
mode 2560x1440@60Hz mode 2560x1440@60Hz
adaptive_sync on
position 1080 220 position 1080 220
} }

View File

@ -1,13 +1,4 @@
# Autostart sway if we are on tty1 source ~/.config/sway/autostart.sh
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"
exec ~/bin/sway 2>"$log_stderr" >"$log_stdout"
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.
# export PATH=$HOME/bin:/usr/local/bin:$PATH # export PATH=$HOME/bin:/usr/local/bin:$PATH