profile-image

drm200

daniel mey
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Sep 17 2017
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Sep 17 2017
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Sep 16 2017
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Sep 16 2017
Happy Desktop - Organize, Save, Restore Nautilus Scripts
I do not know if nemo screen calculations work the same as nautilus. But, I will assume they do.


line 55 gets the nautilus zoom level (smallest, smaller, small, standard, large, larger, largest)
line 57 converts the nautilus zoom level to "percents" where standard=100%

It seems nemo does not return the nautilus_icon_zoom correctly in line 57. To get around this, you should set
the variable current_zoom in line 57 manually to your situation as follows:

change line 57: current_zoom=$(convert_zoom "$nautilus_icon_zoom") to:

current_zoom=66

revert line 371 to original values (and any other changes you previously made)

I assume you have a "happy_desktop.ini" file. If you do, open it and manually set the values as follows:

[configuration]
language=English
screen_width=1680
screen_height=1016
icon_zoom=66
icons_per_row=19
icons_per_column=15
grid_width=115
grid_height=90
left_margin=100
top_margin=50
xdotool_warning_seen=false (note: set to true if xdotool is installed)

After manually setting the current_zoom and the happy_desktop.ini values, you should be able to run the program and save to grid. Let me know if it works.

Please note:

your display is 1680x1016 .. but you are using zoom of 66

So your "zoomed display" is 66% larger or 2545x1539
grid_width=(2545 - 100)/19 = 128 ... but I chose 115 for initial grid_width value
grid_height=(1539 - 50)/15 = 99 ... but I chose 90 for initial grid_height value

For the initial values you want the last icon in the row or column to stay away from the far edges ... or weird things happen. And for that reason, I chose smaller sizes for the grid. The margin and grid size can be modified by fine tuning with the GUI after you have initial success in fitting all the icons across the screen.

Again, I am assuming nemo controls the screen layout similarly to nautilus.
Sep 15 2017
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Sep 15 2017
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Sep 15 2017
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Sep 13 2017
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Nov 03 2015
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Nov 02 2015
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Nov 01 2015
D.C al Fine (feenay) -an audio converter Nautilus Scripts
I'll try to address your questions:

standalone version? ... I'm not certain about the question .. but flac and lame must be installed for it to run. I chose not to have the program do the download & installation automatically. Once flac and lame are installed it should run on the standard Ubuntu installations and hopefully others.

screen size: ... i believe the xprop command "NET_WORKAREA(CARDINAL)" is for the root window of the monitor that currently has the focus of the mouse. You can see this by running the command "xprop" in the terminal. xprop is then exploring the windows of the monitor that has the mouse focus. But I don't have two monitors to test out what happens for dual monitors ... so your idea of grep -m 1 may add a safety net. I'm going to do some more investigation.

I'm new to linux .. I've been migrating from windows for about 1 year now ... I wrote the program because I didn't find something that provided the flexibility I was looking for by point and click ... I'm retired and am writing the code more as a hobby so I've spent alot of time on this over the last 3 weeks .. At this point my only linux editor is gedit. It seems to work ok (but chokes when I tried to open large data stream files). I did have to download a hex editor when some simple code kept failing ... gedit would not show the "backspaces" in a saved flac data stream ... and the hex editor allowed me to see the "backspaces" and fix the code problem.

I don't have any experience with nemo so can't say if it will work. However, I've tried to use only common linux/bash commands so that it would run as widely as possible ... I appreciate your feedback and anyone elses regarding where it works and where it doesn't.
Oct 28 2015
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Oct 07 2015
Happy Desktop - Organize, Save, Restore Nautilus Scripts
Oct 07 2015