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

Support tile mode #13

Open
chdiza opened this issue Mar 3, 2017 · 6 comments
Open

Support tile mode #13

chdiza opened this issue Mar 3, 2017 · 6 comments

Comments

@chdiza
Copy link

chdiza commented Mar 3, 2017

This is a nice little utility. However, I can't fully use it because I like to use tiled graphics for my desktop picture. (Or whatever the correct name for it is---it's what System Preferences.app presents as "Tile").

Is there a way to add tile to the list of [scale] choices?

@sonicdoe
Copy link
Contributor

sonicdoe commented Mar 4, 2017

Unfortunately, there doesn’t seem to be a way to set the “Tile” option using setDesktopImageURL. I’ll take a look at modifying desktoppicture.db directly, however, this would arguably be a hacky solution.

@chdiza
Copy link
Author

chdiza commented Mar 4, 2017

OK, I see then. Never mind.

@chdiza chdiza closed this as completed Mar 4, 2017
@sonicdoe
Copy link
Contributor

sonicdoe commented Mar 4, 2017

I took a look at how macOS modifies desktoppicture.db when setting the “Tile” option and found that it adds a new row to the data table containing just the number 2 and adds multiple rows to preferences with a key of 2 and a data_id of the newly created data row.

Based on this, I was able to set the “Tile” option using:

sqlite3 ~/Library/Application\ Support/Dock/desktoppicture.db "INSERT INTO data (value) VALUES (2); INSERT INTO preferences (key, data_id, picture_id) SELECT DISTINCT 2, last_insert_rowid(), picture_id FROM preferences;" && killall Dock

I haven’t tested this thoroughly (e.g. with multiple Spaces or displays) and it requires you to kill the Dock but perhaps it is helpful to someone.

@micahcowan
Copy link

Would it be possible to reopen this, for tracking? Perhaps with a tag marking it as low priority... it's not actually fixed, and if you consider it "wontfix", I assume it's only because an appropriate way to go about it has yet to be found, and not because you have no interest in implementing it.

I recognize that there are currently issues with figuring out how to do this, but of course it must actually be possible if "Settings" does it (and without killing Dock - though perhaps one could specify a non-death signal that will get it to reevaluate the db?)

I'm not sure when I'd get around to it, but even reverse-engineering Settings to find the right way to do this (without killing dock, or ideally directly manipulating the sqlite3 db if that can be avoided) seems potentially valuable.

@sindresorhus sindresorhus reopened this Aug 3, 2017
@sindresorhus sindresorhus changed the title Feature request: "tile" mode Support tile mode Aug 3, 2017
@sindresorhus
Copy link
Owner

I have opened a Radar about this, but I doubt Apple will ever fix it.

@aerickson
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants