feat: script to count pdf pages

This commit is contained in:
2026-07-25 16:43:05 +02:00
parent 0ec2614799
commit 6d2306e3f7
3 changed files with 17 additions and 11 deletions
+16
View File
@@ -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
-10
View File
@@ -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
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/sh
cd ~/projects/nvim/
cd ~/projects/system/nvim/
git pull
./nvim-install.sh