aboutsummaryrefslogtreecommitdiff
path: root/roles/home/desktop/eww/windows
diff options
context:
space:
mode:
Diffstat (limited to 'roles/home/desktop/eww/windows')
-rw-r--r--roles/home/desktop/eww/windows/default.yuck2
-rw-r--r--roles/home/desktop/eww/windows/music.yuck71
-rw-r--r--roles/home/desktop/eww/windows/net.yuck38
-rw-r--r--roles/home/desktop/eww/windows/sys.yuck84
4 files changed, 126 insertions, 69 deletions
diff --git a/roles/home/desktop/eww/windows/default.yuck b/roles/home/desktop/eww/windows/default.yuck
new file mode 100644
index 0000000..77e8cf3
--- /dev/null
+++ b/roles/home/desktop/eww/windows/default.yuck
@@ -0,0 +1,2 @@
+(include "./windows/sys.yuck")
+(include "./windows/music.yuck")
diff --git a/roles/home/desktop/eww/windows/music.yuck b/roles/home/desktop/eww/windows/music.yuck
index 91ee05f..f6cf02b 100644
--- a/roles/home/desktop/eww/windows/music.yuck
+++ b/roles/home/desktop/eww/windows/music.yuck
@@ -8,79 +8,12 @@
: "0px"
}
:y { gaps == "true" ? "-8px" : "2px" }
- :height {128 + 16}
+ :width 512
:anchor { pos == "right" ? "bottom right" : "bottom center" }
)
:stacking "fg"
:windowtype "dock"
:wm-ignore true
- (box :class "main"
- :orientation "h"
- :spacing 8
- :space-evenly false
- :height {128 + 16}
-
- (image
- :path song-cover
- :image-width 128
- :image-height 128
- )
-
- (box :class "left"
- :orientation "v"
- :spacing 0
- :space-evenly true
- :hexpand true
-
- (box :class "info"
- :orientation "v"
- :space-evenly false
- :valign "center"
-
- (label :class "song-title"
- :text {song.title}
- :halign "start"
- )
- (label :class "song-album"
- :text {song.album}
- :halign "start"
- )
- (label :class "song-artist"
- :text {song.artist}
- :halign "start"
- )
- )
-
- (box :class "control"
- :space-evenly false
- :halign "center"
- :valign "end"
-
- (button
- :onclick `playerctl --player=cmus,firefox,%any previous`
- "󰒮"
- )
- (button
- :onclick `playerctl --player=cmus,firefox,%any play-pause`
- { song.status == "Playing" ? "󰏤" : "󰐊" }
- )
- (button
- :onclick `playerctl --player=cmus,firefox,%any next`
- "󰒭"
- )
-
- ; Offset controls to center of screen
- (box :width {128 + 8})
- )
- )
- )
-)
-
-(deflisten song-cover
- `playerctl --player=cmus,firefox,%any -F metadata title | get-album-art`
-)
-
-(deflisten song
- `playerctl --player=cmus,firefox,%any -F metadata --format='{"title": "{{title}}", "album": "{{album}}", "artist": "{{artist}}", "status": "{{status}}"}'`
+ (music)
) \ No newline at end of file
diff --git a/roles/home/desktop/eww/windows/net.yuck b/roles/home/desktop/eww/windows/net.yuck
new file mode 100644
index 0000000..b1e9792
--- /dev/null
+++ b/roles/home/desktop/eww/windows/net.yuck
@@ -0,0 +1,38 @@
+(box :class "panel"
+ :orientation "v"
+ :spacing 8
+ :space-evenly true
+ :height {100+16}
+ :width {(100+8)*3+8}
+
+ (graph
+ :value {net.rx}
+ :thickness 2
+ :time-range "30s"
+ :min 0
+ :max 100
+ :dynamic true
+ :line-style "round"
+ )
+
+ {"Download: " + round(net.rx/1024/1024, 2) + " MiB/s (peak: " + round(net.rx_peak/1024/1024, 2) + " MiB/s)"}
+
+ (graph
+ :value {net.tx}
+ :thickness 2
+ :time-range "30s"
+ :min 0
+ :max 100
+ :dynamic true
+ :line-style "round"
+ )
+
+ {"Upload: " + round(net.tx/1024/1024, 2) + " MiB/s (peak: " + round(net.tx_peak/1024/1024, 2) + " MiB/s)"}
+ )
+
+
+
+
+(deflisten net
+ `/home/c/net.sh`
+) \ No newline at end of file
diff --git a/roles/home/desktop/eww/windows/sys.yuck b/roles/home/desktop/eww/windows/sys.yuck
new file mode 100644
index 0000000..a84e5aa
--- /dev/null
+++ b/roles/home/desktop/eww/windows/sys.yuck
@@ -0,0 +1,84 @@
+(defwindow sys
+ ;:monitor "<primary>"
+ :monitor "DisplayPort-1"
+ :geometry (geometry
+ :x "0px"
+ :y "0px"
+ :anchor "center"
+ )
+ :stacking "fg"
+ :windowtype "dialog"
+ :wm-ignore false
+
+ (box :class "main"
+ :orientation "v"
+ :spacing 8
+ :space-evenly false
+
+ (bar)
+
+ (box
+ :orientation "h"
+ :spacing 8
+ :space-evenly false
+
+ (box
+ :orientation "v"
+ :spacing 8
+ :space-evenly false
+
+ (disks)
+
+ (box
+ :orientation "h"
+ :spacing 8
+ :space-evenly false
+
+ (zfs)
+
+ (box :class "unpadded panel"
+ (image
+ :path "/home/c/Pictures/suit ryo.png"
+ :image-width 134
+ )
+ )
+ )
+
+ (centerbox :class "panel"
+ (image
+ :path "/home/c/Pictures/car.png"
+ :image-height 13
+ )
+
+ "silly zone :3"
+
+ (image
+ :path "/home/c/Pictures/car.png"
+ :image-height 13
+ )
+ )
+
+ (memory)
+ (cpu)
+ )
+
+ (box
+ :orientation "v"
+ :spacing 8
+ :space-evenly false
+
+ (launcher)
+
+ (box
+ :orientation "h"
+ :spacing 8
+ :space-evenly false
+
+ (box :hexpand true (music))
+
+ (volume)
+ )
+ )
+ )
+ )
+)