dotfiles/VSCodium/User/History/2748c617/9wv2

40 lines
584 B
Bash
Executable File

#!/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
}
for opt in "$@"; do
case $opt in
-l|--logout)
logout
;;
-s|--screenshot)
screenshot
;;
-w|--wifi)
wifi
;;
-b|--bluetooth)
bluetooth
;;
-*)
echo "Invalid Usage"
;;
esac
done