Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Howto: Save/Restore KDE Icons position

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

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:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Post Reply