diff --git a/eww/eww.yuck b/eww/eww.yuck index 90a9884..6b919bb 100644 --- a/eww/eww.yuck +++ b/eww/eww.yuck @@ -16,7 +16,7 @@ (label :text " " :class "space")) -(deflisten workspaces :initial "[]" "~/.config/eww/scripts/get-workspaces") +(deflisten workspaces :initial "[]" "~/.config/eww/scripts/get-workspaces.sh") (defwidget workspaces [monitor ?all] (box :space-evenly false :class "workspaces" (for workspace in workspaces @@ -24,20 +24,20 @@ (label :text {workspace.name}))))) -(deflisten window :initial "..." "~/.config/eww/scripts/get-window-title") +(deflisten window :initial "..." "~/.config/eww/scripts/get-window-title.sh") (defwidget window [] (box (label :text {window ?: ""}))) -(deflisten audio :initial "--" "~/.config/eww/scripts/get-audio") +(deflisten audio :initial "--" "~/.config/eww/scripts/get-audio.sh") (defwidget volume [] - (eventbox :cursor {audio.muted ? "pointer" : "row-resize"} :onscroll "~/.config/eww/scripts/adjust-volume {}" :onclick "pactl set-sink-mute @DEFAULT_SINK@ toggle" + (eventbox :cursor {audio.muted ? "pointer" : "row-resize"} :onscroll "~/.config/eww/scripts/adjust-volume.sh {}" :onclick "pactl set-sink-mute @DEFAULT_SINK@ toggle" (label_value :text {audio.muted ? "󰝟" : "󰕾"} :value "${audio.volume}%" :value_class {audio.muted ? "muted" : ""}))) (defwidget audio_source [] - (eventbox :onclick "~/.config/eww/scripts/swap-audio-source" :cursor "pointer" + (eventbox :onclick "~/.config/eww/scripts/swap-audio-source.sh" :cursor "pointer" (label :text {audio.source} :class "audio-info"))) (defwidget audio_sink [] - (eventbox :onclick "~/.config/eww/scripts/swap-audio-sink" :cursor "pointer" + (eventbox :onclick "~/.config/eww/scripts/swap-audio-sink.sh" :cursor "pointer" (label :text {audio.sink} :class "audio-info"))) @@ -53,7 +53,7 @@ (label_circle :text "" :value {EWW_CPU.avg})) (defvar combined_interface true) -(deflisten interfaces :initial '{}' "~/.config/eww/scripts/network-statistics-shell 5") +(deflisten interfaces :initial '{}' "~/.config/eww/scripts/network-statistics-shell.sh 5") (defwidget network_speed [label interface] (eventbox :onclick "${EWW_CMD} update combined_interface=${!combined_interface}" :cursor {interfaces?.[interface]?.up ? "pointer" : ""} (tooltip @@ -114,7 +114,7 @@ ;(defwidget colour_selector [] ;(clicker :text "" :command "uwsm-app -- hyprpicker -a")) (defwidget wallpaper [] - (clicker :text "󰸉" :command "~/.config/eww/scripts/wallpaper-shell")) + (clicker :text "󰸉" :command "~/.config/eww/scripts/wallpaper-shell.sh")) (defwidget sunset [] (clicker :text "" :command "python -OO ~/scripts/sunset.py")) (defvar docked false) @@ -122,13 +122,13 @@ (clicker :text {docked ? "󰌢" : "󰛧"} :command "${EWW_CMD} update docked=${!docked} ; hyprctl keyword monitor eDP-1,${docked ? "" : "disabled"}")) -(defpoll brightness :interval 60 "~/.config/eww/scripts/backlight get") +(defpoll brightness :interval 60 "~/.config/eww/scripts/backlight.sh get") (defwidget brightness [] - (eventbox :onscroll "~/.config/eww/scripts/backlight {}" :cursor "row-resize" + (eventbox :onscroll "~/.config/eww/scripts/backlight.sh {}" :cursor "row-resize" (label_value :text "󰌵" :value "${brightness}%"))) -(defpoll battery :interval 30 "~/.config/eww/scripts/get-battery") +(defpoll battery :interval 30 "~/.config/eww/scripts/get-battery.sh") (defwidget battery [] (label_value :text {battery.charging ? "󰂄" : battery.icon} :value "${battery.charge}%" :value_class {battery.charge < 30 ? "alert" : ""})) diff --git a/eww/scripts/adjust-volume b/eww/scripts/adjust-volume.sh similarity index 100% rename from eww/scripts/adjust-volume rename to eww/scripts/adjust-volume.sh diff --git a/eww/scripts/backlight b/eww/scripts/backlight.sh similarity index 100% rename from eww/scripts/backlight rename to eww/scripts/backlight.sh diff --git a/eww/scripts/get-audio-device-id b/eww/scripts/get-audio-device-id.sh similarity index 100% rename from eww/scripts/get-audio-device-id rename to eww/scripts/get-audio-device-id.sh diff --git a/eww/scripts/get-audio b/eww/scripts/get-audio.sh similarity index 100% rename from eww/scripts/get-audio rename to eww/scripts/get-audio.sh diff --git a/eww/scripts/get-battery b/eww/scripts/get-battery.sh similarity index 100% rename from eww/scripts/get-battery rename to eww/scripts/get-battery.sh diff --git a/eww/scripts/get-window-title b/eww/scripts/get-window-title.sh similarity index 100% rename from eww/scripts/get-window-title rename to eww/scripts/get-window-title.sh diff --git a/eww/scripts/get-workspaces b/eww/scripts/get-workspaces.sh similarity index 100% rename from eww/scripts/get-workspaces rename to eww/scripts/get-workspaces.sh diff --git a/eww/scripts/network-statistics-shell b/eww/scripts/network-statistics-shell.sh similarity index 100% rename from eww/scripts/network-statistics-shell rename to eww/scripts/network-statistics-shell.sh diff --git a/eww/scripts/network-statistics b/eww/scripts/network-statistics.py similarity index 100% rename from eww/scripts/network-statistics rename to eww/scripts/network-statistics.py diff --git a/eww/scripts/swap-audio-sink b/eww/scripts/swap-audio-sink.sh similarity index 100% rename from eww/scripts/swap-audio-sink rename to eww/scripts/swap-audio-sink.sh diff --git a/eww/scripts/swap-audio-source b/eww/scripts/swap-audio-source.sh similarity index 100% rename from eww/scripts/swap-audio-source rename to eww/scripts/swap-audio-source.sh diff --git a/eww/scripts/wallpaper-shell b/eww/scripts/wallpaper-shell.sh similarity index 100% rename from eww/scripts/wallpaper-shell rename to eww/scripts/wallpaper-shell.sh