Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-24 Thread Roberto E . Vargas Caballero
> Use Ctrl-Sfhit-C, not Alt-Shift-C, like the other terminal emulators use.

If all the people agree I am going to change the defaul keybinding to
CTRL+SHIFT+C, because it is an impossible sequence in the terminal
world, and it is not hiding any valid combination that can be used
by the programs running in the terminal. In fact, I think all the
shortcuts should be allocated in that space.

Regards,




Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-13 Thread Snobb
On 13/01/17 08:52P, Eric Pruitt wrote:
> On Thu, Jan 12, 2017 at 07:25:06PM +0100, Patrick Bucher wrote:
> > I'm using st and dwm at the same time, and today I discovered a little 
> > problem
> > when using the default config of both programs. st uses Alt-Shift-C to copy 
> > text
> > into the clipboard, dwm uses Mod1-Shift-C for closing the selected window,
> > whereas Mod1 is Alt by default, at least on my machine. (Maybe some of you 
> > use
> > Super_L, vulgo "the Windows key".)
> 
> I use Caps Lock as my window manager key since I don't have any other
> use for it:
> 
> xmodmap -e "remove mod4 = Hyper_L" \
> -e "remove Lock = Caps_Lock" \
> -e "keysym Caps_Lock = Hyper_L" \
> -e "add mod3 = Hyper_L"
> 
> I know a lot of Vimmers like to map caps to escape, but I use "qq"
> instead of escape.

Mapping CapsLock to Ctrl is also good, since Vi/Vim accepts Ctrl-C and Ctrl-[ 
as an
escape sequence (the former with minor exceptions). Vim allows remapping  
to
 to deal with the exceptions (imap  ).

> 
> Eric
> 
> 



Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-13 Thread Eric Pruitt
On Thu, Jan 12, 2017 at 07:25:06PM +0100, Patrick Bucher wrote:
> I'm using st and dwm at the same time, and today I discovered a little problem
> when using the default config of both programs. st uses Alt-Shift-C to copy 
> text
> into the clipboard, dwm uses Mod1-Shift-C for closing the selected window,
> whereas Mod1 is Alt by default, at least on my machine. (Maybe some of you use
> Super_L, vulgo "the Windows key".)

I use Caps Lock as my window manager key since I don't have any other
use for it:

xmodmap -e "remove mod4 = Hyper_L" \
-e "remove Lock = Caps_Lock" \
-e "keysym Caps_Lock = Hyper_L" \
-e "add mod3 = Hyper_L"

I know a lot of Vimmers like to map caps to escape, but I use "qq"
instead of escape.

Eric




Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-13 Thread Markus Teich
Patrick Bucher wrote:
> On Fri, Jan 13, 2017 at 11:23:28PM +0800, Ivan Tham wrote:
> > Windows key is a better choice most of the time since it's unused
> > 
> As you and many others suggested, I am now using the Windows key as well. It's
> a bit strange at the beginning, for my thumb has to move a bit more to the
> left,

Heyho,

setxkbmap BLA -option altwin:swap_lalt_lwin

--Markus



Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-13 Thread Patrick Bucher
On Fri, Jan 13, 2017 at 11:23:28PM +0800, Ivan Tham wrote:
> On Thu, Jan 12, 2017 at 07:25:06PM +0100, Patrick Bucher wrote:
> > I'm using st and dwm at the same time, and today I discovered a little 
> > problem
> > when using the default config of both programs. st uses Alt-Shift-C to copy 
> > text
> > into the clipboard, dwm uses Mod1-Shift-C for closing the selected window,
> > whereas Mod1 is Alt by default, at least on my machine. (Maybe some of you 
> > use
> > Super_L, vulgo "the Windows key".)
> 
> Windows key is a better choice most of the time since it's unused except
> in qemu where windows uses super key so it clashes. Alt would be bad
> since most applications uses Alt like Alt+1 in firefox, Alt+f in
> terminal.
> 
As you and many others suggested, I am now using the Windows key as well. It's a
bit strange at the beginning, for my thumb has to move a bit more to the left,
but at the same time I can use a lot more key combinations that require Alt,
such as the one mentioned in st, but also some emacs-style readline commands.

> > So guess what happened when I was trying to copy some code into the 
> > clipboard
> > today ;-)
> 
> Try using the primary clipboard, I use that most of the time. I only use
> the clipboard when it comes to Google drive stuff since they clipboard
> sucks and don't support primary keyboard.
> 
Now Alt also works here, but I also started using autocutsel, as an other user
suggested; thank you, it's working fine.

> > PS: Anybody using Arch Linux here? Since the fontconfig update today st no
> > longer works with my font of choice Terminus. Just in case somebody has the 
> > same
> > problem... here's my font[] definition:
> > 
> > static char font[] = 
> > "Terminus:pixelsize=24:antialias=true:autohint=true:lang=ru";
> 
> I use Arch here with Void (Musl is broken with locale so no Chinese
> LC_DATETIME), I heard that there is some issues with the latest update
> where my friend can't use Inifinity but I am still be able to use
> ttf-mononoki here fine.
> 
> I don't know how to solve that but still hope you good luck!
> 
As somebody else already pointed out, the freetype library has a different
behaviour, requiring "xos4 Terminus" instead of "Terminus" to find the font. It
works for me, but there is still a discussion going on:

https://bugs.gentoo.org/show_bug.cgi?id=605168

Thank you for all your help!

Patrick



Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-13 Thread Ivan Tham

On Thu, Jan 12, 2017 at 07:25:06PM +0100, Patrick Bucher wrote:

