Set initial display on dual monitor system

This commit is contained in:
Andrew Scott 2023-09-03 17:36:36 -04:00
parent 7e233e3a38
commit bb3ffba2ad
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -87,13 +87,13 @@ riverctl map normal Super+Shift F send-layout-cmd rivertile "main-location right
riverctl map normal Super+Shift P send-layout-cmd rivertile "main-location top"
riverctl map normal Super+Shift N send-layout-cmd rivertile "main-location bottom"
# Move views with mouse
# Move views with mouse
riverctl map-pointer normal Super BTN_LEFT move-view
# Resize views with mouse
riverctl map-pointer normal Super BTN_RIGHT resize-view
# Toggle float with mouse
# Toggle float with mouse
riverctl map-pointer normal Super BTN_MIDDLE toggle-float
for i in $(seq 1 9)
@ -134,8 +134,7 @@ riverctl map normal Super F11 enter-mode passthrough
# Return to normal mode
riverctl map passthrough Super F11 enter-mode normal
{{ if (or (eq .chezmoi.hostname "helix") (eq .chezmoi.hostname "triangulum")) -}}
{{ if (or (eq .chezmoi.hostname "helix") (eq .chezmoi.hostname "triangulum")) }}
# Function/Media keys
for mode in normal locked
@ -170,12 +169,11 @@ do
done
{{- end }}
# Set background and border
riverctl background-color 0x323d43
riverctl border-color-focused 0xd8caac
riverctl border-color-unfocused 0x525c62
riverctl border-color-urgent 0xe68183
riverctl border-color-urgent 0xe68183
riverctl border-width 1
# Keyboard repeat rate
@ -195,6 +193,11 @@ riverctl input pointer-2-7-SynPS/2_Synaptics_TouchPad scroll-method two-finger
# Lid switch
riverctl map-switch normal lid close 'waylock-launcher'
{{- end }}
{{- if eq .chezmoi.hostname "hydrus" }}
# Focus on 1st display at login
riverctl focus-output DP-1
{{- end }}
### "rule-add" not until 0.3.0
# Make all views with an app-id that starts with "float" and title "foo" start floating.