[dev] [dmenu] a patch for the bloated quiet option

2011-08-05 Thread Bastien Dejean
diff -u dmenu-4.4/dmenu.1 dmenu-quiet-4.4/dmenu.1 --- dmenu-4.4/dmenu.1 2011-07-19 22:31:28.0 +0200 +++ dmenu-quiet-4.4/dmenu.1 2011-08-05 19:39:31.0 +0200 @@ -41,6 +41,9 @@ .B \-b dmenu appears at the bottom of the screen. .TP +.B \-q +dmenu will not show any items if the

Re: Re: [dev] [dwm] xev's window refuses to float

2011-08-13 Thread Bastien Dejean
Eckehard Berns a écrit : Dwm doesn't seem to apply rules to clients without a class hint. A fix could be something like this: 8---8--- [...] 8---8--- Indeed, thanks. -- Bastien

[dev] [dwm] Fullscreen Layout

2011-08-14 Thread Bastien Dejean
Hi, Any idea on how to implement a fullscreen layout? Cheers, -- Bastien

[dev] [dwm] Setting Initial Geometry for Floating Windows

2011-08-17 Thread Bastien Dejean
Hi, Is there any patch to make dwm handles a ruled based user specified initial geometry for floating windows? Thanks, -- Bastien

[dev] [dwm] scrot -s fails

2011-08-19 Thread Bastien Dejean
Hi, The following command don't work (i.e. I can't select the region of the screen I'm willing to capture) when it's spawn from dwm: static const char *partialshotcmd[] = { scrot, -s, NULL }; Any idea why? -- Bastien

[dev] [dwm] Handling Function Keys

2011-08-20 Thread Bastien Dejean
Hi, I'm using a keyboard with extra function keys and since those keys are not defined in keysym.h, I inserted the following line in dwm.c: #include X11/XF86keysym.h It works, but it produces warnings: warning: initialization makes integer from pointer without a cast How can I

Re: [dev] [dwm] Handling Function Keys

2011-08-20 Thread Bastien Dejean
Bryan Bennett a écrit : You can also just use the raw keycode over the XF86 mapping and you wouldn't need to include the separate header. I've been doing this since ~5.6. I was using NULL instead of 0 in the /modifier/ column of the /keys/ array. My bad. -- Bastien

[dev] [dmenu] An x, y, w patch for dmenu 4.4

2011-08-21 Thread Bastien Dejean
https://bbs.archlinux.org/viewtopic.php?id=124915 diff -u dmenu-4.4/dmenu.1 dmenu/dmenu.1 --- dmenu-4.4/dmenu.1 2011-07-19 22:31:28.0 +0200 +++ dmenu/dmenu.1 2011-08-06 23:18:20.0 +0200 @@ -41,6 +41,9 @@ .B \-b dmenu appears at the bottom of the screen. .TP +.B \-q

[dev] [lsw] List only visible windows

2011-08-25 Thread Bastien Dejean
Hi, Maybe it would be convenient to add an option similar to the --onlyvisible's xdotool option. Cheers, -- Bastien

[dev] [dwm] Crazy Window Behavior

2011-09-05 Thread Bastien Dejean
Hi, I don't know if it's a known bug, but I stumble upon this crazy window behavior happening in floating layout. In the following video, I try to move and resize the window, then I hit MODKEY+space which is bound, in my config.h, to togglefloating, at this point I can move and resize the window

Re: [dev] [dwm] Crazy Window Behavior

2011-09-06 Thread Bastien Dejean
Bogdan Ionuț a écrit : On Mon, Sep 5, 2011 at 17:10, Bastien Dejean esch...@gmail.com wrote: don't know if it's a known bug, but I stumble upon this crazy window behavior happening in floating layout. In the following video, I try to move and resize the window, then I hit MODKEY+space

Re: [dev] [dwm] Crazy Window Behavior

2011-09-06 Thread Bastien Dejean
Bogdan Ionuț a écrit : I can bet that it's uselessgap patch related. Indeed. Is there a rock solid version of that patch floating around? Try the patch attached. In fact, I'm using this vesion. To fix the aforementioned problem I had to change this line: unsigned int gap =

[dev] [dwm] Rotate the list of clients

2011-09-06 Thread Bastien Dejean
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, -- Bastien

Re: [dev] Simple made Easy (Rich Hickey at StrangeLoop)

2011-10-22 Thread Bastien Dejean
b...@methodlogic.net a écrit : Is there a downloadable version of this, or something that I can point mplayer to? Flashplayer == fail for me. rtmpdump -r 'rtmpe://video.infoq.com/cfx/st/presentations/11-sep-simplemadeeasy.mp4' -o simple_made_easy.mp4

