2018-11-13 21:24:07 -06:00
|
|
|
#! /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
|
|
|
|
#
|
|
|
|
|
2018-11-23 18:46:58 -06:00
|
|
|
export XDG_CURRENT_DESKTOP="KDE"
|
2018-11-13 21:24:07 -06:00
|
|
|
export TERMINAL="konsole"
|
|
|
|
|
2018-12-08 21:46:09 -06:00
|
|
|
export DSK_FLAG_MASK=""
|
2018-12-08 19:28:23 -06:00
|
|
|
export DSK_CURRENT_DESKTOP="$DSK_NAME"
|
|
|
|
|
2018-11-13 21:24:07 -06:00
|
|
|
case "$HOSTNAME" in
|
|
|
|
dsk-cstm-0)
|
|
|
|
export PB_MODULE_ETH_INTERFACE=eno1
|
|
|
|
export PB_MODULE_WLAN_INTERFACE=wlp5s0
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2018-12-09 13:02:49 -06:00
|
|
|
if [ -z "$DSK_FLAG_HASRESTARTED" ]; then
|
|
|
|
# KDE initialization
|
|
|
|
command -v kdeinit5 > /dev/null 2>&1 && kdeinit5
|
|
|
|
# Nitrogen
|
|
|
|
command -v nitrogen > /dev/null 2>&1 && nitrogen --restore
|
|
|
|
# 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
|
|
|
|
|