-
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
![Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets. picture](/store/img/g/498AAOSwJTdl1MqH/s-l225/Vintage-Dot-Matrix-Printer-Contin-Feed-Paper-8-5-x.jpg)
Vintage Dot Matrix Printer Contin Feed Paper 8.5 x 11. Lots of 5 to 250 sheets.
$4.00
![Vintage CMD Creative Micro Design C64/C128 Product Catalog picture](/store/img/g/2QQAAOSwpwdmfxe~/s-l225/Vintage-CMD-Creative-Micro-Design-C64-C128-Product.jpg)
Vintage CMD Creative Micro Design C64/C128 Product Catalog
$6.00
![NEW VINTAGE ASUS 5 IN 1 AT MOBO CABLE SET: FLOPPY, IDE, 2 9PIN SERIAL 1 PAR RM1 picture](/store/img/g/acgAAOSw8o5fRr13/s-l225/NEW-VINTAGE-ASUS-5-IN-1-AT-MOBO-CABLE-SET-FLOPPY-I.jpg)
NEW VINTAGE ASUS 5 IN 1 AT MOBO CABLE SET: FLOPPY, IDE, 2 9PIN SERIAL 1 PAR RM1
$9.95
![VINTAGE 1996 Egghead KeyTronic Keyboard NEW IN BOX picture](/store/img/g/FGgAAOSwljpmgD09/s-l225/VINTAGE-1996-Egghead-KeyTronic-Keyboard-NEW-IN-BOX.jpg)
VINTAGE 1996 Egghead KeyTronic Keyboard NEW IN BOX
$20.00
![Apple Multicolored Logo Luggage Tag, Vintage, Genuine picture](/store/img/g/BPsAAOSwfABmg0~g/s-l225/Apple-Multicolored-Logo-Luggage-Tag-Vintage-Genuin.jpg)
Apple Multicolored Logo Luggage Tag, Vintage, Genuine
$14.88
![Vintage FX-3D ISA Sound card picture](/store/img/g/-5QAAOSwNY5mg2~j/s-l225/Vintage-FX-3D-ISA-Sound-card.jpg)
Vintage FX-3D ISA Sound card
$19.99
![VINTAGE ADAPTEC AHA-2940W 2940UW ULTRA WIDE SCSI PCI CONTROLLER CARD picture](/store/img/g/qYwAAOSwK~VmSX8y/s-l225/VINTAGE-ADAPTEC-AHA-2940W-2940UW-ULTRA-WIDE-SCSI-P.jpg)
VINTAGE ADAPTEC AHA-2940W 2940UW ULTRA WIDE SCSI PCI CONTROLLER CARD
$17.99
![Vintage Apple II game APPLE ADVENTURE (Colossal Cave) OEM 1980 picture](/store/img/g/LnQAAOSw25Bmg9oY/s-l225/Vintage-Apple-II-game-APPLE-ADVENTURE-Colossal-Cav.jpg)
Vintage Apple II game APPLE ADVENTURE (Colossal Cave) OEM 1980
$250.00
![Vintage PCMCIA Notebook TV PCMCIA Card Video Capture Coaxial Adapter Win95 Win98 picture](/store/img/g/1vwAAOSwyFtmfuVw/s-l225/Vintage-PCMCIA-Notebook-TV-PCMCIA-Card-Video-Captu.jpg)
Vintage PCMCIA Notebook TV PCMCIA Card Video Capture Coaxial Adapter Win95 Win98
$140.00
![Vintage TEAC FD-55GFR 5.25](/store/img/g/~ycAAOSweuVmgwu2/s-l225/Vintage-TEAC-FD-55GFR-5-25-1-2-MB-Internal-Floppy-.jpg)
Vintage TEAC FD-55GFR 5.25" 1.2 MB Internal Floppy Disk Drive Beige 19307671-49
$45.57