1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 15:01:59 +01:00

added todo and some eww scripts

This commit is contained in:
eoli3n 2023-11-08 20:50:11 +01:00
parent 5b870c787e
commit 8fff6bd408
4 changed files with 24 additions and 0 deletions

4
roles/eww/TODO Normal file

@ -0,0 +1,4 @@
# sway widget
- get-window-title : https://wiki.hyprland.org/Useful-Utilities/Status-Bars/#eww
- multi-monitor
- resize mode

13
roles/eww/files/get-outputs Executable file

@ -0,0 +1,13 @@
#!/bin/bash
function run() {
swaymsg -t get_outputs | jq -rc 'to_entries | map({name: .value.name, id: .key, active: .value.active})'
}
run
swaymsg -t subscribe '["workspace"]' --monitor | {
while read -r; do
run
done
}

5
roles/eww/files/start-eww Executable file

@ -0,0 +1,5 @@
#!/bin/bash
EWW="$HOME/dev/eww/target/release/eww"
$EWW --restart daemon
$EWW open bartop

@ -41,3 +41,5 @@
dest: "$HOME/.config/eww/scripts"
loop:
- get-workspaces
- get-outputs
- start-eww