home/.config/dsk/dskrc

46 lines
960 B
Bash
Executable File

#! /usr/bin/env bash
#
# dskrc
# Dotfile Session Kit configuration RC
#
# This file is sourced before DSK does anything else
# Put your basic configuration in here
#
export XDG_CURRENT_DESKTOP="KDE"
export TERMINAL="konsole"
export DSK_FLAG_MASK=""
export DSK_CURRENT_DESKTOP="$DSK_NAME"
case "$HOSTNAME" in
dsk-cstm-0)
export PB_MODULE_ETH_INTERFACE=eno1
export PB_MODULE_WLAN_INTERFACE=wlp5s0
;;
*)
;;
esac
# Background setting
if command -v hsetroot > /dev/null 2>&1; then
hsetroot -solid "#282828" -tile "$HOME/.wptile" -center "$HOME/.wpcenter"
elif command -v nitrogen > /dev/null 2>&1; then
nitrogen --restore
fi
if [ -z "$DSK_FLAG_HASRESTARTED" ]; then
# KDE initialization
command -v kdeinit5 > /dev/null 2>&1 && kdeinit5
# XRDB
[ -r ~/.Xresources ] && xrdb ~/.Xresources
for file in "$XDG_CONFIG_HOME"/xrdb/*.xresources; do
[ -r "$file" ] && xrdb -merge "$file"
done
# No bell
xset -b
# No screen blanking
xset s off
fi