eww: add new tiles to control-center, new notification popup, new styles for a lot of widgets

This commit is contained in:
retrozinndev
2025-01-07 16:26:20 -03:00
parent 435b222e03
commit c505ecf4cf
43 changed files with 802 additions and 319 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Removes notification from popup by id provided
# in arg1.
# ---------
# Licensed under the MIT License
# Made by retrozinndev (João Dias)
# From https://github.com/retrozinndev/Hyprland-Dots
if ! [[ $1 == "" ]]; then
json_popup_notifications=$(eww get json_popup_notifications)
if [[ $(eww get json_popup_notifications | jq -c '.notifications | length') == 1 ]]; then
sh $HOME/.config/eww/scripts/eww-window.sh close floating-notifications >> /dev/null
fi
eww update "json_popup_notifications=$(echo $json_popup_notifications | jq -c "del(.notifications[] | select(.id.data == $1))")"
exit 0
fi
echo "[error] Notification Id not provided!"
exit 1