Re: [dev] suckless.org down: 502 Bad Gateway
On 09/05/2018 06:04 PM, Pickfire wrote: > Silvan Jegen wrote: > >> Heyho >> >> The site is down and I get a "502 Bad Gateway" response from Nginx. >> >> ( http://www.thewebsiteisdown.com/ ) >> >> >> Cheers, >> >> Silvan > > Yeah, I also got that while I was doing live streaming for meetup just now. > T_T FWIW: It works for me again. signature.asc Description: OpenPGP digital signature
Re: [dev] wego: a weather app for the terminal written in go
Hi Markus, On 01/14/2015 10:42 PM, Markus Teich wrote: since I was tired of fetching lots of unneeded html and js and images just to get a weather forecast, I wrote wego[0]. Comments welcome. Looks great! I will give it a try in the next few days. Pascal signature.asc Description: OpenPGP digital signature
Re: [dev] [dwm] running rdesktop in full-screen
On 01/26/2012 07:12 PM, Dennis Yurichev wrote: I'm running rdesktop from terminal window with -f option meaning full-screen. But when I try to escape from it by pressing RCtrl-RAlt-Enter, rdesktop tries to change its window's geometry but can't, and stays in full-screen mode. Is there something I miss? As far as I know the window size can't change because it depends on the resolution of the mashine you are connected to. Nevertheless I'm able to move the window of rdesktop around with Alt-LMB after pressing ctrl-alt-enter.
Re: [dev] dwm and Xwindow
On 11/16/2011 10:30 PM, Justin Pogue wrote: On Wed, Nov 16, 2011 at 3:20 PM, Guilherme Lino guih.l...@gmail.com wrote: hello Is there any way to dim the brightness or gamma of dwm unfocused windows?? cumps -- Guilherme Lino Not that I know of for *all* windows, but if I remember right rxvt has an option like this that you can put in your .Xdefaults Something like urxvt.shading or urxvt.tint or I think. It's: urxvt.fading : 20% signature.asc Description: OpenPGP digital signature
Re: [dev] [dwm] Rotate the list of clients
On 09/06/2011 02:57 PM, Bastien Dejean wrote: Hi, Is there any patch to rotate the list of clients? E.g. 0 becomes 1, 1 becomes 2, ..., n - 1 becomes 0. (Same principle in the opposite direction.) Sayonara, Try this: http://dwm.suckless.org/patches/movestack signature.asc Description: OpenPGP digital signature
Re: [dev] [dwm] Rotate the list of clients
On 09/06/2011 03:11 PM, Pascal Wittmann wrote: On 09/06/2011 02:57 PM, Bastien Dejean wrote: Hi, Is there any patch to rotate the list of clients? E.g. 0 becomes 1, 1 becomes 2, ..., n - 1 becomes 0. (Same principle in the opposite direction.) Sayonara, Try this: http://dwm.suckless.org/patches/movestack Oh, sorry I misunderstood you… :( signature.asc Description: OpenPGP digital signature
Re: [dev] slmenu - dmenu spinoff for the console
On 08/31/2011 02:09 PM, Rafa Garcia Gallego wrote: Hi, I sometimes use sandy in a SSH session, so I wrote some code around dmenu to have it work in the console. The resulting program takes input from stdin, reopens the tty, prints the UI to stderr, gets your input (again from stdin) and prints the result to stdout, so it mostly works as a drop-in replacement for dmenu. Stuff I don't use such as the multiline menu and runtime selectable colors is not implemented. Should anyone be interested, the source is at https://bitbucket.org/rafaelgg/slmenu/ I thought of either bundling it with sandy or providing it as a patch to dmenu, but this seemed cleaner. Cheers, Rafa. Thanks! I have a lot of fun using it :) signature.asc Description: OpenPGP digital signature
Re: [dev] [dwm] scrot -s fails
On 08/20/2011 10:50 AM, Bastien Dejean wrote: Steven Blatchford a écrit : An IRC discussion on Jul 03, 2011 suggested to use 'import'. What is the equivalent in import to the -s argument in scrot? Just call 'import filename' and drag your mouse over the area. Only clicking will make a shot of the underlying window. signature.asc Description: OpenPGP digital signature
Re: [dev] [dwm] non-ASCII characters in status bar?
On 05/30/2011 09:56 PM, Sir Cyrus wrote: Is it possible to have the status bar in dwm show non-ASCII characters? Not sure if this is an internal issue or a problem with the default Terminus font, but it hasn't worked with any fonts I've tried. A trivial example: http://i.imgur.com/4S0EJ.png Should show a right pointing single guillemet (U+203A) after 'WordPress'. This font works for me: static const char font[] = -*-*-medium-*-*-*-14-*-*-*-*-*-*-*;
Re: [dev] [PATCH] dmenu: Add commandline-options to determine Xinerama-screen
On 03/11/2011 09:11 PM, Axel Wagner wrote: Moin, if no -m option is given to dmenu, it infers it's xinerama-screen from the mouse-position. On heavily keyboard-driven window-managers, the mouse-position differs heavily from where the attention is sometimes (I personally hate mouse-follows-focus, so when I change the focus via keyboard to another screen, the pointer remains at it's position), thus creating a somewhat unsetting experience, when dmenu suddenly appears on the „wrong“ screen. With the attached patch, -m can (additionaly to taking a number) also takes „focus“ and „mouse“ as options. The latter represents the current default behaviour, the former uses the center of the window which currently has the input-focus to determine the screen. Greetings, Mero Thanks for this patch! I'm annoyed of this mouse-focus behavior for some time, but never got down to change it. Pascal
Re: [dev] [dwm] segfault with xrandr dual-head setup
On 01/29/2011 11:26 PM, Rob wrote: gdb gives me this output: Program terminated with signal 11, Segmentation fault. #0 0x0804b157 in arrangemon (m=0x9280688) at dwm.c:382 382 strncpy(m-ltsymbol, m-lt[m-sellt]-symbol, sizeof m-ltsymbol); Can you give details of the variables? (print m-lt) Continue this off-list if you want. Today I had some time to dig in the problem. With the unpatched dwm version everything works, but I've the flextile-patch applied. In this patch are some initialisations (in the function createmon()) missing. I've fixed the issue and attached a corrected version of the patch. @joten: If you agree with the patch, I would update the one on suckless.org. @Rob: thanks for your support. diff -up ../dwm-5.8.2-0/config.def.h ./config.def.h --- ../dwm-5.8.2-0/config.def.h 2010-06-10 22:47:51.660949000 +0200 +++ ./config.def.h 2010-06-10 22:55:53.094322000 +0200 @@ -16,6 +16,9 @@ static const Bool topbar= Tr /* tagging */ static const char *tags[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; +/* include(s) depending on the tags array */ +#include flextile.h + static const Rule rules[] = { /* class instancetitle tags mask isfloating monitor */ { Gimp, NULL, NULL, 0,True,-1 }, @@ -25,6 +28,11 @@ static const Rule rules[] = { /* layout(s) */ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static const Bool resizehints = True; /* True means respect size hints in tiled resizals */ +static const int layoutaxis[] = { + 1,/* layout axis: 1 = x, 2 = y; negative values mirror the layout, setting the master area to the right / bottom instead of left / top */ + 2,/* master axis: 1 = x (from left to right), 2 = y (from top to bottom), 3 = z (monocle) */ + 2,/* stack axis: 1 = x (from left to right), 2 = y (from top to bottom), 3 = z (monocle) */ +}; static const Layout layouts[] = { /* symbol arrange function */ @@ -81,6 +89,12 @@ static Key keys[] = { TAGKEYS(XK_8, 7) TAGKEYS(XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + { MODKEY|ControlMask, XK_t, rotatelayoutaxis, {.i = 0} },/* 0 = layout axis */ + { MODKEY|ControlMask, XK_Tab,rotatelayoutaxis, {.i = 1} },/* 1 = master axis */ + { MODKEY|ControlMask|ShiftMask, XK_Tab,rotatelayoutaxis, {.i = 2} },/* 2 = stack axis */ + { MODKEY|ControlMask, XK_Return, mirrorlayout, {0} }, + { MODKEY|ControlMask, XK_h, shiftmastersplit, {.i = -1} }, /* reduce the number of tiled clients in the master area */ + { MODKEY|ControlMask, XK_l, shiftmastersplit, {.i = +1} }, /* increase the number of tiled clients in the master area */ }; /* button definitions */ diff -up ../dwm-5.8.2-0/dwm.c ./dwm.c --- ../dwm-5.8.2-0/dwm.c2010-06-10 22:47:51.669677000 +0200 +++ ./dwm.c 2010-06-10 22:55:53.128305000 +0200 @@ -122,26 +122,6 @@ typedef struct { void (*arrange)(Monitor *); } Layout; -struct Monitor { - char ltsymbol[16]; - float mfact; - int num; - int by; /* bar geometry */ - int mx, my, mw, mh; /* screen size */ - int wx, wy, ww, wh; /* window area */ - unsigned int seltags; - unsigned int sellt; - unsigned int tagset[2]; - Bool showbar; - Bool topbar; - Client *clients; - Client *sel; - Client *stack; - Monitor *next; - Window barwin; - const Layout *lt[2]; -}; - typedef struct { const char *class; const char *instance; @@ -610,6 +590,7 @@ configurerequest(XEvent *e) { Monitor * createmon(void) { + unsigned int i; Monitor *m; if(!(m = (Monitor *)calloc(1, sizeof(Monitor @@ -621,6 +602,21 @@ createmon(void) { m-lt[0] = layouts[0]; m-lt[1] = layouts[1 % LENGTH(layouts)]; strncpy(m-ltsymbol, layouts[0].symbol, sizeof m-ltsymbol); + m-ltaxis[0] = layoutaxis[0]; + m-ltaxis[1] = layoutaxis[1]; + m-ltaxis[2] = layoutaxis[2]; + m-msplit = 1; + /* init tags, bars, layouts, axes, msplits and mfacts */ + m-curtag = m-prevtag = 1; + for(i = 0; i LENGTH(tags) + 1; i++){ +m-showbars[i] = m-showbar; +m-lts[i] = layouts[0]; +m-mfacts[i] = m-mfact; +m-ltaxes[i][0] = m-ltaxis[0]; +m-ltaxes[i][1] = m-ltaxis[1]; +m-ltaxes[i][2] = m-ltaxis[2]; +m-msplits[i] = m-msplit; + } return m; } @@ -1494,7 +1490,7 @@ setlayout(const Arg *arg) { if(!arg || !arg-v || arg-v != selmon-lt[selmon-sellt]) selmon-sellt ^= 1; if(arg arg-v) - selmon-lt[selmon-sellt] = (Layout *)arg-v; +
[dev] [dwm] segfault with xrandr dual-head setup
Hi, I've set up dual head using xrandr --output VGA --mode 1024x768 --right-of LVDS. Then every window from LVDS is shifted to VGA, so LVDs is empty (Is that normal?). Now I can work on VGA normal, but on LVDS I can only use the first workspace. If I try to switch (moving windows on workspaces works) dwm crashes and I see this segfault in dmesg: dwm[26627]: segfault at 0 ip 0804b157 sp bfbbe680 error 4 in dwm[8048000+a000] Any ideas? Kind regards, Pascal Wittmann
Re: [dev] three column layout / getting started writing patches
It's set in config.h: static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ On 08/12/2010 07:50 PM, Jaime Villarreal wrote: thanks again Valentin. After hacking a bit with the code I figured out that I can set the m-mfact variable to a different value in order to adjust the proportion of the width of th master column to the other two columns. I am just hard coding a new value into the function you gave me. This works but I can't seem to find any where in the code where mfact is given an original value. Where would be the most appropriate place to set mfact? On Wed, Aug 11, 2010 at 10:04 PM, Jaime Villarrealjesusja...@gmail.comwrote: That works perfectly. Thanks! On Wed, Aug 11, 2010 at 7:07 PM, Valentina...@0au.de wrote: Forgot attaching the file...
Re: [dev] [dwm] spawn a floating window
On 08/08/2010 11:23 AM, Sean Whitton wrote: Hi, On Sat, Aug 07, 2010 at 10:01:47PM +0200, Pascal Wittmann wrote: I tried to write a function that spawns a window/client and makes it floating, but with no success. I looked a the spawn function, but I have no idea how to get/alter the isfloating value of the new client. Simply taking the selected one won't work. Example of use: You are reading a something in fullscreen and want to try some code snippet or do some computations, I find it useful to have a terminal (or someting else) floating around. I could gain the same effect by switching the the layout to floating and open the application then, but I wonder if its possible (without big effort) to write such a function? You could set a rule to match terminals based on title and mark them as floating, then use urxvt -T floatingwin or something to launch the term. I use the title matching trick a lot. S Thanks for your respond, it works for me! pascal
[dev] [dwm] spawn a floating window
Hi, I tried to write a function that spawns a window/client and makes it floating, but with no success. I looked a the spawn function, but I have no idea how to get/alter the isfloating value of the new client. Simply taking the selected one won't work. Example of use: You are reading a something in fullscreen and want to try some code snippet or do some computations, I find it useful to have a terminal (or someting else) floating around. I could gain the same effect by switching the the layout to floating and open the application then, but I wonder if its possible (without big effort) to write such a function? thanks, pascal
Re: [dev] [dwm] dwm for windows?
On 07/08/2010 03:09 PM, Yue Wu wrote: Hi, I'm using bblean[http://bb4win.sourceforge.net/bblean/] on windows, but I miss dwm, is there a port for it on windows? There is a dwm-port[1], but imo it is not very usable. [1] http://www.brain-dump.org/projects/dwm-win32/