You are not logged in.
simon.swe wrote:2 hours with monster http://ompldr.org/vZXVuaw
WIP#fitthora? Inte det vackraste namnet på en kanal när man visar ett screenshot ))
verkligen inte
Offline
Haha, fan va lol.
Offline
Okay, here's the finished product which I modified all day long:
Here's the script, beware of the dirtyness!
#!/usr/bin/env bash
wm=monsterwm
ff="/tmp/$RANDOM.monsterwm.fifo"
tags=(' null' ' web' ' foo' '')
layouts=('' '' '' '' '')
[[ -p $ff ]] || mkfifo -m 600 "$ff"
function statusbar {
# mpd status
music="$(mpc current -f "%title% #\f8by #\f9%artist%")"
if [ -z "$music" ]; then music="[stopped]" mstat=""
else
mstat="$(mpc | sed -rn '2s/\[([[:alpha:]]+)].*/\1/p')"
[ "$mstat" == "paused" ] && mstat="" || mstat=""
fi
# date and time
date="$(date +"%H:%M")" dstat=""
# Print
echo "\r "\\b4 \\f1$mstat\\fr \\br" "$music" "\\b4 \\f1$dstat\\fr \\br" "$date ""
}
while read -t 1 -r wmout || true; do
if [[ $wmout =~ ^(([[:digit:]]+:)+[[:digit:]]+ ?)+$ ]]; then
read -ra desktops <<< "$wmout"
tmp=
for desktop in "${desktops[@]}"; do
IFS=':' read -r d w m c u <<< "$desktop"
# Tags labels
label=${tags[$d]}
# Current desktop color and enclosing char (yes/no)
((c)) && fg="8" bg="1" lc="\u6 " rc=" \ur" && layout="\\b2 \\f1"${layouts[$m]}"\\fr \\br" || fg="9" bg="0" lc=" " rc=" "
# Has windows ?
((w)) && ((! c)) && fg="9" lc="\u5 " rc=" \ur"
# Urgent windows ?
((u)) && fg="0" bg="2" lc="\u4 " rc=" \ur"
tmp+="\f$fg\b$bg$lc$label$rc\fr\br"
done
tmp+=" $layout"
fi
echo "$tmp $(statusbar)"
done < "$ff" | bar &
$wm > "$ff"
rm $ff
Last edited by Shinryuu (2012-07-27 12:56:39)
Offline
Nice, can you share the bar config?
Offline
Thanks, it's DejaVu.
I was referring to icons in panel. How did you do that?
Offline
dnuux wrote:Thanks, it's DejaVu.
I was referring to icons in panel. How did you do that?
He used two fonts, one being DejaVu, the second being a font filled entirely with icons. Then when he pipes text to the statusbar it loads the specified icons when the specific unicode for the font is used. That's what I do at least . There was a guide on this board to do it but I don't have the link on me atm.
Offline
kuraku wrote:dnuux wrote:Thanks, it's DejaVu.
I was referring to icons in panel. How did you do that?
He used two fonts, one being DejaVu, the second being a font filled entirely with icons. Then when he pipes text to the statusbar it loads the specified icons when the specific unicode for the font is used. That's what I do at least . There was a guide on this board to do it but I don't have the link on me atm.
Well actually I'm using dzen2 so I just used xbm icons.
Offline
Nice, can you share the bar config?
Check my post for the update
Offline
Okay, here's the finished product which I modified all day long:
http://ompldr.org/tZXY4MQ
Nice config. I am inspired by it .
[github]
Offline
Check my post for the update
Thanks
Offline
Offline
Dont know if you see. But I am using xflux so the screen is yellowbrowndark because its night time.
I have everything I need in the bar. The first thing after the pager and the gridlayout indicator is number of tasks running. a gmail python script, uptime, space left, local ip, mem, cpu, last irssi notification, torrent status, wifi, mpd, alsamixer and date.
Last edited by simon.swe (2012-08-01 20:04:19)
Offline
Dont know if you see. But I am using xflux so the screen is yellowbrowndark because its night time.
Nope, (x)f.lux is changing color temperature directly on monitor and it is not coloring your desktop so that is why we cant see it
Offline
Offline
just a basic setup of monsterwm (+windowtitles) + bipolarbar + conky
bipolarbar output on left via monsterwm's startup script, inspired by (plagiarised from) @stlarch & @c00kiemon5ter's gist
bar output on right via conky; standard outputs plus a couple of home-grown ruby scripts (pacnew checking & git status of dotfile collection)
Edit: ended up backing out the windowtitles patch as my hacked-together script to populate the left-side output was causing some errors. More tinkering while I sort that out...
Last edited by robstwd (2012-08-21 07:27:50)
Offline
Okay, here's the finished product which I modified all day long:
http://ompldr.org/tZXY4MQHere's the script, beware of the dirtyness!
What font do you use for the bar?
[github]
Offline
Shinryuu wrote:Okay, here's the finished product which I modified all day long:
http://ompldr.org/tZXY4MQHere's the script, beware of the dirtyness!
What font do you use for the bar?
That's Ohsnap, made by stlarch. You can find its topic here on the boards and it's also in the AUR
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
FirePhoenix wrote:What font do you use for the bar?
That's Ohsnap, made by stlarch. You can find its topic here on the boards and it's also in the AUR
I've thought that but ohsnap doesn't have some icons on the image. I think it's mod-ed ohsnap.
I am so lazy to modify font so I ask him. (j/k)
[github]
Offline
Unia wrote:FirePhoenix wrote:What font do you use for the bar?
That's Ohsnap, made by stlarch. You can find its topic here on the boards and it's also in the AUR
I've thought that but ohsnap doesn't have some icons on the image. I think it's mod-ed ohsnap.
I am so lazy to modify font so I ask him. (j/k)
Wrong, icons are Stlarch and Ohsnap goes for the text
#define BAR_FONT "-Misc-Stlarch-Medium-R-Normal--10-100-75-75-C-80-ISO10646-1", \
"-*-ohsnap.icons-medium-r-*-*-12-*-*-*-*-*-*-*"
Last edited by Shinryuu (2012-08-22 12:00:32)
Offline
Wrong, icons are Stlarch and Ohsnap goes for the text
#define BAR_FONT "-Misc-Stlarch-Medium-R-Normal--10-100-75-75-C-80-ISO10646-1", \ "-*-ohsnap.icons-medium-r-*-*-12-*-*-*-*-*-*-*"
Thank you so much. I will try those font.
-Edit-
And here is mine. Colorful desktop LOL.
It's based on your config
Very clean
Last edited by FirePhoenix (2012-08-23 03:19:18)
[github]
Offline
Shinryuu, stlarch and kuraku have the sexiest configs IMO.
Here's mine:
http://ompldr.org/vZjdwdA/screen.png
Last edited by kalle97 (2012-08-24 06:15:32)
Offline
No more patching
How boring
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline