refactor: controla constelações por script de atalho
This commit is contained in:
parent
740c9b836b
commit
bfb8f31952
5 changed files with 26 additions and 12 deletions
9
toggle-constellations.sh
Executable file
9
toggle-constellations.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
STATE_FILE=/tmp/skeledance-constellations
|
||||
|
||||
if [ "$(cat "$STATE_FILE" 2>/dev/null)" = "1" ]; then
|
||||
printf '0\n' > "$STATE_FILE"
|
||||
else
|
||||
printf '1\n' > "$STATE_FILE"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue