This repository has been archived on 2025-01-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
.bin
.config
audacious
autostart
conky
dconf
dsk
run
dskrc
dunst
firestarter
gtk-3.0
htop
i3
liferea
neofetch
polybar
pulse
qt5ct
rofi
syncthing-gtk
tint2
zim
compton.conf
dircolors
redshift.conf
user-dirs.dirs
user-dirs.locale
.firestarter
.ssh
.themes
.vim
.bashrc
.firestarterrc
.functions
.gitconfig
.gitmodules
.gtkrc-2.0
.inputrc
.kshrc
.profile
.vimrc
.xinitrc
.xsessionrc
.zshrc
home/.config/dsk/dskrc

64 lines
1.5 KiB
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="MATE"
for term in konsole mate-terminal lxterminal xfce4-terminal urxvt xterm; do
if command -v "$term" > /dev/null 2>&1; then
export TERMINAL="$term"
break
fi
done
if command -v go > /dev/null 2>&1; then
export PATH="$PATH:$HOME/.local/go/bin"
fi
export DSK_FLAG_MASK=""
export DSK_CURRENT_DESKTOP="$DSK_NAME"
# Never gonna stop debugging
export DSK_LOG_FILELEVEL=-100
export DSK_LOG_PRINTLEVEL=-100
export DSK_DEFAULT_HOTKEYD="dsk_skip"
export DSK_DEFAULT_POLKITP="/usr/lib/x86_64-linux-gnu/polkit-mate/polkit-mate-authentication-agent-1"
#export DSK_DEFAULT_POWERD="/usr/lib/x86_64-linux-gnu/libexec/org_kde_powerdevil"
export DSK_DEFAULT_WM="i3"
case "$HOSTNAME" in
vm-*)
# Disable compositing in VMs
export DSK_DEFAULT_COMPOSITOR="dsk_skip"
;;
*)
;;
esac
# Background setting
if [ -f "~/.fehbg" ] && command -v feh; then
~/.fehbg &
elif command -v nitrogen > /dev/null 2>&1; then
nitrogen --restore &
elif command -v hsetroot > /dev/null 2>&1; then
hsetroot -solid "#383c4a" -tile "$HOME/.wptile" -center "$HOME/.wpcenter" &
fi
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