You are not logged in.
Pages: 1
when i re-arrange desktop icons they usually stay where i put them, or very close, even across reboots. i am curious what file the positions are stored in. i'll look around more. i am sure i'll find it.
sometimes they do get out of order. today i write a script to put them back in order. it moves all the files out of ~/Desktop to a temporary directory. then it moves them back in, in the correct order. it includes a tiny sleep between each to be sure although it has worked without any.
Offline
that script:
1 #!/bin/bash
2 d=Desktop
3 x=desktop
4 t=$(exec tn)
5 cd||exit 1
6 mkdir $t||exit 1
7 ls -dil $t||exit 1
8 mv $d/*.$x $t||exit 1
9 rmdir $d||exit 1
10 sleep 0.25
11 mkdir $d
12 m(){
13 nsleep 0 0.125 0||exit 1
14 mv $t/$1.$x $d||exit 1
15 }
16 sleep 2
17 wmctrl -s 7
18 sleep 2
19 m 1term
...
47 m ubuntu
48 m xfce
49 exec rmdir $t
FYI, line 48 is an icon that starts Firefox to visit this forum. nsleep is a program i wrote long long ago to do sleeps w/o accumulating any error. i use it a lot out of habit. it is written in C. i hope to eventually recode it in Python3.
Offline
i am curious what file the positions are stored in.
In ~/.config/xfce4/desktop, in the file that matches your available desktop geometry (screen resolution minus space consumed by panels with struts enabled). More info here.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Pages: 1
[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 524.63 KiB (Peak: 532.66 KiB) ]