2020-03-30 23:10:50 +08:00
|
|
|
|
|
|
|
#
|
2021-03-31 15:07:03 +08:00
|
|
|
# Output configuration:
|
2020-03-30 23:10:50 +08:00
|
|
|
#
|
2021-03-31 15:07:03 +08:00
|
|
|
set $output_mini "Philips Consumer Electronics Company Philips 19B4 UK51344100785"
|
|
|
|
set $output_left "Dell Inc. DELL P2719H 974YPS2"
|
|
|
|
set $output_right "Dell Inc. DELL P2719H DNJQPS2"
|
|
|
|
output $output_mini position 56 800 transform 270
|
|
|
|
output $output_left position 1080 0 transform 270
|
|
|
|
output $output_right position 2160 0 transform 90
|
2021-09-24 14:25:33 +08:00
|
|
|
# output * bg ~/.local/wallpaper/daniel-j-schwarz-a4M-Vegh7Y4-unsplash.jpg fill
|
2020-03-30 23:10:50 +08:00
|
|
|
|
2021-09-06 15:29:28 +08:00
|
|
|
#
|
|
|
|
# Workspaces
|
|
|
|
#
|
|
|
|
workspace 1 output $output_left
|
|
|
|
workspace 2 output $output_right
|
|
|
|
|
2020-03-30 23:10:50 +08:00
|
|
|
#
|
2021-03-31 15:07:03 +08:00
|
|
|
# Display controls:
|
2020-03-30 23:10:50 +08:00
|
|
|
#
|
2021-03-31 15:07:03 +08:00
|
|
|
# Remember to configure udev. See https://blog.tcharles.fr/ddc-ci-screen-control-on-linux/
|
|
|
|
set $monitor_global --noverify --sleep-multiplier 0.1
|
2021-03-23 20:40:22 +08:00
|
|
|
set $monitor_mini --bus 0
|
|
|
|
set $monitor_left --bus 5
|
2021-09-06 15:23:35 +08:00
|
|
|
set $monitor_right --bus 4
|
2021-03-31 15:07:03 +08:00
|
|
|
# Display source controls:
|
2021-09-06 15:23:35 +08:00
|
|
|
set $monitor_prefix Mod4+Alt
|
|
|
|
bindsym $monitor_prefix+F1 exec ddcutil $monitor_global $monitor_left setvcp 0x60 0x0f
|
|
|
|
bindsym $monitor_prefix+F2 exec ddcutil $monitor_global $monitor_right setvcp 0x60 0x0f
|
|
|
|
bindsym $monitor_prefix+F3 exec ddcutil $monitor_global $monitor_left setvcp 0x60 0x01
|
|
|
|
bindsym $monitor_prefix+F4 exec ddcutil $monitor_global $monitor_right setvcp 0x60 0x01
|
2021-03-31 15:07:03 +08:00
|
|
|
# Display brightness controls:
|
|
|
|
set $monitor_brightness_step 0x0a
|
|
|
|
set $monitor_mini_brightness_step 0x03
|
2021-09-02 19:06:03 +08:00
|
|
|
bindsym --locked $mod+F2 exec (ddcutil $monitor_global $monitor_left setvcp 0x10 - $monitor_brightness_step) & (ddcutil $monitor_global $monitor_right setvcp 0x10 - $monitor_brightness_step) & (ddcutil $monitor_global $monitor_mini setvcp 0x10 - $monitor_mini_brightness_step)
|
|
|
|
bindsym --locked $mod+F3 exec (ddcutil $monitor_global $monitor_left setvcp 0x10 + $monitor_brightness_step) & (ddcutil $monitor_global $monitor_right setvcp 0x10 + $monitor_brightness_step) & (ddcutil $monitor_global $monitor_mini setvcp 0x10 + $monitor_mini_brightness_step)
|
2020-03-30 23:10:50 +08:00
|
|
|
|
|
|
|
#
|
2021-03-31 15:07:03 +08:00
|
|
|
# Media controls:
|
2020-03-30 23:10:50 +08:00
|
|
|
#
|
2021-10-04 23:05:06 +08:00
|
|
|
bindsym $mod+m exec "playerctl play-pause"
|
2020-03-30 23:10:50 +08:00
|
|
|
|
|
|
|
# vim: ai ts=4 sw=4 et
|