dotfiles/grobi/grobi.conf

136 lines
3.5 KiB
YAML

# vim:ft=yaml
# The commands listed in execute_after will be run after an output
# configuration was changed.
execute_after:
- ~/.fehbg
# if anything goes wrong (connection the X server died or some other error),
# run these commands before exiting
on_failure:
- xrandr --auto
- xset s on
- xset s 300 60
# These are the rules grobi tries to match to the current output configuration.
# The rules are evaluated top to bottom, the first matching rule is applied and
# processing stops.
#
# The rules below are written for a typical Laptop in mind, which hase several
# external connectors (HDMI2, HDMI3) in addition to the internal display
# (LVDS1). It may even be placed in a Docking Station, which adds more outputs
# that aren't present outside it.
rules:
# I use a modified version of grobi available at https://github.com/rad4day/grobi
# which allows to specify a display rotation as ::<rotation>.
# This config will throw errors in default grobi!
- name: DELL
outputs_connected:
- DP2-1-BNQ-30887-21573-BenQ GL2450H-ACB00126019
- DP2-2-BNQ-30887-21573-BenQ GL2450H-X4F00171019
- DP2-3-SAM-3953-1129860145-S34J55x-H4LT100404
configure_row:
- DP2-1@1920x1080::left
- DP2-3@3440x1440
- DP2-2@1920x1080::right
# atomic instructs grobi to only call xrandr once and configure all the
# outputs. This does not always work with all graphic cards.
atomic: false
primary: DP2-3
execute_after:
- xset s on
- rfkill block wifi
- bluetoothctl power on
- xrandr --output DP2-1 --set "Broadcast RGB" "Full"
- xrandr --output DP2-2 --set "Broadcast RGB" "Full"
- systemctl --user start redshift-gtk.service
- /home/rad4day/.config/i3/scripts/ws-dock.sh
- name: "Regus Office"
outputs_connected:
- eDP1
- DP1-DEL-41367-825642060-DELL S2721QS-FHP9M43
configure_column:
- DP1@3840x2160
- eDP1
primary: DP1
atomic: false
execute_after:
- xset s 300 120
- name: "ATIS"
outputs_connected:
- eDP1
- DP1
configure_column:
- DP1@1920x1080
- eDP1
primary: DP1
atomic: false
execute_after:
- xset s on
- name: FSI
outputs_connected:
- eDP1
- DP4-2-GSM-22964-514483-24EB23-609NTFAF4483
- DP4-3-GSM-22964-279831-24EB23-305NDGL87831
configure_row:
- DP4-2@1920x1080
- DP4-3@1920x1080
- eDP1@2256x1504
primary: DP4-3
atomic: false
execute_after:
- xset s on
- rfkill block wifi
- bluetoothctl power on
- name: "ATIS-Horizontal"
outputs_connected:
- eDP1
- DP1
configure_row:
- eDP1
- DP1@1920x1080
primary: DP1
atomic: false
execute_after:
- xset s on
- name: "Mobile"
outputs_connected:
- eDP1
configure_single: eDP1
primary: eDP1
execute_after:
- rfkill unblock wifi
- xset s on
- systemctl --user start redshift-gtk.service
- name: "Presentation"
outputs_connected:
- eDP1
- DP1
configure_row:
- eDP1
- DP1@1920x1200
primary: eDP1
atomic: false
execute_after:
- xset s off
- systemctl --user stop redshift-gtk.service
# If none of the rules above match, it's a good idea to have a fallback rule
# which enables an output device that is always present, so you can debug
# what's going on.
- name: Fallback
configure_single: eDP1
primary: eDP1
execute_after:
- rfkill unblock wifi
- xset s on
- systemctl --user start redshift-gtk.service