40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
|
|
#
|
|
# Output configuration:
|
|
#
|
|
set $output_primary "Unknown PL270 0000000000001"
|
|
set $output_secondary "Samsung Electric Company SME2020 HMDZ800146"
|
|
set $output_laptop "Apple Computer Inc Color LCD 0x00000000"
|
|
output $output_primary position 1600 0 transform 90
|
|
output $output_secondary position 0 800 transform 0
|
|
#output $output_laptop position 3760 1800 transform 0 scale 1.5
|
|
bindsym $mod+Shift+F4 output $output_primary transform 90 clockwise
|
|
bindsym $mod+F4 output $output_primary transform 90 anticlockwise
|
|
|
|
#
|
|
# Workspaces
|
|
#
|
|
workspace 10 output $output_secondary
|
|
|
|
#
|
|
# Display controls:
|
|
#
|
|
# Remember to configure udev. See https://blog.tcharles.fr/ddc-ci-screen-control-on-linux/
|
|
set $monitor_global --noverify --sleep-multiplier 0.1
|
|
set $monitor_primary --bus 8
|
|
# Display brightness controls:
|
|
set $monitor_brightness_step 0x0a
|
|
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
|
|
|
|
#
|
|
# Display output toggle:
|
|
#
|
|
bindsym --locked $mod+Shift+F1 output $output_primary disable
|
|
bindsym --locked $mod+F1 output $output_primary enable
|
|
# 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
|
|
bindswitch --reload --locked lid:on output $output_laptop disable
|
|
bindswitch --reload --locked lid:off output $output_laptop enable
|
|
|
|
# vim: ai ts=4 sw=4 et
|