about summary refs log blame commit diff stats
path: root/bin/comm-sel
blob: 3dc15277cab0b1356a3dbce09b840953934218cd (plain) (tree)
1
2
3
4
5
6
7
8
9
         
                                                                                              
                                                                                            




                                          
                                                                            
                                    
                                              
                   
    
#!/bin/sh
# sends a list of communication TUIs (e.g catgirl) to dmenu and allows the user to choose one.
# class "comm" is added to enable window managers (e.g ewm) to do specific things with them.
case "$TERMINAL" in
	xterm) CLASS='-class';;
	urxvt) CLASS='-name';;
	alacritty|kitty) CLASS='--class';;
esac
case "$(dmenu_path|grep -E "catgirl$|scli$"|dmenu -p "choose chat app:")" in
	catgirl) catgirl-open.sh &;;
	scli) $TERMINAL $CLASS comm -e scli&;;
	*) return;;
esac