Skip to content

rodrigobdz/alfred-swap-user-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alfred Workflow: Swap User

Swaps automatically to the next user

Requirements

  • Alfred
  • Alfred Powerpack
  • Assistive access enabled in System Preferences > Universal Access
  • macOS 10.15 (Catalina) or older, where the script /System/Library/CoreServices/Menu\ Extras/CGSession is present.

Installation

  1. Download the .alfredworkflow file
  2. Double click to install

Usage

Swap User Usage

How does it work

From the users listed when running the following command:

dscacheutil -q user | grep -A3 -B2 -e 5'[0-9][0-2']

the script excludes the current user and takes the first user from the ones remaining.

Links

Credits

License

MIT © rodrigobdz.