summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2018-04-21 18:40:12 -0700
committerSean Whitton <spwhitton@spwhitton.name>2018-04-21 18:40:12 -0700
commit4acbee270b568ea04f92a73a3ba71cd5a23e9063 (patch)
treee8b55ec09b188e7c55162709f0ea73085b0124fd
parent820c4dd3705d55c8d5d35f7213441228cc142a83 (diff)
downloaddotfiles-4acbee270b568ea04f92a73a3ba71cd5a23e9063.tar.gz
bind xmousetidy
-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.*$//")