-
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
![HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA picture](/store/img/g/rIQAAOSwN9Nlnw4a/s-l225/HP-Workstation-Z640-2x-Xeon-E5-2623V4-32GB-Ram-Dua.jpg)
HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram Dual 256GB SSD K420 Linux GA
$161.24
![Dell Precision T3600 XEON E5-1607 3.0GHz 16GB RAM 500GB HD WIN10 Pro Workstation picture](/store/img/g/QtIAAOSwfFRmGhny/s-l225/Dell-Precision-T3600-XEON-E5-1607-3-0GHz-16GB-RAM-.jpg)
Dell Precision T3600 XEON E5-1607 3.0GHz 16GB RAM 500GB HD WIN10 Pro Workstation
$99.00
![HP Z440 Workstation 18 core Xeon E5-2699 V3 64GB 1TB SSD R5-340X WIFI WINDOWS 11 picture](/store/img/g/8Z0AAOSwoLhicrwu/s-l225/HP-Z440-Workstation-18-core-Xeon-E5-2699-V3-64GB-1.jpg)
HP Z440 Workstation 18 core Xeon E5-2699 V3 64GB 1TB SSD R5-340X WIFI WINDOWS 11
$249.99
![Apple MAC Pro A1481 Late 2013 Xeon Quad-Core 3.7GHz 32GB 1TB SSD FirePro D300 picture](/store/img/g/LSYAAOSwLetmb~J-/s-l225/Apple-MAC-Pro-A1481-Late-2013-Xeon-Quad-Core-3-7GH.jpg)
Apple MAC Pro A1481 Late 2013 Xeon Quad-Core 3.7GHz 32GB 1TB SSD FirePro D300
$285.00
![SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor picture](/store/img/g/fEMAAOSwy1JmPnWm/s-l225/SR1XP-Intel-Xeon-E5-2680-v3-12-Core-30MB-2-5GHz-LG.jpg)
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor
$3.96
![Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture](/store/img/g/y6AAAOSwkWtmBd8U/s-l225/Intel-Xeon-Gold-6140-SR3AX-2-3GHz-18-Core-Processo.jpg)
Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU
$32.79
![Intel Xeon E5-2680 V4 2.4GHz 35MB 14-Core Processor SR2N7 *km picture](/store/img/g/0pMAAOSwzOlefgrd/s-l225/Intel-Xeon-E5-2680-V4-2-4GHz-35MB-14-Core-Processo.jpg)
Intel Xeon E5-2680 V4 2.4GHz 35MB 14-Core Processor SR2N7 *km
$13.99
![Intel Xeon E7-8890 V4 2.20GHz 24-Core 60MB LGA2011 Server CPU Processor SR2SS picture](/store/img/g/GyQAAOSwT45lBMsz/s-l225/Intel-Xeon-E7-8890-V4-2-20GHz-24-Core-60MB-LGA2011.jpg)
Intel Xeon E7-8890 V4 2.20GHz 24-Core 60MB LGA2011 Server CPU Processor SR2SS
$29.99
![Apple MAC Pro A1481 Late 2013 Xeon Quad-Core 3.7GHz 16GB 1TB SSD FirePro D300 picture](/store/img/g/PJcAAOSwBd9mb~JM/s-l225/Apple-MAC-Pro-A1481-Late-2013-Xeon-Quad-Core-3-7GH.jpg)
Apple MAC Pro A1481 Late 2013 Xeon Quad-Core 3.7GHz 16GB 1TB SSD FirePro D300
$235.00
![INTEL XEON 5218R GOLD 2.1GHZ PROCESSOR | SRGZ7 picture](/store/img/g/jvQAAOSwyNZmabJj/s-l225/INTEL-XEON-5218R-GOLD-2-1GHZ-PROCESSOR-SRGZ7.jpg)
INTEL XEON 5218R GOLD 2.1GHZ PROCESSOR | SRGZ7
$549.99