Last active
August 11, 2017 03:37
-
-
Save fehu/f77eb1b830fe91dd5448e4ce97fbe8a1 to your computer and use it in GitHub Desktop.
.xinitrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set background with feh | |
./.fehbg | |
# Keyboard setup | |
setxkbmap "us,ru" "altgr-intl," "grp:caps_toggle" "terminate:ctrl_alt_bksp" | |
# Disable Natural Scrolling | |
xinput --set-prop 13 314 0 | |
# Enable While Typing | |
xinput --set-prop 13 326 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# openSUSE Leap 42.3 template .xinitrc | |
#!/bin/bash | |
# | |
# Sample .xinitrc for SuSE Linux | |
# This script is called from 'startx' when you start an X session | |
# | |
# | |
# In case everything goes wrong, we at least fall back to a plain xterm | |
# | |
failsafe="xterm -ls -T Failsafe -geometry 80x24-0-0" | |
trap "exec $failsafe" EXIT SIGHUP SIGINT SIGPIPE SIGTERM SIGIO | |
# | |
# Some bash (1 and 2) settings to avoid trouble on a | |
# failed program call. | |
# | |
set +e > /dev/null 2>&1 | |
set +u > /dev/null 2>&1 | |
set +o posix > /dev/null 2>&1 | |
if type shopt > /dev/null 2>&1 ; then | |
shopt -s execfail | |
else | |
no_exit_on_failed_exec=1 | |
fi | |
# | |
# Source common code shared between the | |
# X session and X init scripts | |
# | |
. /etc/X11/xinit/xinitrc.common | |
# | |
# Special for twm | |
# | |
case "$WINDOWMANAGER" in | |
*twm) xsetroot -solid darkslateblue | |
esac | |
# | |
# Uncomment next lines to activate asking for ssh passphrase | |
# | |
# if test -S "$SSH_AUTH_SOCK" -a -x "$SSH_ASKPASS"; then | |
# ssh-add < /dev/null | |
# fi | |
# | |
# Add your own lines here... | |
# | |
# day planer deamon | |
# pland & | |
# | |
# finally start the window manager | |
# | |
unset WINDOW_MANAGER STARTUP | |
exec $WINDOWMANAGER ${1+"$@"} | |
# call failsafe | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment