aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/sway
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-05-04 03:39:39 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-05-04 03:41:36 +0300
commit7b0f37451da08ad99c3ce10998d772c9603645ec (patch)
treef0e6e578910590032fcace21c7c2d3f86a2c355b /dotfiles/.config/sway
parent2dcdb880365f4ac3222e852986e285fdf8789a88 (diff)
downloadswayrice-7b0f37451da08ad99c3ce10998d772c9603645ec.tar.gz
swayrice-7b0f37451da08ad99c3ce10998d772c9603645ec.zip
Sway config and scripts changes
* Hide cursor while typing globally * Move cursor to focused container * Improve swaygetcurrentwindow script, used by other scripts
Diffstat (limited to 'dotfiles/.config/sway')
-rw-r--r--dotfiles/.config/sway/config8
1 files changed, 5 insertions, 3 deletions
diff --git a/dotfiles/.config/sway/config b/dotfiles/.config/sway/config
index c2824ab..f82c514 100644
--- a/dotfiles/.config/sway/config
+++ b/dotfiles/.config/sway/config
@@ -14,6 +14,9 @@ set $browser qutebrowser
# Switch back to previously focused ws on ws switch command repeat
workspace_auto_back_and_forth yes
+# Move mouse to focused container
+mouse_warping container
+
# Configure border style <normal|1pixel|pixel xx|none|pixel>
default_border pixel 2
default_floating_border pixel 2
@@ -106,10 +109,9 @@ for_window [app_id="telegramdesktop"] floating enable, sticky enable
for_window [title="^ddterminal$"] floating enable, sticky enable
#for_window [title="^ddterminal$"] border none
-# Laptop lid
-bindswitch --reload --locked lid:on exec "swaysession suspend"
+# Don't display mouse cursor while typing
+seat * hide_cursor when-typing enable
-# Trackpoint (Thinkpad)
input 2:10:TPPS/2_IBM_TrackPoint {
accel_profile flat
pointer_accel 0.8