Results 1 to 1 of 1

Thread: desktop icon for BT5

Hybrid View

  1. #1
    Just burned his ISO oddacon's Avatar
    Join Date
    Aug 2011
    Location
    USA
    Posts
    8

    Cool desktop icon for BT5

    Here is a way to show and hide the desktop with a simple bin bash script and a .desktop file. First you need to get the program wmctrl because it will be the program handling the desktop effect ( minimize all & maximize all).

    Code:
    apt-get install wmctrl
    then after that installs run nano (or another editor) correctly and type the following script:

    Code:
    if wmctrl -m | grep "mode: ON"; then
    exec wmctrl -k off
    else
    exec wmctrl -k on
    fi
    Save the file to: Desktop.sh (or whatever) and then put the script in bin bash dir (for instance I'll put mine in the home dir for now). Then create a new .desktop file and type in the following:

    Code:
    [Desktop Entry]
    Name=Desktop
    Path=/home/oddacon/
    Exec=sh "desktop"
    StartupNotify=false
    Terminal=false
    Type=Application
    Comment=Show and Hide the Desktop
    GenericName=Desktop
    Icon=user-desktop.png
    Tada!

    don't forget to include:

    Code:
    #!/bin/sh
    at the top of the .sh script!
    Last edited by g0tmi1k; 11-08-2011 at 10:21 AM. Reason: Merged

Similar Threads

  1. Desktop Environment freezes during loading desktop
    By E.Hyde in forum Beginners Forum
    Replies: 3
    Last Post: 04-23-2011, 05:32 PM
  2. Get compiz-fusion icon to work a la BT3
    By RageLtMan in forum OLD BackTrack 4 (pre) Final
    Replies: 2
    Last Post: 12-30-2009, 06:49 PM
  3. trash icon
    By ammadeyy in forum OLD Newbie Area
    Replies: 3
    Last Post: 12-25-2009, 08:10 PM
  4. user folders no longer having the desktop mapped to the ~/Desktop/ folder
    By RageLtMan in forum OLD BackTrack 4 (pre) Final
    Replies: 1
    Last Post: 07-02-2009, 01:05 AM
  5. bt4 icon animations
    By GDixon in forum OLD BT4beta Software Related Issues
    Replies: 0
    Last Post: 02-26-2009, 02:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •