Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,11 @@ bindsym $mod+Shift+x exec "\
i3-nagbar --message 'Screenshot created' --type warning & \
sleep 3; pkill i3-nagbar"
```
* Shortcut for I3 to take a cropped screenshot and save it with current date in ISO 8601 date followed by a custom filename.

```bash
bindsym $mod+Shift+s exec --no-startup-id \
"outfilePrefix=$(dmenu -p 'Enter output filename without prefix or spaces' < /dev/null) && \
maim -s --hidecursor ~/screenshots/$(date +%Y-%m-%d_)$outfilePrefix.png || \
i3-nagbar --type warning --message 'Error: Maim exited with non-zero exit code'"
```