start Task Manager minimized

Here you can exchange scripts that you created or have permission to share with other users.
Message
Author
User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

start Task Manager minimized

#1 Post by Jerry3904 »

I am looking at having the Task Manager be minimized in the Notification Area on login, because it is so handy both with mouse-over (which gives processes, cpu, memory and swap) and of course launched. I tried a number of different approaches, without success, so finally posted on the Xfce Forum.

ToZ confirmed that the usual procedures don't work, so he suggested using a script:

Code: Select all

#!/bin/bash

xfce4-taskmanager &
sleep 1
xdotool windowminimize $(wmctrl -l | grep "Task Manager" | awk '{print $1}')
I created a script with that, made it executable, then pointed to it with a new entry in Session and Startup. It didn't work, so I stepped through the commands and discovered that wmctrl is not installed. Once installed, all was good; so I post it here in case anyone else is interested in using it.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
richb
Administrator
Posts: 10322
Joined: Wed Jul 12, 2006 2:17 pm

Re: start Task Manager minimized

#2 Post by richb »

That would be a nice addition.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

Re: start Task Manager minimized

#3 Post by Jerry3904 »

Yeah, I'm thinking of proposing it after some testing for the next MX release. The idea of needing only a single click to get to be able to kill something or monitor activity fits well with the MX approach IMO.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
asqwerth
Developer
Posts: 7210
Joined: Sun May 27, 2007 5:37 am

Re: start Task Manager minimized

#4 Post by asqwerth »

Does this add much in terms of RAM and CPU used? Esp for weaker hardware? Because if so, it might be better not to make it autostart by default.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

Re: start Task Manager minimized

#5 Post by Jerry3904 »

No clue--but I haven't proposed it yet...

EDIT: here is what is happening on my system with it displayed
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Paul..
Posts: 1777
Joined: Sun Mar 18, 2007 6:34 pm

Re: start Task Manager minimized

#6 Post by Paul.. »

Nice idea...productize!!

Asus Prime X570-Pro | AMD Ryzen 7 3700X
16 Gig DDR4 3600 | Radeon RX 5600 XT Graphics
Samsung 860 500GB SSDs (2)

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: start Task Manager minimized

#7 Post by skidoo »

a taskmanager is preferable to xkill aka "force kill" utility b/c in certain environments (maybe not xfce) user may kill the entire session by accidentally clicking the desktop (root window).

> Does this add much in terms of RAM and CPU used?

With attention to that, might tweak the default taskmanager config so that it updates its output less frequently. (Stock default is 1000ms refresh? Change to 3000?) Someone should check -- I think I did so, but foggy memory -- use htop or similar while taskmanager is running; IIRC, it incurs "just as much" cpu load while trayed as it does while its window is displayed.

User avatar
Jerry3904
Administrator
Posts: 21881
Joined: Wed Jul 19, 2006 6:13 am

jerry3904

#8 Post by Jerry3904 »

Good way to go

EDIT: dropped it 750 ms to 2s, cpu% lowered more than half. Can explore this some more...
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox and Windows 10
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Richard
Posts: 1577
Joined: Fri Dec 12, 2008 10:31 am

Re: start Task Manager minimized

#9 Post by Richard »

On 32 bit netbook,
@ 750 ms, cpu% approx. 9-13% (the default)
@2500 ms, cpu% approx. 4-6%

Still too high to leave running by default on this one.
Last edited by Richard on Sun Feb 12, 2017 8:30 pm, edited 2 times in total.
Thinkpad T430 & Dell Latitude E7450, both with MX-21.3.1
kernal 5.10.0-26-amd64 x86_64; Xfce-4.18.0; 8 GB RAM
Intel Core i5-3380M, Graphics, Audio, Video; & SSDs.

User avatar
richb
Administrator
Posts: 10322
Joined: Wed Jul 12, 2006 2:17 pm

Re: start Task Manager minimized

#10 Post by richb »

With the default setting on my machine runs between 0% and 1%.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

Post Reply

Return to “Scripts”