i3: Add bluetooth and layouts dmenu
This commit is contained in:
@ -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
10
i3/scripts/dmenu_layouts.sh
Executable 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
|
Reference in New Issue
Block a user