add honkai

This commit is contained in:
Mylloon 2024-05-22 09:59:28 +02:00
parent e0be54199c
commit 1852ea0868
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 13 additions and 1 deletions

View file

@ -158,6 +158,7 @@ sync-arch:
@sudo $(WGET) $(REPO_SRC)/pacman.d/hooks/stop-wine-associations.hook -O /etc/pacman.d/hooks/stop-wine-associations.hook @sudo $(WGET) $(REPO_SRC)/pacman.d/hooks/stop-wine-associations.hook -O /etc/pacman.d/hooks/stop-wine-associations.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/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
@echo "Pacman hooks synced!" @echo "Pacman hooks synced!"
@echo @echo

View file

@ -37,7 +37,8 @@ function main {
# === Add pacman hooks == # === Add pacman hooks ==
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")
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/the-honkers-railway-launcher.desktop
[Action]
Description = Update Honkai launcher desktop entry on package upgrade
When = PostTransaction
Exec = /bin/sh -c 'sudo sed -i "s/Name=The Honkers Railway Launcher/Name=Honkai Star Rail/g" /usr/share/applications/the-honkers-railway-launcher.desktop'