feat(audit): address batch 1 of missing scripts and enable fwupd
- Move 18 Hyprland/desktop scripts from features/desktop/scripts/ to packaged directories - Add nomarchy.hardware.fwupd option (default false) and enable service - Implement nomarchy-update-firmware wrapper for fwupdmgr - Add hyprland, swayosd, and fwupd to nomarchy-system-scripts dependencies - Update docs/SCRIPTS.md with 'kept' status for ported scripts
This commit is contained in:
15
core/system/scripts/nomarchy-swayosd-kbd-brightness
Executable file
15
core/system/scripts/nomarchy-swayosd-kbd-brightness
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Display keyboard brightness level using SwayOSD on the current monitor.
|
||||
# Usage: nomarchy-swayosd-kbd-brightness <percent>
|
||||
|
||||
percent="$1"
|
||||
|
||||
progress="$(awk -v p="$percent" 'BEGIN{printf "%.2f", p/100}')"
|
||||
[[ $progress == "0.00" ]] && progress="0.01"
|
||||
|
||||
swayosd-client \
|
||||
--monitor "$(hyprctl monitors -j | jq -r '.[]|select(.focused==true).name')" \
|
||||
--custom-icon keyboard-brightness \
|
||||
--custom-progress "$progress" \
|
||||
--custom-progress-text "${percent}%"
|
||||
Reference in New Issue
Block a user