Grant CAP_SYS_NICE to the sway binary

This commit is contained in:
Antonin Décimo 2022-06-02 13:57:53 +02:00
parent 2461b29b89
commit ad76ad41fc
2 changed files with 9 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# Contributor: Antonin Décimo <antonin dot decimo at gmail dot com>
pkgname=sway-git
_pkgname=sway
pkgver=r6891.3dffe7f3
pkgver=r6934.251a648e
pkgrel=1
license=("MIT")
pkgdesc="Tiling Wayland compositor and replacement for the i3 window manager"
@ -46,6 +46,7 @@ sha512sums=('SKIP'
provides=("sway")
conflicts=("sway")
options=(debug)
install=sway.install
pkgver() {
cd "$_pkgname"

7
sway.install Normal file
View file

@ -0,0 +1,7 @@
post_install() {
post_upgrade
}
post_upgrade() {
setcap cap_sys_nice+eip usr/bin/sway
}