.dsk: Migrate to DSK (hopefully)
This commit is contained in:
21
.config/dsk/dskrc
Normal file
21
.config/dsk/dskrc
Normal file
@@ -0,0 +1,21 @@
|
||||
#! /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"
|
||||
|
||||
case "$HOSTNAME" in
|
||||
dsk-cstm-0)
|
||||
export PB_MODULE_ETH_INTERFACE=eno1
|
||||
export PB_MODULE_WLAN_INTERFACE=wlp5s0
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
2
.config/dsk/run/compton
Executable file
2
.config/dsk/run/compton
Executable file
@@ -0,0 +1,2 @@
|
||||
[[ "$HOST" == "vm-*" ]] && exit 0
|
||||
compton
|
1
.config/dsk/run/conky
Executable file
1
.config/dsk/run/conky
Executable file
@@ -0,0 +1 @@
|
||||
conky
|
1
.config/dsk/run/dropbox
Executable file
1
.config/dsk/run/dropbox
Executable file
@@ -0,0 +1 @@
|
||||
dropbox start
|
1
.config/dsk/run/dunst
Executable file
1
.config/dsk/run/dunst
Executable file
@@ -0,0 +1 @@
|
||||
dunst
|
1
.config/dsk/run/i3wm
Executable file
1
.config/dsk/run/i3wm
Executable file
@@ -0,0 +1 @@
|
||||
i3
|
2
.config/dsk/run/kded5
Executable file
2
.config/dsk/run/kded5
Executable file
@@ -0,0 +1,2 @@
|
||||
kded5
|
||||
kcminit
|
1
.config/dsk/run/kdeinit5
Executable file
1
.config/dsk/run/kdeinit5
Executable file
@@ -0,0 +1 @@
|
||||
kdeinit5
|
2
.config/dsk/run/nitrogen
Executable file
2
.config/dsk/run/nitrogen
Executable file
@@ -0,0 +1,2 @@
|
||||
which nitrogen > /dev/null 2>&1 || exit 0
|
||||
nitrogen --restore
|
1
.config/dsk/run/polkit-kde
Executable file
1
.config/dsk/run/polkit-kde
Executable file
@@ -0,0 +1 @@
|
||||
usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1
|
31
.config/dsk/run/polybar
Executable file
31
.config/dsk/run/polybar
Executable file
@@ -0,0 +1,31 @@
|
||||
# Make sure we have our xrdb stuff going
|
||||
if $(which xrdbupdate) > /dev/null 2>&1; then
|
||||
xrdbupdate > /dev/null 2>&1
|
||||
fi
|
||||
# Set some variables, if necessary
|
||||
if [[ "$PB_BAR_BORDER_SIZE" == "" ]] && pgrep -U "$UID" bspwm > /dev/null 2>&1; then
|
||||
if ! [[ "$BSPWM_WINDOW_GAP" == "" ]]; then
|
||||
echo "Inferring bar size from BSPWM_WINDOW_GAP"
|
||||
export PB_BAR_BORDER_SIZE="$BSPWM_WINDOW_GAP"
|
||||
fi
|
||||
fi
|
||||
if pgrep -U "$UID" i3 > /dev/null 2>&1; then
|
||||
export PB_WM_RESTACK="i3"
|
||||
fi
|
||||
# Spawn bars on the primary monitor
|
||||
export PB_MONITOR=$(xrandr -q | awk '/primary/{print $1}')
|
||||
polybar -r primary &
|
||||
polybar -r primary-2 &
|
||||
|
||||
# Spawn more for each secondary
|
||||
export secondary_monitors=$(xrandr -q | grep ' connected' | grep -v 'primary' | awk '{print $1}')
|
||||
if [[ "$secondary_monitors" == "" ]]; then
|
||||
return 0
|
||||
fi
|
||||
for monitor in $secondary_monitors; do
|
||||
PB_MONITOR=$monitor
|
||||
polybar -r secondary &
|
||||
polybar -r secondary-2 &
|
||||
done
|
||||
return 0
|
||||
wait
|
1
.config/dsk/run/pulseaudio
Executable file
1
.config/dsk/run/pulseaudio
Executable file
@@ -0,0 +1 @@
|
||||
pulseaudio --daemonize=no
|
1
.config/dsk/run/redshift
Executable file
1
.config/dsk/run/redshift
Executable file
@@ -0,0 +1 @@
|
||||
redshift
|
1
.config/dsk/run/syncthing
Executable file
1
.config/dsk/run/syncthing
Executable file
@@ -0,0 +1 @@
|
||||
syncthing --no-browser
|
4
.config/dsk/run/xrdbupdate
Executable file
4
.config/dsk/run/xrdbupdate
Executable file
@@ -0,0 +1,4 @@
|
||||
[ -r ~/.Xresources ] && xrdb ~/.Xresources
|
||||
for file in $XDG_CONFIG_HOME/xrdb/*.xresources; do
|
||||
[ -r "$file" ] && xrdb -merge "$file"
|
||||
done
|
4
.config/dsk/run/xset
Executable file
4
.config/dsk/run/xset
Executable file
@@ -0,0 +1,4 @@
|
||||
# No bell
|
||||
xset -b
|
||||
# No screen blanking
|
||||
xset s off
|
Reference in New Issue
Block a user