Browse Source

Add dynamic menu resolving

umatrix-rules
Pearu Vaalma 4 years ago
parent
commit
a267238563
  1. 6
      i3/.cfg_src/i3/config.base
  2. 17
      i3/.i3/scripts/menu-launch

6
i3/.cfg_src/i3/config.base

@ -1,19 +1,21 @@ @@ -1,19 +1,21 @@
set $mod Mod4
set $scripts ~/.i3/scripts
font -misc-fixed-medium-r-normal--13-100-75-75-C-70-iso10646-1
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
#bindsym $mod+Return exec alacritty
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
#bindsym $mod+d exec dmenu_run
bindsym $mod+d exec "$scripts/menu-launch"
# change focus
bindsym $mod+h focus left

17
i3/.i3/scripts/menu-launch

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
#!/bin/bash -e
MENUS="
dmenu-frecency
rofi
dmenu
"
for m in $MENUS
do
if hash $m &> /dev/null
then
$m
exit
fi
done
Loading…
Cancel
Save