Different users can have different settings
The root /1/ has own settings. You could change the root's settings by starting the System Settings with the command:
kdesudo systemsettings
Root's gtk apps
As default the root's folder doesn't have the link to the oxygen-gtk.
To fix this you need to copy the hidden file .gtkrc-2.0-kde4 (note the dot !) from your home directory to the /root/ with name .gtkrc-2.0 (note the dot !) /2/, /3/.
Command line:
sudo cp .gtkrc-2.0-kde4 /root/.gtkrc-2.0
If you have the Root Actions Servicemenu /4/ installed you could use it to copy and rename.
System's default mouse theme (KDM cursor)
The Debian and the Debian based are using the alternatives /5/ to set the environmental variables.
:~$ man update-alternatives /6/
NAME
update-alternatives - maintain symbolic links determining default commands
SYNOPSIS
update-alternatives [options] command
DESCRIPTION
update-alternatives creates, removes, maintains and displays
information about the symbolic links comprising the Debian alternatives
system.
It is possible for several programs fulfilling the same or similar functions
to be installed on a single system at the same time.
To set the cursor theme with the alternatives command line:
sudo update-alternatives --config x-cursor-theme
With KDE gui:
Package: kalternatives /7/ - graphical alternatives system configuration tool
More: Change system default X11 cursor theme /8/.
Sometimes
Quote: "Sometimes, in KDE applications under my ordinary user, fonts spontaneously change to Ubuntu font - why this happens and how can I avoid it?"
Yes, I have noticed this. Why - beats me. The Kubuntu is resetting to the default Kubuntu settings (/usr/share/kubuntu-default-settings/kde4-profile/default/share/config/)
To fix this i have edited the Kubuntu defaults: /usr/share/kubuntu-default-settings/kde4-profile/default/share/config/kdeglobals.
Default Kubuntu kdeglobals has:
[General]
BrowserApplication[$e]=!rekonq
XftHintStyle=hintmedium
font=Ubuntu,9,-1,5,50,0,0,0,0,0
menuFont=Ubuntu,9,-1,5,50,0,0,0,0,0
desktopFont=Ubuntu,9,-1,5,50,0,0,0,0,0
toolBarFont=Ubuntu,8,-1,5,50,0,0,0,0,0
smallestReadableFont=Ubuntu,8,-1,5,50,0,0,0,0,0
taskbarFont=Ubuntu,9,-1,5,50,0,0,0,0,0
Looking my own kdeglobals: ~/.kde/share/config/kdeglobals and copying them to the defaults. Here:
[General]
BrowserApplication[$e]=!rekonq
XftHintStyle=hintmedium
font=Sans Serif,9,-1,5,50,0,0,0,0,0
menuFont=Sans Serif,9,-1,5,50,0,0,0,0,0
desktopFont=Sans Serif,9,-1,5,50,0,0,0,0,0
toolBarFont=Sans Serif,8,-1,5,50,0,0,0,0,0
smallestReadableFont=Sans Serif,8,-1,5,50,0,0,0,0,0
taskbarFont=Sans Serif,9,-1,5,50,0,0,0,0,0
Links:
- https://help.ubuntu.com/community/RootSudo
- http://forum.kde.org/viewtopic.php?f=63&t=62352
- http://kubuntuforums.net/forums/index.php?topic=3092288.msg201654#msg201654
- http://kde-apps.org/content/show.php/Root+Actions+Servicemenu?content=48411
- http://www.debian-administration.org/articles/91
- http://en.wikipedia.org/wiki/Man_page
- http://packages.ubuntu.com/oneiric/kalternatives
- http://kubuntuforums.net/forums/index.php?topic=3112235.0
Here is a solution that I have found mitigate display/window decoration issues when switching between KDE and Xfce.
How do I find which files KDE has modified?
Finding the files that have changed in a home directory, within a specified time period, is fairly straightforward.
find ~ -maxdepth 5 -mmin 10
(searches for changes within the last 10 minutes)
However, the results are cluttered with a large number of dynamic files(various app caches, for example). So, I needed to exclude those from my results:
find ~/ -maxdepth 5 \( -path ~/.cache -o -path ~/.xchat2 -o -path ~/.local -o -path ~/Downloads -o -path ~/.config/deluge -o -path ~/.config/chromium -o -path ~/docs -o -path ~/.dropbox -o -path ~/Dropbox -o -path ~/.pulse -o -path ~/.dbus \) -prune -o -mmin -5
This results in a much more manageable list to identify the files KDE has modified(I don't doubt that there is a more elegant solution to get the same results).
What files need to be changed and what commands should be run?
Prior to exiting KDE, enter a terminal(Ctrl-Alt-t), and enter the following command:
rm ~/.gtkrc-2.0
This will remove KDE window decoration settings and its deletion will result in those settings not being applied to Xfce. However, once logged into Xfce, the WM will need to be reset with the following command:
xfwm4 --replace
Additionally, if any theme or font changes have been made while working in KDE, another file will need to be deleted prior to logging into Xfce. Otherwise, fonts in the web browser will have been modified.
Again, from the command line:
rm ~/.fonts.conf
How can I (partially) automate this?
I have automated part of this by editing /etc/lightdm/lightdm.conf
and placing the following lines in the file:
[SeatDefaults]
session-cleanup-script = home/<userdir>/clean_up_after_kde.sh
The script contains the two rm
commands from above. The xfwm --replace
cannot run until the desktop environment has already started, so this is still run manually.
In order for the changes to take effect, lightdm needs to be restarted. Run the following:
sudo restart lightdm
.
Your session will immediately restart after this command and drop you back to a login screen, so ensure that you have saved any work before restarting.
These commands will be run as part of the logout process now. Note that this script runs only after the user is completely logged out.
While this is still pretty kludgey, it is a smaller step to making it less so.
Best Answer
You could try gtk3-nocsd: article on WebUpd8
Add the following to your "~/.profile"
The author an WebUpd8 writes, that Unity doesn't start with that, so you can edit a .desktop file in /usr/share/applications, for example gthumb:
Add the follwing to "Exec=":
so that it looks like this: