I3 tips and tricks

From wikinotes
Revision as of 21:54, 6 August 2021 by Will (talk | contribs) (Created page with "= Hiding Mouse = <blockquote> Having the mouse in the middle of the screen gets annoying. Originally I solved this by using <code>xdotool</code>, but due to it's interference...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hiding Mouse

Having the mouse in the middle of the screen gets annoying. Originally I solved this by using xdotool, but due to it's interference when using controllers in games, I switched to a much cleaner solution unclutter.

### xdotool method (old)
# DESC: for every window-operation, move the mouse to the bottom of the display
#
bindsym		$mod+h				focus left     ;exec "xdotool mousemove_relative --sync 0 1000"
### unclutter method (new)
#
#
unclutter -idle 5

10 workspaces per-monitor

I was able to do this by leveraging python python-xlib, parxing xrandr output, and issuing commands to i3-msg.

References
https://github.com/xevz/dotfiles/blob/master/.i3/config.base
https://www.reddit.com/r/i3wm/comments/36diri/can_i_alter_the_multimonitor_behaivour/

window border colour

#                     {bg color}
client.focused #859900 #859900 #fdf6e3 #859900