How far to bloat configs

A section for Window Manager configurations. If the WM doesn't exist yet, simply start a new thread.
Forum rules
Configurations, tips, questions and answers related to window managers only.
User avatar
Alad
should take a shower
Posts: 447
Joined: Wed May 21, 2014 12:52 am

How far to bloat configs

Unread post by Alad » Fri Jul 04, 2014 9:04 pm

How much bloat do your WM configs have to perfectly suit your needs? Or put differently, how daring or conservative do you feel are various WM defaults.

In my case, ~/.i3/config grew from 177 to 315 lines (almost double in size). Mr. Michael seems to rely more on users following documentation and their own ingenuity, rather than to build a complex config for them.
It's funny how we used to be able to do real stuff with rudimentary computers, but now we can't. -- ratcheer

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: How far to bloat configs

Unread post by machinebacon » Fri Jul 04, 2014 11:14 pm

Good question. I'm mostly using spectrwm and just copy the default (/etc/spectrwm.conf) with a few lines modified, nothing added.

It's usually a good idea to take a look into /usr/share/doc/.../examples (or so) for some ideas, for example tmux has a handful of nice config files there, from which the user can copy some snippets.

But generally, I try to keep it as vanilla as possible (as long as the dev has sane defaults for most or all of my everyday apps -- Emacs usually requires some manual modification of keybindings in the WM).
..gnutella..

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: How far to bloat configs

Unread post by dkeg » Sat Jul 05, 2014 12:08 am

for some reason, i3 configs tend to get quite large. They kind of even start off that way. I don't tend to bloat them up that much anymore. cwm I bloated a bit, but more of a learning experience, reading though the docs and figuring stuff out. Others I tend to add the basics and use dmenu for the rest. I don't do keybindings anymore to start programs; only dmenu, urxvt, stats. Other than wm's, my configs stay pretty basic, adding to or tweaking as needed. I think its actually pretty organic. Some configs will grow with experience, while others will shrink. Take pidsley's cwmrc for instance.

Work hard; Complain less

User avatar
bones
Clooney
Posts: 2385
Joined: Fri Jun 28, 2013 11:47 pm
Location: Cascadia

Re: How far to bloat configs

Unread post by bones » Sat Jul 05, 2014 3:28 am

I keep an .Xresources file that I use for Linux or BSD, and I use stock spectrwm on both Slackware and OpenBSD. I might add some things to the bar, like battery and such on the T61, but I haven't yet (easy enough to check in a console that's already open).

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: How far to bloat configs

Unread post by machinebacon » Sat Jul 05, 2014 9:55 am

bones, I use this for the spectrwm bar (align=left, comment the date line), and put

Code: Select all

sleep 3s && conky -c ~/.conkyrc | while read -r; do osd_cat -c #64ce9d -A center -l 1 -f -*-fixed-*-*-*-*-9-*-*-*-*-*-*-*; done &
into .xinitrc.

the conkyrc for it (thanks to pidsley)

Code: Select all

# super simple conky for wms that have their own status bar (spectrwm, dwm)

# this file is provided with NO GUARANTEE and NO SUPPORT
# if it does not do what you want, FIX IT YOURSELF

out_to_x no
background no
out_to_console yes
update_interval 5
total_run_times 0
use_spacer none
top_name_width 5
short_units

TEXT
M:$mem / C:$cpu% ${hwmon 0 tempf 1}F / D:${fs_used /} / ${time %l:%M %P %a %d %b} 


or a keybind for /usr/local/share/osd

Code: Select all

#! /bin/bash

temp=$(cat /sys/class/thermal/thermal_zone0/temp | awk '{print $1/1000}') 
mem=$(free -m | grep buffers/cache | sed -e 's/[buffers/cache -+ :]//g' | sed 's/.\{4\}$//')
time=$(date | sed -e 's/EST 2013//g') 
batt=$(cat /sys/class/power_supply/BAT0/capacity)
vol=$(exec amixer get Master | egrep -o "[0-9]+%" | egrep -o "[0-9]*")

#OUTPUT=
$(echo -e $time '|' BATT: $batt '|' RAM: $mem '|' TEMP: $temp '|' VOL: $vol| osd_cat -f -*-terminus-*-*-*-*-12-*-*-*-*-*-*-* -p top -A center -d 10 -c grey -l 1)
..gnutella..

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: How far to bloat configs

Unread post by GekkoP » Sat Jul 05, 2014 10:03 am

Ratpoison configs are pretty simple and clear (thank you, Pidsley). Not too much bloat in there, and I love those configs. Only thing I bloated a little is dwm's config.h and dwm.c, but just because I patched the WM to do what I need.

User avatar
ivanovnegro
Minister of Truth
Posts: 5449
Joined: Wed Oct 17, 2012 11:12 pm

Re: How far to bloat configs

Unread post by ivanovnegro » Sat Jul 05, 2014 2:04 pm

Evilwm, there is really nothing to configure, like I said once, only the border colors and the meta key and, thanks Pidsley for the patch on the mouse button.

User avatar
bones
Clooney
Posts: 2385
Joined: Fri Jun 28, 2013 11:47 pm
Location: Cascadia

Re: How far to bloat configs

Unread post by bones » Sat Jul 05, 2014 2:10 pm

The last three posts all thanked pidsley, awesome. :D So, thank you, pidsley, from me too. I know I use your stuff daily.

Also, thanks bacon for the configs!

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: How far to bloat configs

Unread post by pidsley » Sat Jul 05, 2014 6:44 pm

You are all welcome -- it's nice to know my work is appreciated.

I wrote a longer answer to Alad's question, but I think the real answer is "it depends on how you like to work, and what you think is complex." Also, as dkeg says, configuring is an organic process. My config files these days look nothing like the ones I used when I started playing with different window managers.

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: How far to bloat configs

Unread post by rhowaldt » Sun Jul 06, 2014 9:14 pm

i think this depends on a couple of factors. first, the more customization-options, the longer your hypothetical config can be. second, is the config programmed in such a way that leaving a certain line out disables it or do you explicitly need to set it to 'false'. third, when you dont need to explicitly set certain options, are you the type of person who does it anyway because you like that better?
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.

Post Reply