aboutsummaryrefslogtreecommitdiff
path: root/misc/.local/bin/dmenu_launcher
blob: abd00351f95bdce135ba584d34c81c7f1f8ba2ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash

# Simple dmenu launcher
# NOTE: this uses a personal fork of dmenu patched to add an option to
# disable the input field.

BROWSER="\uf269"
NEXTCLOUD="\uf307"
CALENDAR="\uf073"
CGIT="\uf1d3"
SYNCTHING="\uf311"
ELEMENT="\uf313"
IRC="\uf086"
APPS="$BROWSER\n$NEXTCLOUD\n$CALENDAR\n$CGIT\n$IRC\n$ELEMENT\n$SYNCTHING"

SELECTED=`echo -e "$APPS" | dmenu -I -b -x 20 -y 20 -w 564 -h 80 -bw 3 -fn ForkAwesome:pixelsize=42`

[ -z "$SELECTED" ] && exit 0

case "$SELECTED" in)
        firefox-bin &
        ;;)
        surf "https://cloud.dyamon.me/apps/files" &
        ;;)
        surf "https://cloud.dyamon.me/apps/calendar" &
        ;;)
        surf "https://git.dyamon.me" &
        ;;)
        surf "https://web.libera.chat" &
        ;;)
        element-desktop &
        ;;)
        surf "http://127.0.0.1:8384" &
        ;;
    *)
        exit 1
        ;;
esac