https://wiki.archlinux.org/api.php?action=feedcontributions&user=01011000&feedformat=atomArchWiki - User contributions [en]2024-03-28T22:35:51ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Terminal_as_a_transparent_wallpaper&diff=470354Terminal as a transparent wallpaper2017-03-10T17:51:34Z<p>01011000: /* The Easy Way */ Reworded 1 sentence, removed subjective opinion.</p>
<hr />
<div>[[Category:Eye candy]]<br />
[[Category:Terminal emulators]]<br />
[[es:Terminal as a Transparent Wallpaper]]<br />
{{Style|Poorly named sections, misuse of subsections, lack of intrawiki links}}<br />
There are two popular ways of configuring a Linux terminal to work transparently over a wallpaper, without any borders, menu bars or toolbars. This is very popular among developers because of its practical and coolness factor. Example: for use it to view source-code or get an interactive process status of the system with htop. Something like conky, but not quite.<br />
<br />
== The Easy Way ==<br />
<br />
[http://sourceforge.net/projects/tilda/ Tilda] is a highly customizable Linux terminal window. The author is inspired by classical terminals featured in ''first person shooter games, Quake, Doom and Half-Life to name a few, where the terminal has no border and is hidden from the desktop till a key or keys are pressed.'' In our example we will install it and give a basic terminal. <br />
<br />
# pacman -S tilda<br />
<br />
In Gnome you can locate it under Applications –> Accessories –> Tilda.<br />
<br />
To achieve our desired look we will need to edit the default configurations:<br />
<br />
Under ''General'' tab, '''uncheck''' "Always on Top".<br />
<br />
Under ''Appearance'' you can edit the '''height''' and '''width''' to your liking,<br> but make sure you '''check''' "Enable Transparency" and make the "Level of Transparency" '''100%'''.<br />
<br />
Under ''Colors'' tab, '''chose''' "Green on Black" or "Personalize".<br />
<br />
Under ''Scrolling'' you must '''select''' "Disabled".<br />
<br />
That's all you need, to run Tilda go to Applications –> Accessories –> Tilda.<br />
<br />
== The Professional Way ==<br />
<br />
=== Openbox, Compiz and alike ===<br />
<br />
With versatile WindowManagers like Openbox it's easy to create a terminal on your Desktop. Since tilda brings lot's of easy configuration per GUI, it might be your terminal of choice, if you don't know how to create a transparent terminal otherwise. Right-click on tilda and configure the size to your needs, then set transparency to 100%, uncheck the option to start tilda hidden.<br />
<br />
Now you only have to set tilda as "below" according to your WindowManager. For Compiz, this is done by the "Rules for Windows"-plugin, for Openbox, you'll have to add to the "applications"-section of your a {{ic|rc.xml}} the following code.<br />
<br />
<application name="tilda"><br />
<layer>below</layer><br />
</application><br />
<br />
Et voila, you got a transparent terminal the size of your choice on your Desktop, that won't appear in your tasklist and is permanently below.<br />
<br />
=== Gnome ===<br />
With the use of [http://www.burtonini.com/blog/computers/devilspie devilspie] we will have more control over the placement and the behavior over the terminal window. What is Devilspie? ''Devil's Pie can be configured to detect windows as they are created, and match the window to a set of rules. If the window matches the rules, it can perform a series of actions on that window. For example, I can make all windows created by X-Chat appear on all workspaces, and the main Gkrellm1 window does not appear in the pager or task list.''<br />
<br />
==== Step 1 ====<br />
<br />
Install devilspie on Arch:<br />
<br />
# pacman -S devilspie<br />
<br />
==== Step 2 ====<br />
<br />
Make a hidden directory on your home folder:<br />
<br />
$ mkdir ~/.devilspie<br />
<br />
Make a configuration file with the extension ''.ds'', inside devilspie folder. This is where devilspie looks for config file by default when it starts up. Edit the config file with your favorite editor, to dress up the terminal window the way you want it to look like. <br />
<br />
$ nano ~/.devilspie/DesktopConsole.ds<br />
<br />
My config file looks like this:<br />
<br />
(if<br />
(matches (window_name) "DesktopConsole_1")<br />
(begin<br />
(stick)<br />
(below)<br />
(undecorate)<br />
(skip_pager)<br />
(skip_tasklist)<br />
(wintype "dock")<br />
(geometry "+240+250")<br />
(geometry "954×680")<br />
)<br />
)<br />
<br />
For a complete list of options with devilspie configuration options check out, the comprehensive [http://foosel.org/linux/devilspie list of options]<br />
<br />
==== Step 3 ====<br />
<br />
Open a gnome-terminal window go to Edit –> Profile –> New. Name it DesktopConsole_1.<br />
<br />
Edit the Profile, to achieve our desired look we will need to edit the default configurations:<br />
<br />
Under ''General'' tab, '''uncheck''' "Show menubar by default in new terminals".<br />
<br />
Under ''Colors'' tab, '''choose''' "Green on Black" (choose whatever you like, i like this).<br />
<br />
Under ''Effects'' tab, '''choose''' "Transparent background". Make sure the scroll is set to "None".<br />
<br />
Under ''Scrolling'' tab, '''select''' "Disabled".<br />
<br />
==== Step 4 ====<br />
<br />
In this step we will setup devilspie and our custom terminal profile to load on bootup.<br />
<br />
Go to Systems –> Preferences –> Sessions.<br />
<br />
Add a new session by using the <code>+</code> sign. The first one we will put, "devilspie", in both name and command.<br />
<br />
The second session we will put "gnome-terminal", under name and "gnome-terminal --window-with-profile=DesktopConsole_1 --title=DesktopConsole_1", under command. Here we are basically calling gnome-terminal with the custom profile we created earlier.<br />
<br />
{{Note|if you have trouble with the window position you can specify the geometry in the command options here.}}<br />
<br />
==== Step 5 ====<br />
<br />
Logout/login and you should have your desired look.<br />
<br />
You can customize more to fit your needs and style, have more than one terminal; I will leave it to your imagination.<br />
<br />
===Xfce4===<br />
<br />
Using ''wmctrl'' this can be achieved with the default ''xfce4-terminal's'' command line options. The sample script below is rather self-explanatory... <br />
<br />
#!/bin/bash<br />
xfce4-terminal --hide-borders --hide-toolbar --hide-menubar --title=desktopconsole --geometry=130x44+0+0 &<br />
sleep 5<br />
wmctrl -r desktopconsole -b add,below,sticky<br />
wmctrl -r desktopconsole -b add,skip_taskbar,skip_pager<br />
<br />
{{Note|1=A more revised version of this script can be found here https://bbs.archlinux.org/viewtopic.php?id=154094}}<br />
By naming the the terminal with ''--title'' one can easily identify it's window and add/remove properties through ''wmctrl'' accordingly. Setting the size and possition with the ''--geometry'' option follows this rule: (Width-in-characters)x(height-in-charactors)+x+y where x and y are the position in pixels offset from the upper-left corner of the display (which starts at +0+0). <br />
transparency and disabling the scrollbar can be set through the terminal's ''preferences'' menu under the ''appearance'' and ''general'' tabs.<br />
Once the user has the script customized to their needs or wants they can simply mark it as executable (or chmod a+x /path/to/script.sh) then add it to their startup under ''Applications Menu > Settings > Session and Startup > Applications Autostart''.<br />
<br />
{{Note|The previous was tested only on Xfce4 with Xfwm4 but a similar approach may work with other window managers. For a list on environments which wmctrl may work with visit [[w:wmctrl]]}}</div>01011000