Commit Graph

5 Commits

Author SHA1 Message Date
dacav
7a776bcf7f Drop unnecessary trap
If we are using a file, the trap is not defined in the first place,
so we don't need to undefined it.
2025-08-22 22:21:17 +01:00
dacav
a114e18fdf Wayland support
The clipboard= configuration file determines what clipboard manager should be
used, if xclip or wl-copy/wl-paste.  The variable defaults to the value of
XDG_SESSION_TYPE which is considered a reliable method to determine what
graphical session is currently being used[1]

[1] https://unix.stackexchange.com/a/355476
2025-08-22 22:21:17 +01:00
dacav
e4602aeeec Add 'die' function
Candidate replacement of multiple instances of the same error
handling sequence.
2025-08-22 22:21:17 +01:00
dacav
e8e8080e08 Replace ~/.config/imgbb_uploader/api_key with generic config file
The configuration is stored under ~/.config/imgbb_uploader.conf.
The file is simply sourced, so the configuration file can be
a shell script. It just needs to assign the required variables.
2025-08-22 22:21:17 +01:00
c9596e0a28 [Add] Initial commit. 2025-08-22 22:20:58 +01:00