You are not logged in.

#1 2017-03-29 08:43:22

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

urxvt fullscreen (no plugins)

In ~/bin/fullscreen

#!/bin/bash
# toggle fullscreen, usefull for urxvt. Possibly can be maped to some key in openbox rc.xml.

command -v wmctrl >/dev/null 2>&1 || { >&2 echo "I need wmctrl installed." ; exit 1; }

wmctrl -r :ACTIVE: -b toggle,fullscreen

and in ~/.config/openbox/rc.xml an entrie like

<!-- fullscreen toggle script -->
        <keybind key="W-F11">
          <action name="Execute">
             <command>fullscreen</command>
          </action>
        </keybind>

and pressing super+F11 will make "anything" toggle to fullscreen, including urxvt. Btw: super is sometimes known as winkey.
p.s. or just map 'wmctrl -r :ACTIVE: -b toggle,fullscreen' instead.

Last edited by brontosaurusrex (2017-03-29 10:43:04)

Offline

Board footer

Powered by FluxBB