Added ~/.xinitrc to the repository.

In addition, a host-specific file that will be executed
by .xinitrc was added in ~/.xinitrc.d/.
This commit is contained in:
2013-09-18 18:01:16 +02:00
parent 9f0c304fed
commit 31ed7c9620
4 changed files with 33 additions and 18 deletions

View File

@@ -15,14 +15,6 @@ set $mod Mod4
# The default terminal
set $terminal terminator
# Keyboard options
set $keyboard_layout de
set $keyboard_options nodeadkeys
# Mouse options
set $mouse_repeat_delay 150
set $mouse_repeat_speed 30
# Path to the exit script
set $path_i3exit ~/.i3/scripts/i3exit.bash
@@ -260,15 +252,6 @@ bar
# Start the wallpaper changer.
exec --no-startup-id $path_wallchanger $wallpaper_directory $wallpaper_interval > $wallpaper_logfile
# Set keyboard layout
exec --no-startup-id setxkbmap $keyboard_layout $keyboard_options
# Set key repeat delay
exec --no-startup-id xset r rate $mouse_repeat_delay $mouse_repeat_speed
# Enable vertical edge scroll for the touchpad
exec --no-startup-id synclient VertEdgeScroll=1
# Start wicd in tray
exec --no-startup-id wicd-gtk --tray

View File

@@ -10,7 +10,7 @@ backup_dir="$HOME/.dotfiles.bak/"
# the following folders inside $config_dir will be inspected and the
# contents symlinked:
symlink_folders='bash git i3 vim zsh conky terminator'
symlink_folders='bash git i3 vim zsh conky terminator x'
MAPPING_SEPARATOR='::'

28
x/xinitrc Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
[ -f /etc/xprofile ] && source /etc/xprofile
[ -f ~/.xprofile ] && source ~/.xprofile
# execute the host-specific .xinitrc-addition
hostfile="$HOME/.xinitrc.d/$(hostname).xinitrc"
[[ -f "$hostfile" ]] && bash "$hostfile" &
case $1 in
e17)
exec enlightenment_start
;;
i3)
exec i3
;;
xfce4) ;;
*)
exec i3
;;
esac

4
x/xinitrc.d/netbook.xinitrc Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
# enable vertical edge scrolling
synclient VertEdgeScroll=1