updated eww files and bash scripts
This commit is contained in:
parent
5a419c03f3
commit
cd7e93374e
11 changed files with 119 additions and 60 deletions
18
eww/eww.scss
18
eww/eww.scss
|
@ -1,8 +1,15 @@
|
|||
|
||||
@import url("file:///home/willifan/.config/gtk-4.0/gtk.css");
|
||||
window {
|
||||
border-width: 2px;
|
||||
border-color: #595959;
|
||||
border-radius: 12.5px;
|
||||
background-image: none;
|
||||
box-shadow: none;
|
||||
background-color: rgba(12, 12, 12, 0.0);
|
||||
}
|
||||
|
||||
.barbox {
|
||||
border-width: 2px;
|
||||
border-color: #595959;
|
||||
border-radius: 15px;
|
||||
background-color: rgba(12, 12, 12, 0.9);
|
||||
}
|
||||
|
||||
.calendar {
|
||||
|
@ -93,4 +100,5 @@ window {
|
|||
|
||||
.smallBox:active {
|
||||
background-color: #52341A;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
82
eww/eww.yuck
82
eww/eww.yuck
|
@ -22,6 +22,8 @@
|
|||
(box
|
||||
:space-evenly false
|
||||
:spacing 3
|
||||
:valign "center"
|
||||
:height 20
|
||||
(for workspace in workspaces
|
||||
(workspace
|
||||
:activeOn {workspace.normal.activeOn}
|
||||
|
@ -96,24 +98,34 @@
|
|||
|
||||
;; Widget blocks
|
||||
|
||||
;;(defwidget media []
|
||||
;; (box
|
||||
;; :class "smallBox"
|
||||
;; :height 20
|
||||
;; :valign "center"
|
||||
;; :space-evenly false
|
||||
;; :visible {media.status == "Playing" ? true : false}
|
||||
;; (smallSpacer)
|
||||
;; (label
|
||||
;; :text {media.name}
|
||||
;; :tooltip {media.name}
|
||||
;; :limit-width 40)
|
||||
;; (smallSpacer)))
|
||||
(defwidget media []
|
||||
(box
|
||||
:visible {media.status == "Playing" ? true : false}
|
||||
:spacing 3
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
:valign "center"
|
||||
:height 20
|
||||
(seperator)
|
||||
(box
|
||||
:class "smallBox"
|
||||
:height 20
|
||||
:valign "center"
|
||||
:space-evenly false
|
||||
(space)
|
||||
(label
|
||||
:text {media.name}
|
||||
:tooltip {media.name}
|
||||
:limit-width 40)
|
||||
(space))))
|
||||
|
||||
(defwidget processing []
|
||||
(eventbox
|
||||
:onclick 'hyprctl dispatch exec "[float; pin; size 40% 40%; move 100%-41% 40] kitty bpytop -b proc"'
|
||||
:class "smallBox"
|
||||
:halign "end"
|
||||
:valign "center"
|
||||
:height 20
|
||||
(box
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
|
@ -129,6 +141,9 @@
|
|||
(eventbox
|
||||
:onclick 'hyprctl dispatch exec "[float; pin; size 40% 40%; move 100%-41% 40] kitty pulsemixer"'
|
||||
:class "smallBox"
|
||||
:halign "end"
|
||||
:valign "center"
|
||||
:height 20
|
||||
(box
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
|
@ -144,11 +159,14 @@
|
|||
(eventbox
|
||||
:onclick "`networkmanager_dmenu`"
|
||||
:class "smallBox"
|
||||
:halign "end"
|
||||
:valign "center"
|
||||
:height 20
|
||||
(box
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
:valign "center"
|
||||
:height 20
|
||||
:height 24
|
||||
(smallSpacer)
|
||||
(network)
|
||||
(space)
|
||||
|
@ -157,8 +175,10 @@
|
|||
|
||||
(defwidget energy []
|
||||
(eventbox
|
||||
:onclick `sleep 1 && systemctl hibernate`
|
||||
:onclick `wlogout -r 25 -c 25 -m 300 &`
|
||||
:class "smallBox"
|
||||
:valign "center"
|
||||
:height 20
|
||||
(box
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
|
@ -173,17 +193,28 @@
|
|||
|
||||
(defwidget start []
|
||||
(box
|
||||
:class "barbox"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:height 30
|
||||
:halign "start"
|
||||
:valign "center"
|
||||
:spacing 3
|
||||
(space)
|
||||
(time)))
|
||||
(time)
|
||||
(media)
|
||||
(space)))
|
||||
|
||||
(defwidget center [monitor]
|
||||
(box
|
||||
:class "barbox"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:spacing 3
|
||||
:height 30
|
||||
:halign "center"
|
||||
:valign "center"
|
||||
(space)
|
||||
(workspace
|
||||
:activeOn {workspaces[0].special.activeOn}
|
||||
:occupied {workspaces[0].special.occupied}
|
||||
|
@ -211,15 +242,26 @@
|
|||
:occupied {workspaces[3].special.occupied}
|
||||
:id {workspaces[3].special.id}
|
||||
:icon {workspaces[3].special.icon}
|
||||
:monitor {monitor})))
|
||||
:monitor {monitor})
|
||||
(space)))
|
||||
|
||||
(defwidget end []
|
||||
(box
|
||||
:class "barbox"
|
||||
:spacing 2
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:height 30
|
||||
:valign "center"
|
||||
:halign "end"
|
||||
(space)
|
||||
;; (systray
|
||||
;; :spacing 2
|
||||
;; :orientation "h"
|
||||
;; :space-evenly true
|
||||
;; :icon-size 16)
|
||||
;;
|
||||
;; (seperator)
|
||||
|
||||
(processing)
|
||||
|
||||
|
@ -238,7 +280,8 @@
|
|||
(space)))
|
||||
|
||||
(defwidget bar [monitor]
|
||||
(centerbox :orientation "h"
|
||||
(centerbox
|
||||
:orientation "h"
|
||||
(start)
|
||||
(center
|
||||
:monitor {monitor})
|
||||
|
@ -247,7 +290,6 @@
|
|||
|
||||
(defwindow bar [monitor width height]
|
||||
:monitor {monitor}
|
||||
:class "bar"
|
||||
:geometry (geometry
|
||||
:x "0%"
|
||||
:y "5px"
|
||||
|
@ -257,4 +299,4 @@
|
|||
:stacking "fg"
|
||||
:exclusive true
|
||||
(bar
|
||||
:monitor {monitor}))
|
||||
:monitor {monitor}))
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
(defwidget imageDPI [image size visible]
|
||||
(overlay
|
||||
:valign "center"
|
||||
:width "${size}"
|
||||
:height "${size}"
|
||||
:visible "${visible}"
|
||||
|
@ -53,28 +54,35 @@
|
|||
:width 20
|
||||
(box
|
||||
:halign "center"
|
||||
:valign "center"
|
||||
:space-evenly false
|
||||
(smallSpacer)
|
||||
(label
|
||||
:class {occupied > 0 ? "" : "unoccupiedWorkspace"}
|
||||
:width 16
|
||||
:valign "center"
|
||||
:text {matches(id, "special:") ? substring(id, 8, 1) : id })
|
||||
(imageDPI
|
||||
:visible {occupied > 0 ? true : false}
|
||||
:image "/usr/share/icons/Papirus-Dark/128x128/apps/${icon}"
|
||||
:valign "center"
|
||||
:image "/run/current-system/sw/share/icons/Papirus-Dark/128x128/apps/${icon}"
|
||||
:size "16")
|
||||
(smallSpacer))))
|
||||
|
||||
(defwidget smallSpacer []
|
||||
(box
|
||||
:valign "center"
|
||||
:width 2))
|
||||
|
||||
(defwidget space []
|
||||
(box
|
||||
:width 5))
|
||||
:valign "center"
|
||||
:width 3))
|
||||
|
||||
(defwidget seperator []
|
||||
(box
|
||||
:valign "center"
|
||||
(label
|
||||
:valign "center"
|
||||
:text "|"
|
||||
)))
|
||||
)))
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
(deflisten network
|
||||
:initial '{"name":"No Connection","image":"n.A."}'
|
||||
`scripts/network.sh`)
|
||||
`sh scripts/network.sh`)
|
||||
|
||||
(deflisten workspaces
|
||||
:initial ''
|
||||
|
@ -13,13 +13,13 @@
|
|||
(defpoll bluetooth
|
||||
:initial '{"name":"","battery":"0"}'
|
||||
:interval "2s"
|
||||
`scripts/bluetooth.sh`)
|
||||
`sh scripts/bluetooth.sh`)
|
||||
|
||||
(deflisten volume
|
||||
:initial '{"volume":"0","muted":"0"}'
|
||||
`scripts/volume.sh`)
|
||||
`sh scripts/volume.sh`)
|
||||
|
||||
;;(defpoll media
|
||||
;; :initial '{"status":"","name":""}'
|
||||
;; :interval "2s"
|
||||
;; `scripts/media.sh`)
|
||||
(defpoll media
|
||||
:initial '{"status":"","name":""}'
|
||||
:interval "2s"
|
||||
`scripts/media.sh`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue