dotfiles/grobi/grobi.conf

108 lines
3.0 KiB
Plaintext
Raw Normal View History

2021-11-18 14:43:07 +01:00
# vim:ft=yaml
# The commands listed in execute_after will be run after an output
# configuration was changed.
execute_after:
2022-05-10 14:47:31 +02:00
- ~/.fehbg
2021-11-18 14:43:07 +01:00
# if anything goes wrong (connection the X server died or some other error),
# run these commands before exiting
on_failure:
- xrandr --auto
2022-06-01 19:06:16 +02:00
- xset s on
2022-11-02 19:13:24 +01:00
- xset s 300 60
2021-11-18 14:43:07 +01:00
# 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.
#
2022-06-01 19:06:16 +02:00
# The rules below are written for a typical Laptop in mind, which hase several
2021-11-18 14:43:07 +01:00
# 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:
2022-05-10 14:47:31 +02:00
# 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!
2022-11-10 17:29:21 +01:00
- name: DELL
2021-11-18 14:43:07 +01:00
outputs_connected:
2022-11-10 17:29:21 +01:00
- DP2-1-BNQ-30887-21573-BenQ GL2450H-ACB00126019
- DP2-2-BNQ-30887-21573-BenQ GL2450H-X4F00171019
- DP2-3-SAM-3953-1129860145-S34J55x-H4LT100404
2021-11-18 14:43:07 +01:00
configure_row:
2022-11-10 17:29:21 +01:00
- DP2-1@1920x1080::left
- DP2-3@3440x1440
- DP2-2@1920x1080::right
2021-11-18 14:43:07 +01:00
# atomic instructs grobi to only call xrandr once and configure all the
# outputs. This does not always work with all graphic cards.
atomic: false
2022-11-10 17:29:21 +01:00
primary: DP2-3
2021-11-18 14:43:07 +01:00
execute_after:
- xset s on
2021-11-18 14:43:07 +01:00
- rfkill block wifi
- bluetoothctl power on
2022-11-10 17:29:21 +01:00
- xrandr --output DP2-1 --set "Broadcast RGB" "Full"
- xrandr --output DP2-2 --set "Broadcast RGB" "Full"
2021-11-18 14:43:07 +01:00
- systemctl --user start redshift-gtk.service
2022-06-01 19:06:16 +02:00
- /home/rad4day/.config/i3/scripts/ws-dock.sh
2021-11-18 14:43:07 +01:00
2022-11-02 19:13:24 +01:00
- name: "Regus Office"
2021-11-18 14:43:07 +01:00
outputs_connected:
- eDP1
2022-11-02 19:13:24 +01:00
- DP1-DEL-41367-825642060-DELL S2721QS-FHP9M43
2021-11-18 14:43:07 +01:00
configure_row:
2022-05-10 14:47:31 +02:00
- eDP1
2022-11-02 19:13:24 +01:00
- DP1@3840x2160
primary: DP1
2021-11-18 14:43:07 +01:00
atomic: false
execute_after:
2022-11-02 19:13:24 +01:00
- xset s 300 120
2021-11-18 14:43:07 +01:00
2022-11-02 19:13:24 +01:00
- name: "ATIS"
2022-05-10 14:47:31 +02:00
outputs_connected:
- eDP1
2022-11-02 19:13:24 +01:00
- DP1
2022-05-10 14:47:31 +02:00
configure_column:
2022-11-02 19:13:24 +01:00
- DP1@1920x1080
2022-05-10 14:47:31 +02:00
- eDP1
2022-11-02 19:13:24 +01:00
primary: DP1
2022-05-10 14:47:31 +02:00
atomic: false
execute_after:
- xset s on
2022-11-02 19:13:24 +01:00
- name: "Mobile"
outputs_connected:
- eDP1
2022-05-10 14:47:31 +02:00
configure_single: eDP1
primary: eDP1
execute_after:
- rfkill unblock wifi
2022-11-02 19:13:24 +01:00
- xset s on
2022-05-10 14:47:31 +02:00
- systemctl --user start redshift-gtk.service
2022-11-02 19:13:24 +01:00
- name: "Presentation"
2022-05-10 14:47:31 +02:00
outputs_connected:
- eDP1
- DP1
2022-11-02 19:13:24 +01:00
configure_row:
2022-05-10 14:47:31 +02:00
- eDP1
2022-11-02 19:13:24 +01:00
- DP1@1920x1200
primary: eDP1
2022-05-10 14:47:31 +02:00
atomic: false
execute_after:
2022-11-02 19:13:24 +01:00
- xset s off
- systemctl --user stop redshift-gtk.service
2021-11-18 14:43:07 +01:00
# 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
2022-04-04 23:11:20 +02:00
primary: eDP1
2022-05-10 14:47:31 +02:00
execute_after:
- rfkill unblock wifi
2022-06-01 19:06:16 +02:00
- xset s on
2022-05-10 14:47:31 +02:00
- systemctl --user start redshift-gtk.service