?
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
c2ce8525ab
commit
22eac4d45f
4
homedir/.config/watchman/init.d/compton
Executable file
4
homedir/.config/watchman/init.d/compton
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
service_command='/bin/compton'
|
||||
service_args=( --vsync opengl -f -D 3 -e 1.0 )
|
4
homedir/.config/watchman/init.d/dunst
Executable file
4
homedir/.config/watchman/init.d/dunst
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
#service_respawn='true'
|
||||
service_command='/usr/bin/dunst'
|
4
homedir/.config/watchman/init.d/jackd
Executable file
4
homedir/.config/watchman/init.d/jackd
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/env watchman
|
||||
|
||||
service_command='/usr/bin/jackd'
|
||||
service_args=( -d alsa )
|
30
homedir/.config/watchman/init.d/lockd
Executable file
30
homedir/.config/watchman/init.d/lockd
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env ssm
|
||||
# vim: ft=sh
|
||||
|
||||
service_respawn='true'
|
||||
service_command="$HOME/bin/lockd"
|
||||
service_args=( i3lock-extra -s -o ~/pics/lock.png -g -p )
|
||||
|
||||
function _lock {
|
||||
kill -USR1 "$service_pid"
|
||||
}
|
||||
|
||||
function lock {
|
||||
status || {
|
||||
start; sleep 1
|
||||
"$0" "$service_name" lock
|
||||
return "$?"
|
||||
}
|
||||
|
||||
_lock
|
||||
}
|
||||
|
||||
function toggle {
|
||||
if status; then
|
||||
out=$( "$0" "$service_name" stop 2>&1 )
|
||||
notify-send "ssm" "$out"
|
||||
else
|
||||
out=$( "$0" "$service_name" start 2>&1 )
|
||||
notify-send "ssm" "$out"
|
||||
fi
|
||||
}
|
21
homedir/.config/watchman/init.d/moltenbar
Executable file
21
homedir/.config/watchman/init.d/moltenbar
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
#service_respawn='true'
|
||||
service_command='/home/fbt/bin/moltenbar'
|
||||
|
||||
service_depends_ready=( compton )
|
||||
|
||||
post_start() {
|
||||
# Die if the thing didn't start
|
||||
timer 5 nullexec xdo id -a moltenbar || return 1
|
||||
|
||||
# Set the layer on which lemonbar resides
|
||||
xdo above -t $( xdo id -n root ) $( xdo id -a moltenbar )
|
||||
|
||||
# Set the top badding for bspwm
|
||||
bspc config top_padding $(( 14 + 9 )) &>/tmp/debug.log
|
||||
}
|
||||
|
||||
pre_stop() {
|
||||
bspc config top_padding 0
|
||||
}
|
4
homedir/.config/watchman/init.d/mpc-notify
Executable file
4
homedir/.config/watchman/init.d/mpc-notify
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
#service_respawn='true'
|
||||
service_command="$HOME/bin/mpc-notify"
|
8
homedir/.config/watchman/init.d/mpd
Executable file
8
homedir/.config/watchman/init.d/mpd
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env ssm
|
||||
|
||||
service_tmpfiles=( "/run/user/$UID/mpd:dir" )
|
||||
# service_respawn=false
|
||||
service_command='/usr/bin/mpd'
|
||||
service_args=( --no-daemon -v )
|
||||
|
||||
post_start() { ready; }
|
21
homedir/.config/watchman/init.d/privoxy
Executable file
21
homedir/.config/watchman/init.d/privoxy
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
privoxy_configfile="$HOME/.config/privoxy/config"
|
||||
|
||||
service_respawn='true'
|
||||
service_command='/usr/bin/privoxy'
|
||||
service_args=( --no-daemon "$privoxy_configfile" )
|
||||
|
||||
privoxy::configtest() {
|
||||
"$service_command" --config-test "${service_args[@]}"
|
||||
}
|
||||
|
||||
restart() {
|
||||
privoxy::configtest || {
|
||||
watchman.err "Config test failed, not restarting!"
|
||||
return 1
|
||||
}
|
||||
|
||||
stop
|
||||
start
|
||||
}
|
14
homedir/.config/watchman/init.d/pulseaudio
Executable file
14
homedir/.config/watchman/init.d/pulseaudio
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/env watchman
|
||||
|
||||
service_depends=( jackd )
|
||||
|
||||
service_command='/usr/bin/pulseaudio'
|
||||
service_args=(
|
||||
--realtime=false
|
||||
--exit-idle-time=-1
|
||||
-L module-jack-sink
|
||||
-L module-jack-source
|
||||
-L module-native-protocol-tcp
|
||||
)
|
||||
|
||||
stop () { "$service_command" -k; }
|
5
homedir/.config/watchman/init.d/scron
Executable file
5
homedir/.config/watchman/init.d/scron
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env ssm
|
||||
|
||||
service_respawn='true'
|
||||
service_command='/usr/bin/crond'
|
||||
service_args=( -n -f ~/.config/crontab )
|
13
homedir/.config/watchman/init.d/socks
Executable file
13
homedir/.config/watchman/init.d/socks
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
[[ $PROXY_USER ]] || PROXY_USER='proxy'
|
||||
[[ $PROXY_HOST ]] || PROXY_HOST='malganis.priv'
|
||||
|
||||
service_respawn=true
|
||||
service_command=( /usr/bin/ssh -i ~/.ssh/proxy/id_ecdsa -ND 8080 "$PROXY_USER@$PROXY_HOST" )
|
||||
|
||||
function info {
|
||||
printf 'Name: %s\n' "$service_name"
|
||||
printf 'Command: %s\n' "${service_command[*]}"
|
||||
(( service_respawn )) && printf 'Respawn: yes\n'
|
||||
}
|
4
homedir/.config/watchman/init.d/ssh-agent
Executable file
4
homedir/.config/watchman/init.d/ssh-agent
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
service_command='/usr/bin/ssh-agent'
|
||||
service_args=( -d -a "/tmp/${USER}-ssh-auth.sock" )
|
5
homedir/.config/watchman/init.d/sxhkd
Executable file
5
homedir/.config/watchman/init.d/sxhkd
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
service_respawn='true'
|
||||
service_command='/usr/bin/sxhkd'
|
||||
service_reload_signal='USR1'
|
4
homedir/.config/watchman/init.d/syncthing
Executable file
4
homedir/.config/watchman/init.d/syncthing
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/env watchman
|
||||
|
||||
#service_respawn='true'
|
||||
service_command='/usr/bin/syncthing'
|
4
homedir/.config/watchman/init.d/transmission-daemon
Executable file
4
homedir/.config/watchman/init.d/transmission-daemon
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/env watchman
|
||||
|
||||
service_command='/usr/bin/transmission-daemon'
|
||||
service_args=( -f )
|
5
homedir/.config/watchman/init.d/ufwd
Executable file
5
homedir/.config/watchman/init.d/ufwd
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env watchman
|
||||
|
||||
#service_respawn='true'
|
||||
service_command='/usr/bin/ufwd'
|
||||
service_args=( -n -c -- -p )
|
Loading…
Reference in New Issue
Block a user