this post was submitted on 05 Sep 2023
75 points (100.0% liked)

Linux Gaming

15797 readers
1 users here now

Gaming on the GNU/Linux operating system.

Recommended news sources:

Related chat:

Related Communities:

Please be nice to other members. Anyone not being nice will be banned. Keep it fun, respectful and just be awesome to each other.

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] dandroid@dandroid.app 1 points 2 years ago (1 children)

I'll do some reading up on that. I haven't heard of that before.

I need to install the driver from an open source project that I cloned from GitHub. Does that have any impact on if I can do what you are recommending?

Here are the instructions I follow

[โ€“] Illecors@lemmy.cafe 1 points 2 years ago

From what I understand you're running the script posted here, right?

ArchWiki link on pacman hooks;

Manpage link for hook format.

What you need is a file - let's call it stick-of-joy.hook - in /etc/pacman.d/hooks:


[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = linux
[Action]
Description = Install a stick of joy
When = PostTransaction
Exec = /bin/bash -c /path/to/script

Writing this up on the go, so might have missed a syntax error or something. Make sure the script is executable - chmod +x /path/to/script.

You can test it by reinstalling the linux package - pacman -S linux.