Package Details: swhkd-git 1.2.1.r70.g3db287e-1

Git Clone URL: (read-only, click to copy)
Package Base: swhkd-git
Description: Display server-independent hotkey daemon inspired by sxhkd
Upstream URL:
Keywords: wayland x11 xorg
Licenses: BSD
Conflicts: swhkd
Provides: swhkd
Submitter: Shinyzenith
Maintainer: eclairevoyant
Last Packager: eclairevoyant
Votes: 9
Popularity: 0.000652
First Submitted: 2022-02-08 17:21 (UTC)
Last Updated: 2024-02-25 01:26 (UTC)

Latest Comments

dreieck commented on 2023-06-21 11:08 (UTC)

Please add provides=("swhkd=${pkgver}"), and add swhkd to the conflicts array.

Thanks for maintaining!

eclairevoyant commented on 2023-02-16 00:12 (UTC)

conflicts should be changed to conflicts=('swhkd'), and this package should provide the same. Also, make should not be part of the makedepends

qubidt commented on 2022-09-28 17:33 (UTC) (edited on 2022-09-28 17:47 (UTC) by qubidt)

might be nice to add the vim-plugin to the package:

diff --git a/PKGBUILD b/PKGBUILD
index 7560665..c1654ed 100644
@@ -4,8 +4,8 @@

 pkgdesc="A display server independent hotkey daemon inspired by sxhkd."
@@ -13,8 +13,10 @@ license=("BSD")
 makedepends=("rustup" "make" "git" "scdoc")
+        "${_pkgname}-vim::git+${url}-vim.git")
+            "SKIP")

    cd "$_pkgname"
@@ -31,9 +33,15 @@ package() {

    install -Dm 644 ./docs/*.1.gz -t "$pkgdir/usr/share/man/man1/"
    install -Dm 644 ./docs/*.5.gz -t "$pkgdir/usr/share/man/man5/"
+   cd "${srcdir}/${_pkgname}-vim"
+   for i in ftdetect ftplugin indent syntax; do
+       install -Dm644 "$i/${_pkgname}.vim" \
+           "${pkgdir}/usr/share/vim/vimfiles/$i/${_pkgname}.vim"
+   done

 pkgver() {
    cd $_pkgname
-   echo "$(grep "^version =" Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
+   git describe --long --tags --match'=[0-9]*' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'

(also fixed the pkgver func)

Shinyzenith commented on 2022-05-27 13:55 (UTC)

@skerit No, it's a -git package so regardless of the version tagged in the PKGBUILD, you're on the latest commit.

skerit commented on 2022-05-27 10:26 (UTC)

The current installed version is actually, even though this still says Do you have to manually update the version each time there is a commit? :o

Shinyzenith commented on 2022-03-20 09:03 (UTC)

@murlakatamenka Done!

murlakatamenka commented on 2022-03-20 08:12 (UTC) (edited on 2022-03-20 08:16 (UTC) by murlakatamenka)

Current PKGBUILD breaks permissions of /etc/polkit-1/rules.d - see polkit's PKGBUILD

Fix them after calling make:

chmod 750   /etc/polkit-1/rules.d
chown 0:102 /etc/polkit-1/rules.d

Shinyzenith commented on 2022-02-08 17:26 (UTC)

Since this is a git package, please do not mark this as out-of-date unless I forget to update it accordingly for any breaking changes.