cwm
Forum rules
Post your scrot in the appropriate section. If the section does not exist yet - open a new thread ;)
Post your scrot in the appropriate section. If the section does not exist yet - open a new thread ;)
Re: cwm
sure GP, it is actually
or whatever color.
Unfortunately compton and xsetroot does not play nice, so I took a screen shot and use as
with just a slight touch of cool hsetroot effects
The font is a bit small, but readable. I like it so far.
Code: Select all
xsetroot -bg \#181513 -mod 3 3
Unfortunately compton and xsetroot does not play nice, so I took a screen shot and use as
Code: Select all
hsetroot -fill /data/walls/sqtiles.png -blur 1 &
The font is a bit small, but readable. I like it so far.
Work hard; Complain less
- ivanovnegro
- Minister of Truth
- Posts: 5449
- Joined: Wed Oct 17, 2012 11:12 pm
Re: cwm
Ok, I will also stop to post scrots. Damn you Drew. :P I noticed that I already did not post anything new. Just cannot keep the high level of quality here.
Re: cwm
just like to share my current config, only a different wall though. Actually saw MB posted on munch, so I posted this up there too. Just a little reminder we are still around. Let's guess why the title is as such.
Work hard; Complain less
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: cwm
celebacon? nah, the only ones who noticed me are s11 and dgz (who is also a user here, IIRC) :)
anyway drew scrots are fucking beautiful, and that's what counts (nice scheme there!)
anyway drew scrots are fucking beautiful, and that's what counts (nice scheme there!)
..gnutella..
Re: cwm
In the process of my Constantine cwm layout, pretty sure I've broken env-info.
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: cwm
You haven't broken it. The 'free' changed in recent upgrades (package procps):
simply change to:
Code: Select all
procps (1:3.3.10-1) unstable; urgency=medium
* New upstream source
- sysctl --system loads default config file Closes: #732920
- free considers slabs in displayed totals Closes: #565518
Code: Select all
mem=$(free -m | awk 'NR==2 {total=$2} NR==2 {used=$3; print used"M / "total"M"}')
..gnutella..
Re: cwm
beautiful wall!
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.
Re: cwm
Well, more than one way to skin a cat :). Here was my sed-based "fuck what output 'free -m' gives me" answer to the same problem.
Probably could have been written in less steps, but it made me mad that the changes to free borked a very clean script, so I say let's not use free at all.
Edit: Damn, getting off the topic of pretty scrots. Dkeg! Save us!!! (Also, thanks Rho)
Code: Select all
print-mem() {
# field 2 on line 2 is total, field 3 on line 3 is used
# use "free -m" because slackware doesn't have "free -h"
# mem=$(free -m | awk 'NR==2 {total=$2} NR==3 {used=$3; print used"M / "total"M"}')
memfree=$(sed -n -e '/^MemFree/p' /proc/meminfo | sed -e 's/[^0-9]//g')
memtotal=$(sed -n -e '/^MemTotal/p' /proc/meminfo | sed -e 's/[^0-9]//g')
membuffer=$(sed -n -e '/^Buffers/p' /proc/meminfo | sed -e 's/[^0-9]//g')
memcached=$(sed -n -e '/^Cached/p' /proc/meminfo | sed -e 's/[^0-9]//g')
usedmem="$(((($memtotal - $memfree) - $membuffer - $memcached) / 1024))"
totalmem="$(($memtotal / 1024))"
mem="$usedmem / $totalmem"
color-echo 'Mem' "$mem"
}
Edit: Damn, getting off the topic of pretty scrots. Dkeg! Save us!!! (Also, thanks Rho)
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: cwm
Or awk it:
Talking of trimming a pussy :D
Code: Select all
cat /proc/meminfo | awk '/MemTotal/ {print "Total:" $2/1024}'
cat /proc/meminfo | awk '/MemFree/ {print "Free:" $2/1024}'
..gnutella..
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: cwm
How rude of me. I did see that. Saw it on the train one day. I thought it was cool. Thanks for sharing them out. Was going to +1 it, but thought +1'ing my own stuff was lame, even though I'd just be +'ing the fact you shared it.
Anyway, yeah, thanks brother.
Anyway, yeah, thanks brother.
Work hard; Complain less
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
Re: cwm
Thanks for this.pidsley wrote:env-info is fixed on git (pidsley/codemangler). Fixed version is 3.3 (use "env-info -v" to check the version, or just look at the code ;)
Also, enough with these great scrots everybody! :)