diff --git a/README.md b/README.md index 67d3345..ca747b7 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ For example: Asus laptop extras, ThinkPad ACPI Laptop Extras, etc. ## Usage: Execute the script as a root user: ``` -/usr/bin/battery_status_led.sh +/usr/bin/battery-status-led.sh ``` Or start with systemd: ``` -systemctl start battery_status_led -systemctl enable battery_status_led +systemctl start battery-status-led +systemctl enable battery-status-led ``` The LED device can be changed by editing the systemd service file's line: @@ -29,18 +29,18 @@ Environment="BATTERY_STATUS_LED_DEV=/sys/class/leds/input4\:\:capslock" ## Manual install on gentoo: ``` cd DIR -git clone https://github.com/dmatetelki/battery_status_led +git clone https://github.com/dmatetelki/battery-status-led cd /usr/local/portage/app-misc/ -ln -s DIR/battery_status_led/app-misc/battery_status_led battery_status_led -ebuild battery_status_led-0.1.ebuild digest -emerge battery_status_led +ln -s DIR/battery-status-led/app-misc/battery-status-led battery-status-led +ebuild battery-status-led-0.1.ebuild digest +emerge battery-status-led ``` ## Creating a debian package and installing it: ``` cd DIR -git clone https://github.com/dmatetelki/battery_status_led -cd battery_status_led/debian +git clone https://github.com/dmatetelki/battery-status-led +cd battery-status-led/debian ./package.deb sudo dpkg -i ./batterystatusled_0.1-1.deb ``` @@ -48,10 +48,10 @@ sudo dpkg -i ./batterystatusled_0.1-1.deb ## Creating RPM package and installing it: ``` cd DIR -git clone https://github.com/dmatetelki/battery_status_led -cd battery_status_led/redhat +git clone https://github.com/dmatetelki/battery-status-led +cd battery-status-led/redhat ./package.rpm -sudo rpm -i ./battery_status_led-0.1-1.noarch.rpm +sudo rpm -i ./battery-status-led-0.1-1.noarch.rpm ``` ## Note: diff --git a/app-misc/battery-status-led/battery-status-led-0.1.ebuild b/app-misc/battery-status-led/battery-status-led-0.1.ebuild index 700a5a4..006ed03 100644 --- a/app-misc/battery-status-led/battery-status-led-0.1.ebuild +++ b/app-misc/battery-status-led/battery-status-led-0.1.ebuild @@ -6,9 +6,9 @@ EAPI=6 inherit git-r3 systemd linux-info DESCRIPTION="Battery (low/critical) status indication by making a (the capslock) LED blink" -HOMEPAGE="https://github.com/dmatetelki/battery_status_led" +HOMEPAGE="https://github.com/dmatetelki/battery-status-led" SRC_URI="" -EGIT_REPO_URI="https://github.com/dmatetelki/battery_status_led" +EGIT_REPO_URI="https://github.com/dmatetelki/battery-status-led" LICENSE="GPL-3" SLOT="0" diff --git a/battery-status-led b/battery-status-led index 64445c7..5bf6a4d 100755 --- a/battery-status-led +++ b/battery-status-led @@ -2,19 +2,19 @@ # Copyright 2018 Denes Matetelki -# This file is part of battery_status_led. +# This file is part of battery-status-led. -# battery_status_led is free software: you can redistribute it and/or modify it +# battery-status-led is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License v3 as published by the Free # Software Foundation. -# battery_status_led is distributed in the hope that it will be useful, but +# battery-status-led is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License v3 for # more details. # You should have received a copy of the GNU General Public License v3 along -# with battery_status_led. If not, see +# with battery-status-led. If not, see # https://www.gnu.org/licenses/gpl-3.0.html. # limits in percentages diff --git a/battery-status-led.1 b/battery-status-led.1 index 0d8512e..3eb3762 100644 --- a/battery-status-led.1 +++ b/battery-status-led.1 @@ -21,7 +21,7 @@ Denes Matetelki .SH SEE ALSO -Homepage at: +Homepage at: .br Copyright © 2018 Denes Matetelki. diff --git a/battery-status-led.service b/battery-status-led.service index 3c2b14c..5096372 100644 --- a/battery-status-led.service +++ b/battery-status-led.service @@ -3,7 +3,7 @@ Description=Battery monitoring on CapsLock LED [Service] Environment="BATTERY_STATUS_LED_DEV=/sys/class/leds/input4\:\:capslock" -ExecStart="/usr/bin/battery_status_led.sh" +ExecStart="/usr/bin/battery-status-led.sh" Type=idle [Install] diff --git a/debian/package-deb.sh b/debian/package-deb.sh index 98c3ecb..af09efc 100755 --- a/debian/package-deb.sh +++ b/debian/package-deb.sh @@ -2,19 +2,19 @@ # Copyright 2018 Denes Matetelki -# This file is part of battery_status_led. +# This file is part of battery-status-led. -# battery_status_led is free software: you can redistribute it and/or modify it +# battery-status-led is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License v3 as published by the Free # Software Foundation. -# battery_status_led is distributed in the hope that it will be useful, but +# battery-status-led is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License v3 for # more details. # You should have received a copy of the GNU General Public License v3 along -# with battery_status_led. If not, see +# with battery-status-led. If not, see # https://www.gnu.org/licenses/gpl-3.0.html. NAME="battery-status-led"