You are not logged in.

#1 2015-04-03 23:24:25

Nobabs27
Member
Registered: 2014-01-25
Posts: 38

[SOLVED] Of .ratpoisonrc, C-t-: and C-t-!

I installed Rat Poison and it "works", as in it launches without apparent error, and I can sorta make windows/programs (or do you call them frames in RP?) open (if I add them to the .xinitrc) or I can do "Ctrl+t+c" (which opens XTerm).
However, the (keyboard) commands "Ctrl+t+:" (I hit Control Key + t key + colon key) and "Ctrl+t+!" (I hit Control Key + t key + non-numpad 1/one key) seem to have no affect as I believe it gives an error something like "C-t-! is not defined.".
Is there any way to fix this?
My other problem is with the .ratpoisonrc.
First off, it didn't exist, so I created one.
Contents of my .ratpoisonrc:

escape Super-x
bind c exec terminator

What I had wanted that to achieve would be to change the default begin keys "Ctrl+t" to "Super+x" instead, and make "Ctrl+t+c" (or "Super+x+c", as I had hoped) open Terminator instead of XTerm.
It did not.

My .xinitrc (when launching RP):

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

#exec mate-session
exec ratpoison

Any suggestions/help to conquer the difficulties stated would be very appreciated!  smile

Last edited by Nobabs27 (2015-04-05 22:11:05)


Facepalm.

Offline

#2 2015-04-04 00:12:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] Of .ratpoisonrc, C-t-: and C-t-!

Nobabs27 wrote:

... I can do "Ctrl+t+c" (which opens XTerm).

I doubt that - I suspect it opens terminator

My other problem is with the .ratpoisonrc.
First off, it didn't exist, so I created one.

That is not a problem.  That is expected.

However, the (keyboard) commands "Ctrl+t+:" (I hit Control Key + t key + colon key) and "Ctrl+t+!" (I hit Control Key + t key + non-numpad 1/one key) seem to have no affect

Why would they, you haven't defined them?  There are defaults, it seems, that you are likely confused with Ctrl+t+: is different from Ctrl+t then :

Is this archlinux, or are you still using Manjaro?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2015-04-04 19:37:07

Nobabs27
Member
Registered: 2014-01-25
Posts: 38

Re: [SOLVED] Of .ratpoisonrc, C-t-: and C-t-!

Trilby wrote:

I doubt that - I suspect it opens terminator

It does not.
It opens XTerm despite my .ratpoisonrc.

Trilby wrote:

That is not a problem.  That is expected.

Ok, thank you.
The man page says that there is supposed to be a fallback/other config file in /usr/etc/ratpoisonrc, but, there is not.
Actually, there is no etc/ directory in /usr/.

Trilby wrote:

Why would they, you haven't defined them?  There are defaults, it seems, that you are likely confused with Ctrl+t+: is different from Ctrl+t then :

How do I define them?
The RP man page (man ratpoison) lists "C-t :" as "Execute a ratpoison command".
Also, the default key bindings page says that "C-t !" is "Run a shell command.".
Source: http://www.nongnu.org/ratpoison/doc/Def … dings.html
Perhaps I am doing the key commands wrong, if I am, how do I do them correctly?

Trilby wrote:

Is this archlinux, or are you still using Manjaro?

Arch Linux, not Manjaro.

Help appreciated! smile


Facepalm.

Offline

#4 2015-04-04 20:03:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] Of .ratpoisonrc, C-t-: and C-t-!

Are C-t : and C-t ! working?  The first post, you just indicated that C-t-: and C-t-! didn't.  The difference is subtle but relevant:

1) Press and hold control
2) Press t
3) Release both control and t
4) Now press colon or esclamation

There is no /usr/etc, that is either an error in the man page, or it is written for a very different distro.  That default config file should be distributed in /etc, or perhaps /usr/doc/ratpoison, but the archlinux package does not seem to have it at all.

While it is good to read man pages, always check our wiki to for information specific to using a piece of software on archlinux.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2015-04-04 22:35:37

Nobabs27
Member
Registered: 2014-01-25
Posts: 38

Re: [SOLVED] Of .ratpoisonrc, C-t-: and C-t-!

Trilby wrote:

The difference is subtle but relevant

Indeed.
Thank you, the key commands are working now, and "Ctrl+t+c" now opens Terminator.
However I still wish to change the escape/starting/("other" as the RP help page calls it) key command from "Ctrl+t" to "Super+x".
How would I do this?

Here is my .ratpoisonrc at the moment:

escape Super-x
bind C-c exec terminator

Help is appreciated!


Facepalm.

Offline

#6 2015-04-04 23:32:18

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] Of .ratpoisonrc, C-t-: and C-t-!

Try this

escape s-x

It works for me when I test it (I personally use C-z for escape and use the super key for top-mapped keybinds, but I tested "escape s-x" and it works on my machine).

(edit) note that this is s-x, not S-x.

Last edited by 2ManyDogs (2015-04-05 02:15:09)

Offline

#7 2015-04-05 22:09:48

Nobabs27
Member
Registered: 2014-01-25
Posts: 38

Re: [SOLVED] Of .ratpoisonrc, C-t-: and C-t-!

2ManyDogs wrote:

Try this

escape s-x

It works for me when I test it (I personally use C-z for escape and use the super key for top-mapped keybinds, but I tested "escape s-x" and it works on my machine).

(edit) note that this is s-x, not S-x.

Thanks!
That did the trick.

My final (for now) .ratpoisonrc:

exec xcompmgr -c -f -D 5 &
escape s-x
unbind c
bind C-c exec terminator
bind c exec terminator

Facepalm.

Offline

Board footer

Powered by FluxBB