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:
parent
5b870c787e
commit
8fff6bd408
4
roles/eww/TODO
Normal file
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
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
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"
|
dest: "$HOME/.config/eww/scripts"
|
||||||
loop:
|
loop:
|
||||||
- get-workspaces
|
- get-workspaces
|
||||||
|
- get-outputs
|
||||||
|
- start-eww
|
||||||
|
Loading…
Reference in New Issue
Block a user