Re: [dev] List of tools for a CLI environment

2011-10-25 Thread Bastien Dejean
mikshaw a écrit : What about ls /usr/{,local}/bin ls /usr{,/local}/bin

Re: [dev] Focusing on windows by name

2011-10-26 Thread Bastien Dejean
Patrick Haller a écrit : On 2011-10-26 11:48, Manolo Martínez wrote: In openbox I have a key bound to the following:wmctrl -xa mutt || urxvt -name mutt -e mutt xlsclients | grep -q mutt || urxvt -e mutt No, this is not equivalent because the following command: wmctrl -xa mutt

Re: [dev] Focusing on windows by name

2011-10-26 Thread Bastien Dejean
Manolo Martínez a écrit : Is using xdotool's search option slower or otherwise worse than this? I can't tell. (btw, i'm not sure I know what lsw is) http://tools.suckless.org/lsw Greetings, -- Bastien

[dev] [dmenu] Readline Bindings

2011-11-14 Thread Bastien Dejean
Hi, A few problems with the current 'readline' bindings: C-w is not extremely useful as it considers that anything except 'space' is a word character. #| That's now the default bash behavior and it can be overcome by appending the following lines to your .inputrc: set

Re: [dev] [dmenu] Readline Bindings

2011-11-14 Thread Bastien Dejean
Connor Lane Smith a écrit : On 14/11/2011, Bastien Dejean nihilh...@gmail.com wrote: C-w is not extremely useful as it considers that anything except 'space' is a word character. I actually find this more useful. A lot of implementations zip through all your non-alnum symbols when you

Re: [dev] [dmenu] Readline Bindings

2011-11-14 Thread Bastien Dejean
Connor Lane Smith a écrit : On 14/11/2011, Bastien Dejean nihilh...@gmail.com wrote: Well, suppose you're using C-f to move down in the list of matches, then you want to move up, you hit C-b because it's the natural symmetric of C-f and you end up moving the cursor backward in the search

[dev] [dmenu] Keyboard Bindings

2011-11-20 Thread Bastien Dejean
Hi, Why aren't all the available keyboard bindings documented in the manual? I don't see any word movement bindings. I discovered, by accident, that the following input 'foo bar' is interpreted as the following regex: '.*foo.*bar.*', that's very nice but I'm not sure that it is mentioned in the

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Bastien Dejean
Troels Henriksen a écrit : Alternative/additional idea: look for the process indicated by the _NET_WM_PID property, then use the working directory of that process. It seems the value of _NET_WM_PID is not always useful: For urxvtc clients, it is equal to the pid of urxvtd. -- Bastien

[dev] [dmenu] No x, y, w options?

2011-12-02 Thread Bastien Dejean
Hi, (Of course I'm referring to the options of the same name already available in dzen2.) Greetings, -- Bastien

[dev] [dwm] Useless Gaps Are Useful

2011-12-03 Thread Bastien Dejean
Hi, In my opinion, the concept of gap between frames should be part of dwm. The existing patches are not solid enough. Having no gaps (the current situation) is just a particular case. Try removing margins from a book: it certainly will destroy readability. Greetings, -- Bastien

Re: [dev] [dmenu] No x, y, w options?

2011-12-03 Thread Bastien Dejean
Connor Lane Smith: I also didn't find it at all useful, and some of the code was a bit ugly. What would be the use case for this? Well, it's useful when one wants to (properly) place dmenu at the optical center of the screen and eventually add some incredibly necessary margins. dmenu's

Re: [dev] [dmenu] No x, y, w options?

2011-12-03 Thread Bastien Dejean
Bjartur Thorlacius: grabbing the whole keyboard rendering it temporarily unusable for anything but typing text into dmenu or escaping out of it. Yes, it's extremely annoying and alas, it's not just dmenu, many programs have the *input black hole* feature. Cheers, -- Bastien

Re: [dev] dmenu-4.5

2012-01-08 Thread Bastien Dejean
Connor Lane Smith: * M-[Gghjkl] restored for vi-like navigation. When lines 1, I would expect M-j to select the next item (because it's below the current one), but I have to press M-l instead. -- b.d (| |) ^ ^

[dev] One Border is Not Enough

2012-01-15 Thread Bastien Dejean
Hi, There's a problem with the current single border logic of all the minimal tiling X wm I'm aware of: It might happen that the background color of the active window is very close to the color of the active border. In so, the active border become nearly invisible and useless. Solution: add a

Re: [dev] One Border is Not Enough

2012-01-15 Thread Bastien Dejean
Bjartur Thorlacius: Just draw the second border on the root window. Will it work with floating windows? -- b.d (| |) ^ ^

Re: [dev] One Border is Not Enough

2012-01-15 Thread Bastien Dejean
Florian Limberger: This is more likely a problem of your colorscheme, for example my active border is #ff9900, which is very unlikely to be the background color of any window. No: this is more likely a general design problem as stated in my original message. I don't want to choose my active

Re: [dev] One Border is Not Enough

2012-01-18 Thread Bastien Dejean
Connor Lane Smith: On 15 January 2012 10:55, Bastien Dejean nihilh...@gmail.com wrote: Solution: add a separation border between the window boundary and the focus border. The contrast between the separation border and the focus border should be high and constant. My solution is incomplete

[dev] [haiku] Real World Examples of Bad Error Messages [1]

2012-01-21 Thread Bastien Dejean
Dilemma: The project file e:\ws\foo may have been modified on disk by the preceding Source Control operation. However, you also have made changes to this project which have not been saved. If you reload the project you will lose your current changes, but if you don't, you risk

[dev] [dmenu-hg] stest.c: getopt

2012-02-28 Thread Bastien Dejean
Hi, I had to change the CPPFLAGS in config.mk, by appending -D_POSIX_C_SOURCE=2 Otherwise, the build process fails (because of 'getopt'). Greetings, -- b.d (| |) ^ ^

[dev] Binary Space Partitioning Window Manager

2012-07-28 Thread Bastien Dejean
Hi, I'm planning on writing a window manager with the following characteristics: - Windows are represented as the leaves of a binary tree. - To each leaf corresponds exactly one window. - The only nodes which can be focused are the leaves. - The leaves are called *window nodes*. - The other

Re: [dev] Binary Space Partitioning Window Manager

2012-07-28 Thread Bastien Dejean
Christoph Lohmann: What are the practical and productivity gains you expect from such fea‐ tures? What is your reallife example where such features would be need‐ ed? Hyphenated plain text is... a catastrophe.

Re: [dev] Binary Space Partitioning Window Manager

2012-07-28 Thread Bastien Dejean
Brandon Invergo: You should look at herbstluftwm as it already imlements a binary tree method for window management (manual tiling only). I'm actually an herbstluftwm contributor. The problems I have with herbstluftwm's concepts should be easy to deduce from the first message of this thread.

Re: [dev] Binary Space Partitioning Window Manager

2012-07-28 Thread Bastien Dejean
Nick: Two potentiial issues I see: - It wouldn't interact too well with tagging. Presumably. Either whole container nodes and their leaves would have to be assigned tags, or each tag would have its own tree structure. The former might actually not be a bad outcome. I'm afraid I

Re: [dev] bspwm 0.1

2012-09-23 Thread Bastien Dejean
Hugues Moretto-Viry: Even if I saw you README and your cast, could you do a little presentation of it (aim, how many SLOC, ...)? I wanted to write a simple tiling window manager solely based on the concept of BSP with exactly one window per leaf. SLOC count is around 2500.

Re: [dev] bspwm 0.1

2012-09-23 Thread Bastien Dejean
Daniel Pettersson: On 09/23/2012 12:58 PM, hiro wrote: what is that at 1:40 for where suddenly the border is bigger than the window? a feature Yes, more precisely, the window_gap setting is modified in real-time.

Re: [dev] [st] New feature idea

2013-03-30 Thread Bastien Dejean
Raphaël Proust: The problem is: xbindkeysrc has now idea about $PWD so it doesn't work with relative path. https://github.com/baskerville/sxhkd

Re: [dev] [st] New feature idea

2013-03-30 Thread Bastien Dejean
Raphaël Proust: I don't see how sxhkd can deal with $PWD. My bad: I misread you.

[dev] [dmenu:stest] [patch] Add an option to reverse matches

2013-08-06 Thread Bastien Dejean
From 23cc463e6e52d0ca975ee077c91f06bb9a2748f0 Mon Sep 17 00:00:00 2001 From: Bastien Dejean nihilh...@gmail.com Date: Wed, 24 Apr 2013 12:06:52 +0200 Subject: [PATCH] Add an option to select non-matching files --- stest.1 | 3 +++ stest.c | 8 +--- 2 files changed, 8 insertions(+), 3

Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-09 Thread Bastien Dejean
Calvin Morrison: On 9 February 2014 01:07, Chris Down ch...@chrisdown.name wrote: - You are using system(), which is highly unportable and extremely fragile; I'm not so sure. What's a better solution? http://lubutu.com/code/spawning-in-unix