From 85acf40be916d0ffcc085cde6e3893ea9bdfff2d Mon Sep 17 00:00:00 2001 From: DrNuget Date: Fri, 17 Jan 2025 11:14:28 +0200 Subject: dwl scripts --- .scripts/update-bg | 9 +++++++++ .scripts/wm | 14 ++++++++++++++ .scripts/wm-config | 6 ++++++ 3 files changed, 29 insertions(+) create mode 100755 .scripts/update-bg create mode 100755 .scripts/wm create mode 100755 .scripts/wm-config diff --git a/.scripts/update-bg b/.scripts/update-bg new file mode 100755 index 0000000..2612931 --- /dev/null +++ b/.scripts/update-bg @@ -0,0 +1,9 @@ +#!/bin/sh + +echo $# +if [ $# -ne 0 ]; then + export WALLPAPER=$1 +fi + +pkill swaybg +swaybg -i $WALLPAPER > /dev/null 2> /dev/null & diff --git a/.scripts/wm b/.scripts/wm new file mode 100755 index 0000000..6fe8608 --- /dev/null +++ b/.scripts/wm @@ -0,0 +1,14 @@ +#!/bin/sh + +export XDG_CURRENT_DESKTOP=wlroots + +clock() { + while :; do + time="$(date +%d.%m.%Y\ %H.%M)" + mem=$(free -h | awk '/^Mem:/ {print $3"/"$2}') + echo " ^fg(20ccff)MEM^fg() $mem | 📅 $time " + sleep 60 + done +} + +clock | dbus-run-session dwl -s "~/.scripts/wm-config" diff --git a/.scripts/wm-config b/.scripts/wm-config new file mode 100755 index 0000000..58123ea --- /dev/null +++ b/.scripts/wm-config @@ -0,0 +1,6 @@ +#!/bin/sh + +dbus-update-environment WAYLAND_DISPLAY +dbus-update-activation-environment WAYLAND_DISPLAY $XDG_CURRENT_DESKTOP + +~/.scripts/update-bg -- cgit v1.2.3