MX Fluxbox Screenshots

Help for MX Fluxbox
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
wdscharff
Posts: 1108
Joined: Mon Feb 24, 2020 1:07 am

Re: MX Fluxbox Screenshots

#721 Post by wdscharff »

As I've already mentioned several times, not much changes for me in my Fluxbox. I have included everything (that I need) in the Fluxbox root menu and some sub menus, so it looks very empty, even in the taskbar.
The only major changes were (laziness wins) a changed conky, a lot of typing, many lines of text simply replaced by a halfway fitting INXI call.

The second, more complex, project was the comfortable integration of MOC, a music player for the terminal (or as a service in the background).

For me, comfortable means a Fluxbox submenu with the essential control elements (I know, I could also assign them to keys in the key file, but there are so many, I'm losing track ;-} )
The creation is not really comfortable, because you have to create the text file yourself, fortunately 90% copy and paste... and as a Fluxbox user that doesn't scare you, does it ? ;-}

So the screenshot contains the current root menu and the call of the MOC submenu and a few examples of included directories and music tracks, matching with a second minimal conky showing the current music track.
(attention, the original image is only 700kb heavy, but with 6000x2150px quite big)

Image
my working horse Desktop AMD Ryzen 9 3900x, 32GB Ram // SSD ... enough
mx-fluxbox, what else?

In nature there are neither rewards nor punishments.
There are consequences.


my wallpaper gallery

User avatar
AVLinux
Posts: 3004
Joined: Wed Jul 15, 2020 1:15 am

Re: MX Fluxbox Screenshots

#722 Post by AVLinux »

wdscharff wrote: Sun Sep 25, 2022 4:53 pm As I've already mentioned several times, not much changes for me in my Fluxbox. I have included everything (that I need) in the Fluxbox root menu and some sub menus, so it looks very empty, even in the taskbar.
The only major changes were (laziness wins) a changed conky, a lot of typing, many lines of text simply replaced by a halfway fitting INXI call.

The second, more complex, project was the comfortable integration of MOC, a music player for the terminal (or as a service in the background).

For me, comfortable means a Fluxbox submenu with the essential control elements (I know, I could also assign them to keys in the key file, but there are so many, I'm losing track ;-} )
The creation is not really comfortable, because you have to create the text file yourself, fortunately 90% copy and paste... and as a Fluxbox user that doesn't scare you, does it ? ;-}

So the screenshot contains the current root menu and the call of the MOC submenu and a few examples of included directories and music tracks, matching with a second minimal conky showing the current music track.
(attention, the original image is only 700kb heavy, but with 6000x2150px quite big)

Image
Very nice work as usual!

Care to share the Conky code to print the inxi formatted so nicely?

User avatar
wdscharff
Posts: 1108
Joined: Mon Feb 24, 2020 1:07 am

Re: MX Fluxbox Screenshots

#723 Post by wdscharff »

Webfund, came across it by chance when I was looking for something else :)
The essential part of the instruction is a Cpoy&paste, I only adapted the INXI call (the parameters), the font and colour instructions.

Code: Select all

${font Open Sans:size=12}${execpi 10 inxi -v2 -p | sed 's@\x03@__COLOR__@g'| sed 's@__COLOR__12@\${color}@g' | sed -r 's@__COLOR__(04)?@\${color5}@g' | sed 's@Battery\s@Battery:@' }
my working horse Desktop AMD Ryzen 9 3900x, 32GB Ram // SSD ... enough
mx-fluxbox, what else?

In nature there are neither rewards nor punishments.
There are consequences.


my wallpaper gallery

User avatar
AVLinux
Posts: 3004
Joined: Wed Jul 15, 2020 1:15 am

Re: MX Fluxbox Screenshots

#724 Post by AVLinux »

Excellent, thanks!

User avatar
ceeslans
Posts: 829
Joined: Sun Apr 14, 2019 3:48 am

Re: MX Fluxbox Screenshots

#725 Post by ceeslans »

wdscharff wrote: Sun Sep 25, 2022 9:42 pm Webfund, came across it by chance when I was looking for something else :)
The essential part of the instruction is a Cpoy&paste, I only adapted the INXI call (the parameters), the font and colour instructions.

Code: Select all

${font Open Sans:size=12}${execpi 10 inxi -v2 -p | sed 's@\x03@__COLOR__@g'| sed 's@__COLOR__12@\${color}@g' | sed -r 's@__COLOR__(04)?@\${color5}@g' | sed 's@Battery\s@Battery:@' }
Nice find! Thanks for sharing the 'inxi' conky code with us
You do not have the required permissions to view the files attached to this post.
Sony Vaio VPCF23P (2011), Intel Core i7-2670, 6gb RAM, 240gb SSD, MX-Linux 23 based Fluxbox v/1.3.7+
Lenovo Thinkpad L560 (2016), Intel Core i5-6200, 16gb RAM, 240gb SSD, Devuan Daedalus based Fluxbox v/1.3.7+

User avatar
AVLinux
Posts: 3004
Joined: Wed Jul 15, 2020 1:15 am

Re: MX Fluxbox Screenshots

#726 Post by AVLinux »

ceeslans wrote: Mon Sep 26, 2022 5:28 am
wdscharff wrote: Sun Sep 25, 2022 9:42 pm Webfund, came across it by chance when I was looking for something else :)
The essential part of the instruction is a Cpoy&paste, I only adapted the INXI call (the parameters), the font and colour instructions.

Code: Select all

${font Open Sans:size=12}${execpi 10 inxi -v2 -p | sed 's@\x03@__COLOR__@g'| sed 's@__COLOR__12@\${color}@g' | sed -r 's@__COLOR__(04)?@\${color5}@g' | sed 's@Battery\s@Battery:@' }
Nice find! Thanks for sharing the 'inxi' conky code with us
@ceeslans

Very nice and formatted in a way I'd like to use as a template with an existing Conky I'm working on for Enlightenment, care to share your .conkyrc also please?

User avatar
ceeslans
Posts: 829
Joined: Sun Apr 14, 2019 3:48 am

Re: MX Fluxbox Screenshots

#727 Post by ceeslans »

AVLinux wrote: Mon Sep 26, 2022 3:23 pm Very nice and formatted in a way I'd like to use as a template with an existing Conky I'm working on for Enlightenment, care to share your .conkyrc also please?
Sure!
Note that best formatting is achieved when using a (preferrably narrow) mono font. Below conkyrc calls for the NK-57 Monospace condensed font, but of course any mono-font will do.
The dark rounded transparent background is drawn using a lua script called 'draw_bg.lua' (current path is ~/.conky/LUA/draw_bg.lua). If you have no need for it, then comment out the two respective lines 53+54 in the conkyrc .

system-inxi.conkyrc

Code: Select all

--[[
 System-inxi
 Web-find @wdscharff <https://forum.mxlinux.org/viewtopic.php?p=696967#p696967> 
 mod @ceeslans | Sept 2022
--]]

conky.config = {

update_interval = 1.0,
total_run_times = 0,	
double_buffer = true,
no_buffers = true,	
cpu_avg_samples = 1,
net_avg_samples = 1,
text_buffer_size = 4096,	
use_spacer = 'none',
uppercase = false,
	
background = true,
own_window = true,
own_window_type = 'override',
own_window_transparent = true,	
	--own_window_argb_visual = true,
	--own_window_argb_value = 0,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager', --sticky,
own_window_class = 'Conky',
own_window_title = 'SysInxiConky',

draw_shades = false, 
draw_outline = false, 
draw_borders = false,
draw_graph_borders = false,
stippled_borders = 0,
border_inner_margin = 15,
border_width = 1,
default_color = '#eeeeee',
default_shade_color = 'black',
default_outline_color = 'black',	
	
use_xft = true,
font = 'Liberation Sans Narrow:size=9',
xftalpha = 1,
override_utf8_locale = true,

minimum_width = 0, 
	--minimum_height = 200,
gap_x = 160,
gap_y = 160,
alignment = 'bottom_right',

color2 = 'ffe068',

lua_load = '~/.conky/LUA/draw_bg.lua',
lua_draw_hook_pre = 'draw_bg',

};

