-
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
![Cisco Nexus 9300 with 24p 40/50G QSFP+ and 6p 40G/100G QSFP28 N9K-C93180LC-EX picture](/store/img/g/lPEAAOSwHCFmYixt/s-l225/Cisco-Nexus-9300-with-24p-40-50G-QSFP-and-6p-40G-1.jpg)
Cisco Nexus 9300 with 24p 40/50G QSFP+ and 6p 40G/100G QSFP28 N9K-C93180LC-EX
$499.99
![Cisco Catalyst C9300-24UX-A 24 Port 10G/mGig Copper UPOE Network Switch picture](/store/img/g/UdkAAOSwDmpmMtqf/s-l225/Cisco-Catalyst-C9300-24UX-A-24-Port-10G-mGig-Coppe.jpg)
Cisco Catalyst C9300-24UX-A 24 Port 10G/mGig Copper UPOE Network Switch
$549.00
![Cisco CBS350-48FP-4G 48-Port Gigabit PoE+ Compliant Managed Network Switch SFP picture](/store/img/g/0-QAAOSw-GlmEYK6/s-l225/Cisco-CBS350-48FP-4G-48-Port-Gigabit-PoE-Compliant.jpg)
Cisco CBS350-48FP-4G 48-Port Gigabit PoE+ Compliant Managed Network Switch SFP
$1199.00
![Cisco WS-C2960X-48FPD-L 48 V07 POE+ GE+2 10G SFP+, LAN BASE 740W w/ C2960X-Stack picture](/store/img/g/cqoAAOSwtYVmS7LQ/s-l225/Cisco-WS-C2960X-48FPD-L-48-V07-POE-GE-2-10G-SFP-LA.jpg)
Cisco WS-C2960X-48FPD-L 48 V07 POE+ GE+2 10G SFP+, LAN BASE 740W w/ C2960X-Stack
$99.95
![Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850 picture](/store/img/g/yEAAAOSwxVReIhma/s-l225/Cisco-C3850-NM-2-10G-2-Port-Network-Exp-Module-for.jpg)
Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850
$30.99
![CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty picture](/store/img/g/FkQAAOSwtBZbqRX9/s-l225/CISCO-SFP-10G-LR-SFP-TRANSCEIVER-MODULE-GBIC-10G-1.jpg)
CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty
$39.99
![Cisco Catalyst C3KX-NM-1G 4 SFP Ports Network Module For Cisco 3750X And 3650X picture](/store/img/g/oc0AAOSw-cxmWLow/s-l225/Cisco-Catalyst-C3KX-NM-1G-4-SFP-Ports-Network-Modu.jpg)
Cisco Catalyst C3KX-NM-1G 4 SFP Ports Network Module For Cisco 3750X And 3650X
$8.79
![Cisco Catalyst 3850 WS-C3850-48F-L 48-Port PoE+ Switch with C3850-NM-2-10G 1100W picture](/store/img/g/KFgAAOSwP15mabsY/s-l225/Cisco-Catalyst-3850-WS-C3850-48F-L-48-Port-PoE-Swi.jpg)
Cisco Catalyst 3850 WS-C3850-48F-L 48-Port PoE+ Switch with C3850-NM-2-10G 1100W
$84.99
![Cisco FPR1010-NGFW-K9 FirePOWER Security Appliance **CISCO EXCESS** picture](/store/img/g/-YEAAOSwo45mW8aP/s-l225/Cisco-FPR1010-NGFW-K9-FirePOWER-Security-Appliance.jpg)
Cisco FPR1010-NGFW-K9 FirePOWER Security Appliance **CISCO EXCESS**
$339.00
![Cisco WS-C3850-48P-S Catalyst 48 Port 1GB PoE+ RJ-45 Switch - Same Day Shipping picture](/store/img/g/DZEAAOSw10dhbvpK/s-l225/Cisco-WS-C3850-48P-S-Catalyst-48-Port-1GB-PoE-RJ-4.jpg)
Cisco WS-C3850-48P-S Catalyst 48 Port 1GB PoE+ RJ-45 Switch - Same Day Shipping
$139.00