update sway config, enable freesync
This commit is contained in:
parent
9df7c3615d
commit
70ddf4e58d
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
11
files/.zshrc
11
files/.zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue