add script to change screen
This commit is contained in:
parent
0e17da9f9c
commit
e96cfc90b5
4 changed files with 19 additions and 0 deletions
|
@ -141,3 +141,13 @@ bar {
|
|||
focus_follows_mouse no
|
||||
|
||||
bindsym $mod+Escape exec i3lock
|
||||
|
||||
set $mode_screen Screen layout: [h]ome [m]obile
|
||||
bindsym $mod+s mode "$mode_screen"
|
||||
mode "$mode_screen" {
|
||||
bindsym h exec ~/.config/i3/scripts/home.sh, mode "default"
|
||||
bindsym m exec ~/.config/i3/scripts/mobile.sh, mode "default"
|
||||
|
||||
bindsym Escape mode "default"
|
||||
bindsym Return mode "default"
|
||||
}
|
||||
|
|
2
roles/i3/files/scripts/home.sh
Executable file
2
roles/i3/files/scripts/home.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/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
|
2
roles/i3/files/scripts/mobile.sh
Executable file
2
roles/i3/files/scripts/mobile.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/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
|
|
@ -13,3 +13,8 @@
|
|||
copy:
|
||||
src: "{{ role_path }}/files/config"
|
||||
dest: ~/.config/i3/config
|
||||
- name: Copy scripts directory
|
||||
copy:
|
||||
src: "{{ role_path }}/files/scripts"
|
||||
dest: ~/.config/i3
|
||||
mode: preserve
|
||||
|
|
Reference in a new issue