making nextcloud icon a working piece
This commit is contained in:
parent
849b950c02
commit
ede4467af8
3 changed files with 18 additions and 4 deletions
|
@ -101,6 +101,18 @@ tooltip label {
|
||||||
color: $base05;
|
color: $base05;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nc_button {
|
||||||
|
font-size: 14;
|
||||||
|
margin: 2px 20px 0px 0px;
|
||||||
|
color: $base05;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nc_button:hover {
|
||||||
|
font-size: 14;
|
||||||
|
margin: 2px 20px 0px 0px;
|
||||||
|
background-color: $base0D;
|
||||||
|
}
|
||||||
|
|
||||||
.right_modules {
|
.right_modules {
|
||||||
// padding-bottom: 2px;
|
// padding-bottom: 2px;
|
||||||
// padding-right: 5px;
|
// padding-right: 5px;
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
(defpoll WLAN_ICON :interval "1m" "scripts/wifi --ICON")
|
(defpoll WLAN_ICON :interval "1m" "scripts/wifi --ICON")
|
||||||
(defpoll HOST :interval "1h" "hostname")
|
(defpoll HOST :interval "1h" "hostname")
|
||||||
(defpoll DISK :interval "1m" "disk")
|
(defpoll DISK :interval "1m" "disk")
|
||||||
|
(defpoll nextcloud :interval "2s" "scripts/nextcloud.sh")
|
||||||
(deflisten volume_percent :interval "0.5s" "tail -F /tmp/vol")
|
(deflisten volume_percent :interval "0.5s" "tail -F /tmp/vol")
|
||||||
(deflisten appname "scripts/appname")
|
(deflisten appname "scripts/appname")
|
||||||
|
|
||||||
|
@ -232,13 +233,12 @@
|
||||||
|
|
||||||
(defwidget nextcloud_button []
|
(defwidget nextcloud_button []
|
||||||
(box
|
(box
|
||||||
:class "notif_button"
|
:class "nc_button"
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
|
:tooltip "${nextcloud}"
|
||||||
(button
|
(button
|
||||||
:onclick "nextcloud"
|
:onclick "nextcloud"
|
||||||
(label
|
"${nextcloud == "Connected - Success" ? "" : nextcloud == "Connected - Success, some files were ignored." ? "" : ""}")))
|
||||||
:text ""
|
|
||||||
:visible true))))
|
|
||||||
|
|
||||||
(defwidget sep []
|
(defwidget sep []
|
||||||
(label
|
(label
|
||||||
|
|
2
.config/eww/scripts/nextcloud.sh
Normal file → Executable file
2
.config/eww/scripts/nextcloud.sh
Normal file → Executable file
|
@ -1 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
qdbus com.nextcloudgmbh.Nextcloud /com/nextcloudgmbh/Nextcloud/Folder/2 org.freedesktop.CloudProviders.Account.StatusDetails
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue