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
|
|
|
|
#
|
|
|
|
|
2019-02-01 03:07:24 -06:00
|
|
|
export XDG_CURRENT_DESKTOP="MATE"
|
|
|
|
for term in konsole mate-terminal lxterminal xfce4-terminal urxvt xterm; do
|
2018-12-25 20:28:53 -06:00
|
|
|
if command -v "$term" > /dev/null 2>&1; then
|
|
|
|
export TERMINAL="$term"
|
|
|
|
break
|
|
|
|
fi
|
|
|
|
done
|
2018-11-13 21:24:07 -06:00
|
|
|
|
2019-01-25 17:40:17 -06:00
|
|
|
if command -v go > /dev/null 2>&1; then
|
|
|
|
export PATH="$PATH:$HOME/.local/go/bin"
|
|
|
|
fi
|
|
|
|
|
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"
|
2019-01-05 16:17:25 -06:00
|
|
|
|
2019-01-22 12:38:55 -06:00
|
|
|
# Never gonna stop debugging
|
|
|
|
export DSK_LOG_FILELEVEL=-100
|
|
|
|
export DSK_LOG_PRINTLEVEL=-100
|
|
|
|
|
2019-01-05 16:17:25 -06:00
|
|
|
export DSK_DEFAULT_HOTKEYD="dsk_skip"
|
2019-01-04 21:31:56 -06:00
|
|
|
export DSK_DEFAULT_POLKITP="/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1"
|
|
|
|
export DSK_DEFAULT_POWERD="/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil"
|
2019-01-04 20:24:05 -06:00
|
|
|
export DSK_DEFAULT_WM="i3"
|
2018-12-08 19:28:23 -06:00
|
|
|
|
2018-11-13 21:24:07 -06:00
|
|
|
case "$HOSTNAME" in
|
2019-01-04 20:24:05 -06:00
|
|
|
vm-*)
|
|
|
|
# Disable compositing in VMs
|
|
|
|
export DSK_DEFAULT_COMPOSITOR="true"
|
2018-11-13 21:24:07 -06:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2018-12-19 22:50:43 -06:00
|
|
|
# Background setting
|
|
|
|
if command -v hsetroot > /dev/null 2>&1; then
|
2019-02-01 03:07:24 -06:00
|
|
|
hsetroot -solid "#383c4a" -tile "$HOME/.wptile" -center "$HOME/.wpcenter"
|
2018-12-19 22:50:43 -06:00
|
|
|
elif command -v nitrogen > /dev/null 2>&1; then
|
|
|
|
nitrogen --restore
|
|
|
|
fi
|
|
|
|
|
2018-12-09 13:02:49 -06:00
|
|
|
if [ -z "$DSK_FLAG_HASRESTARTED" ]; then
|
|
|
|
# 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
|
|
|
|
|