Initial import: Lua config, trimmed omarchy scripts, theme system
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# archypr:summary=Display keyboard brightness level using SwayOSD on the current monitor.
|
||||
# archypr:args=<0-100>
|
||||
# archypr:examples=omarchy swayosd kbd brightness 0 | omarchy swayosd kbd brightness 50 | omarchy swayosd kbd brightness 100
|
||||
|
||||
percent="$1"
|
||||
|
||||
progress="$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')"
|
||||
[[ $progress == "0.00" ]] && progress="0.01"
|
||||
|
||||
archypr-wayosd-client \
|
||||
--custom-icon keyboard-brightness-symbolic \
|
||||
--custom-progress "$progress" \
|
||||
--custom-progress-text "${percent}%"
|
||||
Reference in New Issue
Block a user