easier screen configuration
This commit is contained in:
parent
1c9d92fa81
commit
1cc83940d7
10 changed files with 41 additions and 17 deletions
|
@ -12,8 +12,7 @@ My current setup is [Debian Bullseye](https://www.debian.org/releases/bullseye/)
|
|||
|
||||
- thunderbird config (pretty hard to do, should just capture steps taken somewhere)
|
||||
- firefox config? extensions? host own synchronizer?
|
||||
- fix suspend
|
||||
- Better randr profiles using autorandr: https://github.com/phillipberndt/autorandr
|
||||
- Daemon to restore wallpaper?
|
||||
|
||||
#### Neovim
|
||||
|
||||
|
|
14
roles/i3/files/autorandr/home/config
Normal file
14
roles/i3/files/autorandr/home/config
Normal file
|
@ -0,0 +1,14 @@
|
|||
output HDMI-1
|
||||
off
|
||||
output DP-2
|
||||
off
|
||||
output HDMI-2
|
||||
off
|
||||
output eDP-1
|
||||
off
|
||||
output DP-1
|
||||
crtc 0
|
||||
mode 1920x1200
|
||||
pos 0x0
|
||||
primary
|
||||
rate 59.95
|
2
roles/i3/files/autorandr/home/setup
Normal file
2
roles/i3/files/autorandr/home/setup
Normal file
|
@ -0,0 +1,2 @@
|
|||
DP-1 00ffffffffffff0010ac7ba05333593219180104a53420783aee95a3544c99260f5054a1080081408180a940b300d1c0010101010101283c80a070b023403020360006442100001a000000ff003046465844343649325933530a000000fc0044454c4c2055323431324d0a20000000fd00323d1e5311000a20202020202000a6
|
||||
eDP-1 00ffffffffffff000dae39120000000006190104a51c1078025d45965852982726505400000001010101010101010101010101010101363680a0703820402e1e2400149b1000001a000000fe004e3132354843452d474e310a20000000fe00434d4e0a202020202020202020000000fe004e3132354843452d474e310a200091
|
14
roles/i3/files/autorandr/mobile/config
Normal file
14
roles/i3/files/autorandr/mobile/config
Normal file
|
@ -0,0 +1,14 @@
|
|||
output DP-1
|
||||
off
|
||||
output HDMI-1
|
||||
off
|
||||
output DP-2
|
||||
off
|
||||
output HDMI-2
|
||||
off
|
||||
output eDP-1
|
||||
crtc 0
|
||||
mode 1920x1080
|
||||
pos 0x0
|
||||
primary
|
||||
rate 60.00
|
1
roles/i3/files/autorandr/mobile/setup
Normal file
1
roles/i3/files/autorandr/mobile/setup
Normal file
|
@ -0,0 +1 @@
|
|||
eDP-1 00ffffffffffff000dae39120000000006190104a51c1078025d45965852982726505400000001010101010101010101010101010101363680a0703820402e1e2400149b1000001a000000fe004e3132354843452d474e310a20000000fe00434d4e0a202020202020202020000000fe004e3132354843452d474e310a200091
|
|
@ -23,7 +23,7 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- ~/.config/i3/scripts/lock
|
|||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
||||
exec --no-startup-id nm-applet
|
||||
|
||||
exec --no-startup-id nitrogen --restore
|
||||
exec --no-startup-id ~/.config/i3/scripts/load.sh
|
||||
|
||||
exec --no-startup-id keepassxc
|
||||
|
||||
|
@ -138,16 +138,7 @@ bar {
|
|||
|
||||
focus_follows_mouse no
|
||||
|
||||
# Screen picker
|
||||
set $mode_screen Screen layout: [h]ome [m]obile
|
||||
bindsym $mod+s mode "$mode_screen"
|
||||
mode "$mode_screen" {
|
||||
bindsym h exec --no-startup-id ~/.config/i3/scripts/home.sh, mode "default"
|
||||
bindsym m exec --no-startup-id ~/.config/i3/scripts/mobile.sh, mode "default"
|
||||
|
||||
bindsym Escape mode "default"
|
||||
bindsym Return mode "default"
|
||||
}
|
||||
bindsym $mod+s exec --no-startup-id ~/.config/i3/scripts/load.sh
|
||||
|
||||
# Session options
|
||||
set $mode_session Session option: [l]ock [r]eboot [s]uspend [p]oweroff [e]xit
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
xrandr --output eDP-1 --off --output DP-1 --primary --mode 1920x1200 --pos 0x0 --rotate normal --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off && nitrogen --restore
|
3
roles/i3/files/scripts/load.sh
Executable file
3
roles/i3/files/scripts/load.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
autorandr --change && nitrogen --restore
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off && nitrogen --restore
|
|
@ -47,3 +47,7 @@
|
|||
option: HandleLidSwitch
|
||||
value: suspend
|
||||
no_extra_spaces: true
|
||||
- name: Copy autorandr configuration
|
||||
copy:
|
||||
src: "{{ role_path }}/files/autorandr/"
|
||||
dest: ~/.config
|
||||
|
|
Reference in a new issue