Skip to content

Instantly share code, notes, and snippets.

@haruue
Last active April 9, 2022 07:15
Show Gist options
  • Save haruue/51543bf187178b3356137965aacad0ff to your computer and use it in GitHub Desktop.
Save haruue/51543bf187178b3356137965aacad0ff to your computer and use it in GitHub Desktop.
i3 demu workspace
#!/bin/bash
selected_workspace=$(i3-msg -t 'get_workspaces' | jq -r '.[] | .name' | dmenu)
if [ $? -eq 0 ]; then
i3-msg "move container to workspace $selected_workspace"
fi
#!/bin/bash
selected_workspace=$(i3-msg -t 'get_workspaces' | jq -r '.[] | .name' | dmenu)
if [ $? -eq 0 ]; then
i3-msg "workspace $selected_workspace"
fi
bindsym $mod+n exec --no-startup-id /path/to/dmenu_workspace
bindsym $mod+Shift+n exec --no-startup-id /path/to/dmenu_move_to_workspace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment