feat(dwm+main): tools update

This commit is contained in:
Didier Slof 2023-02-20 16:47:39 +01:00
parent 172b107f10
commit 529e149d22
Signed by: didier
GPG key ID: 01E71F18AA4398E5
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.*
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