I'm using st and dwm at the same time, and today I discovered a little problem
when using the default config of both programs. st uses Alt-Shift-C to copy text
into the clipboard, dwm uses Mod1-Shift-C for closing the selected window,
whereas Mod1 is Alt by default, at least on my machine. (Maybe some of you use
Super_L, vulgo "the Windows key".)


Windows key is a better choice most of the time since it's unused except
in qemu where windows uses super key so it clashes. Alt would be bad
since most applications uses Alt like Alt+1 in firefox, Alt+f in
terminal.


So guess what happened when I was trying to copy some code into the clipboard
today ;-)


Try using the primary clipboard, I use that most of the time. I only use
the clipboard when it comes to Google drive stuff since they clipboard
sucks and don't support primary keyboard.


PS: Anybody using Arch Linux here? Since the fontconfig update today st no
longer works with my font of choice Terminus. Just in case somebody has the same
problem... here's my font[] definition:

static char font[] = 
"Terminus:pixelsize=24:antialias=true:autohint=true:lang=ru";


I use Arch here with Void (Musl is broken with locale so no Chinese
LC_DATETIME), I heard that there is some issues with the latest update
where my friend can't use Inifinity but I am still be able to use
ttf-mononoki here fine.

I don't know how to solve that but still hope you good luck!

--
Do what you like, like what you do.  -- Pickfire



Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-13 Thread Snobb
On 12/01/17 07:25pm, Patrick Bucher wrote:
> Hi there,
>
> I'm using st and dwm at the same time, and today I discovered a little problem
> when using the default config of both programs. st uses Alt-Shift-C to copy 
> text
> into the clipboard, dwm uses Mod1-Shift-C for closing the selected window,
> whereas Mod1 is Alt by default, at least on my machine. (Maybe some of you use
> Super_L, vulgo "the Windows key".)

I'm also using dwm and st together. Indeed using Mod4 (WinKey) makes perfect 
sense
in DWM. I've been using it instead of Mod1 for almost 10 years now and never 
looked back. :)

>
> So guess what happened when I was trying to copy some code into the clipboard
> today ;-)
>
> How do you deal with that?
>
> Thanks for suggestions,
> Patrick
>
> PS: Anybody using Arch Linux here? Since the fontconfig update today st no
> longer works with my font of choice Terminus. Just in case somebody has the 
> same
> problem... here's my font[] definition:
>
> static char font[] = 
> "Terminus:pixelsize=24:antialias=true:autohint=true:lang=ru";
>
I'm not the Arch user, but generally speaking the fc-list and fc-cache are your 
friends.
I'd start from checking if Terminus is still in the fc-list.



Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-12 Thread Alex Pilon
On Thu, Jan 12, 2017 at 07:25:06PM +0100, Patrick Bucher wrote:
> I'm using st and dwm at the same time, and today I discovered a little problem
> when using the default config of both programs. st uses Alt-Shift-C to copy 
> text
> into the clipboard, […] How do you deal with that?

Use Ctrl-Sfhit-C, not Alt-Shift-C, like the other terminal emulators use.

> PS: Anybody using Arch Linux here?

Yes, because I'm too lazy to get crappy packages in a “real” distro.

> Since the fontconfig update today st no longer works with my font of
> choice Terminus. Just in case somebody has the same problem... here's
> my font[] definition:

Nothing to do with Arch. It's an upstream fontconfig change. The font
name is now “xos4 Terminus”.



Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-12 Thread Joshua Haase
Patrick Bucher  writes:

> Hi there,
>
> I'm using st and dwm at the same time, and today I discovered a little problem
> when using the default config of both programs. st uses Alt-Shift-C to copy 
> text
> into the clipboard, dwm uses Mod1-Shift-C for closing the selected window,
> whereas Mod1 is Alt by default, at least on my machine. (Maybe some of you use
> Super_L, vulgo "the Windows key".)

> How do you deal with that?

Indeed I user Super_L key for dwm, because many programs use Alt for
their own keyboard bindings.

Also, I use the mouse for copying and use autocutsel for syncing
selection and clipboard. So I mostly do not copy using Alt-Shift-C.

> PS: Anybody using Arch Linux here? Since the fontconfig update today st no
> longer works with my font of choice Terminus. Just in case somebody has the 
> same
> problem... here's my font[] definition:

I Arch and my font is Adobe Pro.



Re: [dev] [st/dwm] Alt-Shift-C and Mod1-Shift-C

2017-01-12 Thread Hadrien Lacour
On Thu, Jan 12, 2017 at 07:25:06PM +0100, Patrick Bucher wrote:
> Hi there,
> 
> I'm using st and dwm at the same time, and today I discovered a little problem
> when using the default config of both programs. st uses Alt-Shift-C to copy 
> text
> into the clipboard, dwm uses Mod1-Shift-C for closing the selected window,
> whereas Mod1 is Alt by default, at least on my machine. (Maybe some of you use
> Super_L, vulgo "the Windows key".)
> 
> So guess what happened when I was trying to copy some code into the clipboard
> today ;-)
> 
> How do you deal with that?
> 
> Thanks for suggestions,
> Patrick
> 
> PS: Anybody using Arch Linux here? Since the fontconfig update today st no
> longer works with my font of choice Terminus. Just in case somebody has the 
> same
> problem... here's my font[] definition:
> 
> static char font[] = 
> "Terminus:pixelsize=24:antialias=true:autohint=true:lang=ru";
> 

This bug report seems related https://bugs.gentoo.org/show_bug.cgi?id=605168