My cat Lenora is constantly blocking my screen. I swear it’s a game to her. She’s exceptionally skilled at moving in front of whichever monitor I’m trying to look at, even if I move windows to different monitors.
To get around this I use a couple of very simple bash scripts I’ve linked to keyboard shortcuts. One rolls the active window up to a narrow band on my monitor that’s higher up than she can block, and the other rolls it back down again once she gives up.
If you have Linux and cats in your life, you can do the same! I’ll gloss over the Ubuntu way here, but it’s almost the same with any distro.
First, install wmctrl with sudo apt install wmctrl, then create the following scripts somewhere. Edit HEIGHT to equal the approximate pixels between the top of your monitor and the top of your cat.
# remove active window's vertical maximization property
wmctrl -r :ACTIVE: -b remove,maximized_vert
# resize active window, ignoring everything but height
wmctrl -r :ACTIVE: -e 0,-1,-1,-1,$HEIGHT
Next, with those scripts saved, make them each executable with chmod +x <path to script>.
Last, add two custom keyboard shortcuts under your operating system’s settings. Name them anything and point them at the scripts you saved as their action. For the shortcuts themselves, I like to use Alt+Page Up and Alt+Page Down, but you can use anything.
Now if only there could be a Bash script to make my headset look less like a chew toy.
The Wacom Intuos is a common tablet used for creating digital artwork and vector drawings. It works surprisingly well on newer Ubuntu machines using built-in drivers and xsetwacom–perhaps even easier than on Windows, where support for the factory software can be lacking (Windows 7) or somewhat difficult to install (Windows 10). xsetwacom scaling and multiple […]
This post covers installation and usage impressions of GalliumOS on the Dell Chromebook 11 3120. To jump straight in, skip to Before You Start. Why the Chromebook? With November around the corner, I needed a decent laptop to attend National Novel Writing Month meetups. Much as I love my MSI GS73VR, a gaming laptop of […]