commit 30f1b45f9932096f74625fdc6e3fd55c52f937db parent 2241161bb346b43d99c217e76e60f92635cb2dad Author: hhvn <dev@hhvn.uk> Date: Sun, 2 Jan 2022 18:59:58 +0000 .s/cvrestart .s/d/restart: dwmbar restarting Diffstat:
D | .scripts/cvrestart | | | 6 | ------ |
A | .scripts/dwmbar/restart | | | 4 | ++++ |
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/.scripts/cvrestart b/.scripts/cvrestart @@ -1,6 +0,0 @@ -#!/bin/sh - -doas kill -9 $(ps aux | grep 'dwm[b]ar' | awk '{print $2}') - -cd ~/.scripts/dwmblocks -exec ./dwmbar >/dev/null 2>/dev/null & diff --git a/.scripts/dwmbar/restart b/.scripts/dwmbar/restart @@ -0,0 +1,4 @@ +#!/bin/rc + +doas kill `{pidof dwmbar} +dwmbar/dwmbar & >/dev/null >[2=1]