summaryrefslogtreecommitdiff
path: root/content/openbsd/screenshot.md
blob: 4065fc4a5c7b2c0bebdffd76ceeee9d5dc72e2c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
title: 'Simple Screenshot Script'
date: 2024-12-05T01:43:04-05:00
draft: false
tags: ['Tech', 'Linux', 'OpenBSD']
---

The one annoying issue I had with OpenBSD when I first set it up, was that my
old screenshot script was incompatible with OpenBSD *(Due to RustC)*. 
And I enjoy a very simple *"suckless"* style screenshot program.

### One line script

And the best part, is that it's a one line script; If that isn't clean code, then I don't know what is.

```
#!/bin/sh

maim -s --format=bmp -o Pictures/screenshots/$(date +%s).bmp
```