Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Kosmicznie to szybkie i intuicyjne, moze ktos jeszcze sie bawi bo mam pare problemow natury czysto kosmetycznej???
Ostatnio edytowany przez pink (2012-03-05 09:43:10)
Offline
http://dwm.suckless.org/tutorial
to wystarczy aby sie szybko przemieszczac miedzy oknami i odpalac programy.
Offline
ja z to zacznę ogarniać za jakieś pół roku jak sobie lapa sprawie z Archem na pokładzie.
dodam jeszcze to;
https://wiki.archlinux.org/index.php/Dwm
https://bbs.archlinux.org/viewtopic.php?id=74599
Offline
powiem tak jakes problemy mam z tymi patchami,
ale wersja z abs mi wystarcza.
Offline
Witam,
Może ktoś ma screeny patchów dwm?
Pozdrawiam,
Towarzysz Torrentow
Offline
nie bardzo wiem, jakie screeny masz na mysli.
https://bbs.archlinux.org/viewtopic.php?id=74599, o takie.
Offline
https://bbs.archlinux.org/viewtopic.php?id=135747
https://github.com/UliArmy/dwm-patches
https://github.com/UliArmy/dwm-hg-patches
metoda i patche dzialaja na 100% z dwm 6.x
Ostatnio edytowany przez pink (2012-03-21 18:12:34)
Offline
czy ktos mi moze podac jakies howto co do konfiguracji i patchowania dwm w debian.
jest tego pelno w sieci ale chce jakis przez was sprawdzony poki co nic mi nie dziala jak powinno (np: skroty klawiszowe kture przekopiowalem z arch-owego config.h)
Offline
Alt+Shift+Enter
Launch xterm
Alt+Shift+C
Kill a client (a window, if you must insist)
Alt+t
Switch to tile layout
Alt+m
Switch to monocle layout
Alt+f
Switch to floating layout
Alt+b
Show/hide bar
Alt+p
Launch dmenu
Alt+[num]
Switch to tag [num]
Alt+Shift+Q
Quit dwm
zaden z tych nie dziala
narazie tylko z patchem bstack.
konfig tutaj:
/* See LICENSE file for copyright and license details. */ /* appearance */ static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*"; static const char normbordercolor[] = "#444444"; static const char normbgcolor[] = "#222222"; static const char normfgcolor[] = "#bbbbbb"; static const char selbordercolor[] = "#005577"; static const char selbgcolor[] = "#005577"; static const char selfgcolor[] = "#eeeeee"; static const unsigned int borderpx = 1; /* 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 */ /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7" }; static const Rule rules[] = { /* xprop(1): * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ /* class instance title tags mask isfloating monitor */ { "Gimp", NULL, NULL, 0, True, -1 }, { "Firefox", NULL, NULL, 1 << 7, False, -1 }, }; /* layout(s) */ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const Bool resizehints = True; /* True means respect size hints in tiled resizals */ #include "bstack.c" #include "bstackhoriz.c" static const Layout layouts[] = { /* symbol arrange function */ { "TTT", bstack }, { "[]=", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, { "===", bstackhoriz }, }; /* 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 char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL }; static const char *termcmd[] = { "lxterminal", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { 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.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_c, killclient, {0} }, { MODKEY, XK_u, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_t, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[3]} }, { MODKEY, XK_y, setlayout, {.v = &layouts[4]} }, { 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} }, }; /* 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} }, };
Offline
Ale z czym masz konkretnie problem? Nie umiesz nałożyć patcha? Dwm się nie chce skompilować?
Offline
wszystko dziala patch dziala tylko moje keybindings nie dzialaja nawet te podstawowe np:
Alt+Shift+Enter
Launch xterm
Alt+Shift+Enter
Launch xterm
na tych mi zalezy.
Alt+p dmenu dziala i reszta dziala.
o ile pamietam to moze miec cos wspulnego z tym kto przechwytuje keybindings czy dwm czy dany program.
Ostatnio edytowany przez pink (2014-03-10 21:37:42)
Offline
Tak na szybko, z tego co widzę to tym configu który podałeś, Alt+Shift+Enter uruchamia lxterminal a nie xterm.
Spróbuj zmienić:
static const char *termcmd[] = { "lxterminal", NULL };
na
static const char *termcmd[] = { "xterm", NULL };
Jeżeli chodzi przechwytywanie to rzeczywiście lepiej zmienic modkey z alt na winkey, czyli zamiast
#define MODKEY Mod1Mask
dać:
#define MODKEY Mod4Mask
Offline
Tak z czystej ciekawości, jaką dwm ma przewagę nad np. i3? Oczywiście poza tym, że trzeba rekompilować za każdym razem żeby cokolwiek zmienić ;>
Offline
przyzwyczailem sie na archu i nie wiem dlaczego nie dziala na deb-ku
Offline
[quote=Kaleson]Tak z czystej ciekawości, jaką dwm ma przewagę nad np. i3? Oczywiście poza tym, że trzeba rekompilować za każdym razem żeby cokolwiek zmienić ;>[/quote]
To proste: Dwm suck less
;)
Offline
Eee, tam ;)
Jak dla mnie jest 'pretty suckful', nie ma takiego schludnego i prostego tekstowego configa jak i3 :P
Chociaż w sumie o to chodzi w tej ideologii suckless...
herbstluftwm ma bajer bo konfiguracja jest w bashu ;)
Ostatnio edytowany przez Kaleson (2014-03-10 22:47:44)
Offline
A fuj, tekstowy config w dwm, byłby jak wstrętna brązowa plama na tych Twoich lśniących kalesonach ;)
herbstluftwm ma bajer bo konfiguracja jest w bashu ;)[/quote]
Ooo tego nie znałem muszę spróbować!Ostatnio edytowany przez loop (2014-03-10 22:49:58)
Offline
dobra dobra, czego mi shift+alt+return i inne nie dzialaja
jak kolwiek by nie skonfigurowac
Alt+Shift+c
Alt+Shift+q
tez nie dzaila
Ostatnio edytowany przez pink (2014-03-10 23:21:47)
Offline
Spróbuj na moim configu. Tylko klawiszologia całkiem przerobiona:
Zamiast alta jest winkey
Przykładowe:
mod + backspace -zamknij okno
mod + esc - zamknij dwm
mod + enter - urxvt
mod + 0 - monocle
mod + = - bstack
itd
/* See LICENSE file for copyright and license details. */ /* appearance */ static const char font[] = "-*-terminus-medium-r-*-*-12-*-*-*-*-*-*-13"; static const char normbordercolor[] = "#073642"; static const char normbgcolor[] = "#222222"; static const char normfgcolor[] = "#7c7c7c"; static const char selbordercolor[] = "#b58900"; static const char selbgcolor[] = "#073642"; static const char selfgcolor[] = "#838383"; static const unsigned int borderpx = 1; /* 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 */ /* tagging */ static const char *tags[] = { "web", "tty", "var", "pdf", "mpl", "kvm", "|.| " }; static const Rule rules[] = { /* class instance title tags mask isfloating monitor { "Gimp", NULL, NULL, 0, True, -1 }, { "Firefox", NULL, NULL, 1 << 0, False, -1 }, { "XVkbd", NULL, NULL, 0, True, -1 }, { "xpad", NULL, NULL, 1 << 6, True, -1 }, { "Zathura", NULL, NULL, 1 << 3, False, -1 }, { "MuPDF", NULL, NULL, 1 << 3, False, -1 }, { "MPlayer", NULL, NULL, 1 << 4, True, -1 }, { NULL, NULL, "irssi", 1 << 5, False, -1 }, { NULL, NULL, "newsbeuter", 1 << 2, False, -1 }, { NULL, NULL, "Preferencje programu Firefox", 0, True, -1 }, { "qemu-system-x86_64", NULL, NULL, 1 << 5, False, -1 }, }; /* layout(s) */ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ static const Bool resizehints = False; /* True means respect size hints in tiled resizals */ #include "bstack.c" #include "bstackhoriz.c" static const Layout layouts[] = { /* symbol arrange function */ { "[tt]", bstack }, { "[]=", tile }, /* first entry is default */ { "[==]", bstackhoriz }, { "[M]", monocle }, { "><>", NULL }, /* no layout function means floating behavior */ }; /* key definitions */ #define MODKEY Mod4Mask #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ShiftMask, KEY, toggleview, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, 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", selbgcolo static const char *termcmd[] = { "urxvt", NULL }; static const char *browser[] = { "firefox", NULL }; static const char *mc[] = { "urxvt", "-e", "mc", NULL }; static const char *newsbeuter[] = { "urxvt", "-e", "newsbeuter", NULL }; static const char *irssi[] = { "urxvt", "-e", "irssi", NULL }; static const char *alsamixer[] = { "urxvt", "-e", "alsamixer", NULL }; static const char *mute[] = { "amixer", "set", "Master", "toggle", NULL }; static const char *voldown[] = { "amixer", "-q", "set", "Master", "2%-", "unmute", NULL }; static const char *volup[] = { "amixer", "-q", "set", "Master", "2%+", "unmute", NULL }; static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_o, spawn, {.v = browser } }, { MODKEY, XK_u, spawn, {.v = mc } }, { MODKEY, XK_n, spawn, {.v = newsbeuter } }, { MODKEY, XK_c, spawn, {.v = irssi } }, { MODKEY|ShiftMask, XK_a, spawn, {.v = alsamixer } }, { MODKEY, XK_Up, spawn, {.v = volup } }, { MODKEY, XK_Down, spawn, {.v = voldown } }, { MODKEY|ShiftMask, XK_Down, spawn, {.v = mute } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_period, focusstack, {.i = +1 } }, { MODKEY, XK_comma, focusstack, {.i = -1 } }, { MODKEY, XK_k, incnmaster, {.i = +1 } }, { MODKEY, XK_l, incnmaster, {.i = -1 } }, { MODKEY, XK_bracketleft, setmfact, {.f = -0.05} }, { MODKEY, XK_bracketright, setmfact, {.f = +0.05} }, { MODKEY, XK_semicolon, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_BackSpace, killclient, {0} }, { MODKEY, XK_equal, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_minus, setlayout, {.v = &layouts[1]} }, { MODKEY|ShiftMask, XK_equal, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_0, setlayout, {.v = &layouts[3]} }, { MODKEY|ShiftMask, XK_minus, setlayout, {.v = &layouts[4]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, { MODKEY, XK_apostrophe, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_apostrophe, tag, {.ui = ~0 } }, { MODKEY, XK_g, focusmon, {.i = -1 } }, { MODKEY, XK_f, focusmon, {.i = +1 } }, { MODKEY|ShiftMask, XK_g, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_f, tagmon, {.i = +1 } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) TAGKEYS( XK_q, 3) TAGKEYS( XK_w, 4) TAGKEYS( XK_e, 5) TAGKEYS( XK_grave, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY, XK_Escape, 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, killclient, {0} }, { 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} }, };
Offline
jakie masz patche bo mi sie wywali przy make ???
Offline
Tylko [url=http://dwm.suckless.org/patches/bottom_stack]bstack[/url]
Offline
nie dziala, nie wazne chlopaki tu nie o konfig chodz, i tylko cos musi byc popieprzone w systemie ze pewnych (podstawowych) kombinacji klawiszy dwm nie ogarnia jak powinien.
no wlasnie bstack mi tez dziala
nawet na pierwszym podstawowym konfigu nie dzilaja mi te podstawowe.
Ostatnio edytowany przez pink (2014-03-11 00:20:30)
Offline
juz jest gut, swiezy net install poszedl dzisiaj i wszystko gra.
dzieki.
Offline
taki maly problem mam, nie moge sobie poradzic z konfiguracja xterma nic nie pomaga .Xresources nie dziala, terminal bialy font maly.
Offline
Time (s) | Query |
---|---|
0.00013 | SET CHARSET latin2 |
0.00006 | SET NAMES latin2 |
0.00142 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.133.140.88' WHERE u.id=1 |
0.00073 | UPDATE punbb_online SET logged=1732496773 WHERE ident='3.133.140.88' |
0.00050 | SELECT * FROM punbb_online WHERE logged<1732496473 |
0.00054 | SELECT topic_id FROM punbb_posts WHERE id=196969 |
0.00005 | SELECT id FROM punbb_posts WHERE topic_id=20829 ORDER BY posted |
0.00052 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=20829 AND t.moved_to IS NULL |
0.00004 | SELECT search_for, replace_with FROM punbb_censoring |
0.00115 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=20829 ORDER BY p.id LIMIT 0,25 |
0.00085 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=20829 |
Total query time: 0.00599 s |