72 lines
		
	
	
		
			964 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			964 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
 | |
| }
 | |
| 
 | |
| nwg-look() {
 | |
|     swaync-client -cp
 | |
|     nwg-look
 | |
| }
 | |
| 
 | |
| files() {
 | |
|     swaync-client -cp
 | |
|     thunar
 | |
| }
 | |
| 
 | |
| update() {
 | |
|     swaync-client -cp
 | |
|     kitty -e fpf -U
 | |
| }
 | |
| 
 | |
| browser() {
 | |
|     swaync-client -cp
 | |
|     firefox
 | |
| }
 | |
| 
 | |
| for opt in "$@"; do
 | |
| 	case $opt in
 | |
| 		-l|--logout)
 | |
| 			logout
 | |
| 			;;
 | |
|    		-s|--screenshot)
 | |
|    			screenshot
 | |
|    			;;
 | |
|    		-w|--wifi)
 | |
|    			wifi
 | |
|    			;;
 | |
|    		-b|--bluetooth)
 | |
|    			bluetooth
 | |
|    			;;
 | |
|    		-n|--nwg-look)
 | |
|    			nwg-look
 | |
|    			;;
 | |
|         -f|--files)
 | |
|             files
 | |
|             ;;
 | |
| 		-u|--update)
 | |
|    			update
 | |
|    			;;
 | |
| 		-ff|--firefox)
 | |
|    			browser
 | |
|    			;; 			
 | |
| 		-*)
 | |
| 			echo "Invalid Usage"
 | |
|    			;;
 | |
| 	esac
 | |
| done |