-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
top: Desklet that displays information from the top
command
#285
Conversation
This is the first iteration and only displays "header" information from `top`. See `README.md` for the TODOs
Added the `_()`` function in preparation for language translation.
Added some other commented out support for language translations.
Changed the stylesheet and updated the README.md file
…mediately execute as you typed.
top
commandtop
command
Hi Ryan, sorry for the delay. I added this to the desktop on Cinnamon git (3.8) and it wouldn't launch, probably because Cinnamon now uses strict mode.
You can test this way by adding 'use strict'; at the top of extension.js. |
@jaszhix I've added the 'use strict'; to |
@RyanNerd No, Cinnamon 3.8 already prepends all xlets with
|
Fixed an undefined variable issue.
@jaszhix The desklet on my machine has non-zeros for Ram (below) What version of
|
… the `parseInt()`
I'm using 3.3.12. I think this is just a TypeError, and not necessarily strict mode if you still can't reproduce. I suggested adding it in there to help you debug it without using 3.8, but its likely also has to do with 3.8 using mozjs52, where as 3.6 is on mozjs38. I also didn't catch the compatible version array in metadata.json the first time, wasn't prompted with the usual incompatible notice. |
Runs the
top
command every 5 seconds and displays the result in nice desklet gridsSee
README.md
for the TODOsScreenshot:
![image](https://user-images.githubusercontent.com/10543911/37803279-83b3ba1c-2df3-11e8-99be-9bcd545703ee.png)