From 026eae58dc8eb929ed3ca5d518578bdb93cbd97a Mon Sep 17 00:00:00 2001 From: Sergey Besedin Date: Thu, 9 Oct 2025 13:52:17 +0400 Subject: [PATCH 1/2] Add t420 stuff --- config/sway/config | 12 ++++++------ config/waybar/style.css | 2 +- profile | 7 +++++++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/config/sway/config b/config/sway/config index fe9417b..cad852e 100644 --- a/config/sway/config +++ b/config/sway/config @@ -149,12 +149,12 @@ bindsym $mod+z exec $locking # bindsym $mod+x exec "taskwarrior_stop" # bindsym $mod+Shift+z exec "suspend-and-lock" -bindsym XF86MonBrightnessUp exec --no-startup-id /usr/bin/light -A 5 -bindsym XF86MonBrightnessDown exec --no-startup-id /usr/bin/light -U 5 - -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +3% -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -3% -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle +# bindsym XF86MonBrightnessUp exec --no-startup-id /usr/bin/light -A 5 +# bindsym XF86MonBrightnessDown exec --no-startup-id /usr/bin/light -U 5 +# +# bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +3% +# bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -3% +# bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # bindsym $mod+Shift+o exec "display_switch" diff --git a/config/waybar/style.css b/config/waybar/style.css index 26fb424..a2bcb09 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -104,7 +104,7 @@ min-height: 0; margin: 0; padding: 0; - font-family: "Iosevka Custom"; + font-family: "Iosevka Custom", "Font Awesome 5 Free"; } /* The whole bar */ diff --git a/profile b/profile index 9da0049..6b14f4c 100644 --- a/profile +++ b/profile @@ -27,6 +27,13 @@ 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 + + # OG # export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json # wayland -- 2.49.1 From e05e33ee8bcfef86d390305e44ebc09b470cd460 Mon Sep 17 00:00:00 2001 From: Sergey Besedin Date: Fri, 6 Mar 2026 05:32:48 +0100 Subject: [PATCH 2/2] 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 -- 2.49.1