flozz / asus-keyboard-backlight

Configure the keyboard backlight on ASUS laptops.
Do What The F*ck You Want To Public License
16 stars 3 forks source link

Create asus-kbd-backlight.service #3

Open necrose99 opened 6 years ago

necrose99 commented 6 years ago

systemD unit file to fire up asus backlights

flozz commented 6 years ago

Hello,

The following lines references an /usr/bin/asus-kbd-backlight script that is not provided by this repository:

ExecStart=/usr/bin/asus-kbd-backlight allowusers
ExecStop=/usr/bin/asus-kbd-backlight disallowusers

Also, the only script provided here have no allowusers nor disallowusers arguments.

It seems you confused this software with the one available in the AUR repository that have this script with the those options: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=asus-kbd-backlight

:)

necrose99 commented 6 years ago

basic one , i rigged for bash shell version long long ago.. manual install... , any-case template can be used for the same,

Gentoo-ZH overlay repo uses this repo. to pull , for openrc based.. anycase I can clean it up. any-case tweaking ebuild in own overlay to if /etc/systemd..... exists place in unit , do sym for boot.. based on defacto install could have also added symlinks to /usr/bin/ , however more work... more breakage possible... Point taken....

https://github.com/Gentoo-zh/gentoo-zh/blob/master/app-laptop/asus-keyboard-backlight/asus-keyboard-backlight-0.1.ebuild ,

however just adding a do_systemd_test for /etc/systemd/ , if true , add unit , systemctl enable asus-kbd-backlight , fix manifest hash and done.. /files i can add with new unit,

however figured I'd least offer one back.... to origin repo. , in kind...

if [ -d /etc/systemd/system/ ] ; then #copy unit # Enable units , Start units now... systemctl enable asus-keyboard-backlight systemctl start asus-keyboard-backlight # gentoo Elog message on package install fin... elog "app-laptop/asus-keyboard-backlight & SystemD unit for this utility was installed/Enabled, have a nice day" else elog " app-laptop/asus-keyboard-backlight was installed with Default init. have a nice day" fi