You are not logged in.
Offline
@ pks: do you mind share config.h, dwm.c and browser's config?
Thanks a lot and... Berlin how I miss it.... Such a beautiful city. ;(
Last edited by rix (2012-12-04 10:17:55)
Offline
Thanks a lot and... Berlin how I miss it.... Such a beautiful city. ;(
It is, at least most locations in Berlin. You lived there?
@ pks: do you mind share config.h, dwm.c and browser's config?
I don't mind at all. Take a look at my Repository. It will be hard to extract patches, though, as I didn't care for backwards compatibility. Anyway, each commit should more or less resemble a single feature. Just ask if you are interested in something specific.
Here's my latest change with a modified tag bar so that the selected tag is dispayed with an overlining bar.
Last edited by pks (2012-12-04 11:01:26)
Offline
[...] You lived there? [...]
Unfortunatly no. But I hope.
For now I visited it many times and have fallen in love with it.
[...] I don't mind at all [...]
Thanks really a lot.
Last edited by rix (2012-12-04 10:46:47)
Offline
So as of last night at oh, 23:30 or so, I decided to switch from i3 to dwm. So far it's holding up nicely. The config is in my opinion nicer, and the recompiling is not a hassle at all if you know how to use makepkg. My dwm is all unpatched, and I don't (at the moment) see too much need for it. I hide the status bar most of the time as well.
I've got a semi-custom status bar, thrown together from some selective patching of suckless' dwmstatus project. Also, running on systemd --user, so restarting on the fly is easy and non-destructive. A simple mod+shift+R after an update just flashes the bar and everything is brand new!
I'll be putting the status stuff on my github soon enough. The config.h is already there in the pkgbuilds repo.
Thinkpad T420 | Intel 3000 | systemd {,--user}
PKGBUILDs I use | pywer AUR helper
Offline
cool config can you share the config files ?
Offline
KieranQuinn wrote:cool config can you share the config files ?
I have updated the set-up quite a lot, but it does have the same colour scheme. My configs are on my GitHub, but the're not completely up-to-date, yet.
GUI: chromium, geany, skype, thunar, transmission, deadbeef, vlc, feh.
CLI: urxvt, vim, irssi, ranger, moc.
GTK: FlatStudioDark (modded).
Icons: AwOken.
Last edited by KieranQuinn (2013-01-08 16:11:48)
Offline
Lately I ran to dwm and try to show icons on statusbar, but failed T_T.
I followed this post.
but when I type "echo -e '\uE015'" on urxvt, it shows nothing.
in .xinitrc
xsetroot -name "$(echo -e '\uE015')"
dwm config.h
static const char font[] = "ohsnap:size=9:antialias=true:hinting=true" "," "-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*"
Am I missing someting or doing something wrong ?
take it easy
Offline
delta_4d, this is a config sharing thread, not a troubleshooting thread.
If you want to solve that, please start a new thread and provide *a lot* more information including which patches you have applied and whether other strings can be displayed in the status, whether that echo command works from a terminal within dwm, and where in your xinitrc that line is.
Last edited by Trilby (2013-01-11 13:26:02)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Really sorry about it. I will start a new thread.
Thx Trilby.
take it easy
Offline
/* woddfellow2's dwm Config
by woddfellow2 | http://wlair.us.to/ */
#include "bstack.c"
#include "bstackhoriz.c"
// Appearance ------------------------------------------------------------------
static const char font[] = "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-*";
static const char normbordercolor[] = "#222222";
static const char normbgcolor[] = "#050505";
static const char normfgcolor[] = "#CCCCCC";
static const char selbordercolor[] = "#2255FF";
static const char selbgcolor[] = "#2255FF";
static const char selfgcolor[] = "#FFFFFF";
static const unsigned int borderpx = 1;
static const unsigned int snap = 16;
static const Bool showbar = True;
static const Bool topbar = True;
// Tagging ---------------------------------------------------------------------
static const char *tags[] =
{
"term",
"www",
"gvim",
"media",
"other"
};
static const Rule rules[] =
{
{ "st", NULL, NULL, 1 << 0, False, -1 },
{ "st-256color", NULL, NULL, 1 << 0, False, -1 },
{ "Gimp", NULL, NULL, 1 << 4, True, -1 },
{ "Firefox", NULL, NULL, 1 << 1, False, -1 },
{ "Gvim", NULL, NULL, 1 << 2, False, -1 },
{ "feh", NULL, NULL, 1 << 3, False, -1 },
{ "Display", NULL, NULL, 1 << 3, True, -1 },
{ "MPlayer", NULL, NULL, 1 << 3, False, -1 },
{ NULL, NULL, NULL, 1 << 4, False, -1 },
};
// Layouts ---------------------------------------------------------------------
static const float mfact = 0.50;
static const int nmaster = 1;
static const Bool resizehints = True;
static const Layout layouts[] =
{
{ "[]=", tile },
{ "><>", NULL },
{ "[M]", monocle },
{ "TTT", bstack },
{ "===", bstackhoriz },
};
// Keybindings -----------------------------------------------------------------
#define MODKEY Mod4Mask
#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} },
#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 Key keys[] =
{
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, SHCMD("~/.st/st") },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.01} },
{ MODKEY, XK_l, setmfact, {.f = +0.01} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ 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 } },
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_q, quit, {0} },
// Custom Keybindings
{ MODKEY, XK_Escape, spawn, SHCMD("xautolock -locknow") },
{ MODKEY|ShiftMask, XK_grave, spawn,
SHCMD("~/.st/st -e screen -dRR") },
{ MODKEY, XK_x, spawn, SHCMD("banish") },
{ MODKEY|ShiftMask, XK_t, setlayout, {.v = &layouts[3]} },
{ MODKEY|ControlMask, XK_t, setlayout, {.v = &layouts[4]} },
{ MODKEY|ShiftMask, XK_f, spawn, SHCMD("firefox") },
};
// Mouse Bindings --------------------------------------------------------------
static Button buttons[] =
{
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
};
Patches:
dwm-5.7.2-attachaside.diff
dwm-6.0-bstack.diff
dwm-6.0-single_window_no_border.diff
(Again, add " break;" at the end of the if statement with {} in applyrules() in dwm.c to get the rules/"other" tag to work properly.)
1-Crawl 2-Cnfg 3-ATF 4-Exit ?
Offline
my config :
/* See LICENSE in dwm source code package for copyright and license details. */
/**/
/* This is the config.h for dwm with icons and colors in font.*/
/**/
/* This file was made by fiddler
/* This file can be distributed under the same license that dwm works with */
#include "im-grid.c"
#include "push.c"
#include "X11/XF86keysym.h"
#include "togglefullscreen.c"
/* appearance */
static const char font[] = "-*-stlarch-medium-r-*-*-10-*-*-*-*-*-iso8859-*" "," "-*-termsyn-medium-*-*-*-11-*-*-*-*-*-*-*";
#define NUMCOLORS 21
static const char colors[NUMCOLORS][ColLast][21] = {
// border foreground background
{ "#010900", "#a2fa9e", "#010900" }, // 01 - normal
{ "#010900", "#a2fa9e", "#010900" }, // 02 - selected
{ "#A1EE64", "#79E313", "#010900" }, // 03 - urgent
{ "#000902", "#000902", "#020202" }, // 04 - black
{ "#b77b07", "#b77b07", "#020202" }, // 05 - red
{ "#53DF22", "#53DF22", "#020202" }, // 06 - green
{ "#579A06", "#579A06", "#020202" }, // 07 - yellow
{ "#d8cc15", "#d8cc15", "#020202" }, // 08 - blue
{ "#3dc360", "#3dc360", "#020202" }, // 09 - magenta
{ "#000000", "#000000", "#000000" }, // unusable
{ "#A1EE64", "#A1EE64", "#020202" }, // 0B - cyan
{ "#bbbbbb", "#bbbbbb", "#020202" }, // 0C - light gray
{ "#4c4c4c", "#4c4c4c", "#020202" }, // 0D - gray
{ "#f72fb6", "#f72fb6", "#020202" }, // 0E - light red
{ "#A1EE64", "#A1EE64", "#020202" }, // 0F - light green
{ "#11ed44", "#11ed44", "#020202" }, // 10 - light yellow
{ "#729fcf", "#729fcf", "#020202" }, // 11 - light blue
{ "#772BBE", "#772BBE", "#020202" }, // 12 - light magenta
{ "#79E313", "#79E313", "#020202" }, // 13 - light cyan
{ "#ADE474", "#ADE474", "#020202" }, // 14 - white
{ "#802635", "#BF9F5F", "#802635" }, // 15 - warning
};
static const unsigned int borderpx = 1; // border pixel of windows
static const unsigned int snap = 5; // snap pixel
static const unsigned int systrayspacing = 1; // space between systray icons
static const Bool showsystray = False; // False means no systray
static const Bool showbar = True; // False means no bar
static const Bool topbar = True; // False means bottom bar
static Bool useicons = True; // False means use ascii symbols
static const char scratchpadname[] = "Scratchpad";
/* layout(s) */
static const float mfact = 0.50; // factor of master area size [0.05..0.95]
static const Bool resizehints = False; // True means respect size hints in tiled resizals
static const int nmaster = 1; // default number of clients in the master area
static const Layout layouts[] = {
// icon symbol arrange function
{ "/home/fiddler/dwm-config/icons/tile.xbm", "þ", tile },
{ "/home/fiddler/dwm-config/icons/bstack.xbm", "ü", bstack },
{ "/home/fiddler/dwm-config/icons/float.xbm", "ý", NULL }, // no layout function means floating behavior
{ "/home/fiddler/dwm-config/icons/monocle.xbm", "ÿ", monocle },
{ "/home/fiddler/dwm-config/icons/grid.xbm", "ú", imgrid },
};
static const MonocleNumberedIcon monoclenumberedicons[] = {
{ "/home/fiddler/dwm-config/icons/monocle0.xbm" },
{ "/home/fiddler/dwm-config/icons/monocle1.xbm" },
{ "/home/fiddler/dwm-config/icons/monocle2.xbm" },
{ "/home/fiddler/dwm-config/icons/monocle3.xbm" },
{ "/home/fiddler/dwm-config/icons/monocle4.xbm" },
{ "/home/fiddler/dwm-config/icons/monocle5.xbm" },
};
/* tagging */
static const Tag tags[] = {
// name layout mfact nmaster
{ "", &layouts[4], 0.65, -1 },
{ "", &layouts[2], -1, -1 },
{ "", &layouts[3], -1, -1 },
{ "", &layouts[3], -1, -1 },
{ "", &layouts[4], 0.22, -1 },
{ "", &layouts[2], 0.65, -1 },
{ "", &layouts[0], 0.65, -1 },
{ "", &layouts[3], -1, -1 },
{ "", &layouts[2], -1, -1 },
};
/* window rules */
static const Rule rules[] = {
// class instance title tags mask isfloating iscentred monitor
{ "mplayer", NULL, NULL, 0, True, -1 },
{ "Firefox", NULL, NULL, 1 << 3, False, -1 },
};
/* key definitions */
#define MODKEY Mod4Mask
#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", "-i", "-fn", font, "-nb", colors[0][ColBG], "-nf", colors[1][ColFG],"-sb", colors[2][ColBG], "-sf", colors[1][ColFG], NULL };
static const char *termcmd[] = { "urxvtc", NULL };
static const char *scratchpadcmd[] = { "urxvtc", "-title", scratchpadname, "-geometry", "70x9+400+10", NULL };
static const char *scrotcmd[] = { "scrot", "&&", "mv", "*.png", "~/pics/", NULL };
static const char *rangercmd[] ={ "urxvtc", "-e", "ranger", NULL};
static const char *musiccmd[] ={ "urxvtc", "-e", "ncmpcpp", NULL};
static const char *ncmpcmd[] ={ "urxvtc", "-e", "ncmpc", NULL};
static const char *webcmd[] ={"jumanji", NULL};
static const char *pcmanfmcmd[] ={"pcmanfm", NULL};
static const char *linkscmd[] ={"urxvtc", "-e", "xlinks", NULL};
#include "moveresize.c"
static Key keys[] = {
// modifier key function argument
/* Here starts the moveresize keys */
{ MODKEY, XK_Down, moveresize, {.v = (int []){ 0, 25, 0, 0 }}},
{ MODKEY, XK_Up, moveresize, {.v = (int []){ 0, -25, 0, 0 }}},
{ MODKEY, XK_Right, moveresize, {.v = (int []){ 25, 0, 0, 0 }}},
{ MODKEY, XK_Left, moveresize, {.v = (int []){ -25, 0, 0, 0 }}},
{ MODKEY|ShiftMask, XK_Down, moveresize, {.v = (int []){ 0, 0, 0, 25 }}},
{ MODKEY|ShiftMask, XK_Up, moveresize, {.v = (int []){ 0, 0, 0, -25 }}},
{ MODKEY|ShiftMask, XK_Right, moveresize, {.v = (int []){ 0, 0, 25, 0 }}},
{ MODKEY|ShiftMask, XK_Left, moveresize, {.v = (int []){ 0, 0, -25, 0 }}},
/* Here ends the moveresize keys */
/* Here starts the nmaster keys */
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
/*{ MODKEY, XK_x, setnmaster, {.i = 2 } },*/
{ MODKEY, XK_Tab, swapfocus, {0} },
{ MODKEY, XK_d, spawn, {.v = rangercmd } },
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_z, spawn, {.v = musiccmd } },
{ MODKEY|ShiftMask, XK_d, spawn, {.v = pcmanfmcmd } },
{ MODKEY, XK_w, spawn, {.v = webcmd } },
{ MODKEY|ShiftMask, XK_w, spawn, {.v = linkscmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ControlMask, XK_s, spawn, {.v = scrotcmd } },
{ MODKEY, XK_z, spawn, {.v = ncmpcmd } },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY|ShiftMask, XK_j, pushdown, {.i = +1 } },
{ MODKEY|ShiftMask, XK_k, pushup, {.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|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_b, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[2]} },
{ MODKEY|ShiftMask, XK_f, togglefullscreen, {0} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[3]} },
{ MODKEY, XK_g, setlayout, {.v = &layouts[4]} },
{ 0, XK_F12, togglescratch, {.v = scratchpadcmd} },
{ MODKEY|ShiftMask, XK_b, togglebar, {0} },
{ 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 } },
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_q, quit, {0} },
/*{ 0, XF86XK_Launch1, spawn, {.v = screenoffcmd } },
{ 0, XF86XK_PowerOff, spawn, {.v = shutdowncmd } },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = voldowncmd } },
{ 0, XF86XK_AudioMute, spawn, {.v = voltogglecmd } },
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = volupcmd } },
*/
};
#include "tilemovemouse.c"
/* 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} },
{ ClkWinTitle, 0, Button1, focusstack, {.i = +1 } },
{ ClkWinTitle, 0, Button3, focusstack, {.i = -1 } },
{ ClkClientWin, MODKEY, Button1, tilemovemouse, {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} },
/*{ ClkRootWin, 0, Button3, spawn, {.v = menucmd } },
{ ClkStatusText, 0, Button1, spawn, {.v = calendarcmd } },
{ ClkStatusText, 0, Button3, spawn, {.v = menucmd } },
*/
};
-Indonesia Raya-
Offline
I tried to explain tags and workflow in dwm:
http://www.wongdev.com/blog/2013/01/24/ … orkspaces/
All configs @ https://github.com/w0ng
Offline
I tried to explain tags and workflow in dwm:
http://www.wongdev.com/blog/2013/01/24/ … orkspaces/
Nice. Seems Connor has pulled his classic post on this topic, so yours is now the default!
Your blog looks good too.
# edit: you should add a link from the dwm wiki page...
Offline
I tried to explain tags and workflow in dwm:
http://www.wongdev.com/blog/2013/01/24/ … orkspaces/
I moved to dwm about a month ago from i3wm, and it uses the workspace concept, which I brought with me to dwm (used it pretty much the same way I used i3). After reading this I can see a while bunch of different ways to use dwm. Thanks!
Thinkpad T420 | Intel 3000 | systemd {,--user}
PKGBUILDs I use | pywer AUR helper
Offline
So after a while of messing with dwm, I've added a few patches as of late, notably the bstack patch and the focusonclick patch (well, a variation on it):
config.h
The statusbar is something I hacked together, and you can see the git repo of it in the screenshot.
The focusonclick patch from the suckless site didn't seem to work, but I found one on their mailing list: http://ix.io/4b8
It's from a while ago, but it still applies cleanly. Most of the patches I've added are referenced in the git repo, otherwise you can just cherry-pick it to get what you need.
Thinkpad T420 | Intel 3000 | systemd {,--user}
PKGBUILDs I use | pywer AUR helper
Offline
I tried to explain tags and workflow in dwm:
http://www.wongdev.com/blog/2013/01/24/ … orkspaces/
I've learned more from your github then I'd like to say. I look forward to reading your blog.
Cheers.
Offline
can you please share your ranger-config? didn't found it in your git-repo.
thanks, flexo
Fight war not wars, destroy power not people!
Offline
.
Last edited by cdown (2013-03-17 00:45:41)
Offline
What text editor is that? I also really like the color scheme in it.
Last edited by SolarBoyMatt (2013-02-22 17:55:15)
Offline