This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun hnreader--print-frontpage-item (thing subtext) | |
"Print THING dom and SUBTEXT dom." | |
(let* ((url (format "https://news.ycombinator.com/item?id=%s" (dom-attr thing 'id))) | |
(a-node (dom-child-by-tag (dom-by-class thing "^titleline$") 'a)) | |
(title-link (dom-attr a-node 'href))) | |
(insert (format "\n* %s %s (%s) [%s]\n" | |
;; rank | |
(dom-text (dom-by-class thing "^rank$")) | |
;; title | |
(dom-text a-node) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Gabriel Hidasy Rezende <gabrielhidasy@gmail.com> | |
pkgname=i3-autodisplay-git | |
_pkgname=i3-autodisplay | |
pkgver=v0.4_1_gad192b4 | |
pkgrel=1 | |
pkgdesc='Automatically manages monitors and workspaces in i3' | |
arch=('i686' 'x86_64') | |
url="https://github.com/lpicanco/$_pkgname" | |
license=('GPL3') | |
makedepends=('git' 'go') |