too much shit to say

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
2019-10-03 12:03:31 +03:00
parent 7e99d071c0
commit dc36432cac
14 changed files with 156 additions and 161 deletions

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env watchman
#!/usr/bin/env ssm
service_command='/bin/compton'
service_args=( --vsync opengl -f -D 3 -e 1.0 )
service_command = /bin/compton --vsync -f -D 3 -e 1.0

View File

@@ -1,33 +1,24 @@
#!/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 )
service_respawn = always
service_command = "$HOME/bin/lockd" i3lock-extra -s -o ~/pics/lock.png -p -g -- -e -f
function do_notify {
declare output; var output
output = "$( "$@" )"
if output; then
notify-send "ssm ($service_name)" "$output"
fi
function pre_start {
notify-send 'ssm' "Starting $service_name; press again to lock."
}
function start_or_lock {
if status; then
notify-send 'ssm' "Starting $service_name"
start
if ! status; then
"$0" "$service_name" start
else
notify-send 'ssm' "Locking..."
kill -USR1 "$service_pid"
"$0" "$service_name" lock
fi
}
function toggle {
if status; then
do_notify "$0" "$service_name" stop
else
do_notify "$0" "$service_name" start
fi
function pre_lock { notify-send 'ssm' "Locking..."; }
function lock { kill -USR1 "$service_pid"; }
function pre_stop {
notify-send 'ssm' "Stopping $service_name"
}

View File

@@ -1,14 +1,10 @@
#!/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
service_command = '/usr/bin/pulseaudio' \
--exit-idle-time=-1 \
-L module-jack-sink \
-L module-jack-source \
-L module-native-protocol-tcp
)
stop () { "$service_command" -k; }
stop() { "$service_command" -k; }

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env ssm
service_respawn='true'
service_command='/usr/bin/crond'
service_args=( -n -f ~/.config/crontab )
service_respawn = always
service_command = /usr/bin/crond -n -f ~/.config/crontab

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env watchman
service_command='/usr/bin/ssh-agent'
service_args=( -d -a "/tmp/${USER}-ssh-auth.sock" )
service_args=( -d -a "/run/user/$UID/ssh-auth.sock" )

View File

@@ -1,5 +1,8 @@
#!/usr/bin/env watchman
service_respawn='true'
service_command='/usr/bin/sxhkd'
service_reload_signal='USR1'
service_workdir = "$HOME"
service_respawn = always
service_command = /usr/bin/sxhkd
service_reload_signal = USR1
service_cgroup_exclusive = 0

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env watchman
#!/usr/bin/env ssm
service_tmpfiles=( "/run/user/$UID/ufwd:dir" )
#service_respawn='true'
service_command='/usr/bin/ufwd'