#!/bin/bash logout(){ loginctl terminate-session "${XDG_SESSION_ID-}" } screenshot() { swaync-client -cp hyprctl dispatch -- exec hyprland-interactive-screenshot } wifi() { swaync-client -cp hyprctl dispatch -- exec wofi-wifi-menu } bluetooth() { swaync-client -cp hyprctl dispatch -- exec wofi-bluetooth } rsbrghtnss() { exBrghtnss="$(ddcutil getvcp 10 | awk '{print $9}' | cut -d, -f 1)" $((exBrghtnss + 10)) ddcutil setvcp 10 "$exBrghtnss" } for opt in "$@"; do case $opt in -l|--logout) logout ;; -s|--screenshot) screenshot ;; -w|--wifi) wifi ;; -b|--bluetooth) bluetooth ;; -rb|--raise-brightness) rsbrghtnss ;; -*) echo "Invalid Usage" ;; esac done