From 910f50cedaeb4785703de1563d51e1f9b8d6816b Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 21 Jun 2024 21:43:14 +0200 Subject: [PATCH] add vesktop rename --- Makefile | 1 + arch.sh | 2 +- pacman.d/hooks/vesktop.hook | 10 ++++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 pacman.d/hooks/vesktop.hook diff --git a/Makefile b/Makefile index f2e2fe0..a73c75c 100644 --- a/Makefile +++ b/Makefile @@ -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/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/vesktop.hook -O /etc/pacman.d/hooks/vesktop.hook @echo "Pacman hooks synced!" @echo diff --git a/arch.sh b/arch.sh index ed96516..bda91c1 100644 --- a/arch.sh +++ b/arch.sh @@ -38,7 +38,7 @@ function main { sudo mkdir -p /etc/pacman.d/hooks local hooks hooks=("stop-wine-associations" "gnome-terminal-shortcut" "blackbox-shortcut" - "honkai-shortcut") + "honkai-shortcut" "vesktop") for hook in "${hooks[@]}" do sudo wget -q --show-progress ${repo}/pacman.d/hooks/"$hook".hook -O /etc/pacman.d/hooks/"$hook".hook diff --git a/pacman.d/hooks/vesktop.hook b/pacman.d/hooks/vesktop.hook new file mode 100644 index 0000000..bdf11ca --- /dev/null +++ b/pacman.d/hooks/vesktop.hook @@ -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'