Skip to content

Latest commit

 

History

History
89 lines (60 loc) · 1.98 KB

xinitrc.org

File metadata and controls

89 lines (60 loc) · 1.98 KB

My .xinitrc file

images/xlogo.png

Enable DPMS energy saving.

When I want to disable the energy saving, I use a shell script to toggle on|off via ratpoison key bindings. Get the script from here.

xset +dpms; xset s on

Enable killing Xorg.

By default, killing Xorg with the key combination Ctrl+Alt+Backspace is disabled.

setxkbmap -option terminate:ctrl_alt_bksp

Configure the keyboard layout.

Switch between typing in English (us) and Bulgarian (bg) with AltGr key.

setxkbmap -layout us,bg -variant ,bas_phonetic -option grp:switch

Adjusting keyboard and mouse speed.

I want to navigate faster so this is necessary.

xset r rate 200 50 &
xset m 3 1 &

Swap Left Control and Caps Lock.

setxkbmap -option ctrl:swapcaps

Set cursor theme

xsetroot -cursor_name left_ptr

Adding path to fonts.

xset +fp /usr/share/fonts/local
xset +fp /usr/share/fonts/TTF
xset +fp /usr/share/fonts/misc
xset fp rehash

Load .Xresources

xrdb -merge ~/.Xresources

Start Emacs as a daemon.

I want to have emacs running as a daemon on my system, and connect to the server using emacsclient.

emacs --daemon &

Create and configure default desktop user directories.

if [ -x /usr/bin/xdg-user-dirs-update ]; then
    /usr/bin/xdg-user-dirs-update
fi

Start the RP window manager.

And finally, I start the window manager.

exec /usr/bin/ratpoison