wmstartup: Add more services, move service logic out of common.bash

This commit is contained in:
2018-08-27 11:51:06 -05:00
parent 188961da25
commit c0b14dba2d
9 changed files with 70 additions and 26 deletions

View File

@@ -11,10 +11,6 @@ service_name="Polybar"
service_process="polybar"
function start() {
if ! prestart; then
svc_log "Failed pre-start checks"
return 1
fi
export PB_MONITOR=$(xrandr -q | awk '/primary/{print $1}')
svc_log "Starting primary on monitor $PB_MONITOR"
polybar -r primary& > /dev/null 2>&1