feat(scripts): new 'rec1' to record screen with wf-recorder

This commit is contained in:
Olivier DOSSMANN 2025-02-27 14:25:27 +01:00
parent 625ea8c879
commit 4a5ad3c88f
2 changed files with 9 additions and 0 deletions

View File

@ -8,3 +8,6 @@ bindsym XF86AudioStop exec playerctl stop # arrêt musique/film/fichier
# Bouton impression écran
bindsym Print exec grim Images/$(date +'%Y-%m-%d-%s_screenshot.jpg')
# Arrête l'enregistrement d'une vidéo avec wf-recorder
bindsym Ctrl+Shift+BackSpace exec killall -s SIGINT wf-recorder

6
bin/rec1 Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# change number by 2 for screen 2
number=1
wf-recorder -o $(swaymsg -t get_outputs |grep "DP"|head -n ${number}|cut -d '"' -f 4) -f ~/screens/$(date +'%Y-%m-%d-%s')_screencast.mkv