From cb5a0c7ea55a2e5286f5685b64d6e43b9cf171a2 Mon Sep 17 00:00:00 2001 From: Karl Goecking Date: Sun, 15 Feb 2026 06:23:31 +0100 Subject: [PATCH] Add display management: arandr, autorandr, monitor keybindings --- files/configs/i3/i3/config | 6 ++++++ tasks/configure-software-fedora.yaml | 2 +- tasks/configure-software-manjaro.yaml | 2 +- tasks/configure-software-ubuntu.yaml | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/files/configs/i3/i3/config b/files/configs/i3/i3/config index eb90a98..ae8446c 100644 --- a/files/configs/i3/i3/config +++ b/files/configs/i3/i3/config @@ -41,6 +41,11 @@ bindsym $mod+Ctrl+p exec pavucontrol bindsym $mod+Ctrl+b exec alacritty -e bmenu bindsym $mod+Print --release exec --no-startup-id flameshot gui +# Display management +bindsym $mod+Ctrl+d exec autorandr --change +bindsym $mod+Ctrl+a exec arandr +bindsym $mod+Ctrl+m exec xrandr --output eDP1 --auto --output $(xrandr | grep ' connected' | grep -v eDP1 | awk '{print $1}') --auto --right-of eDP1 + # Dunst notification control bindsym $mod+n exec dunstctl close bindsym $mod+Shift+n exec dunstctl close-all @@ -52,6 +57,7 @@ exec --no-startup-id nitrogen --restore; sleep 1; picom -b exec --no-startup-id nm-applet exec --no-startup-id blueman-applet exec --no-startup-id xautolock -time 10 -locker blurlock +exec --no-startup-id autorandr --change exec --no-startup-id keepassxc --keyfile /home/kalle/kgokeyfile /home/kalle/Passwords.kdbx bindsym $mod+Left focus left diff --git a/tasks/configure-software-fedora.yaml b/tasks/configure-software-fedora.yaml index 3d147ea..bb9782c 100644 --- a/tasks/configure-software-fedora.yaml +++ b/tasks/configure-software-fedora.yaml @@ -15,7 +15,7 @@ - name: Package Installation - System Desktop package: - name: ["rofi", "nitrogen", "arandr", "dunst"] + name: ["rofi", "nitrogen", "arandr", "autorandr", "dunst"] state: present - name: Package Installation - I3 Desktop diff --git a/tasks/configure-software-manjaro.yaml b/tasks/configure-software-manjaro.yaml index a996892..78809db 100644 --- a/tasks/configure-software-manjaro.yaml +++ b/tasks/configure-software-manjaro.yaml @@ -20,5 +20,5 @@ - name: Package Installation - System Desktop package: - name: ["rofi", "nitrogen", "dunst", "i3blocks"] + name: ["rofi", "nitrogen", "dunst", "i3blocks", "arandr", "autorandr"] state: present diff --git a/tasks/configure-software-ubuntu.yaml b/tasks/configure-software-ubuntu.yaml index 3f5059e..542ecbe 100644 --- a/tasks/configure-software-ubuntu.yaml +++ b/tasks/configure-software-ubuntu.yaml @@ -20,5 +20,5 @@ - name: Package Installation - System Desktop package: - name: ["rofi", "nitrogen", "dunst", "i3blocks"] + name: ["rofi", "nitrogen", "dunst", "i3blocks", "arandr", "autorandr"] state: present