summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2020-12-30 00:28:35 -0800
committerMike Crute <mike@crute.us>2020-12-30 00:28:35 -0800
commit679849f91577a750c154852c9d16b22a262e76e8 (patch)
tree8844a5631d6111a9af3b41faee2d9114f2a58b07 /.config
parent8fd581a87ae7140e20c2a30e2807fa212e9bc805 (diff)
downloaddotfiles-679849f91577a750c154852c9d16b22a262e76e8.tar.bz2
dotfiles-679849f91577a750c154852c9d16b22a262e76e8.tar.xz
dotfiles-679849f91577a750c154852c9d16b22a262e76e8.zip
Teach awesome about other displays
Diffstat (limited to '.config')
-rw-r--r--.config/awesome/mcrute.lua20
1 files changed, 19 insertions, 1 deletions
diff --git a/.config/awesome/mcrute.lua b/.config/awesome/mcrute.lua
index fed2d90..0274c89 100644
--- a/.config/awesome/mcrute.lua
+++ b/.config/awesome/mcrute.lua
@@ -59,7 +59,13 @@ local edp_display_modes = {
59 "2880x1620", 59 "2880x1620",
60} 60}
61 61
62-- Preferred daily driver mode for the Dell XPS 13 93{7,8}0 62local default_edp_display_modes = {
63 BOE_51207 = edp_zoom_modes[3], -- Dell XPS 13 93{7,8}0
64 AUO_11048 = edp_zoom_modes[4], -- X1 Carbon Display
65}
66
67-- Preferred daily driver mode
68-- This is populated by the get_default_edp_mode function, below
63local default_edp_mode = edp_display_modes[3] 69local default_edp_mode = edp_display_modes[3]
64 70
65-- dumps is a debugging tool that prints text representations of lua objects 71-- dumps is a debugging tool that prints text representations of lua objects
@@ -540,6 +546,18 @@ function get_displays()
540 return result 546 return result
541end 547end
542 548
549-- get_default_edp_mode enumerates the displays and returns the preferred
550-- default display mode for the eDP-1 device.
551--
552-- This function overrides the default set in the top of the file at first
553-- runtime with the correct version for the first display.
554function get_default_edp_mode()
555 local displays = get_displays()
556 return default_edp_display_modes[displays[1].edid]
557end
558
559default_edp_mode = get_default_edp_mode()
560
543-- configure_displays uses xrandr to configure the displays connected to the 561-- configure_displays uses xrandr to configure the displays connected to the
544-- system when they are connected for removed. 562-- system when they are connected for removed.
545-- 563--