Note: this wiki is no longer maintained. If you have any questions related to this wiki, please post them on the CrunchBang forums.

Translations of this page?:

DESKTOP Use terminator as your wallpaper

The default terminal emulator “Terminator” can be set as wallpaper. There are two instructions that were posted on the Crunchbang forums. Method 1 forums thread is the recommended way, because it works on recent Crunchbang releases.

Method 1

Step 1: Create Desktop version of Terminator

Openbox can apply window settings on a per-window basis. it can do things like strip window decorations, put a window on the desktop define the window size etc.

First of all, we need to trick Openbox into thinking we have 2 different Terminators:

sudo link /usr/bin/terminator /usr/bin/terminator_desktop

This creates a symbolic link to the original terminator called terminator_desktop. If terminator_desktop is launched, terminator will be launched, but Openbox will see it as terminator_desktop.

Now let's configure Openbox:

geany ~/.config/openbox/rc.xml

near the end of the file there are the application settings, edit it to look something like this (slightly above in the file are explanations about the different settings):

    <application name="terminator_desktop">
      <focus>yes</focus>
      <layer>below</layer>
      <desktop>all</desktop>
      <skip_taskbar>yes</skip_taskbar>
    </application>
  </applications>
</openbox_config>

We could have defined the geometry, and lack of window decorations in the above file, but we will use the terminator command line options instead (this is not necessary, only it is the way I did it). The following line should launch a desktop terminator (note -b rids us of the window decorations; the particular geometry is for my screen, and allows 24 pixels for my menu bar)

terminator_desktop --profile Desktop -b --geometry 750x576+0+24

X man page wrote:

…most X programs accept a command line argument of the form -geometry WIDTHxHEIGHT+XOFF+YOFF (where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a preferred size and location for this application's main window.

We would do well to add this to our .bashrc for convenience:

leafpad ~/.bashrc

and add the line

alias terminator_desktop='terminator_desktop --profile Desktop -b --geometry 750x576+0+24 &'

Step 4: Start the desktop Terminator on startup

Openbox runs a list of commands at startup, we will add our terminator_desktop to it:

leafpad ~/.config/openbox/autostart.sh

and add the lines

# Launch Desktop Terminator
terminator_desktop --profile Desktop -b --geometry 750x576+0+24 &

If all went well, you should now be able to log out and log back in to find a Desktop Terminal awaiting your command.

Method 2 (outdated)

This Howto is made by AlexelA, and is from this forum thread.

Introduction

There is so much unused screen real estate when you first boot your computer.
Sure you might have a detailed Conky setup running, a taskbar, and a cute little clock in the bottom right-hand corner, but let's face it, 80% of your desktop isn't being used and you'll have to click on something or use some keyboard shortcut key for anything to happen.

What if I told you that life needn't be this way? That, if you wanted to, you could have APPLICATIONS Terminator sitting at the bottom layer of whatever other applications you might be using, hungrily waiting for a “man touch” command, or perhaps a random series of ctrl+shift+e and ctrl+shift+o presses to see just how small of a terminal section you can squeeze out of it?

This Howto will help you transform your freshly booted CrunchBang system from this rather bland affair to this, which might inspire you to do this, which will lead you to do this, and will inevitably have your blood pressure on the rise as you type this.

Step 1

Open the file ~/.config/terminator/config, also accessible through the menu under Preferences –> Terminator config –> edit config file, then paste these lines over anything that might be living in there.

scrollbar_position=disabled
foreground_color=#ffffff
font=Mono 9
palette=#000000000000:#aaaa00000000:#0000aaaa0000:#aaaa55550000:#00000000aaaa:#aaaa0000aaaa:#0000aaaaaaaa:#aaaaaaaaaaaa:#555555555555:#ffff55555555:#5555ffff5555:#ffffffff5555:#55555555ffff:#ffff5555ffff:#5555ffffffff:#ffffffffffff
background_type=transparent
borderless=true
background_darkness=0.5
titlebars=false
handle_size=0

Like all good goaltenders around the world, save.

Step 2

You will be making two changes to this file, hence this Step has been broken down into relevant Subdivisions 1-stroke-49-slash-9 and 1-stroke-67-slash-5.

-- Subdivision 1-stroke-49-slash-9

Add this code to the <applications> section of your ~/.config/openbox/rc.xml file, also accessible through the menu under Preferences –> Openbox config –> edit rc.xml:

    <application name="terminator" class="Terminator">
      <decor>no</decor>
      <focus>yes</focus>
      <position>
         <x>left</x>
         <y>0</y>
      </position>
      <layer>below</layer>
      <desktop>all</desktop>
      <skip_taskbar>no</skip_taskbar>
      <maximized>vertical</maximized>
    </application>

-- Subdivision 1-stroke-67-slash-5

Next, add this section to the <keyboard> section of the same file, (see the DESKTOP Configuring Keybindings page for further details):

<keybind key="W-t">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Terminal</name>
        </startupnotify>
        <command>terminator --geometry=1200x0</command>
      </action>
    </keybind>

You might have to tweak the first value in the geometry option depending on your screen resolution and the space that your conky might be taking up. I set the second value to 0 because the changes we made back in Subdivision 1-stroke-49-slash-9 took care of everything (q.v. <maximized>vertical</maximized>).

OPTION -- Subdivision 34b-stroke-41-slash-12

You might also want to add this to your <keyboard> section:

<keybind key="A-space">
      <action name="Iconify" />
    </keybind>

This will allow you to quickly minimize whatever applications you may have opened to get back to your now very useful wallpaper by pressing Alt-Space.


 
howto_have_terminator_become_your_wallpaper.txt · Last modified: 2012/06/13 07:41 by machinebacon
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported

Powered by DokuWiki. Hosted by Linode.
Copyright © 2010 CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.