Skip to content

Instantly share code, notes, and snippets.

View bynect's full-sized avatar
🙄
Procrastinating

nect bynect

🙄
Procrastinating
  • Laniakea Supercluster
  • 08:52 (UTC +02:00)
View GitHub Profile
#!/bin/bash
# NOTE: This script exports only one uid
key_pattern=
remote_host=
remote_path=/var/www/html/.well-known/openpgpkey/hu/
for item in $(gpg --list-secret-keys --with-colons ${key_pattern:- } \
| awk -F: '($1 == "sec" && $2 == "u") { print $5}'); do
@bynect
bynect / xrandr-multi-layout.sh
Created June 5, 2024 11:33
Xrandr multi screen auto setup
#!/bin/bash
#
# Layout and Resolution
# NOTE: Equivalent settings set in xorg.conf
# NOTE: Never mind, xorg.conf is way too convoluted
SCREEN_NO="$(xrandr --query | grep '\bconnected\b' | wc -l)"
echo "Setting up $SCREEN_NO screen(s) with xrandr"