fix: fixed conflicts + moving to yadm

This commit is contained in:
2026-02-20 17:21:21 +03:00
parent 03128d0bcf
commit b5f443916b
553 changed files with 704 additions and 256 deletions

View File

@@ -0,0 +1,41 @@
#!/usr/bin/bash
menu_content() {
echo -en "\0message\x1f Power menu\n"
echo "󰌾 Lock session"
echo "󰒲 Sleep"
echo " Shutdown"
echo " Reboot"
echo "󰜺 Cancel"
}
handle_selection() {
case x"$@" in
x"󰌾 Lock session")
coproc ($HOME/.config/hypr/scripts/hyprlock.sh >/dev/null 2>&1)
;;
x"󰒲 Sleep")
systemctl sleep
;;
x" Shutdown")
shutdown now
;;
x" Reboot")
reboot
;;
x"󰜺 Cancel")
exit 0
;;
esac
}
if [ -n "$ROFI_RETV" ]; then
# ROFI_RETV=0 - show menu, ROFI_RETV=1 - selection made
if [ "$ROFI_RETV" -eq 0 ]; then
menu_content
elif [ "$ROFI_RETV" -eq 1 ]; then
handle_selection "$1"
fi
else
rofi -show quit -modi "quit:$0" -theme-str "inputbar {enabled: false;} window {height: 310px;}"
fi