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

@ -42,6 +42,10 @@ cp -r $GIT_DIR/i3 $HOME/.config/
# sway
rm -rf $HOME/.config/sway
cp -r $GIT_DIR/sway $HOME/.config/
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\/widthxheight\.png\"/set \$lockwall \"swaylock -i ~\/\.config\/sway\/backgrounds\/${width}x${height}\.png\"/g" $HOME/.config/sway/config
# greetd (for sway)
if [ -d /etc/greetd ]; then
@ -107,6 +111,9 @@ for dir in $(find . -mindepth 1 -maxdepth 1 -type d -name "*.*"); do
done
done
# WezTerm
wezterm shell-completion --shell fish > ~/.config/fish/completions/wezterm.fish
# VS code
mkdir -p $HOME/.config/Code/User/
mkdir -p $HOME/.vscode/