[dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Greg Reagle
I just had a thought that might be of interest to fans of the suckless philosophy. It occurred to me that environment variables can be used to configure a program, instead of programming in a parser or extension language into a program. Are there any reasons not to just use environment variables?

[dev] slides for runit and ignite, Christian Neukirchen

2014-11-03 Thread Greg Reagle
http://suckless.org/conference I'd love to see the slides for Christian presented runit and ignite and discussed if these systems are in line with the suckless philosophy. -- http://www.fastmail.fm - Choose from over 50 domains or use your own

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Greg Reagle
On Mon, Nov 3, 2014, at 02:37 PM, Markus Teich wrote: > you still have to parse the contents of the environment variables > compared to > static compiled in configuration as in config.h. That's true and that's a good point, but I am interested in discussing environment variables as a form of *run-

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Greg Reagle
On Mon, Nov 3, 2014, at 02:59 PM, Dimitris Papastamos wrote: > The environment is also of limited size. I think POSIX guarantees a > space > of about 2kB iirc for environment variables. Thanks Dimitris. That would definitely be a disadvantage. > This approach also does not scale in general as p

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Greg Reagle
On Mon, Nov 3, 2014, at 02:45 PM, FRIGN wrote: > Not everyone runs his programs from a shell. Definitely. I wouldn't want that to be a requirement. I would want the environment to be a tool for implementing run-time configuration, rather than a user-interface requirement. Whether that is possib

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Greg Reagle
On Mon, Nov 3, 2014, at 03:21 PM, Dimitris Papastamos wrote: > Another down-side is that different shells use different syntax for > setting > and unsetting environment variables, which can be a PITA if you want > to share your configuration. I am just speculating here, a though experiment, but th

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Greg Reagle
On Mon, Nov 3, 2014, at 04:11 PM, Charlie Kester wrote: > Environment variables are essentially global variables, visible to every > program and not just the one you want to configure. Not necessarily. If you set them in .profile or .bashrc or .xsession then yes, but each program processes its ow

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Greg Reagle
On Mon, Nov 3, 2014, at 05:14 PM, Martti Kühne wrote: > On Mon, Nov 3, 2014 at 10:30 PM, Brandon Mulcahy > wrote: > > choice (besides doing something like `export option=a; command; export > > option=b`). I do wish the concept of aliasing were a bit more general. > > > Did you hear of the shell

Re: [dev] [st] delele behaves as backspace... again

2014-11-04 Thread Greg Reagle
On Tue, Nov 4, 2014, at 01:24 PM, k...@shike2.com wrote: > If you are interested in this solution this is the patch: Thank you very much, that is much better. Now my Backspace keys deletes one character to the left AND my Delete key deletes one character to the right, on the command line and in n

[dev] why reinvent busybox etc.?

2014-11-07 Thread Greg Reagle
I infer from the existence of sbase and ubase that the other alternatives that already exist (e.g. busybox, toybox, GNU) are considered too full of suck. Is that right? I would guess that the GNU utilities are considerd too bloated. What are the perceived shortcomings of busybox and toybox? What

Re: [dev] why reinvent busybox etc.?

2014-11-07 Thread Greg Reagle
I neglected to mention the Heirloom Toolchest at http://heirloom.sourceforge.net/tools.html as another alternative. On Fri, Nov 7, 2014, at 11:56 AM, Greg Reagle wrote: > I infer from the existence of sbase and ubase that the other > alternatives that already exist (e.g. busybox, toybox, GN

Re: [dev] dvtm status update

2014-11-07 Thread Greg Reagle
I am also a very happy daily user of dvtm and I recommend it. I use it like such: dtach -A ~/dtach-socket -z -r winch dvtm -M I used tmux before dvtm. I didn't have any real problems with tmux, but I like dvtm better because I find tmux to be too elaborate, too many options, too many keybind

Re: [dev] [sbase] style

2014-11-18 Thread Greg Reagle
Another way to provide style guidance is to refer to a particular source file or project as an epitome or paragon, if such a paragon exists That takes much less time than explicitly developing a style guide. -- http://www.fastmail.com - Does exactly what it says on the tin

[dev] why avoid install?

2014-11-18 Thread Greg Reagle
Hello. Is there a particular reason that a combination of cp, mkdir, and chmod are used rather than the install command, in several suckless projects (in the install target of Makefile)? Sorry if the answer is obvious. I am trying to learn. Thanks. -- http://www.fastmail.com - The way an em

Re: [dev] Operating system choice

2014-11-19 Thread Greg Reagle
On 11/19/2014 01:19 PM, Josh Lawrence wrote: > I'm curious to know what flavor of *nix people on this list use on a > day-to-day basis. I use: Ubuntu LTS: job workstation and job server Manjaro: job laptop and home laptop Debian stable: home desktop and job server I really like the stability of D

Re: [dev] Operating system choice

2014-11-20 Thread Greg Reagle
On Thu, Nov 20, 2014, at 09:25 PM, Charles Thorley wrote: > It's surprising to me that Minix 3 appears to be, by way of googling > 'site:lists.suckless.org minix', almost completely ignored by this > mailing list. This thread brought that curiosity to my attention once > again. I wonder if anyone

Re: [dev] [surf] web videos idea

2014-11-23 Thread Greg Reagle
I use extension DownloadHelper for Firefox then play movie file with mplayer. You can also inspect the source of the HTML page as the full URL of the video is often there (usually ends with .mp4 or .flv). Many video players will work with an http URL so you don't need an extra download step. On

[dev] Project ideas: goblin

2014-11-25 Thread Greg Reagle
>From http://suckless.org/project_ideas: > Write the most useful unix userland commands in the new Go language > created by Google to form a robust base for future Unix-like > userlands that do not suffer from the vulnerabilities that are > common in C or C++ code. Is anyone still interested in th

Re: [dev] Project ideas: goblin

2014-11-25 Thread Greg Reagle
On Tue, Nov 25, 2014, at 05:18 PM, Bobby Powers wrote: > To be clear - I don't support rewriting system utilities in Go. *base > are starting to look nice, and statically link down to a very small > size. I don't see any wins in rewriting these in Go. Thank you for your feedback. This seems to

Re: [dev] Project ideas: goblin

2014-11-25 Thread Greg Reagle
On Tue, Nov 25, 2014, at 05:29 PM, FRIGN wrote: > Frankly, we don't need yet another discussion on a topic like this. Thank you for your feedback. I wasn't trying to start a *discussion*, but as it was listed on http://suckless.org/project_ideas, I wanted to see whether there would actually be su

Re: [dev] Object-Oriented C for interface safety?

2014-11-26 Thread Greg Reagle
If you want to program in C, there are ways to implement abstract data types, encapsulation, and implementation hiding that are fairly easy. Basically this involves using the "static" keyword for functions and variables that you want to be private to the implementation and don't put their prototyp

[dev] problem report for sbase/cal

2014-12-15 Thread Greg Reagle
greagle@530GA ~/a/sbase> ./cal -3 November 2014 December 2014 January 2015 Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa 1 1 2 3 4 5 6 1 2 3 4 2 3 4 5 6 7 87 8 9 10 11 12 135 6 7 8 9 10 11

Re: [dev] [ratox] status of helper scripts

2014-12-18 Thread Greg Reagle
On Thu, Dec 18, 2014, at 10:52 AM, sek...@posteo.se wrote: > That language catox is written in ... I'll have to contact the author, no > idea how to get this going. LiveScript http://livescript.net/ -- http://www.fastmail.com - Accessible with your email software or ov

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-23 Thread Greg Reagle
On Tue, Dec 23, 2014, at 10:42 AM, Anthony J. Bentley wrote: > The point of this rule is not visual alignment. Width of the type doesn't > matter; it is always one tab. The advantage is that you can find the > declaration of member foo by grepping for ^Ifoo. That violates the suckless style guide

[dev] problem report with sbase/cal

2014-12-23 Thread Greg Reagle
Greetings. I was born well after the year -7, so I don't know if there were any calendar shenanigans going on that long ago, but it looks like an error: greagle@530GA ~/D/p/sbase> ./cal -3 1 -7 January -7 February -7 March -7 Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa

[dev] [PATCH] - no limit on number of months: removed MONTHMAX - strings printed to stdout rather than copied to memory - rewritten date calculation algorithms

2014-12-23 Thread Greg Reagle
. */ +/* © 2014 Greg Reagle */ #include #include #include #include "util.h" -#define MONTHMAX 100 +static int +isleap(int year) +{ + if (year % 400 == 0) + return 1; + if (year % 100 == 0) + return 0; + return (year % 4 == 0); +} + +

Re: [dev] [PATCH] - no limit on number of months: removed MONTHMAX - strings printed to stdout rather than copied to memory - rewritten date calculation algorithms

2014-12-23 Thread Greg Reagle
I re-wrote this -- http://www.fastmail.com - Does exactly what it says on the tin

Re: [dev] [PATCH] - no limit on number of months: removed MONTHMAX - strings printed to stdout rather than copied to memory - rewritten date calculation algorithms

2014-12-23 Thread Greg Reagle
Sorry, truncated message. Trying again. I re-wrote this primarily for my own fun and education, but it has a few benefits in my biased opinion: - no limit on number of months (removed MONTHMAX) - strings printed to stdout rather than copied to memory, eliminating the potential for out-of-range

Re: [dev] [PATCH] - no limit on number of months: removed MONTHMAX - strings printed to stdout rather than copied to memory - rewritten date calculation algorithms

2014-12-23 Thread Greg Reagle
anied by "cal.c" to make that clear. On Tue, Dec 23, 2014, at 12:34 PM, FRIGN wrote: > On Tue, 23 Dec 2014 12:28:08 -0500 > Greg Reagle wrote: > > > /* See LICENSE file for copyright and license details. */ > > +/* © 2014 Greg Reagle */ > > See LICENSE fil

Re: [dev] [PATCH] - no limit on number of months: removed MONTHMAX - strings printed to stdout rather than copied to memory - rewritten date calculation algorithms

2014-12-23 Thread Greg Reagle
On Tue, Dec 23, 2014, at 01:01 PM, Dimitris Papastamos wrote: > You did not rewrite cal(1) in its entirety. Very true. I am well aware of that. I never claimed that I did. My point was that cal.c was the *only* file that I modified. Would you like me to re-submit a corrected patch (i.e. my nam

[dev] [PATCH] cal: Removed unused "day" variable

2015-01-06 Thread Greg Reagle
--- cal.1 | 3 +-- cal.c | 12 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/cal.1 b/cal.1 index a679350..c215340 100644 --- a/cal.1 +++ b/cal.1 @@ -14,8 +14,7 @@ cal \- print calendar .IR firstday ] .RB [ \-n .IR nmonths ] -.RB [ [ [ -.IR day ] +.RB [ [ .IR mon

[dev] [PATCH] If only the year operand is given, cal shall produce a calendar for all twelve months in the given calendar year.

2015-01-08 Thread Greg Reagle
--- cal.1 | 5 + cal.c | 11 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/cal.1 b/cal.1 index a679350..aebd992 100644 --- a/cal.1 +++ b/cal.1 @@ -29,6 +29,11 @@ of calendars side by side. Each row of calendars contains at most .IR columns number of calendars.

[dev] sbase/cal patch for Julian calendar

2015-01-13 Thread Greg Reagle
It is attached. -- http://www.fastmail.com - Accessible with your email software or over the web From 715bf6068f98089a03ca2beb38facbe568ac07ff Mon Sep 17 00:00:00 2001 From: Greg Reagle Date: Thu, 8 Jan 2015 17:16:19 -0500 Subject: [PATCH 1/2] Julian when month is Sep 17

Re: [dev] sbase/cal patch for Julian calendar

2015-01-16 Thread Greg Reagle
On Fri, Jan 16, 2015, at 05:04 AM, Dimitris Papastamos wrote: > Applied your patches (squashed into a single patch), thanks! Awesome. Thanks for squashing for me. -- http://www.fastmail.com - Choose from over 50 domains or use your own

[dev] sbase/cal: If only the year operand is given, cal shall produce a calendar for all twelve months in the given calendar year

2015-01-16 Thread Greg Reagle
Rebased as requested. See attachment. -- http://www.fastmail.com - Email service worth paying for. Try it for free From 0485b04e2515484a3ed47ccc348bc791a856017f Mon Sep 17 00:00:00 2001 From: Greg Reagle Date: Thu, 8 Jan 2015 14:21:37 -0500 Subject: [PATCH] If only the year operand is given

[dev] pseudo-problem copying and pasting

2015-01-22 Thread Greg Reagle
Whoever posted recently about a problem with Ctrl-y in surf, you might very well be experiencing a confusion about the way copy and paste works in X, rather than a genuine bug. Note that surf, by default, when you press Ctrl-y, copies into PRIMARY, and the paste command in a lot of programs pastes

[dev] surf questions

2015-01-22 Thread Greg Reagle
Sorry if the questions are rudimentary. 1) I am running surf and tabbed both from git, and XFCE. Running tabbed surf -e, all of my tab titles begin with "AcGDISVM:T- |". Why is that? What does it mean? Can I get rid of it? 2) How is searching supposed to work? When I hit Ctrl-f I get " _SURF

Re: [dev] surf questions

2015-01-22 Thread Greg Reagle
And what is caret browsing? - Original message - From: Greg Reagle To: "dev@suckless.org" Subject: [dev] surf questions Date: Thu, 22 Jan 2015 15:37:23 -0500 Sorry if the questions are rudimentary. 1) I am running surf and tabbed both from git, and XFCE. Running tabbed su

[dev] sbase/tee: -i option ignores SIGINT

2015-01-22 Thread Greg Reagle
Patch attached -- http://www.fastmail.com - Choose from over 50 domains or use your own 0001-i-option-ignores-SIGINT.patch Description: Binary data

Re: [dev] pseudo-problem copying and pasting

2015-01-26 Thread Greg Reagle
On Sun, Jan 25, 2015, at 06:26 AM, Vampyrah Broadcasting wrote: > It was me. Could you hint me to that post? Are you aware that: 1) You can use the middle mouse button to paste after hitting Ctrl-y in surf, and that requires no change to surf? 2) You can right click on a link in surf and a pop-up

