[dev] [dwm] Set input focus to barwin on empty monitors

2023-01-29 Thread A Farzat
in implementing this, as it enables other programs to know which monitor is currently focused (I had asked about this like a week ago, and this seems like a good solution). I'm not sure though how to implement it. My guess is that the command `XSetInputFocus(dpy, root, RevertToPointerRoot,

[dev] [dwm] Set input focus to barwin on empty monitors

2023-01-20 Thread A Farzat
e > is no client to give focus to (rather than giving focus back to the > root window). Even though the commit has been reverted, I am still interested in implementing this, as it enables other programs to know which monitor is currently focused (I had asked about this like a week ago, and th

Re: [SPAM Warning!][dev] [dwm] view() and toggleview() functions

2023-01-16 Thread A Farzat
On 23/01/16 12:10pm, NRK wrote: > On Sun, Jan 15, 2023 at 06:28:55PM +0900, A Farzat wrote: > > 2- In the view() function, there is this line: > > ```c > > selmon->seltags ^= 1; /* toggle sel tagset */ > > ``` > > What is the purpose of this line? In fact, w

[dev] [dwm] view() and toggleview() functions

2023-01-15 Thread A Farzat
() and toggleview() functions, focus(NULL) is called first and then arrange(selmon). In the patch however, arrange() is called on all the monitors before calling focus(NULL). Is that OK, or is there a significance to the order of calling these functions? 2- In the view() function, there is this line

Re: [dev] [dwm] Obtain focused monitor

2023-01-13 Thread A Farzat
On 23/01/12 11:35am, Gauthier Östervall wrote: > On Sun, 8 Jan 2023 at 11:21, A Farzat wrote: > > > > Is there a way to obtain the currently focused monitor in dwm? I want to > > use it in my script to control which monitor gets its brightness > > modified. > >

Re: [dev] [dwm] Obtain focused monitor

2023-01-08 Thread A Farzat
On 23/01/08 11:32am, Hiltjo Posthuma wrote: > On Sun, Jan 08, 2023 at 07:19:10PM +0900, A Farzat wrote: > > Is there a way to obtain the currently focused monitor in dwm? I want to > > use it in my script to control which monitor gets its brightness > > modified. > &g

[dev] [dwm] Obtain focused monitor

2023-01-08 Thread A Farzat
Is there a way to obtain the currently focused monitor in dwm? I want to use it in my script to control which monitor gets its brightness modified. Regards, Farzat signature.asc Description: PGP signature

Re: [dev] [surf] can't follow a link for download

2020-02-22 Thread Renato A . Galvão
2020-02-20 14:15 GMT-03:00, Reiner Herrmann : > On Thu, Feb 20, 2020 at 02:05:01PM -0300, Renato A. Galvão wrote: >> >>> surf: execvp x-terminal-emulator failed: Permission denied >> >> There is an apparmor file, >> >> /etc/apparmor.d/usr.bin.surf >

Re: [dev] [surf] can't follow a link for download

2020-02-20 Thread Renato A . Galvão
2020-02-20 11:33 GMT-03:00, Renato A. Galvão : > 2020-02-20 10:35 GMT-03:00, Greg Reagle : >> On Thu, Feb 20, 2020, at 08:26, Renato A. Galvão wrote: >>> I use the packaged version buster (stable) of surf in Debian. >>> >>> While trying to make any download I&#x

Re: [dev] [surf] can't follow a link for download

2020-02-20 Thread Renato A . Galvão
2020-02-20 10:35 GMT-03:00, Greg Reagle : > On Thu, Feb 20, 2020, at 08:26, Renato A. Galvão wrote: >> I use the packaged version buster (stable) of surf in Debian. >> >> While trying to make any download I'm receiving this: >> >> surf: execvp x-terminal-emul

[dev] [surf] can't follow a link for download

2020-02-20 Thread Renato A . Galvão
Dear developers, I use the packaged version buster (stable) of surf in Debian. While trying to make any download I'm receiving this: surf: execvp x-terminal-emulator failed: Permission denied

Re: [dev] [Announce] [dwm-6.2] [dmenu-4.9] new release

2019-02-04 Thread a
My mistake, I meant "later than 6.2". On February 4, 2019 12:31:58 PM UTC, Nick wrote: >Quoth inasprecali: >> Thanks for the effort. Actually, I just found out that a "historical" >patch exists, which seems >> to include you as a contributor: >https:

Re: [dev] [Announce] [dwm-6.2] [dmenu-4.9] new release

2019-02-03 Thread a
Very nice. Hopefully there will be patches to restore xft support in case it's wanted. Best regards. On Sun, 3 Feb 2019 13:33:41 -0800 Anselm Garbe wrote: > Hi there, > > I'm glad to announce new dwm and dmenu releases: > > * dwm-6.2: https://dl.suckless.org/dwm/dwm-6.2.tar.gz > * dmenu-4.9:

[dev] [ubase/sbase] use libutils human.c in df.c, fix bug in humansize()

2016-05-31 Thread a . regenfuss
Hey suckless folks, while reading the code for df.c, I realised it uses a specialised function to print human-readable output, print_human(). It mostly replicates the code of libutils human.c, not yet present in ubase. Here is a patch that replaces print_human() with calls to humansize(). Also

Re: [dev] [st] Slow ST character typing on i686/pentium3 platforms]

