This commit is contained in:
2026-03-06 05:32:48 +01:00
parent 026eae58dc
commit e05e33ee8b
3 changed files with 56 additions and 11 deletions

View File

@@ -1,12 +1,19 @@
profile "default" {
output DP-2 enable scale 1.25 position 0,0
exec swaymsg focus output DP-1
output "Chimei Innolux Corporation 0x15B1 Unknown" {
mode 1920x1080@60.006
scale 1
alias $M4700
}
profile "with kamwas" {
output DP-2 enable scale 1.25 position 0,0
output HDMI-A-1 enable position 3072,0
exec swaymsg focus output DP-2
output "Lenovi" {
mode 2560x1440@60.006
scale 1.25
alias $M4700
}
profile "M4700" {
output $M4700 enable
}
profile "T420" {
output $T420 enable
}

6
config/sway/inputs/m4700 Normal file
View File

@@ -0,0 +1,6 @@
input 2:8:AlpsPS/2_ALPS_DualPoint_Stick {
dwt enabled
accel_profile adaptive
pointer_accel -0.2
scroll_factor 0.3
}

36
profile
View File

@@ -27,13 +27,12 @@ export DOCKER_HOST=unix:///var/run/docker.sock
export WINEFSYNC=1
export SUDO_ASKPASS=/usr/bin/ssh-askpass-fullscreen
export LIBVA_DRIVER_NAME=i965
export ANV_DEBUG=video-decode,video-encode
# themes
export QT_STYLE_OVERRIDE=fusion
# nvidia optimus bullshit
# OG
# export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json
# wayland
@@ -41,8 +40,41 @@ export QT_STYLE_OVERRIDE=fusion
# export __GLX_VENDOR_LIBRARY_NAME=nvidia
# export GBM_BACKEND=nvidia-drm
# export NVD_BACKEND=direct
#
# export WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1
# export DRI_PRIME=0
#
# From sway-nvidia
# Hardware cursors not yet working on wlroots
# export WLR_NO_HARDWARE_CURSORS=1
# Set wlroots renderer to Vulkan to avoid flickering
# export WLR_RENDERER=vulkan
# # General wayland environment variables
# export XDG_SESSION_TYPE=wayland
# export QT_QPA_PLATFORM=wayland
# export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
# # Firefox wayland environment variable
# export MOZ_ENABLE_WAYLAND=1
# export MOZ_USE_XINPUT2=1
# # OpenGL Variables
# export GBM_BACKEND=nvidia-drm
# export __GL_GSYNC_ALLOWED=0
# export __GL_VRR_ALLOWED=0
# export __GLX_VENDOR_LIBRARY_NAME=nvidia
# # Xwayland compatibility
# export XWAYLAND_NO_GLAMOR=1
##### Nouveau
# export NVK_I_WANT_A_BROKEN_VULKAN_DRIVER=1
# export MESA_VK_DEVICE_SELECT=10de:1436
# export LIBVA_DRIVER_NAME=nouveau
# export VDPAU_DRIVER=nouveau
# export NVK_USE_NAK=all
##### i965
# export LIBVA_DRIVER_NAME=i965
# export ANV_DEBUG=video-decode,video-encode
# pass
export PASSWORD_STORE_CLIP_TIME=10