Add cut cbz and zathura configs

This commit is contained in:
davidovski 2023-07-27 02:29:40 +02:00
parent 28a625400b
commit bc668b05c4
3 changed files with 8 additions and 4 deletions

View file

@ -30,3 +30,5 @@ set selection-clipboard clipboard
set guioptions none
set recolor true
set first-page-column 1:1

View file

@ -1,3 +1,3 @@
#!/bin/sh
printf "pm-suspend reboot poweroff" | rofi -dmenu -p "power" | xargs -r
printf "%s\n" "pm-suspend" "pm-hibernate" "reboot" "poweroff" | rofi -dmenu -p "power" | xargs -r

View file

@ -9,11 +9,13 @@ width=$(cat $info | grep Width | cut -d' ' -f4)
height=$(cat $info | grep Height | cut -d' ' -f4)
size="${width}x${height}"
position=+$(echo $geom | cut -d'+' -f2- | sed "s/+/,/g")
x=$(cat $info | grep "Absolute upper-left X" | cut -d' ' -f7)
y=$(cat $info | grep "Absolute upper-left Y" | cut -d' ' -f7)
position="+$x,$y"
filename=$(date +"$HOME/pics/screenshot/%F_%T.mp4")
filename=$(date +"%F_%T.mp4")
echo $size and $position
ffmpeg -y -f x11grab -video_size $size -i $position $filename
ffmpeg -y -f x11grab -video_size $size -i "$position" $filename
rm $info