add vesktop rename
This commit is contained in:
parent
762154df07
commit
910f50ceda
3 changed files with 12 additions and 1 deletions
1
Makefile
1
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
|
||||
|
||||
|
|
2
arch.sh
2
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
|
||||
|
|
10
pacman.d/hooks/vesktop.hook
Normal file
10
pacman.d/hooks/vesktop.hook
Normal 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'
|
Loading…
Reference in a new issue