add bemenu-run script

This commit is contained in:
Simon Rieger 2023-06-05 17:36:34 +02:00
parent a32939bcfc
commit 76ec7e662c
3 changed files with 25 additions and 4 deletions

View file

@ -92,8 +92,8 @@ bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
#bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -i -dmenu -font "snap 12" -bg "#222222" -fg "#888888" -hlbg "#285577" -hlfg "#ffffff" -opacity 90 -m 0 -location 2'
bindsym $mod+shift+d exec clipmenu
bindsym $mod+y exec passdmenu -P -x clipboard
bindsym $mod+y exec clipmenu
bindsym $mod+shift+y exec passdmenu -P -x clipboard
# change focus
bindsym $mod+j focus left

View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
## Generic bemenu script. Will be run from other scripts to make sure, bemenu always looks the same
if [ -f "$HOME/.cache/wal/colors.sh" ]; then
source $HOME/.cache/wal/colors.sh
else
background='#1a1a1a'
color5='#268bd2'
#color6='#2E3440'
fi
#BEMENU_ARGS=(-n -i -p '' --tb "$background" --tf "$color5" --fb "$background" --nb "$background" --hb "$background" --hf "$color5" -m $(swaymsg -r -t get_outputs | jq '. | reverse | to_entries | .[] | select(.value.focused == true) | .key') "$@")
BEMENU_ARGS=(-n -i -p '' --tb "$background" --tf "$color5" --fb "$background" --nb "$background" --ab "$background" --hb "$background" --hf "$color5" --line-height 30 "$@")
if [ "$1" = 'dmenu' ]; then
bemenu-run "${BEMENU_ARGS[@]}"
else
bemenu "${BEMENU_ARGS[@]}"
fi

View file

@ -38,8 +38,9 @@ bindsym $mod+Shift+q kill
# Menu
bindsym $mod+d exec fuzzel
bindsym $mod+Shift+d exec clipman pick --tool=CUSTOM --tool-args="fuzzel -d"
bindsym $mod+y exec ~/.config/fuzzel/fuzzel-pass.sh
bindsym $mod+Shift+d exec j4-dmenu-desktop --dmenu="~/.config/sway/bemenu-run.sh -l 30" --term="wezterm" --no-generic
bindsym $mod+y exec clipman pick --tool=CUSTOM --tool-args="fuzzel -d"
bindsym $mod+Shift+y exec ~/.config/fuzzel/fuzzel-pass.sh
# change focus
bindsym $mod+j focus left