Nicons-V4 29/08/2015

Window managers, icon programs, widgets, etc.
Message
Author
stemsee

Nicons-V4 29/08/2015

#1 Post by stemsee »

ADDED: layout per Desktop (4 desktops) Including show/hide icons and remove labels. change layout and save. This works by naming personal saved layouts as 0, 1 ,2 ,3 .

EDIT - Now includes a gui for most functions.



cli usage

*** ALWAYS START PROCESS FROM ICONIFIED DESKTOP ***

nicons (1st use creates swithch flag and back up)
nicons (2nd use switches to iconless desktop and initiates infinite switch sequence)
nicons (3rd use switches to iconified desktop)
These first three uses setup all pins and are necessary for the following functions to work in the designed way. Otherwise they will still work but with a few surprises which may or may not be of use to you. 'nicons reset' will clear up any mess.

'nicons add' This is needed to create the icon repo, and gives options to remove all icons and rename to numbers.
'nicons repo' this just opens the existing icon repo and let's you drag more icons to the desktop. Then it calls

'nicons arrange' - which has the style menu only.
'nicons remove' - manual removeal of icons by typing name
'nicons reset' - deletes all files created by app.

'nicons noicons'

'nicons removeal'l (may need several attempts.) removes all icons for a fresh start.
'nicons two' (sets up two switchable iconifiable desktops)
'nicons pip' (exits two iconifiable desktops)
nicons nopin0
EDIT

added
nicons noname - strips labels from arranged desktop icons
nicons load - load saved layout
nicons save - builtin - save layout
nicons pevent - refresh or not drive icons.
nicons d - include drive icons
nicons gui - or niui only.
nicons loadbg - set wallpaper
nicons delay - delete layout
nicons delbg - delete wallpaper
nicons desk - puppypin per desktop, also wallpaper per pin.

There are limits for each style/shape of how many icons to use - upper limits .... not lower limits! You can modify shapes by using fewer icons, leaving shapes incomplete.

CLi or gui

Dependencies: xdotool, yad, gtkdialogue
Attachments
Nicons-V3.5.pet
(16.97 KiB) Downloaded 680 times
Last edited by stemsee on Sat 29 Aug 2015, 05:46, edited 32 times in total.

Jasper

#2 Post by Jasper »

stemsee,

You are right; it's not for me.

Earlier today you wrote:

Code: Select all

I think most people don't want more than 24 icons on their desktop ever! So here is my default setting for the first release of Nicons-V2 

Code: Select all

I am sure the AppStarter is a very good app written by whom? 
However my app handles upto 3000 icons if needed.
Since you ask, AppStarter was written by puppymartin (not gcmartin) and as your search skill is so poor, I could provide a link in addition to the download available from your original thread.

My understanding is that it is against Forum policy to start multiple threads on the same subject. However, if there is exceptionally heavy interest here, perhaps a waiver may be in order.

stemsee

#3 Post by stemsee »

This thread is about Nicons-V2, not Show/Hide icons which didn't manage icons! It is therefore a new thread for a new app, it shares features with Show/Hide icons
Last edited by stemsee on Mon 08 Dec 2014, 12:12, edited 2 times in total.

stemsee

#4 Post by stemsee »

V2.1
Now handles drive icons 'properly'.

stemsee

#5 Post by stemsee »

V2.2
Now comes with 5 presets, top (from one row upto filingl the desktop) bottom (from one row upto filingl the desktop) left (two columns) right (two columns) and corners (clusters of six icons in each corner). These all work according to screen resolution so will always be correct.

This needs a gui to make it easy on the user, otherwise commandline usage may be too involved for newbies.
Attachments
capture31941.jpg
filled with icons
(44.36 KiB) Downloaded 1326 times
capture25737.jpg
top
(28.51 KiB) Downloaded 1312 times
capture24021.jpg
bottom
(23.59 KiB) Downloaded 1316 times
capture21508.jpg
left
(23.08 KiB) Downloaded 1315 times
capture13126.jpg
right
(23.54 KiB) Downloaded 1315 times
capture2836.jpg
corners
(24.99 KiB) Downloaded 1309 times

stemsee

#6 Post by stemsee »

Added two more presets! TopandBottom LeftandRight
Attachments
capture23935.jpg
top and bottom
(25.59 KiB) Downloaded 1345 times
capture12858.jpg
left and right
(22.82 KiB) Downloaded 1334 times

