Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple spaces fix #11

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions puppyhoffers/mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,16 @@ xGB1zXS6cgjtMdz/AIVUdzKo9C7tGM+1R8U7diPFQFq1RydT/9kK
osascript <<-===
tell application "System Events"
set theDesktops to a reference to every desktop
repeat with x from 1 to (count theDesktops)
set picture of item x of the theDesktops to "~/puppyhoff.jpg"
set spaceCount to 10

repeat with space from 1 to spaceCount
set picture rotation of thisDesktop to 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line fails when i test this out
200:201: execution error: The variable thisDesktop is not defined. (-2753)
maybe if i'd tried it when you submitted it 2.5 years ago it would have worked better...

set picture of thisDesktop to "~/puppyhoff.jpg"

tell application "System Events"
key code 124 using control down
delay 1
end tell
end repeat
end tell
display notification "Cool desktop, bro" with title "puppyhoff.me"
Expand Down