summaryrefslogtreecommitdiff
path: root/.config/scripts
diff options
context:
space:
mode:
Diffstat (limited to '.config/scripts')
-rwxr-xr-x.config/scripts/date.sh2
-rwxr-xr-x.config/scripts/mute_mac_chime.sh12
-rwxr-xr-x.config/scripts/power_menu.sh25
3 files changed, 0 insertions, 39 deletions
diff --git a/.config/scripts/date.sh b/.config/scripts/date.sh
deleted file mode 100755
index bfa6f09e..00000000
--- a/.config/scripts/date.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-date +"%a %d"
diff --git a/.config/scripts/mute_mac_chime.sh b/.config/scripts/mute_mac_chime.sh
deleted file mode 100755
index a00c8e3e..00000000
--- a/.config/scripts/mute_mac_chime.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-# this needs to be ran as proper root (> su)
-
-# remove immutable flag
-chattr -i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
-
-# macos terminal uses BELL code (0x07) to audibly play system messages/warnings (such as the startup chime
-# that simply confirms POST was successful and lets everyone else in the room know as well) so set it to null
-printf "\x07\x00\x00\x00\x00" > /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
-
-# replace immutable flag
-chattr +i /sys/firmware/efi/efivars/SystemAudioVolume-7c436110-ab2a-4bbb-a880-fe41995c9f82
diff --git a/.config/scripts/power_menu.sh b/.config/scripts/power_menu.sh
deleted file mode 100755
index 5e76ee0a..00000000
--- a/.config/scripts/power_menu.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-# call this script in button/power function of /etc/acpi/default.sh
-
-OPTIONS="\uf023 lock\n
- \uf186 suspend\n
- \uf2f5 logout\n
- \uf011 shutdown\n
- \uf2f1 reboot\n"
-
-SELECTED=$(echo -e $OPTIONS |
- wofi -H 260 -d -p "power menu:" |
- awk '{print tolower($2)}')
-
-case $SELECTED in
- lock)
- swaylock;;
- suspend)
- loginctl suspend;;
- logout)
- swaymsg exit;;
- shutdown)
- openrc-shutdown -p now;;
- reboot)
- reboot;;
-esac