Update grobi config to not use xautolock
This commit is contained in:
parent
038ad77a4f
commit
c5cc16a192
@ -2,11 +2,9 @@
|
|||||||
|
|
||||||
# The commands listed in execute_after will be run after an output
|
# The commands listed in execute_after will be run after an output
|
||||||
# configuration was changed.
|
# configuration was changed.
|
||||||
# pentablet uses 200% cpu after displays changed. So we kill it.
|
|
||||||
execute_after:
|
execute_after:
|
||||||
- i3-msg exec setxkbmap de
|
- i3-msg "exec setxkbmap de"
|
||||||
- polybar-msg cmd restart
|
- polybar-msg cmd restart
|
||||||
- "pkill -9 pentablet || true"
|
|
||||||
|
|
||||||
# if anything goes wrong (connection the X server died or some other error),
|
# if anything goes wrong (connection the X server died or some other error),
|
||||||
# run these commands before exiting
|
# run these commands before exiting
|
||||||
@ -23,35 +21,19 @@ on_failure:
|
|||||||
# that aren't present outside it.
|
# that aren't present outside it.
|
||||||
rules:
|
rules:
|
||||||
|
|
||||||
# This is a rule for a docking station.
|
|
||||||
- name: Docking Station
|
- name: Docking Station
|
||||||
# grobi takes the list of all the
|
|
||||||
# outputs xrandr returns and verifies that HDMI2 and HDMI3 are connected, and
|
|
||||||
# DP2-2 is present (but may be disconnected).
|
|
||||||
outputs_connected:
|
outputs_connected:
|
||||||
- DP1-1-BNQ-30887-21573-BenQ GL2450H-ACB00126019
|
- DP1-1-BNQ-30887-21573-BenQ GL2450H-ACB00126019
|
||||||
- DP1-2-BNQ-30887-21573-BenQ GL2450H-X4F00171019
|
- DP1-2-BNQ-30887-21573-BenQ GL2450H-X4F00171019
|
||||||
|
|
||||||
# when this rule matches, HDMI2 and HDMI3 are activated in their default
|
|
||||||
# resolution and set besides each other in a typical dual-monitor
|
|
||||||
# configuration: left is HDMI2, right is HDMI3
|
|
||||||
configure_row:
|
configure_row:
|
||||||
- DP1-1
|
- DP1-1
|
||||||
- DP1-2
|
- DP1-2
|
||||||
|
|
||||||
# atomic instructs grobi to only call xrandr once and configure all the
|
# atomic instructs grobi to only call xrandr once and configure all the
|
||||||
# outputs. This does not always work with all graphic cards.
|
# outputs. This does not always work with all graphic cards.
|
||||||
atomic: false
|
atomic: false
|
||||||
|
|
||||||
# For the output HDMI3, the flag --primary will be added to the xrandr
|
|
||||||
# call, so that e.g. the tray icons are displayed on this monitor (requires
|
|
||||||
# the window manager to do this).
|
|
||||||
primary: DP1-1
|
primary: DP1-1
|
||||||
|
|
||||||
# Additional commands can be specified per rule, in this case we make sure
|
|
||||||
# that xautolock is enabled and locks the screen after a while.
|
|
||||||
execute_after:
|
execute_after:
|
||||||
- xautolock -enable
|
- xset s on
|
||||||
- nmcli c up Kabelgebundene\ Verbindung\ 2
|
- nmcli c up Kabelgebundene\ Verbindung\ 2
|
||||||
- rfkill block wifi
|
- rfkill block wifi
|
||||||
- bluetoothctl power on
|
- bluetoothctl power on
|
||||||
@ -62,79 +44,39 @@ rules:
|
|||||||
- systemctl --user start redshift-gtk.service
|
- systemctl --user start redshift-gtk.service
|
||||||
|
|
||||||
- name: "KIT 50.34 -118"
|
- name: "KIT 50.34 -118"
|
||||||
|
|
||||||
# We only want to match the TV, so we identify it with its monitor ID. In order to get the
|
|
||||||
# monitor ID, we connect the TV and run `grobi show`, which lists all connected monitors
|
|
||||||
# with their monitor ID (which consists of a three letter manufacturer code, a product and
|
|
||||||
# a serial number). We can now match the connected outputs with this monitor ID.
|
|
||||||
# We specify the monitor ID after the port with a dash in between those two values.
|
|
||||||
outputs_connected:
|
outputs_connected:
|
||||||
- eDP1
|
- eDP1
|
||||||
- HDMI2-SNY-33283-16843009-SONY PJ-
|
- HDMI2-SNY-33283-16843009-SONY PJ-
|
||||||
|
|
||||||
configure_row:
|
configure_row:
|
||||||
- eDP1
|
- eDP1
|
||||||
- HDMI2@1920x1200
|
- HDMI2@1920x1200
|
||||||
|
|
||||||
primary: eDP1
|
primary: eDP1
|
||||||
atomic: false
|
atomic: false
|
||||||
|
|
||||||
execute_after:
|
execute_after:
|
||||||
- xautolock -disable
|
- xset s off
|
||||||
- chromium "https://s.kit.edu/50.34-118"
|
- chromium "https://s.kit.edu/50.34-118"
|
||||||
- systemctl --user stop redshift-gtk.service
|
- systemctl --user stop redshift-gtk.service
|
||||||
|
|
||||||
- name: "KIT 50.34 -108"
|
- name: "KIT 50.34 -108"
|
||||||
|
|
||||||
# We only want to match the TV, so we identify it with its monitor ID. In order to get the
|
|
||||||
# monitor ID, we connect the TV and run `grobi show`, which lists all connected monitors
|
|
||||||
# with their monitor ID (which consists of a three letter manufacturer code, a product and
|
|
||||||
# a serial number). We can now match the connected outputs with this monitor ID.
|
|
||||||
# We specify the monitor ID after the port with a dash in between those two values.
|
|
||||||
outputs_connected:
|
outputs_connected:
|
||||||
- eDP1
|
- eDP1
|
||||||
- HDMI2-SNY-33795-16843009-SONY PJ-
|
- HDMI2-SNY-33795-16843009-SONY PJ-
|
||||||
|
|
||||||
configure_row:
|
configure_row:
|
||||||
- eDP1
|
- eDP1
|
||||||
- HDMI2@1280x720
|
- HDMI2@1280x720
|
||||||
|
|
||||||
primary: eDP1
|
primary: eDP1
|
||||||
atomic: false
|
atomic: false
|
||||||
|
|
||||||
execute_after:
|
execute_after:
|
||||||
- xautolock -disable
|
- xset s off
|
||||||
- chromium "https://s.kit.edu/50.34-108"
|
- chromium "https://s.kit.edu/50.34-108"
|
||||||
- systemctl --user stop redshift-gtk.service
|
- systemctl --user stop redshift-gtk.service
|
||||||
|
|
||||||
|
|
||||||
# - name: TV
|
|
||||||
#
|
|
||||||
# # We only want to match the TV, so we identify it with its monitor ID. In order to get the
|
|
||||||
# # monitor ID, we connect the TV and run `grobi show`, which lists all connected monitors
|
|
||||||
# # with their monitor ID (which consists of a three letter manufacturer code, a product and
|
|
||||||
# # a serial number). We can now match the connected outputs with this monitor ID.
|
|
||||||
# # We specify the monitor ID after the port with a dash in between those two values.
|
|
||||||
# outputs_connected:
|
|
||||||
# - HDMI1-SAM-2618-808661557
|
|
||||||
#
|
|
||||||
# configure_single: HDMI1
|
|
||||||
#
|
|
||||||
# execute_after:
|
|
||||||
# - xautolock -disable
|
|
||||||
|
|
||||||
|
|
||||||
# This is a rule for mobile computing, i.e. outside of the docking station defined above.
|
|
||||||
- name: Mobile
|
- name: Mobile
|
||||||
|
|
||||||
# In order to match, the outputs HDMI2 and HDMI3 may be present, but must be disconnected.
|
|
||||||
outputs_disconnected:
|
outputs_disconnected:
|
||||||
- DP1-1
|
- DP1-1
|
||||||
- DP1-2
|
- DP1-2
|
||||||
|
|
||||||
# Here, only the internal LCD panel is activated.
|
|
||||||
configure_single: eDP1
|
configure_single: eDP1
|
||||||
|
|
||||||
execute_after:
|
execute_after:
|
||||||
- xautolock -enable
|
- xautolock -enable
|
||||||
- rfkill unblock wifi
|
- rfkill unblock wifi
|
||||||
|
Loading…
Reference in New Issue
Block a user