From e05e33ee8bcfef86d390305e44ebc09b470cd460 Mon Sep 17 00:00:00 2001 From: Sergey Besedin Date: Fri, 6 Mar 2026 05:32:48 +0100 Subject: [PATCH] Add shit --- config/kanshi/config | 25 ++++++++++++++++--------- config/sway/inputs/m4700 | 6 ++++++ profile | 36 ++++++++++++++++++++++++++++++++++-- 3 files changed, 56 insertions(+), 11 deletions(-) create mode 100644 config/sway/inputs/m4700 diff --git a/config/kanshi/config b/config/kanshi/config index ed41215..1fa51db 100644 --- a/config/kanshi/config +++ b/config/kanshi/config @@ -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 } diff --git a/config/sway/inputs/m4700 b/config/sway/inputs/m4700 new file mode 100644 index 0000000..3f6a940 --- /dev/null +++ b/config/sway/inputs/m4700 @@ -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 +} diff --git a/profile b/profile index 6b14f4c..93ef708 100644 --- a/profile +++ b/profile @@ -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