2020-05-27 21:14:20 +08:00
|
|
|
|
|
|
|
#
|
2021-03-31 15:07:03 +08:00
|
|
|
# Output configuration:
|
2020-05-27 21:14:20 +08:00
|
|
|
#
|
2021-03-24 01:11:23 +08:00
|
|
|
set $output_primary "Unknown PL270 0000000000001"
|
2021-04-03 10:46:43 +08:00
|
|
|
set $output_secondary "Samsung Electric Company SME2020 HMDZ800146"
|
2021-03-24 01:11:23 +08:00
|
|
|
set $output_laptop "Apple Computer Inc Color LCD 0x00000000"
|
2022-03-23 09:56:39 +08:00
|
|
|
output $output_primary position 1600 0 transform 90
|
2021-04-03 10:46:43 +08:00
|
|
|
output $output_secondary position 0 800 transform 0
|
|
|
|
#output $output_laptop position 3760 1800 transform 0 scale 1.5
|
2021-09-02 19:11:59 +08:00
|
|
|
bindsym $mod+Shift+F4 output $output_primary transform 90 clockwise
|
|
|
|
bindsym $mod+F4 output $output_primary transform 90 anticlockwise
|
2021-03-25 00:19:27 +08:00
|
|
|
|
2021-04-03 10:46:43 +08:00
|
|
|
#
|
|
|
|
# Workspaces
|
|
|
|
#
|
|
|
|
workspace 10 output $output_secondary
|
2020-05-27 21:14:20 +08:00
|
|
|
|
2020-05-27 22:12:08 +08:00
|
|
|
#
|
2021-03-31 15:07:03 +08:00
|
|
|
# Display controls:
|
2020-05-27 22:12:08 +08:00
|
|
|
#
|
|
|
|
# Remember to configure udev. See https://blog.tcharles.fr/ddc-ci-screen-control-on-linux/
|
2021-03-24 01:11:23 +08:00
|
|
|
set $monitor_global --noverify --sleep-multiplier 0.1
|
2021-03-31 15:07:03 +08:00
|
|
|
set $monitor_primary --bus 8
|
|
|
|
# Display brightness controls:
|
|
|
|
set $monitor_brightness_step 0x0a
|
2021-09-02 19:06:03 +08:00
|
|
|
bindsym --locked $mod+F2 exec ddcutil $monitor_global $monitor_primary setvcp 0x10 - $monitor_brightness_step
|
|
|
|
bindsym --locked $mod+F3 exec ddcutil $monitor_global $monitor_primary setvcp 0x10 + $monitor_brightness_step
|
2020-05-27 22:12:08 +08:00
|
|
|
|
|
|
|
#
|
2021-03-31 15:07:03 +08:00
|
|
|
# Display output toggle:
|
2020-05-27 22:12:08 +08:00
|
|
|
#
|
2021-09-02 19:06:03 +08:00
|
|
|
bindsym --locked $mod+Shift+F1 output $output_primary disable
|
|
|
|
bindsym --locked $mod+F1 output $output_primary enable
|
2020-06-03 16:40:18 +08:00
|
|
|
# This is so crazy performant that I did not notice it worked. Was expecting my main display to go blank for a while but it didn't even flash
|
2021-03-24 01:11:23 +08:00
|
|
|
bindswitch --reload --locked lid:on output $output_laptop disable
|
|
|
|
bindswitch --reload --locked lid:off output $output_laptop enable
|
2020-05-27 21:14:20 +08:00
|
|
|
|
|
|
|
# vim: ai ts=4 sw=4 et
|