Pacman Hooks for sway without systemd: moved to own wiki page (2 hooks are required now)

robotanarchy 2016-12-29 07:45:39 +00:00
parent 6a699ba710
commit 5ef32c83a9

30
Home.md

@ -163,35 +163,9 @@ $ make
Rotation is not currently supported. This needs to be implemented in WLC. See https://github.com/Cloudef/wlc/issues/86.
### I run an [Arch Linux based distribution without systemd.](https://wiki.parabola.nu/OpenRC) How can I automagically apply the setuid-bit on sway after each upgrade?
### I run an [Arch Linux based distribution without systemd.](https://wiki.parabola.nu/OpenRC) and sway does not start.
Put this [pacman hook](https://wiki.archlinux.org/index.php/Pacman#Hooks) in `/etc/pacman.d/hooks/sway-setuid.hook` (you may need to create the `hooks` folder first):
```
[Trigger]
Operation = Install
Type = Package
Target = sway
[Trigger]
Operation = Upgrade
Type = Package
Target = sway
[Trigger]
Operation = Install
Type = Package
Target = sway-git
[Trigger]
Operation = Upgrade
Type = Package
Target = sway-git
[Action]
Description = Applying setuid-bit to /usr/bin/sway
When = PostTransaction
Exec = /usr/bin/chmod +s /usr/bin/sway
```
Use the hook files provided [here](https://github.com/SirCmpwn/sway/wiki/Sway-without-systemd-on-Arch-Linux).
### How do I configure urxvt transparency?