-
Senior Member
registered user
Create ~/.xsessionrc for quick session changes
Since ~/.xsessionrc is activated by xsession why not use it ? Just create it in your home folder and use it to make quick settings to X. Here is an example of mine:
# turn off default screensaver
xset s off s noblank s 0 0
# Set mouse accelaration. Works before LXDE takes over. To change final setting edit ~/.config/lxsession/LXDE/desktop.conf
xset m 5/2 4
# Set gamma correction
xgamma -rgamma 1.05 -ggamma 1.15 -bgamma 1.136
# Load monitor ICC profile
dispwin -d 1 ~/.config/color-profiles/IBMTPLCD.ICM
# Start xcompmgr
xcompmgr -a &
# Start clipboard-daemon
clipboard-daemon &
# Start keyboard layout switcher
setxkbmap -option '' 'us,bg' ',phonetic' 'grp:alt_shift_toggle,grp_led:scroll'
# Enable key sequence to kill the X server. Old behaviour
setxkbmap -option terminate:ctrl_alt_bksp
-
Senior Member
registered user
Hey, mecho. You've got a lot of little goodies here. I'm using 6.2.1 and I cannot locate .xessionrc anywhere. I can apply many of these ideas just as well via rc.local now that you've laid them all out so nicely. It would help to explain some of the entries a bit more. I think Krishna, or you have something somewhere on clipboard-daemon, I've used the mouse accel idea before. xcompmgr, setxkbmap, dispwin aren't familiar. Can you elucidate?
Last edited by utu; 07-24-2010 at 12:16 AM.
-
Senior Member
registered user
.xsessionrc is not in knoppix by default, but it is activated by xsession. All you need is to create it in your home folder. It is way better to use .xsessionrc to pass commands, then using rc.local
I use setxkbmap to set my dual layout keyboard, so I can type both in Bulgarian and English and switch between keyboard layouts using Alt+Shift
dispwin is part of argyll package and is used to load monitor color profiles
xcompmgr is composite manager. It gives some nice effects to X like shadows, transparency etc. It is still not very stable and I dont use shadows and transparency, but I do use the accelerated desktop it provides. At least that feature is stable enough.
clipboard-daemon is used to protect your clipboard, so you don't loose it's content when you close the source application
-
Senior Member
registered user
The second setxkbmap -option terminate:ctrl_alt_bksp
Applies the old X key sequence to restart X using Ctrl+Alt+BackSpace. Its useful sometimes if you experience some system freeze
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2 picture](/store/img/g/2mYAAOSwmulmdXzA/s-l225/Dell-OptiPlex-3060-MICRO-DESKTOP-PC-COMPUTER-I5-8T.jpg)
Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2
$295.00
![HP PRODESK 600 G5 MT | INTEL CORE I7-9700 3.00GHZ | 256GB | 32GB | NO OS picture](/store/img/g/zJQAAOSwXUBmfW3e/s-l225/HP-PRODESK-600-G5-MT-INTEL-CORE-I7-9700-3-00GHZ-25.jpg)
HP PRODESK 600 G5 MT | INTEL CORE I7-9700 3.00GHZ | 256GB | 32GB | NO OS
$144.99
![Lenovo IdeaCentre 3 07IRB8 Desktop Intel Core i5-13400 16GB 512GB SSD W11H picture](/store/img/g/1UcAAOSwYS9lXgtq/s-l225/Lenovo-IdeaCentre-3-07IRB8-Desktop-Intel-Core-i5-1.jpg)
Lenovo IdeaCentre 3 07IRB8 Desktop Intel Core i5-13400 16GB 512GB SSD W11H
$349.99
![Dell 15.6](/store/img/g/9x4AAOSwVAlmICu5/s-l225/Dell-15-6-NVIDIA-Gaming-Laptop-Intel-Quad-Core-i7-.jpg)
Dell 15.6" NVIDIA Gaming Laptop - Intel Quad Core i7 64GB RAM 2TB SSD Windows 11
$446.00
![24](/store/img/g/g78AAOSwVIlmfbIa/s-l225/24-APPLE-iMAC-M1-4-5K-RETINA-1TB-SSD-16GB-RAM-8-CO.jpg)
24" APPLE iMAC M1 4.5K RETINA 1TB SSD 16GB RAM 8-CORE 8-CORE GPU GREEN TOUCH ID
$1395.00
![Dell Inspiron 142-in-1 Touch Laptop Intel Core 5 Processor 8GB Memory... picture](/store/img/g/sSgAAOSwm3JmUI62/s-l225/Dell-Inspiron-142-in-1-Touch-Laptop-Intel-Core-5-P.jpg)
Dell Inspiron 142-in-1 Touch Laptop Intel Core 5 Processor 8GB Memory...
$549.99
![AMD Ryzen 7 7800X3D 8-Core - 16-Thread 4.2 GHz (5.0 GHz Max Boost) Socket A... picture](/store/img/g/3isAAOSw~lNmI3aE/s-l225/AMD-Ryzen-7-7800X3D-8-Core-16-Thread-4-2-GHz-5-0-G.jpg)
AMD Ryzen 7 7800X3D 8-Core - 16-Thread 4.2 GHz (5.0 GHz Max Boost) Socket A...
$304.95
![HP - 17.3](/store/img/g/hj0AAOSw~uRl~IJ5/s-l225/HP-17-3-Full-HD-Laptop-Intel-Core-i3-8GB-Memory-25.jpg)
HP - 17.3" Full HD Laptop - Intel Core i3 - 8GB Memory - 256GB SSD - Natural ...
$369.99
![New HP 24](/store/img/g/TWcAAOSw2QlmXTVp/s-l225/New-HP-24-All-In-One-Desktop-Computer-11th-Gen-i3-.jpg)
New HP 24" All In One Desktop Computer 11th Gen i3 Up To 32GB RAM 2TB SSD Win 11
$409.99
![AMD Ryzen 7 5800X 8-Core 4.7GHz 16-Threads PCIe 4.0 Processor 100-100000063WF picture](/store/img/g/MXUAAOSwGxdlmIW-/s-l225/AMD-Ryzen-7-5800X-8-Core-4-7GHz-16-Threads-PCIe-4-.jpg)
AMD Ryzen 7 5800X 8-Core 4.7GHz 16-Threads PCIe 4.0 Processor 100-100000063WF
$149.99