Waishnav / Watcher

Minimal open source Screen-Time Tracker for Linux
https://watcher-org.github.io/Watcher
MIT License
139 stars 11 forks source link

Fix: shorten the app-name in "watcher -ds" result #24

Closed Waishnav closed 1 year ago

Waishnav commented 1 year ago

Make the below string shorter like this Polkit-kde-authentication... and eventually fix the layout issue.

ujjwall-R commented 1 year ago

I created a pull request. Please look into it. I created a function to truncate the long strings and used it to set the width 22.

ujjwall-R commented 1 year ago

If required we can edit the width to 22-8=14. But I think that is not required. Is it?

Waishnav commented 1 year ago

If required we can edit the width to 22-8=14. But I think that is not required. Is it?

I don't think it is necessary as sometime the appname return with the help of xdotool comes out length more than 20 and I've observed that middle part of that string is imp.

Waishnav commented 1 year ago

@ujjwall-R Thanks for contributing and have a good day ahead.