Make dmenu scripts vertical

Recent dmenu update changed spacing which is irritating.
Streamline all scripts to use vertical output.
This commit is contained in:
Daniel Siepmann 2022-10-31 13:41:39 +01:00
parent 359ee0f74d
commit 86991939c7
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
4 changed files with 4 additions and 4 deletions

View file

@ -36,7 +36,7 @@ let
];
text = ''
chosen=$(echo -e "pause\nresume" | dmenu -i)
chosen=$(echo -e "pause\nresume" | dmenu -i -l 2)
case "$chosen" in
"pause")
dunstctl set-paused true

View file

@ -6,7 +6,7 @@
# guess i3lock via nix points to other PAM and therefore does not identify by password
chosen=$(echo -e "lock\nsuspend\nlogout" | dmenu -i)
chosen=$(echo -e "lock\nsuspend\nlogout" | dmenu -i -l 3)
case "$chosen" in
"lock")
pkill -u "$USER" -USR1 dunst

View file

@ -1,5 +1,5 @@
activeString=""
action=$(echo -e "enable\ndisable\n" | dmenu -i -p "$activeString")
action=$(echo -e "enable\ndisable\n" | dmenu -l 2 -i -p "$activeString")
case "$action" in
"enable")
sudo /bin/ln -s /etc/php/7.2/mods-available/xdebug.ini /etc/php/7.2/cli/conf.d/20-xdebug.ini || true

View file

@ -202,7 +202,7 @@ in {
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# For docs, see: https://developer.gnome.org/integration-guide/stable/desktop-files.html.en
"${modifier}+a" = "exec --no-startup-id i3-dmenu-desktop";
"${modifier}+a" = "exec --no-startup-id i3-dmenu-desktop --dmenu='dmenu -i -l 20'";
"${modifier}+space" = "exec --no-startup-id custom-dmenu-selection";