You are not logged in.

#1 2012-09-01 17:31:02

rubik
Member
Registered: 2012-03-23
Posts: 104

[SOLVED] rxvt-unicode not switching to fullscreen

Hi there.
I just installed rxvt-unicode and wanted to activate the fullscreen toggle.
I read on the ArchWiki that I needed the urxvt-fullscreen package from the AUR:
https://wiki.archlinux.org/index.php/Rx … Fullscreen

After installing it I set the switch key in my ~/.Xdefaults file (Wiki says ~/.Xresources
but all other sources said .Xdefaults so I don't think I'm doing anything wrong here),
but when I press it nothing happens. Is there a log file I can check?
Here's my ~/.Xdefaults:

! to match gnome-terminal "Linux console" scheme
! foreground/background
URxvt*background: #002B36
URxvt*foreground: #839496
! black
URxvt.color0  : #000000
URxvt.color8  : #555555
! red
URxvt.color1  : #DC322F
URxvt.color9  : #DC322F
! green
URxvt.color2  : #55FF55
URxvt.color10 : #55FF55
! yellow
URxvt.color3  : #B58900
URxvt.color11 : #B58900
! blue
URxvt.color4  : #268BD2
URxvt.color12 : #5555FF
! magenta
URxvt.color5  : #D33682
URxvt.color13 : #FF55FF
! cyan
URxvt.color6  : #2AA198
URxvt.color14 : #55FFFF
! white
URxvt.color7  : #AAAAAA
URxvt.color15 : #EEE8D5

! Native transparency
URxvt.transparent: true
URxvt.shading: 23

! Adjust the scrollbar
URxvt.scrollBar: false

! Adjust the geometry
URxvt.geometry: 100x33

! Remove borders
URxvt.borderLess: true

! Font and letter spacing
! I want antialiasing!!
URxvt*font: xft:Monospace:pixelsize=13:antialias=true
URxvt*letterSpace: -1

! Perl extensions
URxvt.perl-ext-common : default,matcher,tabbed
URxvt.urlLauncher     : /usr/bin/chromium
URxvt.matcher.button  : 1
! Fullscreen switch
URxvt.keysym.F11:  perl:fullscreen:switch

Last edited by rubik (2012-09-02 07:36:53)

Offline

#2 2012-09-01 18:05:39

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 3,533

Re: [SOLVED] rxvt-unicode not switching to fullscreen

Did you see this pacman output when you installed urxvt-fullscreen?

installing urxvt-fullscreen...
Add "fullscreen" to the "urxvt*perl-ext-common" field in ~/.Xdefaults and
a keysym to the function "switch", like: urxvt*keysym.F11: perl:fullscreen:switch

I don't see "fullscreen" in your perl-ext-common line.

Also, what window manager are you using? I installed urxvt-fullscreen to test it, and it works in fluxbox, but not in cwm.

This is what I have in .Xresources:

URxvt*perl-ext-common: fullscreen
URxvt*keysym.F11:   perl:fullscreen:switch

Last edited by 2ManyDogs (2012-09-01 18:10:00)


"The prettier the user interface, and the fewer odd replies the system allows you to make, the dumber you once appeared in the mind of the designer." -- Ellen Ullman
-----
How to post

Offline

#3 2012-09-01 18:29:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 25,096
Website

Re: [SOLVED] rxvt-unicode not switching to fullscreen

In reference to Xdefaults or Xresources, you can use either one.  In fact you can call that file anything you'd like.  But whatever you call it, after you edit it, you'll need to reload it with "xrdb --merge ~/.Xcool_file_with_my_settings_in_it" ... or whatever you called it.  ~/.Xresources is the new 'standard' for what it's worth.  I still use .Xdefaults out of habit.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2012-09-01 20:53:10

rubik
Member
Registered: 2012-03-23
Posts: 104

Re: [SOLVED] rxvt-unicode not switching to fullscreen

Ok, I didn't notice that message during install and it's not on the wiki, so...
But now that I added it to my .Xdefaults the behavior is the same (i.e. nothing happens).

