|
|
@@ -5,10 +5,15 @@ if count $argv |
|
|
|
else |
|
|
|
set ws (i3-msg -t get_workspaces | jq --raw-output '.[]|select(.focused == true).name') |
|
|
|
end |
|
|
|
set script ~/.workspaces/$ws.focus |
|
|
|
|
|
|
|
if type -q $script |
|
|
|
$script |
|
|
|
set focus_script ~/.workspaces/$ws.focus |
|
|
|
if type -q $focus_script |
|
|
|
$focus_script |
|
|
|
else |
|
|
|
i3-msg mode default |
|
|
|
end |
|
|
|
|
|
|
|
set space_script ~/.workspaces/$ws.space |
|
|
|
if type -q $space_script |
|
|
|
systemctl --user start workspace-app@$ws.service |
|
|
|
end |