add vesktop rename

This commit is contained in:
Mylloon 2024-06-21 21:43:14 +02:00
parent 762154df07
commit 910f50ceda
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 12 additions and 1 deletions

View file

@ -159,6 +159,7 @@ sync-arch:
@sudo $(WGET) $(REPO_SRC)/pacman.d/hooks/gnome-terminal-shortcut.hook -O /etc/pacman.d/hooks/gnome-terminal-shortcut.hook @sudo $(WGET) $(REPO_SRC)/pacman.d/hooks/gnome-terminal-shortcut.hook -O /etc/pacman.d/hooks/gnome-terminal-shortcut.hook
@sudo $(WGET) $(REPO_SRC)/pacman.d/hooks/blackbox-shortcut.hook -O /etc/pacman.d/hooks/blackbox-shortcut.hook @sudo $(WGET) $(REPO_SRC)/pacman.d/hooks/blackbox-shortcut.hook -O /etc/pacman.d/hooks/blackbox-shortcut.hook
@sudo $(WGET) $(REPO_SRC)/pacman.d/hooks/honkai-shortcut.hook -O /etc/pacman.d/hooks/honkai-shortcut.hook @sudo $(WGET) $(REPO_SRC)/pacman.d/hooks/honkai-shortcut.hook -O /etc/pacman.d/hooks/honkai-shortcut.hook
@sudo $(WGET) $(REPO_SRC)/pacman.d/hooks/vesktop.hook -O /etc/pacman.d/hooks/vesktop.hook
@echo "Pacman hooks synced!" @echo "Pacman hooks synced!"
@echo @echo

View file

@ -38,7 +38,7 @@ function main {
sudo mkdir -p /etc/pacman.d/hooks sudo mkdir -p /etc/pacman.d/hooks
local hooks local hooks
hooks=("stop-wine-associations" "gnome-terminal-shortcut" "blackbox-shortcut" hooks=("stop-wine-associations" "gnome-terminal-shortcut" "blackbox-shortcut"
"honkai-shortcut") "honkai-shortcut" "vesktop")
for hook in "${hooks[@]}" for hook in "${hooks[@]}"
do do
sudo wget -q --show-progress ${repo}/pacman.d/hooks/"$hook".hook -O /etc/pacman.d/hooks/"$hook".hook sudo wget -q --show-progress ${repo}/pacman.d/hooks/"$hook".hook -O /etc/pacman.d/hooks/"$hook".hook

View file

@ -0,0 +1,10 @@
[Trigger]
Operation = Install
Operation = Upgrade
Type = Path
Target = /usr/share/applications/vesktop.desktop
[Action]
Description = Update Vesktop desktop entry on package upgrade
When = PostTransaction
Exec = /bin/sh -c 'sudo sed -i "s/Name=Vesktop/NName=Discord/g" /usr/share/applications/vesktop.desktop'