Howto: Save/Restore KDE Icons position

Share your own howto's etc. Not for support questions!
Post Reply
Message
Author
User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Howto: Save/Restore KDE Icons position

#1 Post by bester69 »

In KDE 4, we get a mess with the desktop icons when we change screen resolution .

To workaround this, i developed two scripts:

kde.sh (save icons position)
tar -zcvf /home/user/scripts/config/kdeicons$(date +%y%m%d).tar.gz /home/user/.kde/share/config/plasma-desktop-appletsrc
cp ~/.kde/share/config/plasma-desktop-appletsrc ~/scripts/config/plasma-desktop-appletsrc.res
plasma.sh (restore default screen resolution and restore icons default position)
#Force flush dots pixels screen by switching between two resolutions
xrandr -s 800x600
sleep 1
#Set defautl screen resolution
xrandr -s 1280x800
#Set brigtness default
xbacklight -set 10
#Adjust gamma screen, this line is obtative
dispwin -v /usr/share/dispcalGUI/presets/office_web.icc
sleep 5
killall plasma-desktop
sleep 2
CONFIG=/home/user/LINUXDEBS/scripts/config
cp $CONFIG/plasma-desktop-appletsrc.res ~/.kde/share/config/plasma-desktop-appletsrc
plasma-desktop &
sleep 10

I hope you enjoy it :D
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

Post Reply