Skip to content

msladecek/xrandr-parser-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

xrandr-parser-clj

Parse basic xrandr info from cli output to edn format.

I made this to satisfy my own need - a simple babashka script for managing display configurations.

Usage

Paste the contents of xrandr_parser.clj into your project or babashka script.

Extend at you own leisure.

Example

(require '[clojure.pprint :refer [pprint]])

(defn connected-displays []
  (->> (shell/sh "xrandr --verbose")
       :out
       parse-xrandr
       (filter :is-connected)))

(pprint (connected-displays))

About

Parse basic xrandr info from cli output to edn format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published