From 0c233bf494d5d19acc6f5e65cae6d2f4a34d0a60 Mon Sep 17 00:00:00 2001 From: Breizh Date: Wed, 5 Feb 2020 19:30:25 +0100 Subject: [PATCH] Ajout de scripts --- .local/bin/screensaver | 5 +++++ .local/bin/space-cadet | 9 +++++++++ .local/bin/toggle-beep | 13 +++++++++++++ 3 files changed, 27 insertions(+) create mode 100755 .local/bin/screensaver create mode 100755 .local/bin/space-cadet create mode 100755 .local/bin/toggle-beep diff --git a/.local/bin/screensaver b/.local/bin/screensaver new file mode 100755 index 0000000..ed1d34e --- /dev/null +++ b/.local/bin/screensaver @@ -0,0 +1,5 @@ +#!/bin/bash + +echo +neofetch --off --disable cols --disable term --stdout +mpc current diff --git a/.local/bin/space-cadet b/.local/bin/space-cadet new file mode 100755 index 0000000..086855d --- /dev/null +++ b/.local/bin/space-cadet @@ -0,0 +1,9 @@ +#!/bin/bash + +cvlc --loop "$HOME/.wine/drive_c/Maxis/FullTilt/CADET/SOUND/TABA1.MID" & +pid=$! + +wine .wine/drive_c/Maxis/FullTilt/CADET/CADET.EXE +kill $pid +timeout 2 wait $pid || kill -9 $pid + diff --git a/.local/bin/toggle-beep b/.local/bin/toggle-beep new file mode 100755 index 0000000..1c4ebcd --- /dev/null +++ b/.local/bin/toggle-beep @@ -0,0 +1,13 @@ +#!/bin/bash + +dunstid=$(sum <</dev/null + sleep .5 + dunstify -u low -r "$dunstid" Beep Activé +else + dunstify -u low -r "$dunstid" Beep Désactivé +fi