Deviation Actions

vermaden's avatar

XMOBAR instead CONKY and DZEN2

By
Unfortunately both CONKY and DZEN2 has their issues I (hopefully) finally settled with XMOBAR.

CONFIG(s): [link] [link]
Image details
Image size
1680x1050px 289.37 KB
Published:
© 2011 - 2021 vermaden
Comments20
Join the community to add your comment. Already a deviant? Log In
UNIXwz0r's avatar
please get a hold of me ... I really want this wallpaper :)
UNIXwz0r's avatar
your link is broken..


where did u get this wallpaper!!!
UNIXwz0r's avatar
can't find this wallpaper.
UNIXwz0r's avatar
Where is this wallpaper ?
UNIXwz0r's avatar
where is that twix unix wallpaper man . i try to find it everywheres
UNIXwz0r's avatar
may I ask how u got all that stuff working on xmobar... as i had a config but it seem to work only with linux, i'm trying to find how i can do this with xmobar.. as i get stuff like error: /proc/meminfo: openFile: does not exist hmm weird
vermaden's avatar
Even if You mount /proc on FreeBSD, it does contain only the pseudo directories with stats/information for pids. It does not contain all the Linuxisms like /proc/cpuinfo or /proc/swap or whatever.

If You take a Linux script and put it on FreeBSD it mostly ends up not working.

On FreeBSD I used a script that would gather that data without /proc, for example from sysctl.


% cat ~/scripts/xmobar.sh
#! /bin/sh

date +"<fc=#AAAAAA>date:</fc> <fc=#EEEEEE>%Y/%m/%d/%A/%H:%M</fc>" | tr '[A-Z]' '[a-z]'

echo -n " <fc=#dd0000>|</fc> <fc=#aaaaaa>cpu:</fc> <fc=#eeeeee>"

top -b 10 | awk 'NR>8 { gsub(/%/,"",$0); CPU+=$11; } END { split(CPU,cpu,"."); print cpu[1]; }'

echo -n "%/"

sysctl -n dev.cpu.0.freq

echo -n "MHz/"

sysctl -n dev.cpu.0.temperature | awk -F '.' '{print $1}'

echo -n "C</fc> <fc=#dd0000>|</fc> <fc=#aaaaaa>load:</fc> <fc=#eeeeee>"

sysctl -n vm.loadavg | awk '{ print substr($2,0,3) "/" substr($3,0,3) "/" substr($4,0,3) }'

BOOT=$( sysctl -n kern.boottime | awk 'match($0, / sec = [0-9]+/) { $0 = substr($0, RSTART, RLENGTH); print $3 }' )
DATE=$( date +%s )
echo -n " <fc=#dd0000>|</fc> <fc=#aaaaaa>uptime:</fc> <fc=#eeeeee>$( date -r $(( ${DATE} - ${BOOT} - 3600 )) +"%k:%M" | tr -d ' ' )</fc>"

echo -n "</fc> <fc=#dd0000>|</fc> <fc=#aaaaaa>ps:</fc> <fc=#eeeeee>"

sysctl -n vm.vmtotal | awk 'match($0, /Processes/) { gsub(/\)/,"",$11); print $3 "/" $6 "/" $9 "/" $11 }'

echo -n "</fc> <fc=#dd0000>|</fc> <fc=#aaaaaa>mem:</fc> <fc=#eeeeee>"

MEM_PAGE=$( sysctl -n hw.pagesize )
MEM_SIZE=$(( $( sysctl -n vm.stats.vm.v_page_count )     * ${MEM_PAGE} / 1024 / 1024 ))
MEM_INCT=$(( $( sysctl -n vm.stats.vm.v_inactive_count ) * ${MEM_PAGE} / 1024 / 1024 ))
MEM_FREE=$(( $( sysctl -n vm.stats.vm.v_free_count )     * ${MEM_PAGE} / 1024 / 1024 ))
MEM_USED=$(( ${MEM_SIZE} - ${MEM_FREE} - ${MEM_INCT} ))

echo -n "$(( 100 * ${MEM_USED} / ${MEM_SIZE} ))%/$(( ${MEM_USED} ))M"

echo -n "</fc> <fc=#dd0000>|</fc> <fc=#aaaaaa>ip:</fc> <fc=#eeeeee>$( if_ip.sh )</fc>"

echo -n "<fc=#dd0000>|</fc> <fc=#aaaaaa>vol/pcm:</fc> <fc=#eeeeee>$( __conky_mixer_vol.sh )/$( __conky_mixer_pcm.sh )</fc> "

echo -n "<fc=#dd0000>|</fc> <fc=#aaaaaa>fs:</fc> <fc=#eeeeee>"

zpool list storage | awk 'END{print $5 "/" $4}'

echo -n "</fc> <fc=#dd0000>|</fc> <fc=#aaaaaa>bat:</fc> <fc=#eeeeee>$( battery.sh )</fc>"


What are you using to get the taskbar (running apps) icons below the status bar? Cool setup btw!
vermaden's avatar
Its tint2, I have simplified all that into this: [link]

TOPLEFT: lxpanel
TOP/TOPRIGHT: conky
TOP/BOTTOM: tint2
TheDexter1111's avatar
vermaden's avatar
There You go mate ;) [link]
TheDexter1111's avatar
bikerboy's avatar
I am going to copy you and try XMOBAR and Deadbeef :lol:
vermaden's avatar
I must say that I am really happy user of both of them, especially deadbeef feels a lot better after update to 0.4.4, lots of new useful features, as for xmobar ... I use it for the first time and I am very impressed.

You can grab my xmobar configuration here if You like, it works on FreeBSD: [link]
bikerboy's avatar
Why do you have the spacing on top between the various icons?

and what do you use for the icons on the left? wbar?
vermaden's avatar
> Why do you have the spacing on top between the various icons?
4 different desktops ;)

> and what do you use for the icons on the left? wbar?
Yes, here is the config if You want: [link]
vermaden's avatar
Join the community to add your comment. Already a deviant? Log In