You are not logged in.
I was really wanting to have color in my status bar using conky and the default dwm status bar, and had come across this solution, but found that it was more demanding on my cpu than I would have liked (conky's man warns of this), but figured out that the problem was really with the interval, and that this could easily be fixed by changing his solution to something like this:
${execi 10000 echo -e \\x04}
This works great because you aren't really looking to update the color except when making a modification to conky, and then you would update it manually anyway. I thought I would share this since I saw a couple of other posts from people wanting to do the same thing.
dwm + statuscolors, fancybar, fibonacci, attachabove, uselessgap
conkyrc:
out_to_console yes
out_to_x no
background no
update_interval 5
total_run_times 0
use_spacer none
TEXT
${execi 10000 echo -e \\x04}CPU1${execi 10000 echo -e \\x01} ${cpu cpu1}% @ ${freq cpu1}MHz ${hwmon temp 1}c ${execi 10000 echo -e \\x04}CPU2${execi 10000 echo -e \\x01} ${cpu cpu2}% @ ${freq cpu2}MHz ${hwmon temp 3}c ${execi 10000 echo -e \\x04}Mem${execi 10000 echo -e \\x01} $mem ${execi 10000 echo -e \\x04}Net${execi 10000 echo -e \\x01} ${wireless_essid wlan0} ${wireless_link_qual_perc wlan0}% ${downspeed wlan0} ${upspeed wlan0} ${execi 10000 echo -e \\x04}Vol${execi 10000 echo -e \\x01} $mixer% ${execi 10000 echo -e \\x04}Bat${execi 10000 echo -e \\x01} ${battery_percent BAT1}% | ${time %a %b %d %I:%M%P}
I laugh, yet the joke is on me
Offline
Giving dwm another try and loving it so far. ty to OK100 for making his files available. They helped a lot.
* Inconsolata font.
* Conky used in the bar.
* Arch Suede wallpaper.
* Lich colors.
Offline
kcirick wrote:New dwm set up. tray is stalonetray
OK100 wrote:dwm on eeepc with some patches:
- cycle
- pango
- uselessgaps
- nbstack
- pertag2
- push
- pidgin layout
- scratchpadHow did you guys get stalonetray into dwm top bar like that? I've been trying to figure out how but don't know =/
Tray on screenshots is fbpanel-dwm from AUR, but now I'm using a patch that adds tray directly into dwm. You can find it in my dwm repo.
Offline
Offline
I still get a gap at the bottom when there are 2 urxvts stacked even with the patched version, but it doesn't bother me enough for me to do something about it.
Have you tried resizehints?
static const Bool resizehints = False; /* True means respect size hints in tiled resizals */
Offline
That worked. ha.
Offline
12 months of dwm <3, really don't know what I'd do without it!
confs @ http://www.meyithi.com/dots/nb/
Offline
a bit late to the game, but do you have the wallpaper? also: how did you make the statusbar?
Offline
tvale wrote:a bit late to the game, but do you have the wallpaper? also: how did you make the statusbar?
It's from simpledesktops http://simpledesktops.com/browse/
Search it there.
Offline
Thanks! Awesome site, I din't know about it.
Offline
What menu is that? is it set to right-click?
I'm looking for a way of having a statusbar with icons and info about which netcfg profile is active, like the one tvale uses. He seems to be afk though
Offline
What menu is that? is it set to right-click?
Menu is mygtkmenu from AUR and I set this script, which generates menu in config.h to desktop right-click: https://github.com/ok100/configs/blob/m … gtkmenu.py
See my github for more details.
Offline
nice! I'll totally steal that script, a menu was always missing for me
Offline
also have a look at xmenud, its a similar menu app
Offline
Thanks, but mygtkmenu seems enough.
I also ditched the python-script as automatic menus aren't necessary for me and tend to get to clustered with useless apps.
I'm looking for a way of having a statusbar with icons and info about which netcfg profile is active, like the one tvale uses. He seems to be afk though sad
https://bbs.archlinux.org/viewtopic.php?id=74742
could that work? (says it works with dzen)
Offline
thanks vanvalium, but I'm looking for something even more simple.
like this:https://bbs.archlinux.org/viewtopic.php?pid=901283#p901283
Offline
Offline
OK100 wrote:http://dl.dropbox.com/u/15563529/Thumbnails/2011-05-08-202829_800x480_scrot.png_thumb.png
I still use tray (fbpanel-dwm from AUR) but it's set to autohideDo you care to share the name of the file manager in the right bottom of the screenshot?
It's mc, with menu, command line and keybar turned off.
Offline
I'm having trouble compiling this. I don't know C so I'm asking for some help.
my config.h
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "-windows-montecarlo-medium-r-normal-*-11-110-72-72-c-60-microsoft-cp1252";
static const char normbordercolor[] = "#cccccc";
static const char normbgcolor[] = "#ffffff";
static const char normfgcolor[] = "#336699";
static const char selbordercolor[] = "#ffffff";
static const char selbgcolor[] = "#336699";
static const char selfgcolor[] = "#ffffff";
static const unsigned int borderpx = 2; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = True; /* False means bottom bar */
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, True, -1 },
};
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 2; /* default number of clients in the master area */
static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
#include "nbstack.c"
static const Layout layouts[] = {
/* symbol arrange function */
{ "=2]", ntile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
{ "T2T", nbstack },
};
/* tagging */
static const Tag tags[] = {
/* name layout mfact nmaster */
{ "term", &layouts[0], -1, -1 },
{ "web", &layouts[2], -1, -1 },
{ "im", &layouts[1], 0.75, -1 },
{ "torrent", &layouts[2], -1 -1 },
{ "media", &layouts[1], -1 -1 },
};
/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "urxvtc", NULL };
static const char *wwwcmd[] = { "www", NULL };
static const char *homecmd[] = { "pcmanfm", NULL };
static const char *quitcmd[] = { "sudo","halt", NULL };
static const char *rebootcmd[] = { "sudo","reboot", NULL };
static const char *yawn[] = { "sudo","s2ram","-f", NULL };
static const char *voldowncmd[] = { "amixer", "-q", "set", "Master", "2dB-", NULL };
static Key keys[] = {
/* modifier key function argument */
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = voldowncmd } },
{ MODKEY, XK_r, spawn, {.v = dmenucmd } },
{ MODKEY, XK_e, spawn, {.v = termcmd } },
{ MODKEY, XK_w, spawn, {.v = wwwcmd } },
{ MODKEY, XK_n, spawn, {.v = homecmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY, XK_q, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_q, spawn {.v = quitcmd } },
{ MODKEY|ShiftMask, XK_r, spawn {.v = rebootcmd } },
{ MODKEY|ShiftMask, XK_y, spawn {.v = yawn } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_c, quit, {0} },
};
/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
the error:
dwm build options:
CC dwm.c
CFLAGS = -march=native -O2 -pipe -std=c99 -pedantic -Wall -O2 -I. -I/usr/include -I/usr/include/X11 -pthread -I/usr/include/freetype2 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DVERSION="5.8.2" -DXINERAMA
LDFLAGS = -Wl,--hash-style=gnu -Wl,--as-needed -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama -pthread -lpangoxft-1.0 -lpangoft2-1.0 -lXft -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
CC = cc
In file included from dwm.c:292:0:
config.h:69:34: error: ‘XF86XK_AudioLowerVolume’ undeclared here (not in a function)
dwm.c: In function ‘initfont’:
dwm.c:1032:20: warning: variable ‘font_extents’ set but not used [-Wunused-but-set-variable]
dwm.c: At top level:
dwm.c:1546:1: warning: ‘setnmaster’ defined but not used [-Wunused-function]
dwm.c:1535:1: warning: ‘incnmaster’ defined but not used [-Wunused-function]
config.h:62:20: warning: ‘quitcmd’ defined but not used [-Wunused-variable]
config.h:63:20: warning: ‘rebootcmd’ defined but not used [-Wunused-variable]
config.h:64:20: warning: ‘yawn’ defined but not used [-Wunused-variable]
make: *** [dwm.o] Error 1
thanks!
Offline
You have to add this before you define media keys:
#include "X11/XF86keysym.h"
Other errors mean you should clean the code -- aka. remove / comment parts you don't use.
Last edited by bohoomil (2011-05-15 19:59:33)
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
I'm having trouble compiling this. I don't know C so I'm asking for some help.
This isn't a support thread (that's why it's in Screenshots ), and the beauty of dwm's code is that even without knowing C, you can figure most of it out...
Where each of the errors occurs, just review the relevant lines in config.h and you will see what is wrong. No commas after spawn, for example...
Offline
Thanks I didn't notice the missing commas *facepalm*
And sorry for posting this here...
I'll contribute in a correct way in the future
Offline