update sway config for better resolution support and stuff
This commit is contained in:
parent
5b050656b1
commit
6088e82ff9
9 changed files with 48 additions and 3 deletions
|
@ -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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue