Sample Header Ad - 728x90

Where to put commands to run when X starts with SLiM

1 vote
1 answer
1322 views
I'm having trouble determining where to add these two commands: setxkbmap latam to set the correct keyboard layout, and xcompmgr -c -C & to enable transparency. Before installing SLiM, I used this recommendation, and it worked, but it stopped working afterwards. I tried adding it to ~/.xinitrc, like shown below: #!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f" done unset f fi exec setxkbmap latam exec xcompmgr -c -C & exec startxfce4 But this seemed to crash it, and it just froze before starting XFCE4 (after logging in). I also tried using this recommendation from the Arch Wiki , but it didn't seem to do anything. Any recommendations? Note that I'd like these commands to be the default setting for all users that log into xfce4.
Asked by Alain Jacomet Forte (227 rep)
Jul 15, 2013, 01:44 AM
Last activity: Dec 22, 2015, 01:20 PM