From 95a7b83b79f7302d351a7bda438aacda135e400c Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 30 Jul 2022 18:21:50 +0200 Subject: Added dtinit --- .local/bin/dtinit | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 .local/bin/dtinit (limited to '.local') diff --git a/.local/bin/dtinit b/.local/bin/dtinit new file mode 100755 index 0000000..dd3d249 --- /dev/null +++ b/.local/bin/dtinit @@ -0,0 +1,21 @@ +#!/bin/sh + +startif() { + pgrep "$1" >/dev/null || "$@" >/dev/null 2>&1 & +} + +pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1 +# "$HOME"/.local/bin/setwp +"$HOME"/.local/bin/kb +xset s off +xset -dpms +startif dunst +startif picom +startif lowbat +startif mpd-notification +startif xscreensaver --no-splash +# ekb +cd "$HOME" +xrdb "$HOME"/.config/x11/xresources +notify-send -u normal 'Welcome' " Welcome back, partner\!" +# dbus-launch dwm -- cgit v1.2.3 From a2949a4a3ed5539357f05f9715bcfdfbd20a859d Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 30 Jul 2022 20:06:22 +0200 Subject: rice --- .local/bin/dmlog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local') diff --git a/.local/bin/dmlog b/.local/bin/dmlog index 786d59b..a2e8458 100755 --- a/.local/bin/dmlog +++ b/.local/bin/dmlog @@ -88,7 +88,7 @@ sub action ' Farewell, partner!' ); sleep 2; - exec(SHUTDOWN_PATH, '-h', 'now'); + exec(SHUTDOWN_PATH, '-p', 'now'); } } return; -- cgit v1.2.3 From c02fdacac61796b1686636bec396fe5427c14626 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 31 Jul 2022 16:42:34 +0200 Subject: good CDE --- .local/bin/dtinit | 1 + 1 file changed, 1 insertion(+) (limited to '.local') diff --git a/.local/bin/dtinit b/.local/bin/dtinit index dd3d249..b583bb5 100755 --- a/.local/bin/dtinit +++ b/.local/bin/dtinit @@ -4,6 +4,7 @@ startif() { pgrep "$1" >/dev/null || "$@" >/dev/null 2>&1 & } +sysctl hw.snd.default_unit=4 pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1 # "$HOME"/.local/bin/setwp "$HOME"/.local/bin/kb -- cgit v1.2.3