You are not logged in.

#1 2013-08-16 14:36:04

JediKnight
Member
Registered: 2012-06-07
Posts: 15

Terminal as a desktop wallpaper.

http://rghost.ru/48159334/image.png

Also I have found and modified a bit script for Win+D, maybe someone will find it useful in some way.

Windows creation:

#!/bin/bash
sleep 10
xfce4-terminal --hide-borders --hide-menubar --title=desktopconsole1 --geometry=85x51+0+0 &
while [ !$(wmctrl -l|grep desktopconsole1) ];
do
	echo "cycle_continues"
done
wmctrl -r desktopconsole1 -b add,below,sticky
wmctrl -r desktopconsole1 -b add,skip_taskbar,skip_pager

xfce4-terminal --hide-borders --hide-menubar --title=desktopconsole2 --geometry=85x51+683+0 &
while [ !$(wmctrl -l|grep desktopconsole2) ];
do
    echo "cycle_continues"
done
wmctrl -r desktopconsole2 -b add,below,sticky
wmctrl -r desktopconsole2 -b add,skip_taskbar,skip_pager
    

Win+D:

CURRENT_WINDOW=$(wmctrl -lp | grep `echo $(xprop -root | grep _NET_ACTIVE_WINDOW | head -1 | awk '{print $5}' | sed 's/,//' | sed 's/^0x/0x0/')`)
if echo $CURRENT_WINDOW | grep -q desktopconsole1
then
	wmctrl -a "desktopconsole2";
else
	wmctrl -k on
	wmctrl -a "desktopconsole1";
fi

I've got a question now. How to make these(only these) windows unaffected by Alt-F4? Any thoughts? Google failed to answer.



-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Offline

Board footer

Powered by FluxBB