[dev] surf: documented indicators in man page

2015-01-26 Thread Greg Reagle
Patch attached. -- http://www.fastmail.com - The professional email service 0001-Documented-indicators.patch Description: Binary data

[dev] surf alternatives for Adblock Plus, Privacy Badger, Self-Destructing Cookies, BetterPrivacy

2015-01-26 Thread Greg Reagle
Hello. I am trying surf instead of Firefox (which I've used for very many years). So far so good. The difference in memory usage is amazing. There are a few Firefox extensions that I've come to rely on. What do you use or what do you suggest that I use to provide the functionality of the follo

[dev] surf: see hover URL without changing title

2015-01-27 Thread Greg Reagle
I like that surf shows me the URL of the link over which my mouse is hovering, but I don't want it to change the window title. I want the window title to stay the title of the web page that I am viewing. Any ideas on how to make this happen? Thanks. -- http://www.fastmail.com - A no graphics,

Re: [dev] surf: see hover URL without changing title

2015-01-27 Thread Greg Reagle
On Tue, Jan 27, 2015, at 11:36 AM, Christoph Lohmann wrote: > Propose a patch and put it on the wiki. Yes I undertand that. Perhaps I should have been less open-ended with my question. Where/how would be a good place to display the hoverlink if not the title? A pop-up window? stdout? A status

Re: [dev] surf: see hover URL without changing title

2015-01-27 Thread Greg Reagle
On Tue, Jan 27, 2015, at 11:41 AM, Greg Reagle wrote: > Yes I undertand that. Perhaps I should have been less open-ended with > my question. Where/how would be a good place to display the hoverlink > if not the title? A pop-up window? stdout? A statusbar? Are there > any preced

Re: [dev] surf: see hover URL without changing title

2015-01-27 Thread Greg Reagle
On Tue, Jan 27, 2015, at 11:52 AM, Christoph Lohmann wrote: > Then hook to the window leaving event in GTK or X11 and set the title to > your needs. I will welcome a patch. Patch is attached. I am a total novice in GTK programming, so I don't know what type the callback function is supposed to be

[dev] thorough checking of suckless programs

2015-02-10 Thread Greg Reagle
Greetings. I am excited to see all the recent progress on sbase. Has anyone tried any software checkers on suckless programs? For example: - Electric Fence - DUMA - Memcheck of Valgrind - ProPolice - StackGuard Is there any interest in subjecting suckless software to such tests? I have not u

[dev] st: selecting text affects both primary and clipbaord

2015-02-19 Thread Greg Reagle
When I select text in st using the mouse, it sets both the primary selection and the clipboard selection. It should only set the primary selection. The clipboard is supposed to be only for explicitly requested copying. From http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt:

[dev] st: documenting keys in man page

2015-02-19 Thread Greg Reagle
See attached. -- http://www.fastmail.com - Same, same, but different... 0001-document-keys-in-man-page.patch Description: Binary data

Re: [dev] st: selecting text affects both primary and clipbaord

2015-02-20 Thread Greg Reagle
On Thu, Feb 19, 2015, at 06:46 PM, Wander Nauta wrote: > I know this isn't a democracy, but I agree with Greg, it makes more > sense to only set PRIMARY, not CLIPBOARD, in selcopy. Removing the > clipboard-related lines from xsetsel seems to do the trick. I've > attached a patch that does just that

[dev] need updated patch for st to use DEL (0x7F) for backspace key

2015-02-20 Thread Greg Reagle
Greetings. I have a patch file (which is attached) that no longer applies since st has changed. I don't remember whether it was emailed to me or I got it from a website. Would someone be kind enough to issue a new version of the patch? Also, I think such a patch should be considered for inclusi

Re: [dev] st: selecting text affects both primary and clipbaord

2015-02-20 Thread Greg Reagle
On Fri, Feb 20, 2015, at 01:50 PM, random...@fastmail.us wrote: > Another reason to leave it as-is is that, while in other applications it > is reasonable to select text for some purpose other than copying it > (e.g. to delete it or replace it), people will not want their clipboard > obliterated in

Re: [dev] st: selecting text affects both primary and clipbaord

2015-02-20 Thread Greg Reagle
On Fri, Feb 20, 2015, at 02:18 PM, sta...@cs.tu-berlin.de wrote: > * Greg Reagle 2015-02-20 20:07 > > It is true that the only reason I select text in st is to copy it, but I > > still don't want it clobbering my clipboard. > > does the current behaviour break some

Re: [dev] st: selecting text affects both primary and clipbaord

2015-02-21 Thread Greg Reagle
On Sat, Feb 21, 2015 at 09:26:50AM +0100, k...@shike2.com wrote: > You can do it by yourself. Clone the wiki repository and push the > change. Oh, I did not know that the wiki was in a git repository. Thank you for informing me. I don't think I have permission to push (I have limited experience

[dev] patch to the website that includes a patch for st that makes st not clobber the clipboard

2015-02-23 Thread Greg Reagle
I've attached a patch to the website that includes a patch for st that makes st not clobber the clipboard. -- http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow 0001-include-st-patch-to-make-selecting-text-not-affect-t.patch De

Re: [dev] patch to the website that includes a patch for st that makes st not clobber the clipboard

2015-02-23 Thread Greg Reagle
On Mon, Feb 23, 2015, at 11:25 AM, Markus Teich wrote: > Just push it, as long as there is no abuse, this git repo allows for > unauthenticated pushes. The changes will then be reviewed by a maintainer > and > should be visible online soon afterwards. > > (This is explained on the website as well…

Re: [dev] patch to the website that includes a patch for st that makes st not clobber the clipboard

2015-02-23 Thread Greg Reagle
On Mon, Feb 23, 2015, at 11:25 AM, Markus Teich wrote: > Just push it Thank you Markus and Dimitris for pointing out http://suckless.org/wiki to me. I pushed it. I pushed it real good (starts singing Salt-N-Peppa song). -- http://www.fastmail.com - Faster than the air-speed velocity of an

Re: [dev] [st] can't use Xterm font

2015-02-23 Thread Greg Reagle
On Sat, Feb 21, 2015, at 10:24 AM, Vampyrah Broadcasting wrote: > I want to use Xterms font in st. The Arch Wiki page about Xterm ( > https://wiki.archlinux.org/index.php/Xterm ) says that xterm uses the > font > -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-? > also abbrevated to 6

[dev] thanks to suckless developers for st and dvtm

2015-02-23 Thread Greg Reagle
I am now using st with dvtm and I can scroll up and down in the current dvtm window using Shift+PageUp or Shift+PageDown, for the first time. I could never get this to work in xterm (perhaps a more savvy person could have) because xterm gobbled up the Shift+PageUp/Down key strokes for its own use.

Re: [dev] [st] can't use Xterm font

2015-02-24 Thread Greg Reagle
It's not the the xterm font, but I am just as happy with the font when I run "st -f mono" (I am running Xubuntu 14.04). Does anyone know how to figure out specifically which font is being used in this case? Thanks. -- http://www.fastmail.com - Faster than the air-speed velocity of an

Re: [dev] [st] can't use Xterm font

2015-02-24 Thread Greg Reagle
On Tue, Feb 24, 2015, at 03:50 PM, Samuel Holland wrote: > fc-match mono That works. Thank you so much. I am familiar with the old commands xlsfonts and xfontsel, which, apparently, aren't relevant anymore. I guess X does fonts differently, not like when I learned the old commands years ago. I

Re: [dev] Suckless unit testing in C?

2015-02-25 Thread Greg Reagle
On 02/25/2015 02:35 PM, Eduardo A. Bustamante López wrote: > This is very simplistic. > > I'll give you some examples: > > - ii: I don't see it using netcat. > - quark: Doesn't use inetd > - surf: depends on webkit for most stuff > - dwm: X11 API > > Why aren't these communicating with stdin or

Re: [dev] [sbase][PATCH] Add col command

2015-03-03 Thread Greg Reagle
On Tue, Mar 3, 2015, at 08:40 AM, Dimitris Papastamos wrote: > This reminds me, we should really find another name for cols(1) now that > we have col(1). columnize, multicol -- http://www.fastmail.com - Access all of your messages and folders wherever you are

[dev] script for launching surf

2015-03-03 Thread Greg Reagle
I am presenting this in case you find it interesting, useful, or instructive, or for any constructive criticism so I can learn more. Here is the script I use to launch surf called mysurf: #!/bin/sh cd ~/downloads exec surf "$@" 2>>surf-stder >>surf-stdout I don't launch surf directly because: I

Re: [dev] script for launching surf

2015-03-03 Thread Greg Reagle
On Tue, Mar 3, 2015, at 04:04 PM, Raphaël Proust wrote: > Why do you call it `mysurf` instead of just `surf`? Because it's not the same as surf. It behaves differently than surf. > (You could still > launch the original surf using /usr/bin/surf or whatever is > appropriate on your system.) "/us

Re: [dev] st: selecting text affects both primary and clipbaord

2015-03-09 Thread Greg Reagle
On Mon, Mar 9, 2015, at 04:15 PM, Christoph Lohmann wrote: > Can you please elaborate where you use both selections in parallel for > different tasks and where st does interfere? Hi Christoph. Well actually yes I do use both selections independently. I use clipboard selection when I explicitly

Re: [dev] [st] [PATCH] FAQ: fix wordingy

2015-03-09 Thread Greg Reagle
On Tue, Mar 10, 2015 at 01:38:46AM +0100, Markus Teich wrote: > Ivan Delalande wrote: > > OpenBSD lacks of librt, despite it *being* mandatory in POSIX > > Heyho, > > While we're at it, according to my understanding of the english language the > `of` is wrong and should be removed since `lack

Re: [dev] Potential bug in st fallback font code

2015-03-10 Thread Greg Reagle
On Tue, Mar 10, 2015 at 06:39:49AM +0100, Christoph Lohmann wrote: > Why are you throwing half‐baked bug reports at me without doing any de‐ > bugging on your own? First of all, this is suckless: Bug reports have to > be opened with a patch attached. Second: Don’t reply to yourself if you > don’t

Re: [dev] st: selecting text affects both primary and clipbaord

2015-03-10 Thread Greg Reagle
On Tue, Mar 10, 2015, at 05:02 PM, Christoph Lohmann wrote: > The text convinced me that st did it wrong. It is now using primary just > for the selection. Are there any good suggestions for the shortcut to > copy to the clipboard? Ctrl + y does interfere with everything. My two cents . . . It

Re: [dev] [st] [PATCH] FAQ: fix wording

2015-03-10 Thread Greg Reagle
On Tue, Mar 10, 2015, at 05:28 PM, Roberto E. Vargas Caballero wrote: > OpenBSD lacks librt, despite it being mandatory in POSIX That is fine, but I think a little bit better would be: "OpenBSD lacks librt, even though librt is required by POSIX." -- http://www.fastmail.com - mmm... Fastma

Re: [dev] st: selecting text affects both primary and clipbaord

2015-03-12 Thread Greg Reagle
On 03/10/2015 10:49 PM, Alex Pilon wrote: > Are you thinking of something like the attached? That looks fine to me, looking at it briefly, but I haven't tested it (yet).

Re: [dev] st: selecting text affects both primary and clipbaord

2015-03-12 Thread Greg Reagle
I see some people arguing *passionately* about the keybindings, as if they don't know that they can be changed. Yea we can and should have some discussion about reasonable defaults, but you can set the keys however you want in config.h. Just some perspective. Suckless people are passionate. :>

Re: [dev] [faq] How do I push to st repository?

2015-03-16 Thread Greg Reagle
On Sun, Mar 15, 2015, at 11:02 AM, Markus Teich wrote: > read http://git-scm.com/book/en/v2 at least until chapter 3. Thanks for this recommendation. I will read it. (I know it was intended for someone else.) I have a pretty good basic understanding of git and I've created, merged, and deleted

Re: [dev] sed breaks utf8 in [ ]

2015-03-30 Thread Greg Reagle
On Mon, Mar 30, 2015, at 02:33 PM, FRIGN wrote: > POSIX locales are an insane concept. > The idea of localized differences has its origin in the > sick minds of the POSIX-authors. Don't be so diplomatic. How do you really feel? -- http://www.fastmail.com - Choose from over 50 domains or use yo

Re: [dev] sed breaks utf8 in [ ]

2015-03-31 Thread Greg Reagle
Somebody wrote: > > I agree there should be localized date-formats, I am a big fan of the ISO 8601 date format: today would be 2015-03-31. It sorts dates properly and goes from largest unit of time to smallest (year then month then day). I think it would be fine for the suckless tools to support

[dev] [PATCH] Added dvtm and abduco to rocks.md on website

2015-04-06 Thread Greg Reagle
I am including the patch as an attachment so webmail doesn't mess up the formatting. -- http://www.fastmail.com - Send your email first class 0001-Added-dvtm-and-abduco-to-rocks.md-on-website.patch Description: Binary data

Re: [dev] A suckless issue tracker

2015-04-07 Thread Greg Reagle
On Mon, Apr 6, 2015, at 04:38 PM, FRIGN wrote: > Isn't it bad enough that we have these Arch-hipsters > on this ml who constantly discuss things without > providing patches? Would you like to discuss that issue? By the way, I've never encountered the term "Arch-hipster" before--very very amusing.

[dev] How to use ssam in Ubuntu 14.04

2015-05-07 Thread Greg Reagle
I know this might be off-topic, but I think there are a lot of Plan 9 fans here. I want to run ssam (http://man.cat-v.org/p9p/1/ssam). I have installed package 9base (version 1:6-6) which provides sam, but not ssam. Is there a way for me to call sam so it works like ssam? Is there another way I

Re: [dev] How to use ssam in Ubuntu 14.04

2015-05-08 Thread Greg Reagle
On Thu, May 7, 2015, at 03:20 PM, Connor Lane Smith wrote: > It's also in the 9base git repo [1], just not in a release. > > [1]: http://git.suckless.org/9base/tree/ssam Thank you so much, that works! -- http://www.fastmail.com - Same, same, but different...

[dev] surf patch: Explain cookie management in the man page.

2015-05-08 Thread Greg Reagle
Attached is the patch. This might seem obvious to many of you, but I think it would be nice to have it explained in the man page for people who are not computer experts like the suckless developers. Probably suckless users will be able to figure this out eventually, but this explanation can save

[dev] dvtm: don't change master or numbering

2015-05-22 Thread Greg Reagle
Hello. I would like dvtm to behave differently. I don't want creating a new shell window (Mod-c) to make the new shell window the master; I want the master to stay the master. I also don't want creating a new shell window to renumber all the windows; I want the new window to be one plus the last

Re: [dev] dvtm: don't change master or numbering

2015-05-22 Thread Greg Reagle
On Fri, May 22, 2015, at 02:26 PM, Greg Reagle wrote: > Hello. I would like dvtm to behave differently. I don't want creating > a new shell window (Mod-c) to make the new shell window the master; I > want the master to stay the master. I also don't want creating a new > sh

Re: [dev] dvtm: don't change master or numbering

2015-05-22 Thread Greg Reagle
On Fri, May 22, 2015, at 05:31 PM, Ross Mohn wrote: > I don't think this should be mainline workflow, but it probably makes a > nice patch. However, you should understand that window numbering is > always the same with the master being window #1 and the rest in > consecutive order. The clients are

Re: [dev] dvtm: don't change master or numbering

2015-05-26 Thread Greg Reagle
On Sat, May 23, 2015, at 01:56 PM, Ross Mohn wrote: > Getting new windows and un minimized windows to go on the stack instead > of taking over the master window is pretty easy. Having them go to the > end I'll have to think about a little more. Here's an easy solution that > makes them go to the to

[dev] dvtm: [PATCH] Created and un-minimized clients go to top of stack instead of master window.

2015-05-26 Thread Greg Reagle
On Fri, May 22, 2015, at 02:26 PM, Greg Reagle wrote: > Hello. I would like dvtm to behave differently. I don't want creating > a new shell window (Mod-c) to make the new shell window the master; I > want the master to stay the master. I also don't want creating a new > sh

Re: [dev] dvtm: don't change master or numbering

2015-05-26 Thread Greg Reagle
On Tue, May 26, 2015, at 01:31 PM, Marc André Tanner wrote: > On Fri, May 22, 2015 at 02:26:30PM -0400, Greg Reagle wrote: > > Hello. I would like dvtm to behave differently. I don't want creating > > a new shell window (Mod-c) to make the new shell window the master; I &g

Re: [dev] dvtm: [PATCH] Created and un-minimized clients go to top of stack instead of master window.

2015-05-27 Thread Greg Reagle
On 05/27/2015 03:40 AM, Raphaël Proust wrote: > Can I suggest a rename to attachaside? It would make it consistent > with dwm's attachaside: http://dwm.suckless.org/patches/attachaside Thanks for pointing out the similarity of my patch for dvtm to the attachaside patch for dwm. This will make it

Re: [dev] surf release?

2015-06-01 Thread Greg Reagle
On Mon, Jun 1, 2015, at 01:46 PM, Jack L. Frost wrote: > As a packager, I'd very much appreciate tagging once in a while so that > we have > static targets for patching and packaging. I don't know git well, just the basics, but why don't you use a git commit id as the target for patching and packa

Re: [dev] surf release?

2015-06-01 Thread Greg Reagle
On Mon, Jun 1, 2015, at 02:36 PM, Eric Pruitt wrote: > On Mon, Jun 01, 2015 at 02:18:01PM -0400, Greg Reagle wrote: > > I don't know git well, just the basics, but why don't you use a git > > commit id as the target for patching and packaging? As far as I > > unders

Re: [dev] surf release?

2015-06-01 Thread Greg Reagle
To follow up on my suggestion to use a git commit as a version, the following command in fish automatically produces a version number: date --date (git log -1 --pretty=format:%aD) -u +%Y.%m.%d.%H.%M.%S In bash, it would be: date --date "$(git log -1 --pretty=format:%aD)" -u +%Y.%m.%d.%H.%M.%S --

Re: [dev] surf release?

2015-06-01 Thread Greg Reagle
On Mon, Jun 1, 2015, at 03:31 PM, Jack L. Frost wrote: > 1) How do I know if a certain tag is stable enough to use? Do I just take > the > current HEAD? Do I spend my time extensively testing a few latest tags to > figure out if they are stable or not? I assume by tag you mean commit because we ar

Re: [dev] [dvtm] Commands document, one page PDF

2015-08-10 Thread Greg Reagle
On Sat, Aug 8, 2015, at 02:39 PM, Ross Mohn wrote: > I've finished a one page document of all the default commands in dvtm Very nice. Thank you. Reading this made me find a typo in the current dvtm man page: dvtm.1: .B Mod\-d Change to vertical stack tiling layout. which should be Mod\-f --

Re: [dev] [dvtm] Commands document, one page PDF

2015-08-10 Thread Greg Reagle
On Sat, Aug 8, 2015, at 02:39 PM, Ross Mohn wrote: > I've finished a one page document of all the default commands in dvtm > with their default key bindings. A4 and Letter formats are available at > http://waxandwane.org/dvtm.html. The commands are organized into the > following categories: > >

Re: [dev] [st] Terminal abnormal key codes

2015-09-02 Thread Greg Reagle
I've been reading this conversation with interest. I tried different shells with xterm versus st. On 09/02/2015 11:29 AM, Fabian Homborg wrote: > If you launch fish in { konsole, xterm, gnome-terminal, linux in-kernel > VTs, iTerm2, ... } your keys work, without smkx. > > If you launch fish in

Re: [dev] [st] Terminal abnormal key codes

2015-09-02 Thread Greg Reagle
On 09/02/2015 12:21 PM, Greg Reagle wrote: > I've been reading this conversation with interest. I tried different shells > with xterm versus st. > > On 09/02/2015 11:29 AM, Fabian Homborg wrote: >> If you launch fish in { konsole, xterm, gnome-terminal, linux i

Re: [dev] [st] Terminal abnormal key codes

2015-09-02 Thread Greg Reagle
On 09/02/2015 01:00 PM, Fabian Homborg wrote: >> The anomaly of '[P' with fish might be fixed in a later version. I am >> running fish, version 2.1.2-1256-g64af63b. > > That's why we are discussing this. I updated fish to 2.2.0-1~trusty amd64 (from the PPA) and the '[P' behavior still occurs.

Re: [dev] [st] Terminal abnormal key codes

2015-09-02 Thread Greg Reagle
On 09/02/2015 11:29 AM, Fabian Homborg wrote: > Roberto E. Vargas Caballero writes: > That's not what I'm talking about. Of course a tone of terminals have > smkx defined, but fish currently doesn't send it and works on (as far as > I know) anything but st. > > In other words: > > If you launch

[dev] sbase: is od needed?

2015-09-28 Thread Greg Reagle
Howdy. Would it be useful for me to write od? Has anyone else worked on it?

Re: [dev] sbase: is od needed?

2015-09-28 Thread Greg Reagle
On 09/28/2015 01:02 PM, Dimitris Papastamos wrote: On Mon, Sep 28, 2015 at 12:51:19PM -0400, Greg Reagle wrote: Howdy. Would it be useful for me to write od? Has anyone else worked on it? Yes it is in the TODO, send a patch to hackers@ when you have something to show. There was an

[dev] sbase: od: type 'c': format characters in octal as specified by standard

2015-10-02 Thread Greg Reagle
This is relative to master. This seems to be required by the base standard, not an XSI extension. >From 4bdc2f611795e683405b55ac574247262a485f9f Mon Sep 17 00:00:00 2001 From: Greg Reagle Date: Fri, 2 Oct 2015 09:38:39 -0400 Subject: [PATCH] od: type 'c': format character

  1   2   3   4   >