Jump to content

Hide/unhide desktop icons


Recommended Posts

I created a workflow that hides/unhides the icons on your desktop. I use this at work because i don't want others to see what is on my desktop.

 

just type "desktop hide" or "desktop unhide" to hide or unhide the icons.

 

Screenshot: http://cl.ly/image/453u2H050a2w

 

Download: http://cl.ly/1u330t3k1F19

 

I hope this is helpful for some of you.

Edited by blaw_blaw
Link to post
  • 1 month later...
  • 2 months later...

I just created my own workflow and then thought, "Hey I should check the Alfred forum." But mine's a slight improvement because I wanted something that just toggled hidden and unhidden states at a hotkey. Here's the modified shell script:

 

desktop=$(ls -lO ~/Desktop)
if  grep -q "hidden" <<< $desktop; then
chflags nohidden ~/Desktop/*
else
chflags hidden ~/Desktop/*
fi

It's pretty quick and not having to remember an argument to pass in makes things easier.

 

Bill

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...