diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2019-01-22 18:00:45 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2019-01-22 18:02:00 +0100 |
| commit | 899a055c018d1cd8d37826c667be8dfb62a7b6bb (patch) | |
| tree | 8dd584d903182a1ac38880105896f5fd40c42667 | |
| parent | c2af01621ee242645434c259d74865d07440fe1a (diff) | |
| download | dotfiles-899a055c018d1cd8d37826c667be8dfb62a7b6bb.tar.gz dotfiles-899a055c018d1cd8d37826c667be8dfb62a7b6bb.zip | |
Added xinitrc file
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rwxr-xr-x | install.sh | 1 | ||||
| -rw-r--r-- | xinitrc | 63 |
2 files changed, 64 insertions, 0 deletions
@@ -43,6 +43,7 @@ cp i3/config $HOME/.i3/config cp i3status.conf $HOME/.i3status.conf cp inputrc $HOME/.inputrc cp Xresources $HOME/.Xresources +cp xinitrc $HOME/.xinitrc cp -r fonts $HOME/.fonts cp config/dunst/dunstrc $HOME/.config/dunst/dunstrc @@ -0,0 +1,63 @@ +#!/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... +# + +# Right Alt key is now a Left Control. +setxkbmap -option ctrl:ralt_rctrl + +# day planer deamon +# pland & + +# +# finally start the window manager +# +unset WINDOW_MANAGER STARTUP +exec $WINDOWMANAGER ${1+"$@"} + +# call failsafe +exit 0 |