stemsee

#7 Post by stemsee »

I am still figuring out how to geneerate circular clusters and concentric rings of icons. Seems there will be three main methods: sin * $(deg) cos * $((deg(radius)), (this will may not work with nested loops); nested loops method will need to add variable that sets increments both positively and negatively for both x and y; third method = templates (avoiding this one for the moment).

Another preset I want to add is frame = position icons around the perimeter of the screen. maybe possible using negative seq from maxx and maxy. and also throwing strategic $X into the $Y seq in both + and - forms; some experiments proved encouraging.

Any mathematicians among you with any pointers, please come forward!

stemsee

#8 Post by stemsee »

Added preset 'edges' or 'frame' ??? What should I call this one?
Attachments
capture23931.jpg
'framed' or 'edges' or 'perimeter'
(28.32 KiB) Downloaded 1276 times

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#9 Post by LazY Puppy »

Surrounding.
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

stemsee

#10 Post by stemsee »

'Surround' is pretty good. Surround it is! :)

stemsee

#11 Post by stemsee »

I had overlapping icons on the corners in surround layout! Corrected.
Attachments
capture17007.jpg
Surround
(34.37 KiB) Downloaded 1272 times

stemsee

#12 Post by stemsee »

Added preset cross!
Attachments
capture12032.jpg
windows
(29.19 KiB) Downloaded 1220 times
capture30947.jpg
cross
(24.94 KiB) Downloaded 1255 times

stemsee

#13 Post by stemsee »

Here is my formula for circles.

Code: Select all

	indexx=2
	indexy=4
	res=`xrandr | grep -w connected | cut -f3 -d ' ' | cut -f1 -d '+' | tr 'x' ' '`
	maxx=`echo $res | cut -f1 -d ' '`
	maxy=`echo $res | cut -f2 -d ' '`
	originX=$((maxx / 2))
	originY=$((maxy / 2))
	radius=300
	maxangle=360
	angle=`seq 0 20 $maxangle`
	X=$((originX + (radius * cos(angle))))
	Y=$((originY + (radius * sin(angle))))

for vary in $Y
do
for varx in $X
do
	cat /tmp/files | head -1 | awk -F\" -v OFS=\" '{$'$indexx'='$varx'; print }' | awk -F\" -v OFS=\" '{$'$indexy'='$vary'; print }'  >> ~/Choices/ROX-Filer/PuppyPin-formatted
    sed -i '1d' /tmp/files 
done
done
How to call cos and sin in bash? ... this doesn't seem to be working!

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#14 Post by LazY Puppy »

RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

stemsee

#15 Post by stemsee »

Thanks ... I had a look but didn't click for me!

User avatar
SFR
Posts: 1800
Joined: Wed 26 Oct 2011, 21:52

#16 Post by SFR »

Bash does not support trigonometric functions and floating point operations at all.
Both bc and awk do, but personally I'd choose the latter, as it's easier to cut off the floating point part:

Code: Select all

# DEG=70; RADIUS=300; originX=0; originY=0
# SIN=`awk 'BEGIN {printf("%.0f\n", '$originX' + '$RADIUS' * sin('$DEG' * (3.14 / 180) ))}'`
# COS=`awk 'BEGIN {printf("%.0f\n", '$originY' + '$RADIUS' * cos('$DEG' * (3.14 / 180) ))}'`
# echo "Sin=$SIN   Cos=$COS"
Sin=282   Cos=103
# 
Note that bc & awk operate in radians, that's why *(3.14/180).

PS.I was never good at trigonometry, but hopefully the above is correct...

Greetings!
[color=red][size=75][O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource[/size][/color]
[b][color=green]Omnia mea mecum porto.[/color][/b]

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#17 Post by LazY Puppy »

stemsee wrote:Thanks ... I had a look but didn't click for me!
Sorry.

I just entered man cos into the terminal and it just popped up this page in a browser. Just did not have deeper look into the results.
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

stemsee

#18 Post by stemsee »

thanks @SFR

I am on the right track now.

@ RSH no problem.

stemsee

#19 Post by stemsee »

Nicons-v2.3 released for testing. see first post

Comes with ten presets.

stemsee

#20 Post by stemsee »

First circlular appears! Yippee.
Attachments
capture15211.jpg
2nd circlular
(25.83 KiB) Downloaded 416 times
capture24640.jpg
rad
(27.34 KiB) Downloaded 412 times

Post Reply