From ea86783651f5561bc735f7393a6d1b8aca81b4d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 25 Feb 2022 08:17:44 +0100 Subject: sway: improve integration --- config/sway/config | 3 ++- config/sway/gsettings | 2 +- config/sway/inputs | 13 +++++++++++++ local/bin/sshvnc | 4 ++-- local/bin/startsway | 2 ++ private | 2 +- 6 files changed, 21 insertions(+), 5 deletions(-) diff --git a/config/sway/config b/config/sway/config index 9008042..14341d2 100644 --- a/config/sway/config +++ b/config/sway/config @@ -4,9 +4,10 @@ exec --no-startup-id gentoo-pipewire-launcher exec --no-startup-id myswaylock exec --no-startup-id swaybackground ################################################################################ -include gsettings include inputs +include gsettings ################################################################################ +include bar smart_borders on default_border normal diff --git a/config/sway/gsettings b/config/sway/gsettings index cae6b84..c3ea34c 100644 --- a/config/sway/gsettings +++ b/config/sway/gsettings @@ -2,7 +2,7 @@ exec_always { gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita' gsettings set org.gnome.desktop.interface cursor-theme 'Adwaita' - gsettings set org.gnome.desktop.interface icon-theme 'Faenza' + gsettings set org.gnome.desktop.interface icon-theme 'Delft' gsettings set org.gnome.desktop.interface font-name 'DejaVu Sans 8' gsettings set org.gnome.desktop.interface gtk-key-theme 'Emacs' } diff --git a/config/sway/inputs b/config/sway/inputs index 4bfd203..235105e 100644 --- a/config/sway/inputs +++ b/config/sway/inputs @@ -8,6 +8,7 @@ input type:keyboard { input type:touchpad { tap enabled + middle_emulation enabled } seat '*' { @@ -15,3 +16,15 @@ seat '*' { hide_cursor 10000 hide_cursor when-typing disable } + +## Susan inputs ################################################################ +input '9610:33:HAILUCK_CO.,LTD_USB_KEYBOARD_Mouse' { + middle_emulation enabled + scroll_method on_button_down +} +input '10182:275:GXTP7386:00_27C6:0113_Stylus' { + calibration_matrix 0 -1 1 1 0 0 +} +input '10182:275:GXTP7386:00_27C6:0113' { + calibration_matrix 0 -1 1 1 0 0 +} diff --git a/local/bin/sshvnc b/local/bin/sshvnc index 8b6fa0d..af133b4 100755 --- a/local/bin/sshvnc +++ b/local/bin/sshvnc @@ -9,9 +9,9 @@ while lsof -i:$localport; do done ssh -L "$localport":localhost:5900 "$target" \ - 'x11vnc -bg -localhost -display :0' + 'start-stop-daemon -v -w 1000 -bmp "/var/run/user/$(id -u)/sshvnc.pid" -e WAYLAND_DISPLAY=wayland-1 -S wayvnc localhost 5900' vncviewer "localhost:$localport" -ssh "$target" 'x11vnc -remote stop -localhost -display :0' +ssh "$target" 'start-stop-daemon -v -p /var/run/user/$(id -u)/sshvnc.pid -K wayvnc' ssh -O cancel -L "$localport":localhost:5900 "$target" diff --git a/local/bin/startsway b/local/bin/startsway index 995362e..63163ee 100755 --- a/local/bin/startsway +++ b/local/bin/startsway @@ -14,5 +14,7 @@ export force_s3tc_enable=true # Fix firefox touchscreen gestures and force wayland export MOZ_USE_XINPUT2=1 export MOZ_ENABLE_WAYLAND=1 +# Java application do not display properly +export _JAVA_AWT_WM_NONREPARENTING=1 exec dbus-run-session sway diff --git a/private b/private index 25d88b1..c3a2678 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit 25d88b1cc753ab9c2b0ef51a39be04c8fc888902 +Subproject commit c3a2678922b92e2fca58fbf8f56a77d1d5abfcc1 -- cgit v1.2.3