✨ eww: stuff!
This commit is contained in:
@@ -30,10 +30,14 @@ if ! [[ $@ == "" ]]; then
|
|||||||
|
|
||||||
# Critical urgency is handled by eww, no need to count down
|
# Critical urgency is handled by eww, no need to count down
|
||||||
case $urgency in
|
case $urgency in
|
||||||
0*)
|
0)
|
||||||
sleep $timeout_low
|
sleep $timeout_low
|
||||||
;;
|
;;
|
||||||
1*)
|
1)
|
||||||
|
sleep $timeout_normal
|
||||||
|
;;
|
||||||
|
2) ;;
|
||||||
|
*)
|
||||||
sleep $timeout_normal
|
sleep $timeout_normal
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -19,3 +19,5 @@ else
|
|||||||
echo "[error] Notification history not reachable or id not provided"
|
echo "[error] Notification history not reachable or id not provided"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ tooltip {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
box.separator {
|
.separator {
|
||||||
background: darken($color: $foreground, $amount: 20);
|
background: darken($color: $foreground, $amount: 20);
|
||||||
|
|
||||||
&.horizontal {
|
&.horizontal {
|
||||||
@@ -225,7 +225,6 @@ box.separator {
|
|||||||
|
|
||||||
&.vertical {
|
&.vertical {
|
||||||
margin: 4px 10px;
|
margin: 4px 10px;
|
||||||
padding: 0 1px;
|
padding: 1px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
(button :class "url"
|
(button :class "url"
|
||||||
:onclick "wl-copy '${json_media.url}'"
|
:onclick "wl-copy '${json_media.url}'"
|
||||||
:tooltip "Copy link to Clipboard"
|
:tooltip "Copy link to Clipboard"
|
||||||
:visible { json_media != "" && json_media.url != "null" }
|
:visible { json_media.url != "" && json_media.url != "null" }
|
||||||
"")
|
"")
|
||||||
(button :class "previous"
|
(button :class "previous"
|
||||||
:onclick "playerctl previous --player=${json_media.player}"
|
:onclick "playerctl previous --player=${json_media.player}"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
:orientation "horizontal"
|
:orientation "horizontal"
|
||||||
|
|
||||||
(image :class "icon"
|
(image :class "icon"
|
||||||
:icon "${ json_active_window.initialClass =~ 'zen-(.*)$' ? 'zen-browser' : json_active_window.initialClass }"
|
:icon "${ json_active_window.initialClass =~ 'zen' ? 'zen-browser' : json_active_window.initialClass }"
|
||||||
:icon-size "toolbar")
|
:icon-size "toolbar")
|
||||||
|
|
||||||
(box :class "info"
|
(box :class "info"
|
||||||
|
|||||||
@@ -53,6 +53,7 @@
|
|||||||
:onunchecked "${ondisable}"
|
:onunchecked "${ondisable}"
|
||||||
:visible { visible == "" || visible ? true : false }
|
:visible { visible == "" || visible ? true : false }
|
||||||
:checked { enabled == "" || !enabled ? false : true }
|
:checked { enabled == "" || !enabled ? false : true }
|
||||||
|
:timeout "2s"
|
||||||
:class "tile-checkbox ${class}"
|
:class "tile-checkbox ${class}"
|
||||||
|
|
||||||
(box :class "tile"
|
(box :class "tile"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
(defwidget separator [ ?orientation ?alpha ?style ]
|
(defwidget separator [ ?orientation ?alpha ?style ]
|
||||||
(box :class "separator ${ orientation == '' || orientation == 'horizontal' ? 'horizontal' : 'vertical' }"
|
(box :class "separator ${ orientation == '' || orientation == 'horizontal' || orientation == "h" ? 'horizontal' : 'vertical' }"
|
||||||
:style "opacity: ${ alpha == '' ? 1 : alpha }; ${style}")
|
:style "opacity: ${ alpha == '' ? 1 : alpha }; ${style}")
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -29,6 +29,8 @@
|
|||||||
:visible { json_media == "" || (json_media.title == "null"
|
:visible { json_media == "" || (json_media.title == "null"
|
||||||
&& json_media.artist == "null") ? false : true })
|
&& json_media.artist == "null") ? false : true })
|
||||||
)
|
)
|
||||||
|
(separator :orientation "vertical"
|
||||||
|
:alpha ".08")
|
||||||
(notifications)
|
(notifications)
|
||||||
(box :class "bottom button-row"
|
(box :class "bottom button-row"
|
||||||
:halign "end"
|
:halign "end"
|
||||||
|
|||||||
Reference in New Issue
Block a user