#!/bin/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
xset s off
xset -dpms
xset s noblank

# Set keyboard layout
setxkbmap -model pc105 -layout ch

# Start network manager
nm-applet &

# Start redshift
redshift-gtk &

# Merge .Xresources on boot
xrdb -merge "${XDG_CONFIG_HOME}/X11/xresources"

# Start ibus
#ibus-daemon -drx

. "${XDG_BIN_HOME}/resolution"
