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.
20 lines
540 B
Bash
Executable File
20 lines
540 B
Bash
Executable File
#!/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
|