Results 1 to 4 of 4

Thread: Create ~/.xsessionrc for quick session changes

  1. #1
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198

    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

  2. #2
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    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.

  3. #3
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    .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

  4. #4
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    198
    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
  •  


IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$399.99



IBM LENOVO SYSTEM X 3550 M5 2x XEON E5-2640 V4 CPUs NO RAM NO DRIVES 1U RACK picture

IBM LENOVO SYSTEM X 3550 M5 2x XEON E5-2640 V4 CPUs NO RAM NO DRIVES 1U RACK

$199.99



IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES picture

IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES

$27.25



IBM Power 710 Express Server Power7 4.2Ghz 8-Core CPU 64GB DDR3 No HDD 74Y523 picture

IBM Power 710 Express Server Power7 4.2Ghz 8-Core CPU 64GB DDR3 No HDD 74Y523

$499.99



IBM Power 740 8205-E6C Express 8-SFF Power7 3.55GHz CPU 64GB RAM *No HDD* Server picture

IBM Power 740 8205-E6C Express 8-SFF Power7 3.55GHz CPU 64GB RAM *No HDD* Server

$191.99



IBM System x3250 M4 Server Intel Xeon E3-1220 3.10GHz 8GB RAM No HDDs picture

IBM System x3250 M4 Server Intel Xeon E3-1220 3.10GHz 8GB RAM No HDDs

$65.02



IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server  picture

IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server

$209.98



IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W picture

IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W

$199.00



IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED picture

IBM 8203 E4A p520 Server 8203-E4A 4.2GHz 2-Core POWER6 32GB RAM / NO HDD USED

$99.99



IBM System x3250 M1 1U Server Intel Pentium D @3.4 2GB RAM x2 250GB DRIVES NO OS picture

IBM System x3250 M1 1U Server Intel Pentium D @3.4 2GB RAM x2 250GB DRIVES NO OS

$27.99