Skip to content

Instantly share code, notes, and snippets.

View aacero's full-sized avatar

Tony Acero aacero

View GitHub Profile
@aacero
aacero / gist:7698052d65212114bc1517e2ace2b289
Created December 7, 2022 03:54
Convert OneTab's export format to a "close-enough" MD format that buku can import
sed -e 's/ | /|/' OneTab |awk -F\| '{print "- ["$2"]("$1")"}' > onetab.md
buku -i onetab.md
@aacero
aacero / regolith_notes.md
Last active April 20, 2021 00:30
Regolith Notes

Regolith Notes

Stuff that took me a while to figure out, and that I can't seem to commit to memory.

1. The system tray won't display after trying just about everything

  • Verify that tray_output is correctly defined in i3/config and that 'xrandr' agrees.
    tray_output can be "primary" or the name of a monitor, ie HDMI-0.
    Things to check:
    • xrdb -q | grep -i tray
    • grep -i tray {/etc,~/.config}/regolith/i3/config
  • xrandr
@aacero
aacero / keybase.md
Created March 16, 2021 12:31
keybase proof

Keybase proof

I hereby claim:

  • I am aacero on github.
  • I am aaa66 (https://keybase.io/aaa66) on keybase.
  • I have a public key ASCtjCT4ULB64VDAUu8GlcPXTSWF792WbGtUbjY8BY9Nlwo

To claim this, I am signing this object:

@aacero
aacero / 0TrySome4kVideoModes.sh
Last active August 24, 2022 05:45
How I got 4K video resolution working with an older Intel graphics chipset (Ubuntu 20.04, Samsung U32R59x)
#!/bin/bash
# cvt 2560 1440 30
# xrandr --newmode "2560x1440_30.00" 146.25 2560 2680 2944 3328 1440 1443 1448 1468 -hsync +vsync
# xrandr --addmode HDMI-1 2560x1440_30.00
# xrandr --output HDMI-1 --mode 2560x1440_30.00
# This one is easier on the eyes than 3840x2160 @24Hz:
# cvt -r 2560 1440 60
# 2560x1440 59.95 Hz (CVT 3.69M9-R) hsync: 88.79 kHz; pclk: 241.50 MHz