From bb3ffba2addda7cbe12517ee5244187e9ef68873 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Sun, 3 Sep 2023 17:36:36 -0400 Subject: [PATCH] Set initial display on dual monitor system --- dot_config/river/executable_init.tmpl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/dot_config/river/executable_init.tmpl b/dot_config/river/executable_init.tmpl index 56161fd..e47e49b 100644 --- a/dot_config/river/executable_init.tmpl +++ b/dot_config/river/executable_init.tmpl @@ -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.