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:
- Doesn't unlock after I typed the correct password
- Culprit could be consecutive failed login attempts
(
/etc/security/faillock.conf
hasdeny = 3
as default)
- Culprit could be consecutive failed login attempts
(
swayidle
-
Logind stuff in swayidle could be replaced with systemd-inhibit Build:
cd ~/projects/wayland/sway/swayidle gup meson --reconfigure build && ninja -C build && sudo ninja -C build install
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
- Reddit thread
- poweralertd: No config possible
- swaynag-battery: Configurable
- batsignal
Screenshots with grim + slurp
apt install grim slurp
grim -g "$(slurp)" /tmp/s.png
Screencast / 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
- green-recorder
- Forked from green-recorder unclear who's maintaining this project
- Installable from ppa
- Python2 :/
Debug input events
sudo libinput debug-events