i3wm configs

This commit is contained in:
2021-05-25 23:20:05 -07:00
parent 9a84ceaa45
commit 544dc84c26
10 changed files with 1010 additions and 0 deletions

17
bin/i3_switch_workspace.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
function gen_workspaces()
{
i3-msg -t get_workspaces | tr ',' '\n' | grep "name" | sed 's/"name":"\(.*\)"/\1/g' | sort -n
}
WORKSPACE=$( (echo empty; gen_workspaces) | rofi -dmenu -i -p "Select workspace:")
if [ x"empty" = x"${WORKSPACE}" ]
then
i3_empty_workspace.sh
elif [ -n "${WORKSPACE}" ]
then
i3-msg workspace "${WORKSPACE}"
fi