Instead of using a login manager, I just log in at the console and run 'xinit $HOME/.xinitrc', cwm being my usual window manager.
.xinitrc:
This is all fine and dandy, but I was looking again for a way to make urxvt start in full screen instead of having to do it manually each time when I first log in which was slightly annoying. The urxvt-perls package doesn't have a fullscreen plugin, but there's a way to make things work.
.xinitrc:
Code:
setxkbmap gb -option terminate:ctrl_alt_bksp
xrdb -merge ~/.Xresources # update x resources db
export LANG="en_GB.UTF-8"
export LC_ALL="en_GB.UTF-8"
export LANGUAGE="en_GB.UTF-8"
export LC_CTYPE="en_GB.UTF-8"
xsetroot -cursor_name left_ptr # sets the cursor icon
nvidia-settings --assign SyncToVBlank=0
export __GL_SYNC_TO_VBLANK=0
unclutter --timeout 1 -b
urxvtd -q -f -o
urxvtc -fn "xft:Mono" -rv &
mixer -s vol 90 pcm 100 mix 100
export GDK_USE_XFT=1
exec cwm
exit 0
This is all fine and dandy, but I was looking again for a way to make urxvt start in full screen instead of having to do it manually each time when I first log in which was slightly annoying. The urxvt-perls package doesn't have a fullscreen plugin, but there's a way to make things work.
- mkdir -p $HOME/.urxvt/ext
- Create the file $HOME/.urxvt/ext/fullscreen with the following contents (yes, the poster on the linked page explains it's a bit "hacky"):
Code:#!/usr/bin/env perl # # https://stackoverflow.com/questions/9783198/how-to-make-rxvt-start-as-fullscreen # sub on_start { my ($self) = @_; # This is hacky, but there doesn't seem to be an event after # window creation $self->{timer} = urxvt::timer->new->after(0.1)->cb(sub { fullscreen $self }); return; } sub fullscreen { my ($self) = @_; my $wid = $self->parent; my $err = `wmctrl -i -r $wid -b add,fullscreen`; warn "Error maximizing: $err\n" unless $? == 0; $self->{timer}->stop; delete $self->{timer}; return; }
- Install the wmctrl package
- In .Xresources add the line (mine is actually empty apart from this):
Code:URxvt.perl-ext: fullscreen