From e67c8c204d42cbd25826ab2f80104d191767b1ad Mon Sep 17 00:00:00 2001 From: askiiart Date: Tue, 4 Mar 2025 12:02:16 -0600 Subject: [PATCH 1/2] get rid of unnecessary thing for vs code --- fish/conf.d/aliases.fish | 2 +- restore.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fish/conf.d/aliases.fish b/fish/conf.d/aliases.fish index 89c2565..c515322 100644 --- a/fish/conf.d/aliases.fish +++ b/fish/conf.d/aliases.fish @@ -68,4 +68,4 @@ end # run code in wayland natively # TODO: just add it to the args file instead -alias code="code --enable-features=UseOzonePlatform --ozone-platform=wayland" +alias code="code --ozone-platform=wayland" diff --git a/restore.sh b/restore.sh index d8a3405..0e06e33 100755 --- a/restore.sh +++ b/restore.sh @@ -129,7 +129,7 @@ elif command_exists "code-oss"; then cp $GIT_DIR/vscode/argv.json $HOME/.vscode-oss/argv.json fi # 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!" From 4e78b78914b019e2d13295bc975f1c88cdb1b19d Mon Sep 17 00:00:00 2001 From: askiiart Date: Tue, 4 Mar 2025 12:05:42 -0600 Subject: [PATCH 2/2] run vesktop in wayland --- fish/conf.d/aliases.fish | 1 + restore.sh | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fish/conf.d/aliases.fish b/fish/conf.d/aliases.fish index c515322..76c9e19 100644 --- a/fish/conf.d/aliases.fish +++ b/fish/conf.d/aliases.fish @@ -69,3 +69,4 @@ end # run code in wayland natively # TODO: just add it to the args file instead alias code="code --ozone-platform=wayland" +alias vesktop="vesktop --ozone-platform=wayland" diff --git a/restore.sh b/restore.sh index 0e06e33..e9bb9ae 100755 --- a/restore.sh +++ b/restore.sh @@ -131,7 +131,10 @@ fi # VS code: run in wayland natively 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 xdg-settings set default-web-browser librewolf.desktop + +echo "restore.sh done!"