diff --git a/.SRCINFO b/.SRCINFO index 4d2bc1f..b19de4d 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = ayn-odin2-conf pkgdesc = Odin 2 customizations pkgver = 1.0 - pkgrel = 1 + pkgrel = 2 arch = any license = GPL source = 80-no-wifi-powersave.conf diff --git a/99-ayn-odin2.rules b/99-ayn-odin2.rules new file mode 100644 index 0000000..57b8900 --- /dev/null +++ b/99-ayn-odin2.rules @@ -0,0 +1 @@ +SUBSYSTEM=="input", ATTRS{name}=="Ayn Odin2 Gamepad", MODE="0666", ENV{ID_INPUT_MOUSE}="0", ENV{ID_INPUT_JOYSTICK}="1" diff --git a/PKGBUILD b/PKGBUILD index afa2967..485a1c9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ pkgname=ayn-odin2-conf pkgver=1.0 -pkgrel=1 +pkgrel=2 pkgdesc="Odin 2 customizations" arch=('any') license=('GPL') @@ -10,4 +10,7 @@ sha256sums=('SKIP') package() { # Install the configuration file install -Dm644 "$srcdir"/80-no-wifi-powersave.conf "${pkgdir}/etc/NetworkManager/conf.d/80-no-wifi-powersave.conf" + install -Dm644 "$srcdir"/no-suspend.conf "${pkgdir}/etc/systemd/sleep.conf.d/no-suspend.conf" + install -Dm644 "$srcdir"/power-key-lock.conf "${pkgdir}/etc/systemd/logind.conf.d/power-key-lock.conf" + install -Dm644 "$srcdir"/99-ayn-odin2.rules "${pkgdir}/etc/udev/rules.d/99-ayn-odin2.rules" } diff --git a/no-suspend.conf b/no-suspend.conf new file mode 100644 index 0000000..78f364f --- /dev/null +++ b/no-suspend.conf @@ -0,0 +1,4 @@ +[Sleep] +AllowSuspend=no +AllowHibernation=no +AllowSuspendThenHibernate=no diff --git a/power-key-lock.conf b/power-key-lock.conf new file mode 100644 index 0000000..d81d997 --- /dev/null +++ b/power-key-lock.conf @@ -0,0 +1,2 @@ +[Login] +HandlePowerKey=lock