Revamp screenshots and video recordings

This commit is contained in:
Adam Gausmann 2023-05-20 00:46:32 -05:00
parent ed2a839d67
commit 1416ac9c5a
3 changed files with 6 additions and 3 deletions

View file

@ -83,8 +83,8 @@ bindsym $mod+Return exec ${host.get('terminal', 'alacritty')}
bindsym $mod+d exec wofi --show drun
bindsym $mod+Shift+d exec wofi --show run
bindsym $mod+p exec wofi-pass
bindsym $mod+Shift+s exec grimshot --notify save window
bindsym $mod+Ctrl+s exec grimshot --notify save area
bindsym $mod+Shift+s exec wl-copy < "$(grimshot --notify save window)"
bindsym $mod+Ctrl+s exec wl-copy < "$(grimshot --notify save area)"
bindsym $mod+$kleft focus left
bindsym $mod+$kdown focus down

View file

@ -6,3 +6,4 @@ XDG_DOCUMENTS_DIR="$HOME/documents"
XDG_MUSIC_DIR="$HOME/music"
XDG_PICTURES_DIR="$HOME/pictures"
XDG_VIDEOS_DIR="$HOME/videos"
XDG_SCREENSHOTS_DIR="$HOME/pictures/screenshots"

View file

@ -1,5 +1,7 @@
#!/bin/sh
outfile="$(date +"%Y-%m-%d %T").mkv"
outdir="$(xdg-user-dir VIDEOS)/recordings"
outfile="$outdir/$(date +"%Y-%m-%d %T").mkv"
mkdir -p "$outdir"
wf-recorder -g "$(slurp -o)" -D -F "format=yuv420p" -f "$outfile"