-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in the ability to click on the CPU usage widget
Adding in the ability to click on this widget I wanted users to be able to use either 'top' or 'activity monitor'. Because 'top' is run in a terminal I wanted users to be able to specify their preferred Terminal. I added two terminal options Terminal and iTerm2. Hopefully the ability to open a terminal of the users choosing and run an arbitrary command will be helpful else where in the project.
- Loading branch information
1 parent
a002288
commit 58dd05f
Showing
5 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
on run argv | ||
set commandToRun to item 1 of argv | ||
tell application "iTerm" | ||
set newWindow to (create window with default profile) | ||
tell current session of newWindow | ||
write text commandToRun | ||
end tell | ||
end tell | ||
end run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
on run argv | ||
set commandToRun to item 1 of argv | ||
tell application "Terminal" | ||
do script commandToRun | ||
activate | ||
end tell | ||
end run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters