bmenu: exit fullscreen when running

This commit is contained in:
lelgenio 2020-04-26 03:43:54 -03:00
parent caa2133dbd
commit 4d5a444596
2 changed files with 17 additions and 8 deletions

View file

@ -147,13 +147,16 @@ end
set SPACEFISH_USER_SHOW always
set SPACEFISH_USER_COLOR "#cc5757"
set SPACEFISH_DIR_COLOR "#cc5757"
set SPACEFISH_PROMPT_ADD_NEWLINE false
set SPACEFISH_CHAR_COLOR_SUCCESS white
set SPACEFISH_CHAR_PREFIX ""
set SPACEFISH_CHAR_SYMBOL '$'
set SPACEFISH_CHAR_SYMBOL_ROOT '#'
set SPACEFISH_VI_MODE_COLOR "#cc5757"
set SPACEFISH_VI_MODE_PREFIX "\e[1 q"
set SPACEFISH_VI_MODE_SUFIX ""
set SPACEFISH_VI_MODE_INSERT "I\e[5 q"

View file

@ -1,10 +1,16 @@
#!/bin/sh
#!/bin/fish
# wrapper around bemenu
# bmenu * - use as dmenu, -p for custom prompt (man bemenu)
# bmenu run - select from .desktop files and run it
# bmenu start - internal option
if test "$argv[1]" != "start" || test "$argv[1]" = "run"
test -n "$SWAYSOCK" && swaymsg fullscreen off
end
if [ "$1" == "run" ]
then
[ -n "$2" ] && t="$2" || t="alacritty"
exec j4-dmenu-desktop --dmenu="bmenu -p Iniciar:" --term "$t"
fi
if test "$argv[1]" = "run"
test -n "$2" && set t "$2" || set t "terminal"
exec j4-dmenu-desktop --dmenu="bmenu start -p Iniciar:" --term "$t"
end
# t title
# f filter
@ -24,4 +30,4 @@ bemenu \
--fb "#242424" --ff "#cccccc" \
--nb "#202020" --nf "#cccccc" \
--hb "#303030" --hf "#cc5757" \
$@
$argv