diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2015-10-26 16:26:44 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2015-10-26 16:26:44 +0100 |
| commit | 60292b16b6673017cabb828db461adbf93917b9e (patch) | |
| tree | dd96d33d76d3e88103f6bf4ab5d77dd5240a33e3 | |
| parent | a3ec70bd98dc274058c71ae843a811be0ea6cb9c (diff) | |
| download | dotfiles-60292b16b6673017cabb828db461adbf93917b9e.tar.gz dotfiles-60292b16b6673017cabb828db461adbf93917b9e.zip | |
change dmenu to rofi if available
| -rw-r--r-- | i3/config | 5 | ||||
| -rw-r--r-- | scripts/program_starter.sh | 8 |
2 files changed, 12 insertions, 1 deletions
@@ -40,12 +40,15 @@ bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec dmenu_run +# bindsym $mod+d exec dmenu_run # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop +# programm starter +bindsym $mod+d exec bash ~/.dotfiles/scripts/program_starter.sh + # change focus bindsym $mod+$left focus left bindsym $mod+$down focus down diff --git a/scripts/program_starter.sh b/scripts/program_starter.sh new file mode 100644 index 0000000..fa4f79a --- /dev/null +++ b/scripts/program_starter.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if type rofi &>/dev/null +then + exec rofi -show run +else + exec dmenu_run +fi |
