add honkai
This commit is contained in:
parent
e0be54199c
commit
1852ea0868
3 changed files with 13 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -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
|
||||||
|
|
||||||
|
|
3
arch.sh
3
arch.sh
|
@ -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
|
||||||
|
|
10
pacman.d/hooks/honkai-shortcut.hook
Normal file
10
pacman.d/hooks/honkai-shortcut.hook
Normal 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'
|
Loading…
Reference in a new issue