re-indent
This commit is contained in:
parent
1bbba60b20
commit
92bb4ca230
18
hyprchan
18
hyprchan
@ -17,15 +17,15 @@
|
|||||||
|
|
||||||
(defun get-dimensions (image)
|
(defun get-dimensions (image)
|
||||||
"Return the dimensions of IMAGE as cons `(x . y)'."
|
"Return the dimensions of IMAGE as cons `(x . y)'."
|
||||||
(--> image
|
(--> image
|
||||||
(shell-command-to-string (format "file %s" it))
|
(shell-command-to-string (format "file %s" it))
|
||||||
(split-string it "," nil " ")
|
(split-string it "," nil " ")
|
||||||
(--filter (string-match-p (rx (+ num) (? " ") "x" (? " ") (+ num)) it) it)
|
(--filter (string-match-p (rx (+ num) (? " ") "x" (? " ") (+ num)) it) it)
|
||||||
(--remove (string-match-p "density" it) it)
|
(--remove (string-match-p "density" it) it)
|
||||||
(car it)
|
(car it)
|
||||||
(split-string it "x" nil " ")
|
(split-string it "x" nil " ")
|
||||||
(--map (string-to-number it) it)
|
(--map (string-to-number it) it)
|
||||||
(cons (car it) (cadr it)))
|
(cons (car it) (cadr it)))
|
||||||
)
|
)
|
||||||
|
|
||||||
;; select the background image
|
;; select the background image
|
||||||
|
Loading…
Reference in New Issue
Block a user