dotfiles/.config/waybar/custom/wfrecord-record.sh
2025-12-18 12:09:34 -03:00

9 lines
254 B
Bash

#!/bin/bash
wf-recorder -o $(swaymsg -r -t get_outputs | jq -r '.[] | select(.focused == true).name') -f $HOME/Videos/$(date -Is).mp4 &> /dev/null &
notify-send ' screen cap started'
sleep .1
# send signal to update monitor
pkill -RTMIN+8 waybar