This commit is contained in:
end-4
2024-02-22 15:35:06 +07:00
commit 8db26e9707
4220 changed files with 208544 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/bash
offset=$(eww get quote_index)
total=$(eww get quote_content | gojq 'length')
# total=25
# shown=7
if [ "$1" == "up" ]; then
eww update quote_index=$(( ("$offset" + "$total" - 1) % "$total" ))
else
eww update quote_index=$(( ("$offset" + 1) % "$total" ))
fi