diff options
author | davidovski <david@davidovski.xyz> | 2023-08-05 17:23:28 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-08-05 17:23:28 +0100 |
commit | 051ed527f64b0d7f400f76244b3d63a7ac98bb70 (patch) | |
tree | 799d0832733536c768e535e92ebeaf8a4c9847bc /scripts | |
parent | 68c93158be4dc92f437e356590a61fbdf9e6dcca (diff) | |
parent | bc668b05c41396e187fe590f03646dadd708d613 (diff) |
Merge branch 'master' of git.cheetah.remote:dot
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/powermenu | 2 | ||||
-rwxr-xr-x | scripts/record_window.sh | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/scripts/powermenu b/scripts/powermenu index 2ce5901..917f369 100755 --- a/scripts/powermenu +++ b/scripts/powermenu @@ -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 diff --git a/scripts/record_window.sh b/scripts/record_window.sh index 841b756..f3cf452 100755 --- a/scripts/record_window.sh +++ b/scripts/record_window.sh @@ -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 |