update sway config for better resolution support and stuff

This commit is contained in:
askiiart 2024-08-08 20:04:10 -05:00
parent 5b050656b1
commit 6088e82ff9
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
9 changed files with 48 additions and 3 deletions

View file

@ -58,6 +58,10 @@ cp -r $HOME/.config/i3/ .
# sway
rm -rf $GIT_DIR/sway
cp -r $HOME/.config/sway/ .
outputs=$(swaymsg -t get_outputs)
width=$(echo $outputs | jq -r .[0].modes.[0].width)
height=$(echo $outputs | jq -r .[0].modes.[0].height)
sed -i "s/set \$lockwall \"swaylock -i ~\/\.config\/sway\/backgrounds\/${width}x${height}\.png\"/set \$lockwall \"swaylock -i ~\/\.config\/sway\/backgrounds\/widthxheight\.png\"/g" $GIT_DIR/sway/config
# greetd (for sway)
if [ -d /etc/greetd ]; then