! to match gnome-terminal "Linux console" scheme
! foreground/background
URxvt*background: #002B36
URxvt*foreground: #839496
! black
URxvt.color0  : #000000
URxvt.color8  : #555555
! red
URxvt.color1  : #DC322F
URxvt.color9  : #DC322F
! green
URxvt.color2  : #55FF55
URxvt.color10 : #55FF55
! yellow
URxvt.color3  : #B58900
URxvt.color11 : #B58900
! blue
URxvt.color4  : #268BD2
URxvt.color12 : #5555FF
! magenta
URxvt.color5  : #D33682
URxvt.color13 : #FF55FF
! cyan
URxvt.color6  : #2AA198
URxvt.color14 : #55FFFF
! white
URxvt.color7  : #AAAAAA
URxvt.color15 : #EEE8D5

! Native transparency
URxvt.transparent: true
URxvt.shading: 23

! Adjust the scrollbar
URxvt.scrollBar: false

! Adjust the geometry
URxvt.geometry: 100x33

! Remove borders
URxvt.borderLess: true

! Font and letter spacing
! I want antialiasing!!
URxvt*font: xft:Monospace:pixelsize=13:antialias=true
URxvt*letterSpace: -1

! Perl extensions
URxvt.perl-ext-common : default,matcher,tabbed,fullscreen
URxvt.urlLauncher     : /usr/bin/chromium
URxvt.matcher.button  : 1
! Fullscreen switch
URxvt.keysym.F11:  perl:fullscreen:switch

Offline

#5 2012-09-01 20:55:05

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 3,533

Re: [SOLVED] rxvt-unicode not switching to fullscreen

Again, please, what window manager are you using so I can test. As I said, it works for me in fluxbox, but not in cwm. And did you take Trilby's advice and do the xrdb merge?

Last edited by 2ManyDogs (2012-09-01 20:57:26)


"The prettier the user interface, and the fewer odd replies the system allows you to make, the dumber you once appeared in the mind of the designer." -- Ellen Ullman
-----
How to post

Offline

#6 2012-09-02 06:59:35

rubik
Member
Registered: 2012-03-23
Posts: 104

Re: [SOLVED] rxvt-unicode not switching to fullscreen

Actually I noticed that it reloads the changes even if I do not merge it (like geometry, borders)... But yes, I merged it just to be sure.
I use OpenBox 3.5.0-7 as a stand-alone WM. No Gnome, no KDE, &c.

Thank you for your time.

Offline

#7 2012-09-02 07:10:51

rubik
Member
Registered: 2012-03-23
Posts: 104

Re: [SOLVED] rxvt-unicode not switching to fullscreen

I found that the AUR package installs /usr/lib/urxvt/perl/fullscreen. The content of the file is this:

#! perl

sub on_user_command {
	my ($self, $cmd) = @_;
	if ($cmd eq "fullscreen:switch") {
		my $dummy = `wmctrl -r :ACTIVE: -b toggle,fullscreen,above` ;
	}
}

I tried to execute that wmctrl command inside the terminal and it worked. So the problem seems to be between urxvt and its scripts...

EDIT: I changed the script like this:

#! perl

sub on_user_command {
    my ($self, $cmd) = @_;
    open (MYFILE, '>/home/miki/urlog.log');
    print MYFILE "Called\n";
    if ($cmd eq "fullscreen:switch") {
        print MYFILE "I'm in1!!!!!\n";
        my $dummy = `wmctrl -r :ACTIVE: -b toggle,fullscreen,above` ;
    }
    close (MYFILE);
}

I'm not a Perl programmer, I hope I've done all right. But that file is not even created, which means that function is never called.

Last edited by rubik (2012-09-02 07:27:51)

Offline

#8 2012-09-02 07:36:37

rubik
Member
Registered: 2012-03-23
Posts: 104

Re: [SOLVED] rxvt-unicode not switching to fullscreen

Ok solved. urxvt-fullscreen places the perl files into /usr/lib/urxvt/perl/fullscreen but reading urxvt man page it seems that URxvt does not look for extensions there, but rather in $HOME/.urxvt and /usr/local/lib/urxvt/perl. Symlinking the perl file into ~/.urxvt/ext solved the problem. Should I warn the AUR package maintainer?

Offline

Board footer

Powered by FluxBB