normal update

This commit is contained in:
RafayAhmad7548 2025-10-25 21:04:55 +05:00
parent 3cd3e38358
commit 9ecd9a7cc2
4 changed files with 18 additions and 10 deletions

View file

@ -17,7 +17,7 @@ exec-once = waybar
exec-once = clipse -listen exec-once = clipse -listen
exec-once = swaync exec-once = swaync
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = /home/rafayahmad/eww/target/release/eww daemon exec-once = eww daemon
exec-once = hyprpaper && ~/dotfiles/scripts/currentWallpaperHyprlock.sh exec-once = hyprpaper && ~/dotfiles/scripts/currentWallpaperHyprlock.sh
exec-once = /home/rafayahmad/dotfiles/scripts/brightnessWidget.sh exec-once = /home/rafayahmad/dotfiles/scripts/brightnessWidget.sh
@ -120,7 +120,7 @@ master {
gestures { gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more # See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = on gesture = 3, horizontal, workspace
} }
misc { misc {

View file

@ -52,7 +52,8 @@
"widgets": [ "widgets": [
"inhibitors", "inhibitors",
"title", "title",
"dnd", "buttons-grid",
"mpris",
"notifications" "notifications"
], ],
"widget-config": { "widget-config": {
@ -81,11 +82,18 @@
"buttons-grid": { "buttons-grid": {
"actions": [ "actions": [
{ {
"label": "", "label": "󰤨",
"type": "toggle", "type": "toggle",
"active": true, "active": true,
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'", "command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && nmcli radio wifi on || nmcli radio wifi off'",
"update-command": "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'" "update-command": "sh -c '[[ $(nmcli radio wifi) == \"enabled\" ]] && echo true || echo false'"
},
{
"label": "󰂯",
"type": "toggle",
"active": true,
"command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && rfkill unblock bluetooth || rfkill block bluetooth'",
"update-command": "sh -c '[[ $(rfkill list bluetooth | grep -c \"Soft blocked: no\") -eq 1 ]] && echo true || echo false'"
} }
] ]
} }

View file

@ -3,20 +3,20 @@
while true; do while true; do
while "$(cat /home/rafayahmad/dotfiles/.config/eww/brightnessShow)"; do while "$(cat /home/rafayahmad/dotfiles/.config/eww/brightnessShow)"; do
activeWindows=$(/home/rafayahmad/eww/target/release/eww active-windows) activeWindows=$(eww active-windows)
if [[ "$activeWindows" != *"brightnessWin"* ]] ; then if [[ "$activeWindows" != *"brightnessWin"* ]] ; then
echo "opening" echo "opening"
/home/rafayahmad/eww/target/release/eww open brightnessWin eww open brightnessWin
fi fi
echo false > /home/rafayahmad/.config/eww/brightnessShow echo false > /home/rafayahmad/.config/eww/brightnessShow
sleep 1 sleep 1
done done
activeWindows=$(/home/rafayahmad/eww/target/release/eww active-windows) activeWindows=$(eww active-windows)
if [[ "$activeWindows" == *"brightnessWin"* ]] ; then if [[ "$activeWindows" == *"brightnessWin"* ]] ; then
echo "closing" echo "closing"
/home/rafayahmad/eww/target/release/eww close brightnessWin eww close brightnessWin
fi fi
done done

View file

@ -1,2 +1,2 @@
2025-08-13 2025-10-25
45 10