add dmenu_window command, change dark background to gray

This commit is contained in:
Łukasz Pankowski 2020-07-21 18:26:02 +02:00
parent 1f09556373
commit 8d84df5d14
2 changed files with 10 additions and 5 deletions

View File

@ -36,7 +36,7 @@ if [ "$SCHEME" = light ]; then
FOCUS_BORDER=#068c70 FOCUS_BORDER=#068c70
EMACS_THEME=lupan-light EMACS_THEME=lupan-light
else else
ROOT_BG=#343a1a ROOT_BG=#404040
BAR_BG=#1a343a BAR_BG=#1a343a
BAR_FG=#f2f6e1 BAR_FG=#f2f6e1
BAR_ACTIVE=#3585ce BAR_ACTIVE=#3585ce
@ -46,6 +46,7 @@ else
FOCUS_BORDER=#3585ce FOCUS_BORDER=#3585ce
EMACS_THEME=lupan-dark EMACS_THEME=lupan-dark
fi fi
DMENU_ARGS="-nb ${BAR_BG} -nf ${BAR_FG} -sb ${BAR_ACTIVE} -sf ${BAR_FG} -fn $FONT"
switch_colors() { switch_colors() {
xrdb -merge <<EOF xrdb -merge <<EOF
@ -71,6 +72,9 @@ case "$CMD" in
switch_colors switch_colors
;; ;;
dmenu|dmenu_run) dmenu|dmenu_run)
exec "$CMD" -nb "${BAR_BG}" -nf "${BAR_FG}" -sb "${BAR_ACTIVE}" -sf "${BAR_FG}" -fn "$FONT" "$@" exec "$CMD" ${DMENU_ARGS} "$@"
;; ;;
dmenu_window)
bspc node -f $(xtitle -f '%u %s\n' $(bspc query -N -n .window) \
| dmenu ${DMENU_ARGS} "$@" -l 20 -i | cut -f 1 -d ' ')
esac esac

View File

@ -20,9 +20,6 @@ super + e
super + r ; {e,f,t} super + r ; {e,f,t}
{emacsclient -n -c,firefox,thunderbird} {emacsclient -n -c,firefox,thunderbird}
super + shift + @space
bspc node -f $(xtitle -f '%u %s\n' $(bspc query -N -n .window) | sh ~/.config/bspwm/commands.sh dmenu -l 20 -i | cut -f 1 -d ' ')
super + semicolon ; shift + {h,l,s} super + semicolon ; shift + {h,l,s}
{systemctl hibernate,slock,systemctl suspend} {systemctl hibernate,slock,systemctl suspend}
@ -108,6 +105,10 @@ super + {o,i}
super + {_,shift + }{1-9,0} super + {_,shift + }{1-9,0}
bspc {desktop -f,node -d} '^{1-9,10}' bspc {desktop -f,node -d} '^{1-9,10}'
# focus window by title
super + shift + @space
sh ~/.config/bspwm/commands.sh dmenu_window
# #
# preselect # preselect
# #