From 28a625400b987e864c5a5dc76e77998f8010d8fa Mon Sep 17 00:00:00 2001 From: davidovski Date: Fri, 21 Jul 2023 11:28:17 +0200 Subject: caps lock is now backspace --- config/sx/sxrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/sx/sxrc b/config/sx/sxrc index f27b52a..ee19f27 100755 --- a/config/sx/sxrc +++ b/config/sx/sxrc @@ -1,3 +1,4 @@ -setxkbmap -option caps:none +setxkbmap -option caps:backspace +xmodmap -e "clear Lock" exec bspwm -- cgit v1.2.1 From bc668b05c41396e187fe590f03646dadd708d613 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 27 Jul 2023 02:29:40 +0200 Subject: Add cut cbz and zathura configs --- config/zathura/zathurarc | 2 ++ scripts/powermenu | 2 +- scripts/record_window.sh | 8 +++++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/config/zathura/zathurarc b/config/zathura/zathurarc index 5a0717d..8fc40d8 100644 --- a/config/zathura/zathurarc +++ b/config/zathura/zathurarc @@ -30,3 +30,5 @@ set selection-clipboard clipboard set guioptions none set recolor true + +set first-page-column 1:1 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 -- cgit v1.2.1