Skip to content

Commit

Permalink
docs: add and credits link and more badges 📚
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Oct 19, 2023
1 parent d458af9 commit e74f044
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

<p align="center">
<a href="https://github.com/foldright/list-windows-on-mac/actions/workflows/python-package.yml"><img src="https://img.shields.io/github/actions/workflow/status/foldright/list-windows-on-mac/python-package.yml?branch=master&logo=github&logoColor=white" alt="Github Workflow Build Status"></a>
<a href="https://www.apache.org/licenses/LICENSE-2.0.html"><img src="https://img.shields.io/github/license/foldright/list-windows-on-mac?color=4D7A97&logo=apache" alt="License"></a>
<a href="https://github.com/foldright/list-windows-on-mac/releases"><img src="https://img.shields.io/github/release/foldright/list-windows-on-mac.svg" alt="GitHub release"></a>
<a href="https://github.com/foldright/list-windows-on-mac/stargazers"><img src="https://img.shields.io/github/stars/foldright/list-windows-on-mac" alt="GitHub Stars"></a>
<a href="https://github.com/foldright/list-windows-on-mac/graphs/contributors"><img src="https://img.shields.io/github/contributors/foldright/list-windows-on-mac" alt="GitHub Contributors"></a>
<a href="https://github.com/foldright/list-windows-on-mac"><img src="https://img.shields.io/github/repo-size/foldright/list-windows-on-mac" alt="GitHub repo size"></a>
<a href="https://gitpod.io/#https://github.com/foldright/list-windows-on-mac"><img src="https://img.shields.io/badge/Gitpod-ready to code-339933?label=gitpod&logo=gitpod&logoColor=white" alt="gitpod: Ready to Code"></a>
</p>

List windows info(rect, owner process id, windows id, title) on macOS.
Expand Down Expand Up @@ -43,7 +47,7 @@ $ python3 lswin.py
# more supported options see help
$ ./lswin.py -h
Usage: lswin.py [OPTION]...
list all windows title and their owner process ids.
list windows info(rect, owner process id, windows id, title) on macOS.

Examples:
lswin.py
Expand All @@ -64,6 +68,9 @@ Options:

## Known problems

Processes created by Safari browser will be displayed as same PID as main Safari process.
- Processes created by Safari browser will be displayed as same PID as main Safari process.
https://github.com/sjitech/mac_list_windows_pids/issues/1

https://github.com/sjitech/mac_list_windows_pids/issues/1
## Credits

- This project is forked from [`sjitech/mac_list_windows_pids`](https://github.com/sjitech/mac_list_windows_pids)
4 changes: 3 additions & 1 deletion lswin.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import Quartz

__version__ = '1.1.0-dev'


@dataclass
class Rect:
Expand Down Expand Up @@ -98,7 +100,7 @@ def print_window_infos(win_list: Iterable[WindowInfo], no_headers: bool = False)

option_parser = OptionParser(
'%prog [OPTION]...'
'\nlist all windows title and their owner process ids.'
'\nlist windows info(rect, owner process id, windows id, title) on macOS.'
'\n\nExamples:'
'\n %prog'
'\n %prog --exclude-0-area'
Expand Down

0 comments on commit e74f044

Please sign in to comment.