summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/i3/config2
-rwxr-xr-xbin/xmousetidy2
2 files changed, 3 insertions, 1 deletions
diff --git a/.config/i3/config b/.config/i3/config
index 75c99828..24f394f6 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -131,6 +131,8 @@ bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
+bindsym $mod+u exec xmousetidy
+
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
diff --git a/bin/xmousetidy b/bin/xmousetidy
index 457b6192..1958e27a 100755
--- a/bin/xmousetidy
+++ b/bin/xmousetidy
@@ -1,3 +1,3 @@
-#!/bin/zsh
+#!/bin/bash
xdotool mousemove 0 $(xdpyinfo | grep dimensions | sed -e "s/ dimensions: [0-9]*x//" | sed -e "s/ pixels.*$//")