mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
sway aesthetics rework
This commit is contained in:
parent
1a4e5564e9
commit
9c83d7cfd7
4 changed files with 118 additions and 64 deletions
|
|
@ -4,9 +4,9 @@ set -o pipefail
|
|||
|
||||
if gpg --card-status &> /dev/null; then
|
||||
user="$(gpg --card-status | grep 'Login data' | awk '{print $NF}')";
|
||||
status='{"text": "PGP +", "alt": "User: '"$user"'", "class": "enabled"}'
|
||||
status='{"text": "", "alt": "User: '"$user"'", "class": "enabled"}'
|
||||
else
|
||||
status='{"text": "PGP -", "alt": "No card is connected.", "class": "disabled"}'
|
||||
status='{"text": "", "alt": "No card is connected.", "class": "disabled"}'
|
||||
fi
|
||||
|
||||
echo $status
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ set -o pipefail
|
|||
sleep 0.5s
|
||||
|
||||
if systemctl --user is-active konawall-rotation.timer --quiet; then
|
||||
status='{"text": "ROT", "alt": "Konawall is enabled.", "class": "enabled"}'
|
||||
status='{"text": "", "alt": "Konawall is enabled.", "class": "enabled"}'
|
||||
else
|
||||
status='{"text": "STA", "alt": "Konawall is disabled.", "class": "disable"}'
|
||||
status='{"text": "", "alt": "Konawall is disabled.", "class": "disable"}'
|
||||
fi
|
||||
|
||||
echo $status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue