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
ceeslans
Posts: 829
Joined: Sun Apr 14, 2019 3:48 am

Re: MX Fluxbox Screenshots

#931 Post by ceeslans »

@Freja hmmm... the 'Gilroy-ExtraBold' font is nice, but I prefer to use the (default) available 'DejaVu Sans Bold' font.
DejaVuSans Bold seems more robust/compact than Gilroy ExtraBold :p

below is the conky theme file, as well as the lua-script for transparent background (if you want to use the script, then uncomment line 60+61 in conky conf, making sure that the mentioned path is pointing to the actual location where you saved the executable script ).

DateTime.conf

Code: Select all

----------------------
--  conky_datetime  --
-- @ceeslans feb 22 --
----------------------

conky.config = {

no_buffers = true,
double_buffer = true,
update_interval = 1,
	
background = true,
own_window = true,
own_window_type = 'normal',
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_colour = '000000',
own_window_class = 'Conky',
own_window_title = 'DatetimeConky',

draw_borders = false,
stippled_borders = 5,
border_inner_margin = 5,
border_outer_margin = 5,
border_width = 2,
draw_graph_borders = yes,
draw_shades = false,
default_shade_color = '333333',
imlib_cache_size = 0,
draw_outline = false,
default_outline_color = '000000',

use_xft = true,
font = 'DejaVu Sans:size=9.5:bold',
xftalpha = 1,
override_utf8_locale = true,
uppercase = false,
use_spacer = 'none',
text_buffer_size = 6144,
short_units = true,
pad_percents = 2,

default_color = 'd8dee9', --clear
color1 = 'bbbbbb', --very light grey
color2 = 'ebcb8b', --yellow
color3 = 'a3be8c', --green
color4 = 'd08770', --orange
color5 = 'bf616a', --red
color6 = '6B94BC', --blue

minimum_width = 150,
minimum_height = 0,
gap_x = 50,
gap_y = 50, 
alignment = 'top_right',

-- uncomment below two lines for transparent background layer
	--lua_load = '$HOME/.conky/LUA/transbg.lua',
	--lua_draw_hook_pre = 'draw_bg 12 0 0 0 0 0x000000 0.15',
};

conky.text = [[
###### SET 12H/24H ###
# ${color1}${voffset -15}${font DejaVu Sans:size=81:bold}${alignc}${time %I}${font}
${color1}${voffset -15}${font DejaVu Sans:size=81:bold}${alignc}${time %H}${font}
###### DAY+DATE ###
${color2}${voffset 5}${alignc}${time %A} ${color3}${time %d %b}${font}
###### MINUTE ###
${color6}${voffset -15}${font DejaVu Sans:size=81:bold}${alignc}${time %M}${color}${font}
###### MEM/CPU ###
${color3}${voffset 5}${alignc}mem ${color1}${memperc}%  ${color4}cpu ${color1}${cpu cpu0}%
###### BATTERY ###
${color2}${voffset 5}${alignc}bat  \
${if_existing /sys/class/power_supply/BAT0/status}${voffset 1}${color6}${battery_bar 6,50 BAT0}  ${voffset -1}${color3}${battery_percent BAT0}%${endif}\
${if_existing /sys/class/power_supply/BAT1/status}${voffset 1}${color6}${battery_bar 6,50 BAT1}  ${voffset -1}${color3}${battery_percent BAT1}%${endif}
###### CORRECTION WIDGET HEIGHT ###
${voffset -90}
]];
transbg.lua

Code: Select all

--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

  the change is that if you set width and/or height to 0
  then it assumes the width and/or height of the conky window

so:

Above and After TEXT  (requires a composite manager or it blinks!)

 lua_load ~/wea_conky/draw_bg.lua
 TEXT
 ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}

OR Both above TEXT (no composite manager required - no blinking!)

 lua_load ~/wea_conky/draw_bg.lua
 lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
 TEXT

Note
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.2}
  See below:        1  2 3 4 5 6        7

${lua conky_draw_bg corner_radius x_position y_position width height color alpha}

covers the whole window and will change if you change the minimum_size setting

1 = 20             corner_radius
2 = 0             x_position l|r
3 = 0             y_position u|d
4 = 0             width
5 = 0             height
6 = 0x000000      color
7 = 0.4           alpha

######### calendar function ##################################################

then to use it, you activate the calendar function BELOW TEXT like this

${lua luacal {settings}}

#${lua luacal {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gh=,gt=,gv=,sd=}}
#    x=x position top left
#    y=y position top left
#    tf=title font, eg "mono" must be in quotes
#    tfs=title font size
#    tc=title color
#    ta=title alpha
#    bf=body font, eg "mono" must be in quotes
#    bfs=body font size
#    bc=body color
#    ba=body alpha
#    hf=highlight font, eg "mono" must be in quotes
#    hfs=highlight font size
#    hc=highlight color
#    ha=highlight alpha
#    sp=spacer, eg " " or sp="0"... 0,1 or 2 spaces can help with positioning of non-monospaced fonts

#    gt=gap from title to body
#    gh=gap horizontal between columns
#    gv=gap vertical between rows
#    sd=start day, 0=Sun, 1=Mon

#    hstyle = heading style, 0=just days, 1=date insert
#    tdf=title date font, eg "mono" must be in quotes
#    tdfs=title date font size
#    tdc=title date color
#    tda=title date alpha

# test line
-- ${lua luacal {x=40,y=40,tf="Monofur",tfs=24,tc=0xFFDEAD,ta=1,bf="Monofur",bfs=24,bc=0xFFDEAD,ba=1,hf="Monofur",hfs=24,hc=0x00BFFF,ha=1,sp=" ",gh=40,gt=25,gv=20,sd=0,hstyle=1,tdf="Monofur",tdfs=24,tdc=0x00BFFF,tda=1}}


]]

require 'cairo'
local    cs, cr = nil
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(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end
-- ###### calendar function ##################################################
function conky_luacal(caltab) -- {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gt=,gh=,gv=,sd=,hstyle=,tdf=,tdfs=,tdc=,tda=}
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
--############################################################################
if caltab.x==nil then
caltab=loadstring("return" .. caltab)()
end
local cal_x=caltab.x
local cal_y=caltab.y
local tfont=caltab.tf		or "mono"
local tfontsize=caltab.tfs	or 12
local tc=caltab.tc			or 0xffffff
local ta=caltab.ta			or 1
local bfont=caltab.bf		or "mono"
local bfontsize=caltab.bfs	or 12
local bc=caltab.bc			or 0xffffff
local ba=caltab.ba			or 1
local hfont=caltab.hf		or "mono"
local hfontsize=caltab.hfs	or 12
local hc=caltab.hc			or 0xff0000
local ha=caltab.ha			or 1
local spacer=caltab.sp		or " "
local gaph=caltab.gh		or 20
local gapt=caltab.gt		or 15
local gapl=caltab.gv		or 15
local sday=caltab.sd		or 0
local hstyle=caltab.hstyle	or 0
--convert colors
--local font=string.gsub(font,"_"," ")
local tred,tgreen,tblue,talpha=rgb_to_r_g_b(tc,ta)
--main body text color
local bred,bgreen,bblue,balpha=rgb_to_r_g_b(bc,ba)
--highlight text color
local hred,hgreen,hblue,halpha=rgb_to_r_g_b(hc,ha)
--############################################################################
--calendar calcs
local year=os.date("%G")
local today=tonumber(os.date("%d"))
local t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
local t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
local feb=(os.difftime(t1,t2))/(24*60*60)
local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
local day=tonumber(os.date("%w"))+1-sday
local day_num = today
local remainder=day_num % 7
local start_day=day-(day_num % 7)
if start_day<0 then start_day=7+start_day end
local month=os.date("%m")
local mdays=monthdays[tonumber(month)]
local x=mdays+start_day
local dnum={}
local dnumh={}
if mdays+start_day<36 then
dlen=35
plen=29
else
dlen=42
plen=36
end
for i=1,dlen do
    if i<=start_day then
    dnum[i]="  "
    else
    dn=i-start_day
        if dn=="nil" then dn=0 end
        if dn<=9 then dn=(spacer .. dn) end
        if i>x then dn="" end
        dnum[i]=dn
        dnumh[i]=dn
        if dn==(spacer .. today) or dn==today then
        dnum[i]=""
        end
        if dn==(spacer .. today) or dn==today then
        dnumh[i]=dn
        place=i
        else dnumh[i]="  "
        end
    end
end--for
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
if hstyle==0 then
    if tonumber(sday)==0 then
    dys={"SU","MO","TU","WE","TH","FR","SA"}
    else
    dys={"MO","TU","WE","TH","FR","SA","SU"}
    end
    --draw calendar titles
elseif hstyle==1 then
    if tonumber(sday)==0 then
    dys={"SU","MO"," ","  ","  ","FR","SA"}
    cairo_text_extents(cr,"MO",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    else
    dys={"MO","TU"," ","  ","  ","SA","SU"}
    cairo_text_extents(cr,"TU",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    end
end
--draw calendar titles
for i=1,7 do
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
cairo_show_text (cr, dys[i])
cairo_stroke (cr)
end
--draw calendar body
cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, bfontsize);
cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnum[i])
    cairo_stroke (cr)
    end
end
--highlight
cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, hfontsize);
cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnumh[i])
    cairo_stroke (cr)
    end
end
--############################################################################
caltab=nil
dlen=nil
plen=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end
-- end main function #########################################################
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
Freja
Developer
Posts: 759
Joined: Thu May 02, 2019 2:15 pm

Re: MX Fluxbox Screenshots

#932 Post by Freja »

2023-06-11_08-23-49.jpg
Simply font changed to Gilroy ExtraBold Sample, Like this.
(Added battery bar)

(Sample simply changed to Gilroy ExtraBold.
This is just one suggestion...
Your original is tasteful and cool.)

Conclusion:

It's a subtle difference, but I think the ceeslans original is best.
You do not have the required permissions to view the files attached to this post.
In the world filled desire,
I seek only essence, serve for MX.
I just needing only ideal in the art at all.
I want to protect place of rest called MX LINUX. :coffee:
Sony VAIO Pro 11inch Silver (FHD) extrox (MX23)

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

Re: MX Fluxbox Screenshots

#933 Post by Jerry3904 »

I like this a lot, and will look into adding it to the MX collection-- thanks to both.
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
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Freja
Developer
Posts: 759
Joined: Thu May 02, 2019 2:15 pm

Re: MX Fluxbox Screenshots

#934 Post by Freja »

wait a minute
I replaced gray and blue with "Cowon MildBlue" based custom color. (test)
Background used THE Darkmetal(final).

Image

Code: Select all

default_color = 'aabbcc', --clear
color1 = 'aabbcc', --very light grey
color2 = 'ebcb8b', --yellow
color3 = 'a3be8c', --green
color4 = 'd08770', --orange
color5 = 'bf616a', --red
color6 = '44aacc', --blue
(transbg.lua enabled by disabling 2-lines comment out.)

A transparent background is realized only by code
without using transparent .png like Cowon Universal. (And it's dark-color!)
ceeslans's transbg.lua is Great idea.
In the world filled desire,
I seek only essence, serve for MX.
I just needing only ideal in the art at all.
I want to protect place of rest called MX LINUX. :coffee:
Sony VAIO Pro 11inch Silver (FHD) extrox (MX23)

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

Re: MX Fluxbox Screenshots

#935 Post by ceeslans »

Running mxfb23 beta here. Implemented a simple (yet clever) script by @kobaian to switch between rofi-appfinder / xfce4-appfinder - and visa versa.
In this case, I altered the script to call 'jgmenu' instead of xfce4-appfinder. Oh I really do like such options.

Image
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
kobaian
Posts: 369
Joined: Fri Jan 03, 2020 5:49 am

Re: MX Fluxbox Screenshots

#936 Post by kobaian »

Your desktop looks great! :clap:
Desktop PC: AMD Ryzen 5 5600 3.5GHz, MSI B550M PRO-VDH, 32GB RAM, Gigabyte RX 570. Laptop: MacBook Late 2008, Core2Duo 2.0GHz, 8GB RAM. Netbook: Asus EEEPC Intel Atom 1.6GHz, 2GB RAM. System: MX23 64bit/32bit Fluxbox.

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

Re: MX Fluxbox Screenshots

#937 Post by i_ri »

Hello JayM and Everyone
idesk
You do not have the required permissions to view the files attached to this post.

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

Re: MX Fluxbox Screenshots

#938 Post by Jerry3904 »

ceeslans wrote: Fri Jun 09, 2023 6:08 pm @Freja hmmm... the 'Gilroy-ExtraBold' font is nice, but I prefer to use the (default) available 'DejaVu Sans Bold' font.
DejaVuSans Bold seems more robust/compact than Gilroy ExtraBold :p

below is the conky theme file, as well as the lua-script for transparent background (if you want to use the script, then uncomment line 60+61 in conky conf, making sure that the mentioned path is pointing to the actual location where you saved the executable script ).

<snip>
I've created a folder for use with MX and would appreciate it if somebody could paste it into ~/.conky and give it a quick check. Works fine here on MX-21.3, though I had to change to pseudo-transparent to get rid of the black background--that may be just me so pls confirm.
You do not have the required permissions to view the files attached to this post.
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
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

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

Re: MX Fluxbox Screenshots

#939 Post by ceeslans »

It works fine here in mxfb23 beta2.
And yes, if you haven't enabled a real-transparency compositor (like compton or picom) in 'startup' file, then you need to set the 'pseudo-transparency' option in conky-manager.
Did you try the transparent widget background, that can be set with 'transbg.lua' script (compton/picom is not needed for this)?
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
Freja
Developer
Posts: 759
Joined: Thu May 02, 2019 2:15 pm

Re: MX Fluxbox Screenshots

#940 Post by Freja »

@Jerry3904
uncomment 2 lines,
ceeslans's code put into empty transbg.lua,
and the transbg.lua put into $HOME/LUA/ ,
like this.
023-06-16_22-37-23.jpg
strange. not works transparency, MX21.3 XFCE, glx with xfwm.
(The garbled characters are caused by the Japanese environment.)
You do not have the required permissions to view the files attached to this post.
In the world filled desire,
I seek only essence, serve for MX.
I just needing only ideal in the art at all.
I want to protect place of rest called MX LINUX. :coffee:
Sony VAIO Pro 11inch Silver (FHD) extrox (MX23)

Post Reply

Return to “MX Fluxbox Official Release”