aboutsummaryrefslogtreecommitdiff
path: root/home-manager/wm/hyprland/scripts/rofi-modes
blob: 1a5bd2e7e2d4011c10969f0e6c1c0b284c363203 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

case $(echo -e "bitwarden\nclipboard\nemoji\ncalc" | rofi -dmenu) in
    emoji) arg=emoji;;
    calc) arg=calc;;
    clipboard) cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy
	  exit;;
    bitwarden) if [[ $XDG_BACKEND == "wayland" ]]; then
		   typer=wtype
		   clip=wl-copy
	       else
		   typer=xdotool
		   clip=xclip
	       fi
	       rofi-rbw --typer $typer --clip $clip
	       exit;;
    *)exit;;
esac

rofi -modi $arg -show $arg