conky.text = [[
${font nk57 monospace:regular:size=9}${execpi 10 inxi -v2 -p | sed 's@\x03@__COLOR__@g'| sed 's@__COLOR__12@\${color}@g' | sed -r 's@__COLOR__(04)?@\${color2}@g' | sed 's@Battery\s@Battery:@' }
]]; 

draw_bg.lua

Code: Select all

--[[
Background by londonali1010 (2009)

This script draws a background to the Conky window. It covers the whole of 
the Conky window, but you can specify rounded corners, if you wish.

To call this script in Conky, use (if script is saved to ~/.conky/scripts/):
	lua_load ~/.conky/scripts/draw_bg.lua
	lua_draw_hook_pre draw_bg

Changelog:
+ v1.0 -- Original release (07.10.2009)
]]


-- ==============
-- == Settings ==
-- ==============

-- Change these settings to affect your background. "corner_r" is the radius 
-- of rounded corners, in pixels. If you don't want rounded corners, use 0.
-- corner_r=0
-- corner_r=10
corner_r=16

-- Set the colour of your background.
bg_colour=0x000000

-- Set the transparency (alpha) of your background.
-- bg_alpha=0.10
-- bg_alpha=0.20
-- bg_alpha=0.25
bg_alpha=0.15


-- ==================
-- == Start script ==
-- ==================

require 'cairo'
function rgb_to_r_g_b(colour,alpha)
	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function conky_draw_bg()
	if conky_window==nil then return end
	local w=conky_window.width
	local h=conky_window.height
	local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
	cr=cairo_create(cs)
	
	cairo_move_to(cr,corner_r,0)
	cairo_line_to(cr,w-corner_r,0)
	cairo_curve_to(cr,w,0,w,0,w,corner_r)
	cairo_line_to(cr,w,h-corner_r)
	cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
	cairo_line_to(cr,corner_r,h)
	cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
	cairo_line_to(cr,0,corner_r)
	cairo_curve_to(cr,0,0,0,0,corner_r,0)
	cairo_close_path(cr)
	
	cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
	cairo_fill(cr)
end
Sony Vaio VPCF23P (2011), Intel Core i7-2670, 6gb RAM, 240gb SSD, MX-Linux 23 based Fluxbox v/1.3.7+
Lenovo Thinkpad L560 (2016), Intel Core i5-6200, 16gb RAM, 240gb SSD, Devuan Daedalus based Fluxbox v/1.3.7+

User avatar
AVLinux
Posts: 3004
Joined: Wed Jul 15, 2020 1:15 am

Re: MX Fluxbox Screenshots

#728 Post by AVLinux »

Bless you! Thanks so much, will post a result when I get one..

User avatar
AVLinux
Posts: 3004
Joined: Wed Jul 15, 2020 1:15 am

Re: MX Fluxbox Screenshots

#729 Post by AVLinux »

OK success!
*disclaimer: conky configs are from this thread but not being used on Fluxbox *ducks head... I had to do some futzing to get them working on Enlightenment as it handles Desktop layering differently so 'override' windows end up on top of applications so I had to change the window type to 'desktop' and a few other changes... 9_9

Here's the results: http://www.bandshed.net/images/screensh ... -57-43.png

User avatar
i_ri
Posts: 1105
Joined: Tue Jun 30, 2015 12:26 am

Re: MX Fluxbox Screenshots

#730 Post by i_ri »

hello
column width with wrap. Put this sample at the end of the inxi exec command; change the w number to what looks good in your conky,,

Code: Select all

 | fold -s -w47

Post Reply

Return to “MX Fluxbox Official Release”