Skip to content

Wayland tools

See also Useful add ons for sway

Clipboards

wayland-clipboard

Ubuntu eoan packaged wl-clipboard 1.0 won't work with sway 1.2

Build and install:

cd ~/projects/wayland/wl-clipboard
gup
rm -rf build; meson build && ninja -C build && sudo ninja -C build install

Lock screen

systemd-lock-handler

swayidle / swaylock don't handle locking on lid close events but systemd-lock-handler can handle those.

Import key from Hugo Osvaldo Barrera <hugo@whynothugo.nl>:

gpg --keyserver keyserver.ubuntu.com --search-keys 7880733B9D062837

Install:

pamac install systemd-lock-handler
systemctl --user enable --now systemd-lock-handler.service

Then add ~/.config/systemd/user/lockscreen.service (see dotfiles) and enable it

systemctl --user enable lockscreen.service

Enter lock.target with loginctl lock-session

swaylock

  • swaylock
  • swaylock-effects
    • Swaylock, with fancy effects
    • Comes pre-installed with Manjaro sway edition
    • Last release 2023-01

Replace swaylock-effects with swaylock:

sudo pacman -S swayloc

Issues:

swayidle

Libappindicator tray

Electron apps

from Libappindicator tray #21:

You need libappindicator-gtk3 (added to AUR package) and launch apps with env XDG_CURRENT_DESKTOP=Unity slack

Notifications

Sway notification center

Mako

Notification daemon

Battery warning notifications

Screenshots with grim + slurp

grim

apt install grim slurp

grim -g "$(slurp)" /tmp/s.png

Screencast / screen recording

Arch wiki: Screen recording

wf-recorder

wf-recorder is a utility program for screen recording of wlroots-based compositors

Install:

 git clone https://github.com/ammen99/wf-recorder.git && cd wf-recorder
 sudo apt install ocl-icd-opencl-dev libavdevice-dev
 meson build --prefix=/usr --buildtype=release
 ninja -C build

green-recorder

Debug input events

sudo libinput debug-events