Compare commits

..

3 Commits

Author SHA1 Message Date
fd26b3544a
Add kanshi config
Dynamically manages outputs based on profiles.
2021-09-23 09:22:52 +03:00
924b3c3a06
sway/config: Add comment about dwt
This was added some time ago when I was troubleshooting touchpads.
2021-09-23 09:21:52 +03:00
cb50361cf2
sway/config: manage outputs with kanshi
This is dynamic.
2021-09-23 09:21:24 +03:00
2 changed files with 13 additions and 37 deletions

10
kanshi/config Normal file
View File

@ -0,0 +1,10 @@
profile external-dell {
output eDP-1 disable
# Dell P2416D, 23.8 inches, 123.41 PPI (see https://www.sven.de/dpi/)
# "make model serial" from `swaymsg -t get_outputs`
output "Dell Inc. DELL P2416D 6RC2C54O0NWS" mode 2560x1440 position 0,0 scale 1.75
}
profile internal {
output eDP-1 enable mode 2560x1440 scale 1.75 position 0,0
}

View File

@ -51,43 +51,8 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
# eDP-1 is the internal laptop display
output eDP-1 {
scale 2
resolution 2560x1440
position 0,0
}
# DP-1, DP-2, DP-3, and DP-4 are display port when connected to dock
output DP-1 {
scale 2
resolution 2560x1440
position 1280,0
}
output DP-2 {
scale 2
resolution 2560x1440
position 1280,0
}
output DP-3 {
scale 2
resolution 2560x1440
position 1280,0
}
output DP-4 {
scale 2
resolution 2560x1440
position 1280,0
}
output HDMI-A-1 {
scale 1
resolution 1280x720
position 1280,0
}
# Manage outputs with kanshi
exec_always pkill kanshi; exec kanshi
# Wayland overlay bar for sound and brightness level
exec mkfifo $SWAYSOCK.wob && tail -f $SWAYSOCK.wob | wob
@ -123,6 +88,7 @@ exec swayidle \
# Read `man 5 sway-input` for more information about this section.
input type:touchpad {
# note that DWT only works for internal touchpads (see libinput issue #524)
dwt enabled
tap enabled
natural_scroll enabled