feat(dwm+main): tools update

This commit is contained in:
Strix 2023-10-14 22:38:07 +02:00
parent 1d134f5d27
commit c9a3d852f5
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
3 changed files with 21 additions and 5 deletions

View file

@ -27,6 +27,10 @@ done &
nm-applet &
mate-volume-control-status-icon &
flameshot &
feh -z -Z --bg-scale /home/didier/Pictures/background.png
feh -z -Z --bg-scale $HOME/Pictures/background.*
exec dwm >/dev/null
touch /tmp/restart-dwm
while [ -f /tmp/restart-dwm ]; do
exec dwm >/dev/null
rm -rf /tmp/restart-dwm
done

View file

@ -27,9 +27,15 @@ git apply -3 /tmp/dwm-systray.diff
$SUDO make install
popd
# start script
chmod +x ./files/dwm/dwm-start.sh
# dwm boot/manage scripts
chmod +x ./files/dwm/*.sh
$SUDO cp ./files/dwm/dwm-start.sh /usr/local/bin/dwm-start
$SUDO cp ./files/dwm/dwm-sync.sh /usr/local/bin/dwm-sync
# DM entry
$SUDO cp ./files/dwm/dwm.desktop /usr/share/xsessions/dwm.desktop
# background
rm -rf $HOME/Pictures/background.*
curl https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/i/9757d496-239b-46c5-baea-6873cbfe9b3d/ddkbeml-015b05e6-6f8f-471e-a3a4-1c4360127ea6.jpg -o $HOME/Pictures/background.jpg

View file

@ -6,7 +6,13 @@ PM=${PM:-pacman}
PM_INSTALL=${PM_INSTALL:--S}
PM_NOCONFIRM=${PM_NOCONFIRM:---noconfirm}
set -e
main() {
if [ ! -z "$@" ]; then
. ./scripts/$@
exit 0
fi
for script in ./scripts/* ; do
echo "# exec $script"
. $script