Browse Source

Added launcher menu to panel.

master
Daniel Sissom 5 years ago
parent
commit
16d988de89
Signed by untrusted user who does not match committer: djsissom GPG Key ID: 2C30FFB796852389
2 changed files with 44 additions and 1 deletions
  1. + 1
    - 1
      bspwm/panel/panel_bar
  2. + 43
    - 0
      bspwm/panel/scripts/sysmenu

+ 1
- 1
bspwm/panel/panel_bar

@ -67,5 +67,5 @@ while read -r line ; do
wm_infos="$wm_infos%{F-} %{F-}"
;;
esac
printf "%s\n" "%{S+}%{l}  $title%{c}$wm_infos%{r}%{A:togglecal:}$sys_infos%{A} ⏻ "
printf "%s\n" "%{S+}%{l}%{A:sysmenu:}%{A}$title%{c}$wm_infos%{r}%{A:togglecal:}$sys_infos%{A} ⏻ "
done

+ 43
- 0
bspwm/panel/scripts/sysmenu

@ -0,0 +1,43 @@
#!/usr/bin/env sh
wm_name='sysmenu'
if xdo id -a "$wm_name" > /dev/null; then
pkill -f "dzen2 -title-name $wm_name"
exit
fi
color0="#000000"
color5="#FFFFFF"
screen=1
out="Start
urxvt
dolphin
firefox
clementine
keepassxc
ktorrent"
lines=$(echo -e "$out" | wc -l)
echo -e "$out" | dzen2 \
-title-name "sysmenu" \
-bg "$color0" \
-fg "$color5" \
-x "2" \
-y "20" \
-l $((lines-1)) \
-h 30 \
-w 240 \
-fn "Source Code Pro" \
-e "onstart=uncollapse;button1=menuexec,exit;button3=exit" \
-ta c \
-sa c \
-xs $screen \
-m \
-p &

Loading…
Cancel
Save