Compare commits

..

2 commits

Author SHA1 Message Date
askiiart
4e78b78914
run vesktop in wayland 2025-03-04 12:05:42 -06:00
askiiart
e67c8c204d
get rid of unnecessary thing for vs code 2025-03-04 12:02:16 -06:00
2 changed files with 7 additions and 3 deletions

View file

@ -68,4 +68,5 @@ end
# run code in wayland natively # run code in wayland natively
# TODO: just add it to the args file instead # TODO: just add it to the args file instead
alias code="code --enable-features=UseOzonePlatform --ozone-platform=wayland" alias code="code --ozone-platform=wayland"
alias vesktop="vesktop --ozone-platform=wayland"

View file

@ -129,9 +129,12 @@ elif command_exists "code-oss"; then
cp $GIT_DIR/vscode/argv.json $HOME/.vscode-oss/argv.json cp $GIT_DIR/vscode/argv.json $HOME/.vscode-oss/argv.json
fi fi
# VS code: run in wayland natively # VS code: run in wayland natively
sudo sed '/^Exec=\/usr\/share\/code\/code\( --new-window\)\? %F$/ s/$/ --enable-features=UseOzonePlatform --ozone-platform=wayland/' -i /usr/share/applications/code.desktop sudo sed '/^Exec=\/usr\/share\/code\/code\( --new-window\)\? %F$/ s/$/ --ozone-platform=wayland/' -i /usr/share/applications/code.desktop
echo "restore.sh done!" # Vesktop: run in wayland natively
sudo sed '/^Exec=\/opt\/Vesktop\/vesktop %U$/ s/$/ --ozone-platform=wayland/' -i /usr/share/applications/vesktop.desktop
# default applications # default applications
xdg-settings set default-web-browser librewolf.desktop xdg-settings set default-web-browser librewolf.desktop
echo "restore.sh done!"