Workman keyboard layout

2021-07-03 Thread koizel

Hello,

How could I add the Workman keyboard layout so that it can be used as a 
keyboard encoding with wsconsctl?


Cheers,
Gabriel



Re: amd and 2GB limit

2021-07-03 Thread Janne Johansson
Could be amd(8) and nfsv2 limits too..

Den lör 3 juli 2021 11:23Stuart Longland  skrev:

> On Sat, 3 Jul 2021 01:28:17 -0300
> Gustavo Rios  wrote:
>
> > Is there this limit yet in amd ?
>
> … on AMD64?
> … on RAM?
> … on disk?
> Maximum or minimum?
>
> I've got an AMD64 machine here that's got more than 2GB of both RAM and
> disk… so no if there's a maximum limit, it's a lot bigger than that.
> Limiting RAM or disk to 2GB in 2021 would be ludicrous, so I'm a bit
> confused by your question.
>
> Please be less vague.
> --
> Stuart Longland (aka Redhatter, VK4MSL)
>
> I haven't lost my mind...
>   ...it's backed up on a tape somewhere.
>
>


Re: amd and 2GB limit

2021-07-03 Thread Stuart Longland
On Sat, 3 Jul 2021 01:28:17 -0300
Gustavo Rios  wrote:

> Is there this limit yet in amd ?

… on AMD64?
… on RAM?
… on disk?
Maximum or minimum?

I've got an AMD64 machine here that's got more than 2GB of both RAM and
disk… so no if there's a maximum limit, it's a lot bigger than that.
Limiting RAM or disk to 2GB in 2021 would be ludicrous, so I'm a bit
confused by your question.

Please be less vague.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Re: send ctrl-alt-f1 to user app

2021-07-03 Thread Reuben ua Bríġ
> Date: Sat,  3 Jul 2021 00:07:46 +0959
> From: Reuben ua Bríġ 

> oops... that should be
> 
>   xmodmap -e "keysym F1 = F1 F1"
> 

wrong again?  i think this should work ???

xmodmap -e "keysym F1 = F1 F1 F1 F1 F1 F1 F1"



Re: amd and 2GB limit

2021-07-03 Thread Stuart Henderson
On 2021-07-03, Gustavo Rios  wrote:
> Hi folks,
>
> Is there this limit yet in amd ?
>
> Thanks.
>

Yes amd(8) has a 2GB limit because it uses NFSv2 on the loopback mount.




Re: Workman keyboard layout

2021-07-03 Thread Aaron Bieber


koi...@tilde.club writes:

> Hello,
>
> How could I add the Workman keyboard layout so that it can be used as a 
> keyboard
> encoding with wsconsctl?
>
> Cheers,
> Gabriel

Hi! Easiest way is to create a wsconsctl.conf that sets each key to the
proper value.

Here is the colemak equiv from colemak.com:

#!/bin/sh
# Colemak layout script for OpenBSD console.
# 2006-01-01 Shai Coleman, http://colemak.com/ . Public domain.

wsconsctl keyboard.encoding=us  \
keyboard.map+="keycode  41 =  graveasciitilde   dead_tilde  
  asciitilde " \
keyboard.map+="keycode   2 =  1exclam   exclamdown  
 onesuperior " \
keyboard.map+="keycode   3 =  2atmasculine  
 twosuperior " \
keyboard.map+="keycode   4 =  3numbersign  ordfeminine  
   threesuperior " \
keyboard.map+="keycode   5 =  4dollar cent  
sterling " \
keyboard.map+="keycode   6 =  5   percent   asciitilde  
 yen " \
keyboard.map+="keycode   7 =  6   asciicircum   asciitilde  
  asciitilde " \
keyboard.map+="keycode   8 =  7 ampersand  eth  
 ETH " \
keyboard.map+="keycode   9 =  8  asteriskthorn  
   THORN " \
keyboard.map+="keycode  10 =  9 parenleft   asciitilde  
  asciitilde " \
keyboard.map+="keycode  11 =  0parenright   asciitilde  
  asciitilde " \
keyboard.map+="keycode  12 =  minusunderscore   asciitilde  
  asciitilde " \
keyboard.map+="keycode  13 =  equal  plus multiply  
division " \

   \
