Author |
Message |
rufwoof

Joined: 24 Feb 2014 Posts: 3725
|
Posted: Fri 20 Dec 2019, 14:15 Post subject:
Customizing htop |
|
Cool - hadn't realised just how configurable htop is
Can show charts, bars or text
and you can shift things around such as having mem/swap at the top
_________________ ( ͡° ͜ʖ ͡°) :wq
Fatdog multi-session usb
echo url|sed -e 's/^/(c/' -e 's/$/ hashbang.sh)/'|sh
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 15041 Location: Gatineau (Qc), Canada
|
Posted: Fri 20 Dec 2019, 14:58 Post subject:
|
|
Yep.
Here's an on-off switch for it Code: | #!/bin/sh
# htop-transparent.sh
# Le même bouton sert à ouvrir et fermer le programme.
####
Geom="g 110x32+128+168" # Ok avec Monaco-13; trop large avec Monaco-14.
CoLR="bg sienna4 -fg cornsilk -bd firebrick4 -cr firebrick4"
TRNSP="tr -tint AntiqueWhite3 -sh 57" # transparence
FNT="fn xft:Monaco:pixelsize=13:antialias=true:autohint=true"
kill "`pidof -s htop`" >/dev/null 2>&1 || rxvt -sh 39 -$Geom -$CoLR -$TRNSP +sb -$FNT &>/dev/null -e htop -d 20
#### Autres choix :
## de taille : # "xft:Monaco-10"
## de fonte : -fn "xft:Liberation Mono:pixelsize=14:antialias=true:autohint=true"
## pour fermer et ouvrir : # wmctrl -c htop >/dev/null 2>&1 || rxvt
## de cadre : +sb +st +tcw -T htop -b 4 -$G -$CLR
## de paramètres pour htop : -e htop -d 20 -s PERCENT_MEM
####
|
And an adapted desktop file Code: | [Desktop Entry]
Type=Application
Version=1.0
Name=Htop
GenericName=Process Viewer
GenericName[ca]=Visualitzador de processos
GenericName[de]=Prozessanzeige
GenericName[en_GB]=Process Viewer
GenericName[es]=Visor de procesos
GenericName[fi]=Prosessikatselin
GenericName[fr]=Visualiseur de processus
GenericName[gl]=Visor de procesos
GenericName[it]=Visore dei processi
GenericName[ko]=프로세스 뷰어
GenericName[nb]=Prosessviser
GenericName[nl]=Viewer van processen
GenericName[nn]=Prosessvisar
GenericName[pl]=Przeglądarka procesów
GenericName[pt]=Visualizador de Processos
GenericName[pt_BR]=Visualizador de processos
GenericName[ru]=Монитор процессов
GenericName[sk]=Prehliadač procesov
GenericName[sl]=Pregledovalnik opravil
GenericName[sr@ijekavian]=Приказивач процеса
GenericName[sr@ijekavianlatin]=Prikazivač procesa
GenericName[sr@latin]=Prikazivač procesa
GenericName[sr]=Приказивач процеса
GenericName[sv]=Processvisning
GenericName[tr]=Süreç Görüntüleyici
GenericName[uk]=Перегляд процесів
GenericName[zh_CN]=进程查看器
GenericName[zh_TW]=行程檢視器
Comment=Show System Processes
Comment[ca]=Visualitzeu els processos del sistema
Comment[de]=Systemprozesse anzeigen
Comment[en_GB]=Show System Processes
Comment[es]=Mostrar procesos del sistema
Comment[fi]=Katsele järjestelmän prosesseja
Comment[fr]=Affiche les processus système
Comment[gl]=Mostrar os procesos do sistema.
Comment[it]=Mostra processi di sistema
Comment[ko]=시스템 프로세스 보기
Comment[nb]=Vis systemprosesser
Comment[nl]=Systeemprocessen tonen
Comment[nn]=Vis systemprosessar
Comment[pl]=Pokaż procesy systemowe
Comment[pt]=Mostrar os Processos do Sistema
Comment[pt_BR]=Mostra os processos do sistema
Comment[ru]=Просмотр списка процессов в системе
Comment[sk]=Zobraziť systémové procesy
Comment[sl]=Prikaz sistemskih opravil
Comment[sr@ijekavian]=Приказ системских процеса
Comment[sr@ijekavianlatin]=Prikaz sistemskih procesa
Comment[sr@latin]=Prikaz sistemskih procesa
Comment[sr]=Приказ системских процеса
Comment[sv]=Visa systemprocesser
Comment[tr]=Sistem Süreçlerini Göster
Comment[uk]=Перегляд системних процесів
Comment[zh_CN]=显示系统进程
Comment[zh_TW]=顯示系統行程
Icon=/usr/share/pixmaps/htop-48x.png
Exec=htop-transparent.sh
Terminal=true
Categories=Utility
# System;Monitor;ConsoleOnly;
Keywords=system;process;task
|
The desktop file will make it appear in the WM menu.
The script will
-- turn it on if off and off if on
-- use the pseudo-transparency capacity of urxvt.
In short, I'm giving you here a pseudo-GUI for htop.
Adapt to your needs, of course.
The monaco font specified in the script is attached. Also a capture and
the official htop icon (that some Puppies do not use, for no logical reason).
IHTH
Description |
Official htop icon |
Filesize |
3.57 KB |
Viewed |
318 Time(s) |

|
Description |
Example |
Filesize |
170.65 KB |
Viewed |
315 Time(s) |

|
Description |
Font used in the htop-transparent script (in the code of the post).
|

Download |
Filename |
Monaco.ttf.zip |
Filesize |
38.13 KB |
Downloaded |
243 Time(s) |
_________________ musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
|
Back to top
|
|
 |
8Geee

Joined: 12 May 2008 Posts: 2190 Location: N.E. USA
|
Posted: Fri 20 Dec 2019, 16:26 Post subject:
|
|
Nice font musher0. Its a keeper for AtomicPup19. Looks very readable 10, 11, 12pt. Thanks.
8Geee
_________________ Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 15041 Location: Gatineau (Qc), Canada
|
Posted: Fri 20 Dec 2019, 16:49 Post subject:
|
|
My pleasure!
_________________ musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
|
Back to top
|
|
 |
8Geee

Joined: 12 May 2008 Posts: 2190 Location: N.E. USA
|
Posted: Fri 20 Dec 2019, 23:09 Post subject:
|
|
And in return, Digital-7 medium italic that looks like traditional digital clock.
BTW: using monaco 10pt in geany and leafpad text-editors.
Happy Holidays
8Geee
Description |
|

Download |
Filename |
digital7.zip |
Filesize |
7.61 KB |
Downloaded |
224 Time(s) |
_________________ Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."
|
Back to top
|
|
 |
musher0
Joined: 04 Jan 2009 Posts: 15041 Location: Gatineau (Qc), Canada
|
Posted: Sat 21 Dec 2019, 00:54 Post subject:
|
|
Happy Holidays to you too!
_________________ musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
|
Back to top
|
|
 |
|