mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-21 16:29:57 -05:00
13 lines
283 B
Bash
Executable File
13 lines
283 B
Bash
Executable File
#!/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 |