Last active
October 7, 2016 13:37
-
-
Save naps62/324143ce8bc7fcc0e3464471969e3155 to your computer and use it in GitHub Desktop.
screenkey setup for live coding display of key presses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# grab screen width and height | |
resolution=$(xrandr | grep '*' | head -n1 | tr -s ' ' | cut -d ' ' -f2) | |
resolution_width=$(echo $resolution | cut -d 'x' -f1) | |
resolution_height=$(echo $resolution | cut -d 'x' -f2) | |
# overlay will have full width, 80px height | |
width=$resolution_width | |
height=80 | |
# complete overlay geometry, pushing it to the bottom | |
geometry=${resolution_width}x${height}+0+$(($resolution_height - $height)) | |
screenkey \ | |
-g $geometry \ | |
-p fixed \ | |
--mods-only \ | |
-t 1 \ | |
--font "Source Code Pro Bold" \ | |
--no-detach \ | |
--no-systray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment