arrangement of desktop app launcers

gymka gymka at mail.ru
Sun May 13 10:19:43 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

2012.05.13 05:09, JD rašė:
> Why is it that I cannot re-arrange desktop icons in alphebetical
> order ala gnome (right-click on root window, select arrange by
> name)?
> 

simple workaround(not a solution):
create your own sorting script, eg.
- ------------------------------------
#!/bin/bash
IFS=$'\n';
icon_list="/home/gymka/.config/xfce4/desktop/icons.screen0-1264x976.rc"
#it's
file with icon order, file depends on system
rows=8 #on mys resolution and icon size, there is 8 icons
element_array=$(sed '/\[.*\]/!d' $icon_list| sort -d) #take list of
icons and sort them in alhpabetic order
declare -a element_array=($element_array)
row=0
col=0
rm $icon_list #remove old file
touch $icon_list #create new, blank file
for i in ${element_array[@]}; do
#recreate icon order in needed order
            echo $i>>$icon_list
            echo col=$col>>$icon_list
            echo row=$row>>$icon_list
            echo >>$icon_list
if [ $row -eq $rows ] #in my resolution in one row there is 8 icons
then
row=0
let col++
else
let row++
fi
done
xfdesktop --reload
- ---------------------------------------------
it's working example, of course it's configured to my system and could
not work on other system, but any linux user can create such(or
better) script with basic knowledge of bash. create file
"sort_in_alphabetic_order.sh" paste there my script and run it:) it
will arrange icons in alphabetic order, simple.
- -- 
gymka
GPG ID: 21C70548
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBAgAGBQJPr26eAAoJEAVeyH4hxwVIbDoIAIU16uh6ut9xYo1A9QyM7fXT
+SoQuVzRhcyZoZQFWoCtp6D8uG84EQtRz+15fQtUkgahNw4iMAPysSodC9tMWSXe
zN2nrWDqTI6ajc+F0VpOpTubHcB6DQFPRZpSQL+nK9mp77Fa4GMCCIErnhwt/MeF
YK9TdIhe6sL1qXLJRBh2fp1tPChonOhsiuBFUgFeJ6wO+vfp2aIcFVTsR0n+M/fO
Chk26dpf12gVrLF2I5UF4SCaGZ49GRRvKVmLuurZwmUfVTxWAb+Vp6Yb+bcTNuNI
nGg+aN8+hX2XEulSG8XDhmpcaiK2a2DFJVADA0OSjexduSonooWr82n5YeLUFS0=
=kzOS
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x21C70548.asc
Type: application/pgp-keys
Size: 3547 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20120513/09a82b8a/attachment.key>


More information about the Xfce mailing list