feat: add tint2ish tag list and clock to sidebar
This commit is contained in:
		| @@ -3,6 +3,7 @@ | ||||
| ;;; Code: | ||||
|  | ||||
| (local awful (require :awful)) | ||||
| (local beautiful (require :beautiful)) | ||||
|  | ||||
| ;;; | ||||
| ;; Configuration | ||||
| @@ -12,10 +13,21 @@ | ||||
|  | ||||
| (set awful.layout.layouts layouts) | ||||
|  | ||||
| (awful.screen.connect_for_each_screen | ||||
|  (lambda [s] | ||||
|    (awful.tag ["1", "2", "3", "4", "5", "6", "7", "8", "9"] | ||||
|               s (. layouts 1)))) | ||||
| ;; TODO Rasterize? | ||||
| (local tags [:firefox.png :code.png :code.svg]) | ||||
|  | ||||
| (let [icon-path (.. (os.getenv "HOME") "/.config/awesome/theme/icons/tag/")] | ||||
|  (awful.screen.connect_for_each_screen | ||||
|   (lambda [s] | ||||
|     (each [n tag (ipairs tags)] | ||||
|       (awful.tag.add | ||||
|        n {:icon (.. icon-path tag) | ||||
|           :icon_only true | ||||
|           :layout (. layouts 1) | ||||
|           :gap_single_client false | ||||
|           :gap beautiful.useless_gap | ||||
|           :screen s | ||||
|           :selected (= n 1)}))))) | ||||
|  | ||||
| {} | ||||
| ;;; conf/tags.fnl ends here | ||||
|   | ||||
		Reference in New Issue
	
	Block a user