diff --git a/scripts/pdf-page-count b/scripts/pdf-page-count new file mode 100755 index 0000000..06ecfae --- /dev/null +++ b/scripts/pdf-page-count @@ -0,0 +1,16 @@ +#!/bin/sh + +if [[ -n $1 ]]; then + echo "File contains $(pdfinfo $1 | awk '/^Pages:/ {print $2}') pages" +else + total=0 + for file in *.pdf; do + count=$(pdfinfo $file | awk '/^Pages:/ {print $2}') + echo "$count pages in $file" + total=$(($total + count)) + done + + echo " +Total page count is $total +" +fi diff --git a/scripts/toggle-swapescape b/scripts/toggle-swapescape deleted file mode 100755 index e20f3d4..0000000 --- a/scripts/toggle-swapescape +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -enabled=$(hyprctl getoption input:kb_options | grep "caps:swapescape") -if [[ $enabled == "" ]]; then - hyprctl keyword input:kb_options "caps:swapescape" - notify-send "Swapescape enabled" -else - hyprctl keyword input:kb_options "" - notify-send "Swapescape disabled" -fi diff --git a/scripts/update-nvim b/scripts/update-nvim index 4d6302b..e502dc0 100755 --- a/scripts/update-nvim +++ b/scripts/update-nvim @@ -1,5 +1,5 @@ #!/bin/sh -cd ~/projects/nvim/ +cd ~/projects/system/nvim/ git pull ./nvim-install.sh