File: dmenu.sh

package info (click to toggle)
herbstluftwm 0.9.5-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,164 kB
  • sloc: cpp: 20,691; python: 10,830; sh: 1,023; ansic: 622; makefile: 98
file content (11 lines) | stat: -rwxr-xr-x 279 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

dm() { "${dmenu_command[@]:-dmenu}" "$@" ;}
hc() { "${herbstclient_command[@]:-herbstclient}" "$@" ;}

simple_command() {
    arg=$(hc complete 1 "$@" | dm -p "$@:") \
    && exec "${herbstclient_command[@]:-herbstclient}" "$@" "$arg"
}

simple_command "$1"