diff options
Diffstat (limited to 'home-manager/i3/scripts/workspaces.sh')
| -rwxr-xr-x | home-manager/i3/scripts/workspaces.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/home-manager/i3/scripts/workspaces.sh b/home-manager/i3/scripts/workspaces.sh new file mode 100755 index 0000000..3ad68ef --- /dev/null +++ b/home-manager/i3/scripts/workspaces.sh @@ -0,0 +1,7 @@ +choice=$(cat ~/.i3_commands/workspaces.txt | rofi -dmenu -i -p "Which workspace to switch to") +if [[ $1 == "move" ]] +then + i3-msg move container to workspace \"$choice\" +else + i3-msg workspace \"$choice\" +fi |
