diff options
author | Mike Crute <crutem@amazon.com> | 2019-02-22 10:50:05 -0800 |
---|---|---|
committer | Mike Crute <crutem@amazon.com> | 2019-03-21 15:17:31 -0700 |
commit | 90a452d29dec248d7618b548886357544875efc8 (patch) | |
tree | 5d57181e1bd6ba1f8f602a47744e042e4ae89872 /.config | |
parent | 367c9ac02a76b3d2b55a0e155828117c2386b231 (diff) | |
download | dotfiles-90a452d29dec248d7618b548886357544875efc8.tar.bz2 dotfiles-90a452d29dec248d7618b548886357544875efc8.tar.xz dotfiles-90a452d29dec248d7618b548886357544875efc8.zip |
Hack around enumerate-displays bug
Diffstat (limited to '.config')
-rw-r--r-- | .config/awesome/mcrute.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.config/awesome/mcrute.lua b/.config/awesome/mcrute.lua index fbbe92e..a5c3dc4 100644 --- a/.config/awesome/mcrute.lua +++ b/.config/awesome/mcrute.lua | |||
@@ -511,9 +511,6 @@ function get_displays() | |||
511 | local parts = nil | 511 | local parts = nil |
512 | local outputs = nil | 512 | local outputs = nil |
513 | 513 | ||
514 | -- TODO: Use the awful.spawn async functions | ||
515 | -- Do this first to ensure /sys is up-to-date | ||
516 | io.popen("xrandr -q"):close() | ||
517 | outputs = io.popen(os.getenv("HOME") .. "/bin/enumerate-displays") | 514 | outputs = io.popen(os.getenv("HOME") .. "/bin/enumerate-displays") |
518 | 515 | ||
519 | while true do | 516 | while true do |
@@ -537,6 +534,9 @@ end | |||
537 | -- | 534 | -- |
538 | -- TODO: This should be a lot more intelligent and a lot less hard coded but it | 535 | -- TODO: This should be a lot more intelligent and a lot less hard coded but it |
539 | -- works for what I do so *shrug* | 536 | -- works for what I do so *shrug* |
537 | -- | ||
538 | -- TODO: This should keep track of old displays and disable them all instead of | ||
539 | -- just the hardcoded list | ||
540 | function configure_displays() | 540 | function configure_displays() |
541 | local displays = get_displays() | 541 | local displays = get_displays() |
542 | 542 | ||
@@ -546,6 +546,7 @@ function configure_displays() | |||
546 | "--output eDP-1 --mode " .. default_edp_mode .. " " .. | 546 | "--output eDP-1 --mode " .. default_edp_mode .. " " .. |
547 | "--output DP-1 --off " .. | 547 | "--output DP-1 --off " .. |
548 | "--output DP-2 --off " .. | 548 | "--output DP-2 --off " .. |
549 | "--output DP-2-8 --off " .. | ||
549 | "--panning 0x0") | 550 | "--panning 0x0") |
550 | return | 551 | return |
551 | end | 552 | end |