Revamp screenshots and video recordings
This commit is contained in:
parent
ed2a839d67
commit
1416ac9c5a
3 changed files with 6 additions and 3 deletions
|
@ -83,8 +83,8 @@ bindsym $mod+Return exec ${host.get('terminal', 'alacritty')}
|
||||||
bindsym $mod+d exec wofi --show drun
|
bindsym $mod+d exec wofi --show drun
|
||||||
bindsym $mod+Shift+d exec wofi --show run
|
bindsym $mod+Shift+d exec wofi --show run
|
||||||
bindsym $mod+p exec wofi-pass
|
bindsym $mod+p exec wofi-pass
|
||||||
bindsym $mod+Shift+s exec grimshot --notify save window
|
bindsym $mod+Shift+s exec wl-copy < "$(grimshot --notify save window)"
|
||||||
bindsym $mod+Ctrl+s exec grimshot --notify save area
|
bindsym $mod+Ctrl+s exec wl-copy < "$(grimshot --notify save area)"
|
||||||
|
|
||||||
bindsym $mod+$kleft focus left
|
bindsym $mod+$kleft focus left
|
||||||
bindsym $mod+$kdown focus down
|
bindsym $mod+$kdown focus down
|
||||||
|
|
|
@ -6,3 +6,4 @@ XDG_DOCUMENTS_DIR="$HOME/documents"
|
||||||
XDG_MUSIC_DIR="$HOME/music"
|
XDG_MUSIC_DIR="$HOME/music"
|
||||||
XDG_PICTURES_DIR="$HOME/pictures"
|
XDG_PICTURES_DIR="$HOME/pictures"
|
||||||
XDG_VIDEOS_DIR="$HOME/videos"
|
XDG_VIDEOS_DIR="$HOME/videos"
|
||||||
|
XDG_SCREENSHOTS_DIR="$HOME/pictures/screenshots"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/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"
|
wf-recorder -g "$(slurp -o)" -D -F "format=yuv420p" -f "$outfile"
|
||||||
|
|
Loading…
Add table
Reference in a new issue