Ajout de Kanshi pour la gestion des écrans

This commit is contained in:
Damien Broqua 2022-06-27 10:53:49 +02:00
parent 9ef26d9eab
commit 5f72bdbfe5
2 changed files with 25 additions and 11 deletions

13
config/kanshi/config Normal file
View file

@ -0,0 +1,13 @@
profile office {
output eDP-1 enable mode 1920x1080 position 2560,0
output DP-2 enable mode 2560x1080 position 0,0
}
profile laptop {
output DP-2 disable
output eDP-1 enable mode 1920x1080 position 0,0
}
profile home {
output HDMI-A-3 enable mode 3440x1440@100Hz position 0,0
}

View file

@ -24,10 +24,10 @@ input type:touchpad {
set $mod Mod4
# Displays
set $thinkstation HDMI-A-3
#set $thinkstation-work "Iiyama North America PL2483H 1173700204528"
set $thinkpad eDP-1
set $thinkpad-work DP-2
#set $thinkstation HDMI-A-3
##set $thinkstation-work "Iiyama North America PL2483H 1173700204528"
#set $thinkpad eDP-1
#set $thinkpad-work DP-2
# Workspaces
set $wksp1 "1: Main"
@ -81,12 +81,12 @@ set $gnome-schema org.gnome.desktop.interface
#
# Thinkstation
output $thinkstation resolution 3440x1440@100Hz position 0 0 adaptive_sync on
#output $thinkstation-work resolution 1920x1080@60Hz position 3440 0 transform 270 adaptive_sync on
#output $thinkstation resolution 3440x1440@100Hz position 0 0 adaptive_sync on
##output $thinkstation-work resolution 1920x1080@60Hz position 3440 0 transform 270 adaptive_sync on
# Thinkpad
output $thinkpad resolution 1920x1080 position 2560 0
output $thinkpad-work resolution 2560x1080 position 0 0
#output $thinkpad resolution 1920x1080 position 2560 0
#output $thinkpad-work resolution 2560x1080 position 0 0
### Gnome settings
@ -123,6 +123,7 @@ exec dbus-daemon --session --address=unix:path=$XDG_RUNTIME_DIR/bus
exec gnome-keyring-daemon
#exec /usr/bin/libinput-gestures
#exec nm-applet --indicator
exec kanshi
exec kdeconnect-indicator
exec mako
exec nextcloud --background
@ -134,7 +135,7 @@ exec teams
exec mpd
exec libinput-gestures-setup start
# Set focus on main screen
exec ~/bin/autoFocus.sh
#exec ~/bin/autoFocus.sh
### Window config
@ -211,8 +212,8 @@ bindsym $mod+shift+m exec "$term -t 'Music Player Client' -e ncmpcpp"
bindsym $mod+shift+v exec "$term -t 'Audio Visualizer' -e cava"
# Screen
bindsym $mod+p exec "swaymsg output $work toggle"
bindsym $mod+alt+p exec "swaymsg output $thinkpad toggle"
#bindsym $mod+p exec "swaymsg output $work toggle"
#bindsym $mod+alt+p exec "swaymsg output $thinkpad toggle"
#
# Brightness