forked from Shinonome/dots-hyprland
stuff
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
plugged=0
|
||||
|
||||
swaybg -i images/wallpaper/wallpaper-cultured &
|
||||
|
||||
while true; do
|
||||
STATE=$(cat /sys/class/power_supply/BATT/status)
|
||||
if [[ "$STATE" = "Charging" ]]; then
|
||||
if [ "$plugged" -eq "0" ]; then
|
||||
plugged=1
|
||||
notify-send 'Aghh~~~~'
|
||||
play scripts/supersecretsettings/culture.mp3
|
||||
fi
|
||||
else
|
||||
plugged=0
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
cp ~/.config/hypr/hyprland.conf temporary_config.conf && cp temporary_config.conf ~/.config/hypr/hyprland.conf
|
||||
rm temporary_config.conf
|
||||
|
||||
pkill swaybg
|
||||
swaybg -i images/wallpaper/wallpaper-normal
|
||||
|
||||
kill $(pidof eww) && eww open bar && eww open bg-decor
|
||||
Reference in New Issue
Block a user