2015-03-03 Thread Ariel A
On March 3, 2015 5:21:04 PM PST, Roger wrote: >ST appears to compile and run fine on 64 bit and 32 bit platorms, >except on 32 >bit (i686/pentium3), typing is extremely slow. Try adjusting xfps and actionfps. When I had this issue on a 32 bit machine, I seem to remember changing f

Re: [dev] Suckless unit testing in C?

2015-02-26 Thread Eduardo A . Bustamante López
Hey Roberto, I'm going to stop due to FRIGNs request. I do find your feedback interesting, and most of your points valid. Thank you very much.

Re: [dev] Suckless unit testing in C?

2015-02-25 Thread Eduardo A . Bustamante López
27;t use inetd - surf: depends on webkit for most stuff - dwm: X11 API Why aren't these communicating with stdin or stdout? The reality is that sometimes you have to interface with complex APIs, and a simple way of testing your own code is to abstract or mock the aspects of these APIs that your pr

Re: [dev] Suckless unit testing in C?

2015-02-24 Thread Eduardo A . Bustamante López
regressions in the test output compared to the expected test output. What if you're trying to test a program that requires network connectivity? It'd be good to be able to mock the networking stuff.

Re: [dev] Suckless unit testing in C?

2015-02-24 Thread Eduardo A . Bustamante López
I've played a bit with caddeus (https://github.com/alvarezp/caddeus), the thing I like about it is that it fits in a single GNU make makefile.

Re: [dev] dvtm cmd-fifo issue

2014-01-26 Thread Peter A. Shevtsov
le for key-bindings are also available as fifo command. Thanks! -- Peter A. Shevtsov

[dev] dvtm cmd-fifo issue

2014-01-26 Thread Peter A. Shevtsov
ates new client OK When I do echo togglemouse > /tmp/dvtmfifo it doesn't work Also when I do echo focusn 2 > /tmp/dvtmfifo or echo setmfact "+0.05" > /tmp/dvtmfifo it doesn't work nither. Thanks! -- Peter A. Shevtsov

Re: [dev] IRC on Free node

2013-11-01 Thread A
On Fri, Nov 1, 2013 at 3:19 AM, A wrote: > On Fri, Nov 1, 2013 at 2:22 AM, patrick295767 patrick295767 > wrote: >> >> I believe that OFTC is not along the suckless philosophy somehow. >> > And why is that? >

Re: [dev] mail clients

2013-06-11 Thread Peter A. Shevtsov
On 11/06/13 at 09:18am, Alex Pilon wrote: > Any body know of a suckless method of using IMAP mostly > offline/disconnected? Offlineimap sucks and is brittle. I'm quite happy with fdm[1]. [1] http://fdm.sourceforge.net/ -- Peter A. Shevtsov