keyboard.map+="keycode  16 =  q Q   adiaeresis  
  Adiaeresis " \
keyboard.map+="keycode  17 =  w Waring  
   Aring " \
keyboard.map+="keycode  18 =  f F   atilde  
  Atilde " \
keyboard.map+="keycode  19 =  p P   oslash  
Ooblique " \
keyboard.map+="keycode  20 =  g G   asciitilde  
  asciitilde " \
keyboard.map+="keycode  21 =  j J   asciitilde  
  asciitilde " \
keyboard.map+="keycode  22 =  l L   asciitilde  
  asciitilde " \
keyboard.map+="keycode  23 =  u U   uacute  
  Uacute " \
keyboard.map+="keycode  24 =  y Y   udiaeresis  
  Udiaeresis " \

keyboard.map+="keycode  25 =  semicolon colon   odiaeresis  
  Odiaeresis " \

keyboard.map+="keycode  26 =bracketleft braceleftguillemotleft  
  asciitilde " \

keyboard.map+="keycode  27 =   bracketrightbraceright   guillemotright  
  asciitilde " \

keyboard.map+="keycode  43 =  backslash   bar   asciitilde  
  asciitilde " \


   \

keyboard.map+="keycode  30 =  a A   aacute  
  Aacute " \

keyboard.map+="keycode  31 =  r R   dead_grave  
  asciitilde " \

keyboard.map+="keycode  32 =  s S   ssharp  
  asciitilde " \

keyboard.map+="keycode  33 =  t T   dead_acute  
  asciitilde " \ 

Enable Edge Scrolling for ALPS Touchpad

2021-07-03 Thread Thomas Vetere

Hello everyone,

I am running OpenBSD on an HP Pavilion dm1z-2000 Notebook. I am trying 
to setup edge scrolling for my Alps touchpad.


Here are the relevant dmesg entries for the device:

"*AUI1101" at acpi0 not configured
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0

Here is the output of xinput:

+ Virtual core pointer        id=2    [master pointer  (3)]
|   + Virtual core XTEST pointer      id=4    [slave 
pointer  (2)]
|   + /dev/wsmouse        id=7    [slave 
pointer  (2)]

+ Virtual core keyboard       id=3    [master keyboard (2)]
    + Virtual core XTEST keyboard     id=5    [slave 
keyboard (3)]
    + /dev/wskbd      id=6    [slave 
keyboard (3)]


Here is the output of wsconsctl | grep mouse:

mouse.type=ps2
mouse.reverse_scrolling=0

I've browsed the mailing archive and man pages for more info on this 
topic. This email chain in particular was informative:


https://marc.info/?t=15150076981&r=1&w=2

It got me thinking that maybe my Alps model was not included in the 
pms.c code.


I went over the code for pms.c here: 
https://github.com/openbsd/src/blob/master/sys/dev/pckbc/pms.c


I noticed that some of the version models are actually excluded in the 
code and actually default to PS2 because they use protocols that are not 
quite compatible with pms.
I know for a fact based on my machine's manual that the touchpad 
supports edge scrolling. Is there anyway I can retrieve the hex value 
for the version # of my alps touchpad without having
to debug the kernel or add some sort of printf statement and then 
recompile? I am trying to find out what my version # is to see if it 
just needs to be added to the model list as in 
https://marc.info/?t=15150076981&r=1&w=2 or if extra work is needed. 
If so, I would be interested in trying to do some driver work to enable 
the scrolling.


Thank you for your help!





Re: kitty termcap entry

2021-07-03 Thread Björn Gohla


Stuart Henderson writes:

> On 2021-06-20, Björn Gohla  wrote:
>>
>> hi all,
>>
>> i have the following problem with the kitty terminal emulator:
>>
>> 
>> 15:43:39 bgohla@titanic ~ $ doas pkg_add hello
>> doas (bgo...@titanic.my.domain) password: 
>> failed termcap lookup on xterm-kitty at 
>> /usr/libdata/perl5/OpenBSD/ProgressMeter/Term.pm line 113.
>> 15:44:02 bgohla@titanic ~ $ echo $TERM
>> xterm-kitty
>> 15:44:17 bgohla@titanic ~ $
>> 
>>
>> it seems the problem is that there is no entry for xterm-kitty in
>> /etc/termcap. the above pkg_add invocation works when i set TERM=xterm .
>>
>> i suppose one could just add a termcap entry that redirects to
>> xterm.
>>
>> would this be a patch in the kitty port, or does this require a change
>> to the base system?
>>
>> --
>> cheers,
>> björn
>>
>>
>
> It would require a change in the base system, /usr/share/misc/termcap is
> a system file and isn't something that can be modified from a port.
> Additionally it will get overwritten when the OS is updated.
>
> Software that uses terminfo will work with kitty as it sets TERMINFO in
> the environment pointing at its own special file; that's not possible
> with termcap.

So given that there doesn't seem to be a stable way to extend the
termcap database from a port, shouldn't it be depracated?