(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 27 Oct 2020, 08:53
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
Customizing htop
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
rufwoof


Joined: 24 Feb 2014
Posts: 3725

PostPosted: 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
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: 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
htop.png
 Description   Official htop icon
 Filesize   3.57 KB
 Viewed   284 Time(s)

htop.png

htop.jpg
 Description   Example
 Filesize   170.65 KB
 Viewed   282 Time(s)

htop.jpg

Monaco.ttf.zip
Description  Font used in the htop-transparent script (in the code of the post).
zip

 Download 
Filename  Monaco.ttf.zip 
Filesize  38.13 KB 
Downloaded  178 Time(s) 

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
8Geee


Joined: 12 May 2008
Posts: 2190
Location: N.E. USA

PostPosted: 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
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Fri 20 Dec 2019, 16:49    Post subject:  

My pleasure!
_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
8Geee


Joined: 12 May 2008
Posts: 2190
Location: N.E. USA

PostPosted: 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
digital7.zip
Description 
zip

 Download 
Filename  digital7.zip 
Filesize  7.61 KB 
Downloaded  169 Time(s) 

_________________
Linux user #498913 "Some people need to reimagine their thinking."
"Zuckerberg: a large city inhabited by mentally challenged people."
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Eye Candy
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0677s ][ Queries: 12 (0.0116s) ][ GZIP on ]