Create fzf terminal launcher
This commit is contained in:
4
.bin/launcher
Executable file
4
.bin/launcher
Executable file
@@ -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 &))'
|
||||||
@@ -56,7 +56,9 @@ myStartupHook = do
|
|||||||
]
|
]
|
||||||
|
|
||||||
myManageHook = composeAll
|
myManageHook = composeAll
|
||||||
[ className =? "Zathura" --> doShift "ε" ]
|
[ className =? "Zathura" --> doShift "ε"
|
||||||
|
, className =? "Launcher" --> doRectFloat (W.RationalRect 0.05 0.4 0.9 0.5)
|
||||||
|
]
|
||||||
|
|
||||||
myConfig = def
|
myConfig = def
|
||||||
{
|
{
|
||||||
@@ -85,7 +87,7 @@ myKeysP = [
|
|||||||
("M-S-<Space>", withFocused $ windows . W.sink)
|
("M-S-<Space>", withFocused $ windows . W.sink)
|
||||||
|
|
||||||
-- Use rofi to launch programs
|
-- Use rofi to launch programs
|
||||||
, ("M-p", spawn "rofi -show run")
|
, ("M-p", spawn "launcher")
|
||||||
|
|
||||||
-- Map insert key to paste from clipboard
|
-- Map insert key to paste from clipboard
|
||||||
, ("<Insert>", pasteSelection)
|
, ("<Insert>", pasteSelection)
|
||||||
|
|||||||
Reference in New Issue
Block a user