fix paths

This commit is contained in:
willifan 2024-06-03 12:33:33 +02:00
parent 494d70558c
commit 6d2081b0c9
7 changed files with 11 additions and 11 deletions

2
.gitignore vendored
View file

@ -1,4 +1,4 @@
scripts/clients/build/
ewwScripts/clients/build/
.vscode/
# Added by cargo

View file

@ -6,3 +6,4 @@ edition = "2021"
[dependencies]
serde = "1.0.199"
serde_json = "1.0.116"
hyprland = "0.3.13"

View file

@ -1,25 +1,25 @@
(deflisten brightnessValue
:initial "0"
`../scripts/brightness.sh`)
`../ewwScripts/brightness.sh`)
(deflisten network
:initial '{"name":"No Connection","image":"n.A."}'
`../scripts/network.sh`)
`../ewwScripts/network.sh`)
(deflisten workspaces
:initial ''
`../scripts/client`)
`../ewwScripts/client`)
(defpoll bluetooth
:initial '{"name":"","battery":"0"}'
:interval "2s"
`../scripts/bluetooth.sh`)
`../ewwScripts/bluetooth.sh`)
(deflisten volume
:initial '{"volume":"0","muted":"0"}'
`../scripts/volume.sh`)
`../ewwScripts/volume.sh`)
(defpoll media
:initial '{"status":"","name":""}'
:interval "2s"
`../scripts/media.sh`)
`../ewwScripts/media.sh`)

BIN
ewwScripts/client Executable file

Binary file not shown.

View file

@ -99,7 +99,8 @@ void generateIconMap()
//TODO unjank
std::string cmd ="cd /home/willifan/.config/eww/scripts/ && ./test.sh ";
std::string test = std::string("cd /home/willifan/.config/eww/scripts/ && ./test.sh ") + initClass + " " + pid;
std::string test = std::string("cd /home/willifan/.config/desktop-utils/ewwScripts && ./test.sh ") + initClass + " " + pid;
std::cout << test << std::endl;
iconMap[client["address"]] = command(test);

View file

@ -20,9 +20,7 @@ while read -r k n h v s t; do
((i=i+1))
done < <(hyprctl monitors -j | jq -r '.[]|"\(.id) \(.name) \(.width) \(.height) \(.scale) \(.transform)"')
echo -n "" > "$XDG_CONFIG_HOME"/eww/bar.yuck
eww close-all
eww close-all --config ../eww
sleep 2

Binary file not shown.