Skip to content

Commit

Permalink
Add display handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
musically-ut committed Sep 4, 2016
1 parent 719ff1c commit 547cc93
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ usage: m [OPTIONS] COMMAND [help]
```

#### Display:
```
usage: m display [ status | help ]
Example:
m display status # status of displays
m display help # show usage
```

#### Dns:
```
usage: m dns [ flush | help ]
Expand Down
29 changes: 29 additions & 0 deletions plugins/display
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env bash

help(){
cat<<__EOF__
usage: m display [ status | help ]
Example:
m display status # status of displays
m display help # show usage
__EOF__
}

display_status(){
system_profiler SPDisplaysDataType
}

case $1 in
help)
help
;;
status)
display_status
;;
*)
help
;;
esac

# vim: ts=4 sw=4 softtabstop=4 expandtab

0 comments on commit 547cc93

Please sign in to comment.