Skip to content

Instantly share code, notes, and snippets.

@mintyleaf
mintyleaf / brysendtomon.sh
Created March 28, 2021 10:39
brysendtomon.sh
#!/bin/sh
mon() {
for i in $(lsd); do
echo $(dattr x $i)\;$i
done
}
CMON=$(pfd || eDP1)
MONS=$(mon | sort)
@mintyleaf
mintyleaf / pv.sh
Last active April 19, 2023 19:52
lf (maybe ranger too) media w3m-img preview script
#!/usr/bin/env bash
# based on github.com/gokcehan/lf/wiki/Previews
# thanks to dylanaraps for bash bible
# a margin in pixels needed to prevent image from overlapping top title
SAFE_MARGIN=56
# a threshhold for upscaling images, like pixelart or so
NOFILTER_THRESH=256
@mintyleaf
mintyleaf / mintfetch
Last active September 29, 2017 16:48
#!/usr/bin/env python
import platform, subprocess, re
subprocess.run('clear')
uname = platform.uname()
xid = subprocess.getoutput('xprop -root -notype _NET_SUPPORTING_WM_CHECK')
xid=xid[-8:]
BOLD = '\033[1m'
@mintyleaf
mintyleaf / config
Last active June 15, 2017 09:38
Polybar
; mintyleaf polybar config
[colors]
background = #383838
background-alt = #444
foreground = #dfdfdf
foreground-alt = #555
primary = #999999
secondary = #999999
alert = #ff9999