i3wm configs
This commit is contained in:
14
bin/i3_send_to_workspace.sh
Executable file
14
bin/i3_send_to_workspace.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
function gen_workspaces()
|
||||
{
|
||||
i3-msg -t get_workspaces | tr ',' '\n' | grep "name" | sed 's/"name":"\(.*\)"/\1/g' | sort -n
|
||||
}
|
||||
|
||||
|
||||
WORKSPACE=$( gen_workspaces | rofi -dmenu -i -p "Select workspace:")
|
||||
|
||||
if [ -n "${WORKSPACE}" ]
|
||||
then
|
||||
i3-msg move container to workspace "${WORKSPACE}"
|
||||
fi
|
||||
Reference in New Issue
Block a user