dotfiles/system/.config/X11/xsetup
Severin Kaderli 93f017e13a
Fix input of dead keys and other locale issues
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2020-09-20 19:32:49 +02:00

38 lines
820 B
Bash

#!/usr/bin/env bash
#
# SCRIPT NAME:
# .config/X11/xsetup
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This file setups things that should by started by the x-server like the
# ibus-daemon and the keyboard layout.
#
# USAGE:
# This script is sourced by both .xinitrc and .xprofile
# Disable DPMS and prevent screen from blanking
xset s off -dpms
# Set keyboard layout
setxkbmap -model pc105 -layout ch
# Enable numlock
numlockx &
# Start applications
picom -b --experimental-backends &
nm-applet &
redshift-gtk &
sxhkd &
nextcloud &
dunst &
ibus-daemon -drx
# Merge .Xresources on boot
xrdb -merge "${XDG_CONFIG_HOME}/X11/xresources"
dbus-update-activation-environment --systemd DISPLAY
eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
export SSH_AUTH_SOCK