a bunch of stuff, including upgrade to wayland and ndi streaming to imac
This commit is contained in:
16
scripts/change_charging_state.sh
Executable file
16
scripts/change_charging_state.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export XDG_RUNTIME_DIR="/run/user/$(id -u $SENDER_USER)"
|
||||
export WAYLAND_DISPLAY="wayland-0"
|
||||
ALERT_SCRIPT="sudo ./keyboard_alert.sh 2"
|
||||
|
||||
status=$1
|
||||
if [[ $status -eq 0 ]]; then
|
||||
dunstctl close-all
|
||||
notify-send "No mommy put it back pwp" -u low
|
||||
$ALERT_SCRIPT
|
||||
else
|
||||
dunstctl close-all
|
||||
notify-send "Thank you for plugging me mommy ~" -u low
|
||||
$ALERT_SCRIPT
|
||||
fi
|
||||
Reference in New Issue
Block a user