Initial commit: Moonarch reproduzierbares Arch-Linux-Setup
Niri-basierter Wayland-Desktop mit greetd/regreet, Catppuccin Mocha Theming, Rofi-Menus, Waybar und vollstaendiger Post-Install-Automatisierung. Archinstall-Config klont das Repo automatisch via custom-commands, danach genuegt ein einzelner Befehl fuer die komplette Einrichtung.
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# ABOUTME: Zeigt eine Notification beim Umschalten von Caps Lock an.
|
||||
# ABOUTME: Gedacht für Keybinding oder Input-Event-Trigger.
|
||||
|
||||
sleep 0.2
|
||||
|
||||
value=($(cat /sys/class/leds/input*::capslock/brightness | cut -f1 -d,))
|
||||
|
||||
if [ ${value[2]} == 1 ]; then
|
||||
icon_name="capslock-enabled-symbolic"
|
||||
output="caps lock on"
|
||||
else
|
||||
icon_name="capslock-disabled-symbolic"
|
||||
output="caps lock off"
|
||||
fi
|
||||
|
||||
notify-send -e "$output" -i "$icon_name" \
|
||||
-h string:x-canonical-private-synchronous:state \
|
||||
-h boolean:value:"${value[2]}" -r 555
|
||||
Reference in New Issue
Block a user