Linux and Unix Look And Feel How To
| Linux and Unix |
|---|
| Linux and Unix How To's |
| General · Backup and Networking · Disk · Look & Feel · Scripting |
| Linux and Unix Topics |
| How To · Troubleshooting · Technical Notes |
| Related topics |
| Thunderbird and Lightning How To · AIX Notes · Networking How To's · iPhone How To's |
[edit] How to speed up KDE
Tested and proven to work on Lucid Kubuntu with the backport of KDE 4.5.3.
- Get all the prereqs for the compilation:
sudo aptitude install build-essential cmake kdebase-workspace-dev
- Get the source code for the KCM Qt Graphics System
- Unpack it to a folder. Start a terminal session, cd to the folder and dance the usual dance:
cmake -DCMAKE_INSTALL_PREFIX=/usr make sudo make install
- Now wait a minute and open KDE system settings
- You should see "QT Graphics System" under "System Administration". Open it.
- Pick "Raster", click apply and restart your KDE session. Enjoy.
- You can pick "OpenGL" if you are feeling adventurous. It did not work on T61 with Nvidia mobile.
For a video tutorial on this look here.
[edit] How to change font for the content of views in Eclipse
For some mysterious reason you can not do it in the Eclipse's UI via Window -> Preferences -> Appearance. You have to change the GTK theme Eclipse uses:
Create a gtkrc file (like: ~/.gtkrc-eclipse) with following content:
style "eclipse" {
font_name = "Sans Serif 8"
}
class "GtkWidget" style "eclipse"
Then start your eclipse with the augmented GTK theme:
env GTK2_RC_FILES=/usr/share/themes/Clearlooks/gtk-2.0/gtkrc:/home/user/.gtkrc-eclipse '/opt/eclipse-3.3/eclipse'
[edit] How to change appearance of Gnome (GTK) apps when run as root under KDE
Copy your GTK-settings into the /root-directory. Note that the "-kde4" is missing in the root-folder.
sudo cp ~/.gtkrc-2.0-kde4 /root/.gtkrc-2.0
[edit] How to change opacity of a title bar in Gnome
gconf-editor
Navigate to apps/gwd in the GNOME Configuration Editor. These are the two values you need to change:
metacity_theme_active_opacity - (Transparently on active window’s title.) metacity_theme_opacity - (Transparently on inactive windows’ titles.)
1 - no, 0 - full
[edit] How to switch from kscreensaver to xscreensaver
1: Turn off KDE's screen saver. Open the Control Center and select the Appearance & Themes / Screensaver page. Un-check Start Automatically. 2: Find your Autostart directory. Open the System Administration -> Paths page, and see what your Autostart path is set to: it will probably be ~/.kde/Autostart/ or something similar. 3: Make xscreensaver be an Autostart program. Create a .desktop file in your autostart directory called xscreensaver.desktop that contains the following five lines:
[Desktop Entry] Exec=xscreensaver Name=XScreenSaver Type=Application X-KDE-StartupNotify=false
4: Make the various "lock session" buttons call xscreensaver. Replace the file kdesktop_lock or krunner_lock or kscreenlocker in /usr/bin/ (or possibly in /usr/kde/3.5/bin/ or possibly in /usr/lib/kde4/libexec/ or /usr/libexec/kde4/, depending on the distro and phase of the moon) with these two lines:
#!/bin/sh xscreensaver-command -lock
Make sure the file is executable (chmod a+x).
[edit] How to switch from gnome-screensaver to xscreensaver
1: Turn off gnome-screensaver. Open System / Preferences / Screensaver and uncheck both boxes. 2: Stop gnome-screensaver from launching at login.
gconftool-2 --type boolean -s /apps/gnome_settings_daemon/screensaver/start_screensaver false
Or, just uninstall the "gnome-screensaver" package entirely. 3: Launch xscreensaver at login. Open System / Preferences / Sessions / Startup Programs. Click Add and type xscreensaver. 4: Tell Preferences to use the xscreensaver configurator. Edit /usr/share/applications/gnome-screensaver-preferences.desktop and change the Exec= line to say
Exec=xscreensaver-demo
5: Make System / Quit / Lock Screen use xscreensaver. Backup gnome-screensaver-command first, as the following command will overwrite it
sudo ln -sf /usr/bin/xscreensaver-command /usr/bin/gnome-screensaver-command
|
|||||||||||