mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +02:00
* Add omarchy CLI * Remove outdated or internal * Add bash completions for command * Add omarchy command documentation * Add missing docs * Correct to what's now right * Fix tests --------- Co-authored-by: David Heinemeier Hansson <david@hey.com>
15 lines
388 B
Bash
Executable File
15 lines
388 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Display brightness level using SwayOSD on the current monitor.
|
|
# omarchy:args=<percent>
|
|
|
|
percent="$1"
|
|
|
|
progress="$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')"
|
|
[[ $progress == "0.00" ]] && progress="0.01"
|
|
|
|
omarchy-swayosd-client \
|
|
--custom-icon display-brightness-symbolic \
|
|
--custom-progress "$progress" \
|
|
--custom-progress-text "${percent}%"
|