From 5f72bdbfe5e007a9b067b33c05c2e6f252802a27 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Mon, 27 Jun 2022 10:53:49 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20Kanshi=20pour=20la=20gestion=20des?= =?UTF-8?q?=20=C3=A9crans?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/kanshi/config | 13 +++++++++++++ config/sway/config | 23 ++++++++++++----------- 2 files changed, 25 insertions(+), 11 deletions(-) create mode 100644 config/kanshi/config diff --git a/config/kanshi/config b/config/kanshi/config new file mode 100644 index 0000000..d58486b --- /dev/null +++ b/config/kanshi/config @@ -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 +} diff --git a/config/sway/config b/config/sway/config index 7af0e72..53da559 100644 --- a/config/sway/config +++ b/config/sway/config @@ -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