#!/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