Re: [dev] WebKitGTK/surf problems

2013-05-29 Thread Peter A. Shevtsov
no luck with web inspector :( -- Peter A. Shevtsov

[dev] WebKitGTK/surf problems

2013-05-27 Thread Peter A. Shevtsov
#x27;t respond, so I have to kill its process. Thanks. [0] http://crux.nu/gitweb/?p=ports/contrib.git;a=blob_plain;f=webkit/Pkgfile;hb=3.0 [1] http://surf.suckless.org/ [2] https://bitbucket.org/severusweb/ports/raw/71cadb6e225ebf2b650974630cdfb9560a6915d9/surf/Pkgfile -- Peter A. Shevtsov

Re: [dev] [st] "Del" key ain't working

2013-04-04 Thread Peter A. Shevtsov
On 04/04/13 at 04:33pm, Chris Down wrote: > This has been discussed on the mailing list many times before, please > search before posting. > > Chris Oh, it was in the FAQ! Sorry for the noise :( -- Peter A. Shevtsov

[dev] [st] "Del" key ain't working

2013-04-04 Thread Peter A. Shevtsov
Greetings! A day or two ago I updated st (as 0.4 was released) and found out that "Delete" key ain't working anymore in bash and vim (probably in other console apps too). When in st I run cat -v and hit "Delete" key I get the following output: ^[[P while in xterm and

Re: [dev] [surf] Weird WebInspector behaviour in surf-0.6

2013-02-26 Thread Peter A. Shevtsov
but in the other webkit-based browsers (except chromium, but it ain't built on webkitgtk). Can anybody share the configuration flags for building webkitgtk with working web inspector. Thanks! -- Peter A. Shevtsov

Re: [dev] [surf] Weird WebInspector behaviour in surf-0.6

2013-02-11 Thread Peter A. Shevtsov
On 11/02/13 at 08:57am, Gregor Best wrote: > On Mon, Feb 11, 2013 at 01:11:53PM +0700, Peter A. Shevtsov wrote: > > [...] > > I've tried all other Ctrl-Shift hotkeys and they all work fine. I also > > redefined Web > > Inspector to Ctrl-t and its behavior remains t

Re: [dev] [surf] Weird WebInspector behaviour in surf-0.6

2013-02-10 Thread Peter A. Shevtsov
On 11/02/13 at 06:38am, Christoph Lohmann wrote: > Greetings. > > First: That one is hard to debug. > > On Mon, 11 Feb 2013 06:38:07 +0100 "Peter A. Shevtsov" > wrote: > > Hello! > > > > It seems that new Web Inspector feature ain't work

[dev] [surf] Weird WebInspector behaviour in surf-0.6

2013-02-10 Thread Peter A. Shevtsov
hen I press the keys combination for the third time, Web Inspector pane dissapears. [1] http://ompldr.org/vaGZlcQ -- Peter A. Shevtsov

[dev] Re: [9base][awk] printf and utf-8

2013-01-21 Thread Peter A. Shevtsov
On 22/01/13 at 02:32pm, Peter A. Shevtsov wrote: > It seems that it counts every cyrillic letter as two, i. e. it ain't count > letters > (or runes) but bytes. Indeed, echo latin кириллица | /usr/local/plan9/bin/awk '{printf("%d %d\n", length($1), length($2))}' 5 18

[dev] [9base][awk] printf and utf-8

2013-01-21 Thread Peter A. Shevtsov
Hello, I've found the bug in 9base's awk. It seems that printf works incorrectly with utf-8 strings. The way it counts string lengs is weird: echo latin кириллица | /usr/local/plan9/bin/awk '{printf("[%20s][%20s]\n", $1, $2)}' and the output is: [ latin][ кириллица] It seems t

[dev] Re: Associative arrays implementation in rc shell scripts

2013-01-17 Thread Peter A. Shevtsov
bnwr on #suckless irc suggested two more variants: One, without bc forks -- http://vpaste.net/E91PL And another one as recursive function -- http://vpaste.net/tgCMz

[dev] Associative arrays implementation in rc shell scripts

2013-01-16 Thread Peter A. Shevtsov
Hello, I've made a simple associative arrays implementation in rc shell script. Thanks to bnwr on irc for the idea with odd and even indices. What do you think? I'm rc newbie and would like to improve my skills. Any feedback would be appreciated. Thanks! #!/usr/local/plan9/bin/rc p

Re: [dev] syntog - toggle synaptics touchpad

2012-12-26 Thread Peter A. Shevtsov
On 26/12/12 at 05:41pm, Chris Hall wrote: > On Wed, Dec 26, 2012 at 4:04 PM, Peter A. Shevtsov > wrote: > > that xssstate is redundant in your perfect world where xautolock and xidle > > exists! > The latter 2 suck hard, xssstate is useful in scripting and allows me > to

Re: [dev] syntog - toggle synaptics touchpad

2012-12-25 Thread Peter A. Shevtsov
On 25/12/12 at 09:51pm, Chris Hall wrote: > if you have synclient installed then enabling is synclient TouchpadOff=0 > and disabling is synclient TouchpadOff=1 > > you can read the state via synclient -l > I have a few lines of sh bound to mod-n to toggle. > > I really don&

Re: [dev] syntog - toggle synaptics touchpad

2012-12-24 Thread Peter A. Shevtsov
On 24/12/12 at 06:23pm, Comrade DOS wrote: > 2012/12/24 Peter A. Shevtsov > > > Hello, > > > > I've just finished the small utility to toggle state of synaptics > > touchpad. Maybe > > some of you would find it useful. But first of all, I'd like you

[dev] syntog - toggle synaptics touchpad

2012-12-23 Thread Peter A. Shevtsov
Hello, I've just finished the small utility to toggle state of synaptics touchpad. Maybe some of you would find it useful. But first of all, I'd like you to review my code (I'm not so good at C, actually). syntog is available in here - https://bitbucket.org/severusweb/syntog/src Thanks!

[dev] [surf] [patch] Don't load favicon.ico

2012-12-05 Thread Peter A. Shevtsov
Hello, I've noticed recently that WebKit tries to load favicon.ico even if there is no mention about it in HTML page's head section. Since surf doesn't show favicons I made the patch to prevent WebKit to download favicons. diff --git a/surf.c b/surf.c index b69c615..e95658b 1006

Re: [dev][9base] Compile with musl

2012-11-27 Thread Peter A. Shevtsov
On 26/11/12 at 09:23pm, Galos, David wrote: > I've attached a patch which allows 9base to be compiled with the > musl-libc, when CC=musl-gcc and -D__MUSL__ is added to the CFLAGS. > > It's trivial stuff, a few missing headers, a couple changed function > calls, and

Re: [dev][9base] Compile with musl

2012-11-26 Thread Peter A. Shevtsov
On 26/11/12 at 09:23pm, Galos, David wrote: > I've attached a patch which allows 9base to be compiled with the > musl-libc, when CC=musl-gcc and -D__MUSL__ is added to the CFLAGS. > > It's trivial stuff, a few missing headers, a couple changed function > calls, and

Re: [dev] antialiased fonts in st

2012-10-06 Thread Peter A. Shevtsov
ettings and those changes made st display fonts differently. So, I propose the following patch where st uses system/user fontconfig settings. Or am I missing something? diff -r c36c787389f4 config.def.h --- a/config.def.h Sat Oct 06 13:45:14 2012 +0200 +++ b/config.def.h Sat Oct 06 20:

Re: [dev] [st] [PATCH] no bright bold

2012-10-05 Thread Peter A. Shevtsov
On 05/10/12 at 04:10pm, Peter A. Shevtsov wrote: > Hello. > > On 05/10/12 at 10:30am, Christoph Lohmann wrote: > > Hello. > > > > On Fri, 05 Oct 2012 10:30:04 +0200 "Peter A. Shevtsov" > > wrote: > > > And another one. > > > &

Re: [dev] [st] [PATCH] no bright bold

2012-10-05 Thread Peter A. Shevtsov
Hello. On 05/10/12 at 10:30am, Christoph Lohmann wrote: > Hello. > > On Fri, 05 Oct 2012 10:30:04 +0200 "Peter A. Shevtsov" > wrote: > > And another one. > > > > Since it was corrected in changeset 345 it seems that it should be done > > once m

[dev] [st] [PATCH] no bright bold

2012-10-05 Thread Peter A. Shevtsov
And another one. Since it was corrected in changeset 345 it seems that it should be done once more. diff -r f80a970a2fda st.c --- a/st.c Fri Oct 05 09:38:10 2012 +0200 +++ b/st.c Fri Oct 05 14:54:00 2012 +0700 @@ -2193,7 +2193,6 @@ if(base.mode & ATTR_REV

[dev] [st] [PATCH] fix underline

2012-10-05 Thread Peter A. Shevtsov
Hello, I've noticed that underlined text displays incorrect in the recent st hg tip. So I made this patch. diff -r 097a8580d33c st.c --- a/st.c Thu Oct 04 22:59:45 2012 +0200 +++ b/st.c Fri Oct 05 14:39:03 2012 +0700 @@ -2234,7 +2234,7 @@ winy + font-&g

Re: [dev] dwm window outline during mouse resize/move patch

2012-06-04 Thread John A. Grahor
Here is the patch for version 6.0. diff -up dwm-6.0/dwm.c dwm-6.0-wired/dwm.c --- dwm-6.0/dwm.c 2011-12-19 10:02:46.0 -0500 +++ dwm-6.0-wired/dwm.c 2012-06-04 23:40:45.0 -0400 @@ -103,6 +103,7 @@ typedef struct { unsigned long sel[ColLast]; Drawable drawable;

[dev] dwm window outline during mouse resize/move patch

2012-06-01 Thread John A. Grahor
I forward X halfway around the world and the mouse move/resize as implemented in dwm brings things to a screeching halt. I noticed that the non-solid move/resize in evilwm works much better because it doesn't demand the client to redraw a billion times as you drag the mouse because it

[dev] Evils of glibc

2010-10-07 Thread John A. Grahor
Here's just another example of the evils of glibc. I was linking an executable statically on Red Hat Enterprise 5.5 and got this message: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking They've

Re: [dev] Re: stali and OpenBSD userland etc.

2010-04-13 Thread John A. Grahor
I'm running OpenBSD 4.6 and: which arch /usr/bin/arch strings /usr/bin/arch ... $OpenBSD: arch.c,v 1.11 2004/05/09 03:20:45 deraadt Exp $ which head /usr/bin/head strings /usr/bin/head ... $OpenBSD: head.c,v 1.14 2007/10/31 16:29:50 jmc Exp $ ... etc So I think you may be missing something. R

Re: [dev] [st] a real (I think) feature request

2009-10-31 Thread Sebastian A. Liem
John A. Grahor wrote: > I'd like a terminal emulator that has a "dumb" terminal mode, i.e. where > line editing can happen locally and what one types is only sent to the tty > when one hits return (or some other key). Or better; 9term:s hold mode, I would like this too.

[dev] [st] a real (I think) feature request

2009-10-31 Thread John A. Grahor
I'd like a terminal emulator that has a "dumb" terminal mode, i.e. where line editing can happen locally and what one types is only sent to the tty when one hits return (or some other key). I use ssh to connect to hosts with very slow, high latency satellite links. It is exce

Re: [dev] Alternative for tabbing in web-browsers?

2009-10-09 Thread Sebastian A. Liem
Tabs is a variation on the taskbar pattern. If you want a taskbar, use a taskbar. However, you might need to write a suckless one. =P -- Sebastian

Re: [dev] how does one send a password to a server with sic

2009-09-01 Thread Sebastian A. Liem
I'm guessing they use nickserv. If so you need to message your password to nickserv. More info: http://www.technerd.net/nickserv.html Run this: :m nickserv identify -- Sebastian