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.

18 lines
326B

  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 script ~/.eralitex/workspace-cmd/$ws.focus
  8. set oscript ~/.eralitex/workspace-cmd/other-focus
  9. if type -q $script
  10. $script
  11. else
  12. if type -q $oscript
  13. $oscript
  14. end
  15. end