what's up with t420? #1

Open
sergey wants to merge 2 commits from t420 into master
5 changed files with 68 additions and 16 deletions

View File

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

View File

@@ -149,12 +149,12 @@ bindsym $mod+z exec $locking
# bindsym $mod+x exec "taskwarrior_stop" # bindsym $mod+x exec "taskwarrior_stop"
# bindsym $mod+Shift+z exec "suspend-and-lock" # bindsym $mod+Shift+z exec "suspend-and-lock"
bindsym XF86MonBrightnessUp exec --no-startup-id /usr/bin/light -A 5 # bindsym XF86MonBrightnessUp exec --no-startup-id /usr/bin/light -A 5
bindsym XF86MonBrightnessDown exec --no-startup-id /usr/bin/light -U 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 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 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 XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
# bindsym $mod+Shift+o exec "display_switch" # bindsym $mod+Shift+o exec "display_switch"

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
}

View File

@@ -104,7 +104,7 @@
min-height: 0; min-height: 0;
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: "Iosevka Custom"; font-family: "Iosevka Custom", "Font Awesome 5 Free";
} }
/* The whole bar */ /* The whole bar */

39
profile
View File

@@ -27,6 +27,12 @@ export DOCKER_HOST=unix:///var/run/docker.sock
export WINEFSYNC=1 export WINEFSYNC=1
export SUDO_ASKPASS=/usr/bin/ssh-askpass-fullscreen export SUDO_ASKPASS=/usr/bin/ssh-askpass-fullscreen
# themes
export QT_STYLE_OVERRIDE=fusion
# nvidia optimus bullshit
# OG # OG
# export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json # export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json
# wayland # wayland
@@ -34,8 +40,41 @@ export SUDO_ASKPASS=/usr/bin/ssh-askpass-fullscreen
# export __GLX_VENDOR_LIBRARY_NAME=nvidia # export __GLX_VENDOR_LIBRARY_NAME=nvidia
# export GBM_BACKEND=nvidia-drm # export GBM_BACKEND=nvidia-drm
# export NVD_BACKEND=direct # export NVD_BACKEND=direct
#
# export WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1 # export WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1
# export DRI_PRIME=0 # 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 # pass
export PASSWORD_STORE_CLIP_TIME=10 export PASSWORD_STORE_CLIP_TIME=10