dotfiles/i3/scripts/dmenu_layouts.sh

11 lines
267 B
Bash
Executable File

#!/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