feat: script to count pdf pages
This commit is contained in:
Executable
+16
@@ -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
|
||||
@@ -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
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd ~/projects/nvim/
|
||||
cd ~/projects/system/nvim/
|
||||
git pull
|
||||
./nvim-install.sh
|
||||
|
||||
Reference in New Issue
Block a user