mirror of
https://github.com/mrfluffy-dev/dotfiles.git
synced 2026-01-17 13:50:34 +00:00
first commit
This commit is contained in:
24
rofi/.config/rofi-menus/scripts/i3layoutmenu.sh
Executable file
24
rofi/.config/rofi-menus/scripts/i3layoutmenu.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
rofi_command="rofi -theme themes/i3layoutmenu.rasi"
|
||||
|
||||
### Options ###
|
||||
stacked=""
|
||||
tabbed="ﬓ"
|
||||
split=""
|
||||
# Variable passed to rofi
|
||||
options="$stacked\n$tabbed\n$split"
|
||||
|
||||
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 1)"
|
||||
case $chosen in
|
||||
$stacked)
|
||||
i3-msg layout stacked
|
||||
;;
|
||||
$tabbed)
|
||||
i3-msg layout tabbed
|
||||
;;
|
||||
$split)
|
||||
i3-msg layout toggle split
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user