diff options
author | Andy Brennan | 2023-02-06 00:54:31 -0700 |
---|---|---|
committer | Andy Brennan | 2023-02-06 00:59:25 -0700 |
commit | 613c9eaf5d7bcd87c87fff1b6e77dc49d50392c7 (patch) | |
tree | 3ab587b9bcd2963dad7c4ce5596992b751357f90 | |
download | aur-613c9eaf5d7bcd87c87fff1b6e77dc49d50392c7.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | 98-steelseries.rules | 6 | ||||
-rw-r--r-- | PKGBUILD | 72 | ||||
-rw-r--r-- | apex-tux.service | 10 | ||||
-rw-r--r-- | settings.toml | 37 |
5 files changed, 150 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0b8fb70bdf0f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = apex-tux-git + pkgdesc = Support for Steelseries Apex keyboard OLED screens + pkgver = r25.17f41f5 + pkgrel = 1 + url = https://github.com/not-jan/apex-tux + arch = x86_64 + license = Unlicense + makedepends = git + makedepends = cargo-nightly + depends = libstatgrab + depends = libusb + depends = dbus + provides = apex-tux + conflicts = apex-tux + backup = etc/apex-tux/settings.toml + source = git+https://github.com/brennana/apex-tux.git#branch=stats-provider + source = settings.toml + source = 98-steelseries.rules + source = apex-tux.service + sha256sums = SKIP + sha256sums = 14ef44861b2487852e88e91de89feb892cc8a89d5290d3ee07d903666af92f20 + sha256sums = ca08475ae39f3ee111e7363829f2bdce9e7ae0bfacd0a481009fc363308ddad2 + sha256sums = 761cef629df24b01e92926590daa31aa0c562f5ffc09a390be8434085d6d7b93 + +pkgname = apex-tux-git diff --git a/98-steelseries.rules b/98-steelseries.rules new file mode 100644 index 000000000000..40a0dbabccbc --- /dev/null +++ b/98-steelseries.rules @@ -0,0 +1,6 @@ +SUBSYSTEM=="input", GROUP="input", MODE="0666" +SUBSYSTEM=="usb", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1618", MODE="0666", GROUP="plugdev" +KERNEL=="hidraw*", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1618", MODE="0666", GROUP="plugdev" + +SUBSYSTEM=="usb", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1612", MODE="0666", GROUP="plugdev" +KERNEL=="hidraw*", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1612", MODE="0666", GROUP="plugdev" diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cfdda59e6c87 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,72 @@ +# Maintainer: Andy Brennan <andy at beiwy dot com> +pkgname=apex-tux-git +pkgver=r25.17f41f5 +pkgrel=1 +pkgdesc="Support for Steelseries Apex keyboard OLED screens" +arch=('x86_64') +url="https://github.com/not-jan/apex-tux" +license=('Unlicense') +groups=() +depends=('libstatgrab' 'libusb' 'dbus') +makedepends=('git' 'cargo-nightly') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +replaces=() +backup=("etc/${pkgname%-git}/settings.toml") +options=() +install= +source=( + 'git+https://github.com/brennana/apex-tux.git#branch=stats-provider' + 'settings.toml' + '98-steelseries.rules' + 'apex-tux.service' +) +noextract=() +sha256sums=( + 'SKIP' + '14ef44861b2487852e88e91de89feb892cc8a89d5290d3ee07d903666af92f20' + 'ca08475ae39f3ee111e7363829f2bdce9e7ae0bfacd0a481009fc363308ddad2' + '761cef629df24b01e92926590daa31aa0c562f5ffc09a390be8434085d6d7b93' +) + +prepare() { + cd "$srcdir/${pkgname%-git}" + + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +pkgver() { + cd "$srcdir/${pkgname%-git}" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${pkgname%-git}" + + cargo build --frozen --release --features sysinfo +} + +# check() { +# cd "$srcdir/${pkgname%-git}" +# +# cargo test --frozen --all-features +# } + +package() { + mkdir -p "$pkgdir/etc/udev/rules.d" + mkdir -p "$pkgdir/etc/${pkgname%-git}" + mkdir -p "$pkgdir/usr/lib/systemd/user" + + cd "$srcdir" + + cp apex-tux.service "$pkgdir/usr/lib/systemd/user" + cp 98-steelseries.rules "$pkgdir/etc/udev/rules.d" + cp settings.toml "$pkgdir/etc/${pkgname%-git}" + + cd "$srcdir/${pkgname%-git}" + + mkdir -p "$pkgdir/usr/bin" + + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}" +} diff --git a/apex-tux.service b/apex-tux.service new file mode 100644 index 000000000000..0946b26fbdf1 --- /dev/null +++ b/apex-tux.service @@ -0,0 +1,10 @@ +[Unit] +Description=Steelseries Apex OLED Support + +[Service] +Type=simple +WorkingDirectory=/etc/apex-tux +ExecStart=/usr/bin/apex-tux + +[Install] +WantedBy=default.target diff --git a/settings.toml b/settings.toml new file mode 100644 index 000000000000..97199465b40b --- /dev/null +++ b/settings.toml @@ -0,0 +1,37 @@ +[clock] +enabled = true +# Set this to the highest priority so it will start with the clock +# priority = 1 +# Enables a twelve hour clock instead of the 24hr one +# Defaults to your local format if unset +# twelve_hour = false + +[mpris2] +enabled = true +# Set this so web browsers like Firefox or Chrome don't steal the focus of your real music player +# You can check what to put here by using tools like D-Feet +# preferred_player = "Lollypop" + +[coindesk] +enabled = false +# Valid choices are "gbp", "usd" and "eur" +# Default is USD +# currency = "eur" + +[sysinfo] +enabled = true +# The polling interval for system stats in milliseconds. +polling_interval = 1500 +# The maximum value for the net I/O stat bar (in MiB), used for scaling its fill +# net_load_max = 100 +# The maximum value for the cpu frequency stat bar (in GHz), used for scaling its fill +# cpu_frequency_max = 7 +# The maximum value for the temperature stat bar (in degC), used for scaling its fill +# temperature_max = 100 +# Network interface name used in network I/O stat bar +# To find values for this config, use the `ip link` command +# net_interface_name = "eth0" +# hwmon sensor array & sensor name used in temperature stat bar +# To find values for these configs, use the `sensors` command +# hwmon_name = "asus_wmi_sensors" +# hwmon_sensor_name = "CPU Temperature" |