mirror of
https://git.davidovski.xyz/dot.git
synced 2024-08-15 00:43:28 +00:00
Add cut cbz and zathura configs
This commit is contained in:
parent
28a625400b
commit
bc668b05c4
3 changed files with 8 additions and 4 deletions
|
@ -30,3 +30,5 @@ set selection-clipboard clipboard
|
||||||
set guioptions none
|
set guioptions none
|
||||||
|
|
||||||
set recolor true
|
set recolor true
|
||||||
|
|
||||||
|
set first-page-column 1:1
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/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
|
||||||
|
|
|
@ -9,11 +9,13 @@ width=$(cat $info | grep Width | cut -d' ' -f4)
|
||||||
height=$(cat $info | grep Height | cut -d' ' -f4)
|
height=$(cat $info | grep Height | cut -d' ' -f4)
|
||||||
|
|
||||||
size="${width}x${height}"
|
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
|
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
|
rm $info
|
||||||
|
|
Loading…
Reference in a new issue