Concession: Move configs to here
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="KDE kdeinit"
|
||||
service_process="kdeinit5"
|
||||
service_kill_on_reload="false"
|
||||
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="KDE kded5"
|
||||
service_process="kded5"
|
||||
service_kill_on_reload="false"
|
||||
|
||||
start-extra() {
|
||||
kcminit
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="KDE ksmserver"
|
||||
service_process="ksmserver"
|
||||
service_flags="--no-lockscreen"
|
||||
service_kill_on_reload="false"
|
||||
|
||||
function start() {
|
||||
svc_log "Starting"
|
||||
svc_logstart kwrapper5 $service_process $service_flags
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="bspwm"
|
||||
service_process="bspwm"
|
||||
service_kill_on_reload="false"
|
||||
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="i3wm"
|
||||
service_process="i3"
|
||||
service_kill_on_reload="false"
|
||||
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Compton"
|
||||
service_process="compton"
|
||||
|
||||
function prestart-extra() {
|
||||
if [[ "$HOST" == "vm-*" ]]; then
|
||||
svc_log "Will not start: in a VM" 2
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Pulseaudio"
|
||||
service_process="pulseaudio"
|
||||
service_flags="--daemonize=no"
|
||||
service_kill_on_reload="false"
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Simple X Hotkey Daemon"
|
||||
service_process="sxhkd"
|
||||
|
||||
function prestart-extra() {
|
||||
if ! pgrep -U "$UID" bspwm > /dev/null 2>&1; then
|
||||
svc_log "Not under bspwm" 2
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Xfce Settings Daemon"
|
||||
service_process="xfsettingsd"
|
||||
service_kill_on_reload="false"
|
||||
|
||||
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Conky"
|
||||
service_process="conky"
|
||||
|
||||
function start() {
|
||||
for file in $XDG_CONFIG_HOME/conky/*.conf; do
|
||||
svc_log "Starting with config $file"
|
||||
svc_logstart conky -c $file
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
function start-extra() {
|
||||
for i in {1..100}; do
|
||||
if xprop -name "Conky" > /dev/null 2>&1; then break; fi
|
||||
sleep 0.01
|
||||
if (( $i > 99 )); then
|
||||
svc_log "Conky may spawn behind the current desktop" 2
|
||||
break
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Dunst"
|
||||
service_process="dunst"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="KDE Plasma Shell"
|
||||
service_process="plasmashell"
|
||||
|
||||
Executable
+46
@@ -0,0 +1,46 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Polybar"
|
||||
service_process="polybar"
|
||||
|
||||
function start() {
|
||||
# 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
|
||||
svc_log "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}')
|
||||
svc_log "Starting primary bar(s) on monitor $PB_MONITOR"
|
||||
svc_logstart polybar -r primary
|
||||
svc_logstart 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
|
||||
svc_log "Starting secondary bar(s) on monitor $monitor"
|
||||
PB_MONITOR=$monitor
|
||||
svc_logstart polybar -r secondary
|
||||
svc_logstart polybar -r secondary-2
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Xfce Desktop"
|
||||
service_process="xfdesktop"
|
||||
service_flags="-D"
|
||||
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Dropbox"
|
||||
service_process="dropbox"
|
||||
service_flags="start"
|
||||
service_kill_on_reload="false"
|
||||
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Redshift"
|
||||
service_process="redshift"
|
||||
service_kill_on_reload="false"
|
||||
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#! /usr/bin/env bash
|
||||
#
|
||||
# Simple wmstartup service
|
||||
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
||||
#
|
||||
# Distributed under terms of the MIT license.
|
||||
#
|
||||
|
||||
service_name="Syncthing"
|
||||
service_process="syncthing"
|
||||
service_kill_on_reload="false"
|
||||
service_flags="--no-browser"
|
||||
|
||||
Reference in New Issue
Block a user