commit: a9568d387c5792bd6a98f168032e68c29f8cbd33
parent: 55518f0a30940da4de410fa510d49364d8a6c830
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 10 Nov 2019 01:45:34 +0100
.local/bin/locker: Import, add stopping the browsers
Diffstat:
3 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/.local/bin/locker b/.local/bin/locker
@@ -0,0 +1,18 @@
+#!/bin/sh
+export DISPLAY=${DISPLAY:-0}
+
+for i in ${BROWSER//:/ }
+do
+ killall -SIGSTOP $i
+done
+
+g810-led -a 00 ; g810-led -fx breathing logo 7f 0a
+
+${MY_LOCKER:-slock}
+
+for i in ${BROWSER//:/ }
+do
+ killall -SIGCONT $i
+done
+
+g810-led -pp < /home/haelwenn/.config/g810-led-profile
diff --git a/.local/bin/wl-run b/.local/bin/wl-run
@@ -4,8 +4,11 @@ export GDK_BACKEND=wayland
export QT_QPA_PLATFORM=wayland-egl
export CLUTTER_BACKEND=wayland
export SDL_VIDEODRIVER=wayland
+export MY_LOCKER=swaylock
[ -z "${XDG_RUNTIME_DIR}" ] && ( echo "$0"': Error: XDG_RUNTIME_DIR undefined, exiting…' 1>&2; exit 1 )
-[ -z "$@" ] && ( echo "$0"': Nothing to execute, exiting…' 1>&2; exit 0 )
+[ -z "$*" ] && ( echo "$0"': Nothing to execute, exiting…' 1>&2; exit 0 )
-"$@" >"${XDG_RUNTIME_DIR}"'/wl-run_'"$1"'_'"$$"'.log' 2>&1
+name="$(sed 's/[^a-z]//g' <<<$1)"
+
+"$@" >"${XDG_RUNTIME_DIR}"'/wl-run_'"$name"'_'"$$"'.log' 2>&1
diff --git a/.xinitrc b/.xinitrc
@@ -2,6 +2,7 @@ export GDK_BACKEND=x11
export QT_QPA_PLATFORM=xcb
#export CLUTTER_BACKEND=
#export SDL_VIDEODRIVER=
+export MY_LOCKER=slock
#setxkbmap \
# -layout us,ru \