The officially official Devuan Forum!

You are not logged in.

#1 2017-06-04 11:28:53

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

X11 Programming Development Forum?

Hello,

Would you eventually know a possible X11 Programming Development Forum?

Thank you

Offline

#2 2017-06-04 14:48:09

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: X11 Programming Development Forum?

I'm not understanding this.  Is it a question (about an existing forum somewhere) or a request (for a space on this forum)?  If you want to discuss that here, the DIY forum would be a good place. Moving since it is not a support question regarding Devuan Jessie.

Offline

#3 2017-06-05 06:16:16

spartrekus
Member
Registered: 2017-04-30
Posts: 132  

Re: X11 Programming Development Forum?

golinux wrote:

I'm not understanding this.  Is it a question (about an existing forum somewhere) or a request (for a space on this forum)?  If you want to discuss that here, the DIY forum would be a good place. Moving since it is not a support question regarding Devuan Jessie.

I want to make my own XBINDKEYS for a simple launcher of XTERM.

I have learned how TinyWm works, but now, I would like to interact with keyboard. Of course, a platform such as a forum is the best, because the man X11 is not easy.

Offline

#4 2017-06-21 07:16:41

PeteGozz
Member
From: Woodside South Australia
Registered: 2017-06-21
Posts: 72  

Re: X11 Programming Development Forum?

This _should_ let you build you own user specific .xbindkeys
I'm not using TWM (openbox)

apt-get install xbindkeys   
man xbindkeys

has examples

Offline

#5 2017-06-21 07:23:42

PeteGozz
Member
From: Woodside South Australia
Registered: 2017-06-21
Posts: 72  

Re: X11 Programming Development Forum?

xbindkeys -dg
is full of guile cool smile

Hope it actually works these days.

I will also test here as _some_  EFL based (at least) apps wont launch when run under slim.
But will launch when run from startx.
(getting that back was a small journey in itself)

Offline

#6 2017-06-21 08:00:26

PeteGozz
Member
From: Woodside South Australia
Registered: 2017-06-21
Posts: 72  

Re: X11 Programming Development Forum?

Replying to myself

Xbindkeys looks promising it will even write a config file for you in either plain text or guile
however I think my window manger is grabbing (back) the keys or I have to  log out in again ... no idea

Offline

#7 2017-06-21 09:29:53

PeteGozz
Member
From: Woodside South Australia
Registered: 2017-06-21
Posts: 72  

Re: X11 Programming Development Forum?

As this may be helpful for somebody else:
Success on TWM

_Caveat_
I had to add (restore ?) a conf file so X would let me start as a normal user from console.
(see end of this post if startx as a normal user doesn't work )

you will need to organise for xbindkeys to start
so perhaps something like this in ~/.xinitrc
( simple copy of mine so YOU need to edit / uncomment to taste )
As you experiment ONE variable thing at a time

# the following variable defines the session which is started if the user
# doesn't explicitly select a session
DEFAULT_SESSION=openbox-session 

case $1 in
    twm)
	#xbindkeys &
	#xterm &
	exec twm
	;;
    
    enlightenment)
	exec /usr/bin/enlightenment_start
	;;
    enlightenment?*)
	exec /usr/local/bin/enlightenment_start
	;;
    icewm)
	icewmbg &
	icewmtray &
	exec icewm
	;;
 
    *)
	exec $DEFAULT_SESSION
	;;
esac

## EOF
startx twm 

  or

xinit  twm -- :2 

 

Then generate a default by a run of:

$ xbindkeys --default  > .xbindkeys

discover the combinations with:

$ xbindkeys --keys

--help and man pages should be available
It is quite helpful and can even show a redirection example for the conf file :)
(move any existing version out of the way.)

Finally there appear to be other ways  to set keyboard shortcuts but life is short.
The scheme version is way more flexible, though probably not for a first attempt.
(the examples are excellent)

(and my system is broken enough already !)

#######################################

startx  wont work for $USER ?
try setting this in /etc/X11/Xwrapper.config  :

# one of the following values:
# rootonly,console,anybody
allowed_users=anybody
#nice_value=12
#eof

worked for me _EVENTUALLY_
oh the nice value is not needed its just MY pref.
and it should be console but I want to play with remote stuff ...

This WILL make your system less secure.

Last edited by PeteGozz (2017-06-21 15:40:10)

Offline

Board footer