From bff3d4c966163d784c84280e989c410870203be5 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Sun, 7 Feb 2021 20:54:22 +0000 Subject: [PATCH] Adds a launcher script This is called from dwm to launch a program by name. In its current state, it will launch rofi if it's available and dmenu if not. --- bin/.bin/launcher | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/.bin/launcher diff --git a/bin/.bin/launcher b/bin/.bin/launcher new file mode 100755 index 00000000..1645e368 --- /dev/null +++ b/bin/.bin/launcher @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# This script will be called from dwm in order to launch a program +# +# It bascially just calls rofi of dmenu if rofi is not available + +if type -p rofi 2> /dev/null; then + notify-send "I get here" + rofi -show drun -modi drun -theme themes/launchpad.rasi +else + dmenu +fi +