Configureer gebruik externe monitor.
authorFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Thu, 4 Apr 2024 13:46:29 +0000 (21:46 +0800)
committerFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Thu, 4 Apr 2024 13:46:29 +0000 (21:46 +0800)
i3/.config/i3/config

index f5c43e72f2ad37270ea6710af1ae0f773f7b4679..e2a1d760ce0626fbf74309bd41245bb542002110 100644 (file)
@@ -9,8 +9,18 @@
 #
 # Please see https://i3wm.org/docs/userguide.html for a complete reference!
 
+# Set up laptop monitor as primary screen and external screen on its right
+# Managed by autorandr
+exec --no-startup-id autorandr --change
+#exec_always --no-startup-id xrandr --output eDP-1 --mode 2048x1152 --primary \
+#     --output DP-1-2 --auto --mode 2560x1440 --right-of eDP-1
+
 set $mod Mod4
 
+# Move the current workspace to the next output
+# (effectively toggles when you only have two outputs)
+bindsym $mod+x move workspace to output next
+
 # Font for window titles. Will also be used by the bar unless a different font
 # is used in the bar {} block below.
 font pango:monospace 8
@@ -180,8 +190,6 @@ bar {
         status_command i3status
 }
 
-# Display Resolution
-exec_always xrandr --output eDP-1 --mode 1920x1080
 
 # Display Wallpaper
 exec_always feh --bg-fill images/20180418T1659__Outback_regenboog.jpg
@@ -190,4 +198,4 @@ exec_always feh --bg-fill images/20180418T1659__Outback_regenboog.jpg
 bindsym --release Print exec --no-startup-id import /tmp/`date +%Y%m%dT%H%M%S`--screenshot-`hostname`.png
 
 # Take a screenshot upon pressing PrtSc (select an area)
-bindsym --release Shift+Print exec --no-startup-id import -window root /tmp/`date +%Y%m%dT%H%M%S`--screenshot-`hostname`.png
\ No newline at end of file
+bindsym --release Shift+Print exec --no-startup-id import -window root /tmp/`date +%Y%m%dT%H%M%S`--screenshot-`hostname`.png