You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

on-focus-workspace 385B

4 jaren geleden
12345678910111213141516171819
  1. #!/usr/bin/fish
  2. if count $argv
  3. set ws $argv[1]
  4. else
  5. set ws (i3-msg -t get_workspaces | jq --raw-output '.[]|select(.focused == true).name')
  6. end
  7. set focus_script ~/.workspaces/$ws.focus
  8. if type -q $focus_script
  9. $focus_script
  10. else
  11. i3-msg mode default
  12. end
  13. set space_script ~/.workspaces/$ws.space
  14. if type -q $space_script
  15. systemctl --user start workspace-app@$ws.service
  16. end