mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 01:33:17 +01:00
eww: Add desktop icons
This commit is contained in:
parent
5739a3eaba
commit
8c753e21e7
@ -1,3 +1,11 @@
|
|||||||
|
img {
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
.desktop-icons {
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
.overlay {
|
.overlay {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #f8f8f2;
|
color: #f8f8f2;
|
||||||
|
@ -1,3 +1,23 @@
|
|||||||
|
(defwidget icons []
|
||||||
|
(box :orientation "h" :spacing 32
|
||||||
|
(icon :img "grey-user-home" :exec "/home/user")
|
||||||
|
(icon :img "grey-folder-download" :exec "/home/user/ダウンロード")
|
||||||
|
(icon :img "grey-folder-documents" :exec "/home/user/ドキュメント")
|
||||||
|
(icon :img "grey-folder-music" :exec "/home/user/音楽")
|
||||||
|
(icon :img "grey-folder-pictures" :exec "/home/user/画像")
|
||||||
|
(icon :img "grey-folder-video" :exec "/home/user/ビデオ")))
|
||||||
|
|
||||||
|
(defwidget icon [img exec]
|
||||||
|
(eventbox :cursor "pointer" :onclick "lnch thunar ${exec}" :tooltip "${exec}"
|
||||||
|
(image :path "/home/user/.config/eww/${img}.png" :image-width 128)))
|
||||||
|
|
||||||
|
(defwindow desktop-icons
|
||||||
|
:monitor 0
|
||||||
|
:geometry (geometry :x "32px" :anchor "bottom center"
|
||||||
|
:y "8px")
|
||||||
|
:stacking "bg"
|
||||||
|
(icons))
|
||||||
|
|
||||||
(defpoll time :interval "1s"
|
(defpoll time :interval "1s"
|
||||||
"date '+%H:%M'")
|
"date '+%H:%M'")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user