-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hi, thanks for the quickshell and plugins. I've been trying to add a widget action to the main bar that starts and stops screen recording with wl-screenrec, something like noctalia shell's.
Steps to Reproduce
- dependencies:
wl-screenrec,slurp,notify-desktop,killall - create a file
~/record.shwith the following:#! /usr/bin/env bash RECORDER=wl-screenrec if [[ $(ps -A|grep $RECORDER) ]] then killall $RECORDER notify-desktop "Stopped Screen Recording" -a $RECORDER else AREA=$(slurp) notify-desktop "Started Screen Recording" -a $RECORDER OUT="$(date -Iminutes|sed 's/[:+-]//g').mp4" $RECORDER -f "$OUT" -g "$AREA" & fi
- make executable:
chmod +x ~/record.sh. - add the script to the left click hook of the Dank Action plugin.
- add the action to the main bar.
- clicking the added widget does nothing.
- reloading the plugin suddenly triggers
slurp, but no recording or notification is created.
System Details
- NixOS 25.11
- Niri 25.08
- DMS 0.6.2
- Dank Action 8715ca3
Metadata
Metadata
Assignees
Labels
No labels