refactor: use relative script paths in eww.yuck
This is apparently something EWW supports.
This commit is contained in:
parent
d8da49460e
commit
f30e0773cc
1 changed files with 10 additions and 10 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
;; Window Info
|
;; Window Info
|
||||||
|
|
||||||
(deflisten window :initial "{}"
|
(deflisten window :initial "{}"
|
||||||
"~/.config/eww/scripts/active-window")
|
"scripts/active-window")
|
||||||
|
|
||||||
(defwidget bar_window [class-limit title-limit]
|
(defwidget bar_window [class-limit title-limit]
|
||||||
(box :class "bar-window"
|
(box :class "bar-window"
|
||||||
|
|
@ -21,9 +21,9 @@
|
||||||
;; Workspaces
|
;; Workspaces
|
||||||
|
|
||||||
(deflisten workspaces :initial "[]"
|
(deflisten workspaces :initial "[]"
|
||||||
"~/.config/eww/scripts/get-workspaces")
|
"scripts/get-workspaces")
|
||||||
(deflisten current_workspace :initial "1"
|
(deflisten current_workspace :initial "1"
|
||||||
"~/.config/eww/scripts/get-active-workspace")
|
"scripts/get-active-workspace")
|
||||||
|
|
||||||
(defwidget bar_workspace_button [workspace]
|
(defwidget bar_workspace_button [workspace]
|
||||||
(eventbox :onclick "hyprctl dispatch workspace ${workspace.id}"
|
(eventbox :onclick "hyprctl dispatch workspace ${workspace.id}"
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
(label :text "${workspace.id}")))))
|
(label :text "${workspace.id}")))))
|
||||||
|
|
||||||
(defwidget bar_workspaces []
|
(defwidget bar_workspaces []
|
||||||
(eventbox :onscroll "~/.config/eww/scripts/change-active-workspace {} ${current_workspace}"
|
(eventbox :onscroll "scripts/change-active-workspace {} ${current_workspace}"
|
||||||
(box :class "bar-workspaces"
|
(box :class "bar-workspaces"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:space-evenly true
|
:space-evenly true
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
;; Playerctl
|
;; Playerctl
|
||||||
|
|
||||||
(deflisten mpris :initial "{}"
|
(deflisten mpris :initial "{}"
|
||||||
"~/.config/eww/scripts/mpris-metadata")
|
"scripts/mpris-metadata")
|
||||||
|
|
||||||
(defwidget bar_music [width artist-limit title-limit]
|
(defwidget bar_music [width artist-limit title-limit]
|
||||||
(eventbox :onclick "playerctl play-pause"
|
(eventbox :onclick "playerctl play-pause"
|
||||||
|
|
@ -130,7 +130,7 @@
|
||||||
|
|
||||||
(defvar volume_reveal false)
|
(defvar volume_reveal false)
|
||||||
(deflisten volume :initial "0"
|
(deflisten volume :initial "0"
|
||||||
"~/.config/eww/scripts/volume")
|
"scripts/volume")
|
||||||
|
|
||||||
(defwidget bar_volume []
|
(defwidget bar_volume []
|
||||||
(bar_scale :class "bar-volume ${volume.muted ? "muted" : ""}"
|
(bar_scale :class "bar-volume ${volume.muted ? "muted" : ""}"
|
||||||
|
|
@ -147,7 +147,7 @@
|
||||||
|
|
||||||
(defvar brightness_reveal false)
|
(defvar brightness_reveal false)
|
||||||
(deflisten brightness :initial "0"
|
(deflisten brightness :initial "0"
|
||||||
"~/.config/eww/scripts/brightness")
|
"scripts/brightness")
|
||||||
|
|
||||||
(defwidget bar_brightness []
|
(defwidget bar_brightness []
|
||||||
(bar_scale :class "bar-brightness"
|
(bar_scale :class "bar-brightness"
|
||||||
|
|
@ -208,11 +208,11 @@
|
||||||
;; Network
|
;; Network
|
||||||
|
|
||||||
(defpoll wifi :interval "5s" :initial "{}"
|
(defpoll wifi :interval "5s" :initial "{}"
|
||||||
"~/.config/eww/scripts/network 802-11-wireless")
|
"scripts/network 802-11-wireless")
|
||||||
(defpoll ethernet :interval "5s" :initial "{}"
|
(defpoll ethernet :interval "5s" :initial "{}"
|
||||||
"~/.config/eww/scripts/network 802-3-ethernet")
|
"scripts/network 802-3-ethernet")
|
||||||
(defpoll bluetooth :interval "5s" :initial "{}"
|
(defpoll bluetooth :interval "5s" :initial "{}"
|
||||||
"~/.config/eww/scripts/network bluetooth")
|
"scripts/network bluetooth")
|
||||||
|
|
||||||
(defvar internet_reveal false)
|
(defvar internet_reveal false)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue