i3: Add bluetooth and layouts dmenu

This commit is contained in:
2021-11-18 14:45:01 +01:00
parent ab5284e4dd
commit 86c259deb5
4 changed files with 14 additions and 14 deletions

View File

@ -32,7 +32,7 @@ if [ $POWERED -eq 1 ]; then
fi
RETVAL=$(for index in "${!menu[@]}"; do echo "${menu[$index]}"; done | dmenu -l 5 -p "Bluetooth")
if [ $? ]; then
if [ ! -z "$RETVAL" ]; then
RETCMD=${commands["$RETVAL"]}
echo $RETCMD | bash
fi

10
i3/scripts/dmenu_layouts.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
declare -a menu
declare -A commands
RETVAL=$(find ~/.dotfiles/i3/layouts -type f -exec basename {} \; | dmenu -l 5 -p "Layout")
if [ ! -z "$RETVAL" ]; then
# RETCMD=${commands["$RETVAL"]}
i3-msg append_layout "~/.dotfiles/i3/layouts/$RETVAL"
fi