diff --git a/.bin/launcher b/.bin/launcher new file mode 100755 index 0000000..c9851cd --- /dev/null +++ b/.bin/launcher @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +alacritty --class Launcher,Launcher -e sh \ + -c 'compgen -c | sort -u | fzf --reverse | (x=$(cat); (set -m; exec $x &))' diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 481e30a..8717ce6 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -56,7 +56,9 @@ myStartupHook = do ] myManageHook = composeAll - [ className =? "Zathura" --> doShift "ε" ] + [ className =? "Zathura" --> doShift "ε" + , className =? "Launcher" --> doRectFloat (W.RationalRect 0.05 0.4 0.9 0.5) + ] myConfig = def { @@ -85,7 +87,7 @@ myKeysP = [ ("M-S-", withFocused $ windows . W.sink) -- Use rofi to launch programs - , ("M-p", spawn "rofi -show run") + , ("M-p", spawn "launcher") -- Map insert key to paste from clipboard , ("", pasteSelection)