Screenshot not working
System details
NVIDIA 5090, Omarchy latest
What's wrong?
omarchy-cmd-screenshot config file not found Error: Unrecognized image file format Error: Unrecognized image file format
running Update > Config > Plymouth makes it so I can run it once and then it stops working again..
omarchy-cmd-screenshot
config file not found
(satty:51784): Adwaita-WARNING **: 16:20:52.495: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
omarchy-cmd-screenshot
\config file not found
Error: Unrecognized image file format
Error: Unrecognized image file format
I got the same issue on a Framework 13 AMD.
I have the same issue. I can select a region once I press Print Screen , but it doesn't do anything after that.
OS: Omarchy v2.1.2 Kernel: Linux 6.16.6-arch1-1 Hyprland 0.51.0
Not exactly the same issue, but screenshot works only the second time.
Screenshot works for me without issues, no changes made on top of the default. Here's "screenshot" of fastfetch.
Same here. Same errors when running omarchy-cmd-screenshot from terminal as @Luquatic mentioned.
OS: Omarchy v2.1.2 Kernel: Linux 6.16.7-arch1-1 Hyprland 0.51.0
Not exactly the same issue, but screenshot works only the second time.
same here
By happenstance, I've tracked this down back to the update of adding --freeze here. https://github.com/basecamp/omarchy/blob/d09b6aa42a25e71e270ac8ac19e5ce3c17feb878/bin/omarchy-cmd-screenshot#L11C47-L11C55
On my system, it's hit and miss. Sometimes the snapshot works, sometimes it doesn't. Without --freeze, I've gone hours with no failures.
I've proposed an solution here https://github.com/basecamp/omarchy/issues/1650, looks like more people are having this issue, so most likely I will turn this into a pr soon.
I noticed that when I'm using multiple monitors, screenshots work perfectly fine, but then they stop working when I switch to just using my laptop's built-in display with my custom config:
# Three-display setup
env = GDK_SCALE,1
monitor = desc:Lenovo Group Limited 0x4146, 3840x2400@60, 3840x0, 2
monitor = desc:Dell Inc. DELL P2419H JX3S993, 1920x1080@60, 1920x0, 1
monitor = desc:Philips Consumer Electronics Company PHL 241B8Q ZV02147015793, preferred, 0x0, 1
So, I tried turning the default optimized monitor setting back on, then the screenshot worked.
env = GDK_SCALE,2
monitor=,preferred,auto,auto
We had the same experience - https://github.com/basecamp/omarchy/issues/1650#issuecomment-3289321236
I had the same as @matheorism above - when using both the in-built laptop display and external monitor with the configuration below it works:
env = GDK_SCALE,2
monitor = eDP-1, [email protected], 2560x0, 2
monitor = DP-2, [email protected], 0x0, 1
When using just using the in-built display with the above config screenshots do NOT work.
However, just using the in-built display and reverting it to the default config works fine:
env = GDK_SCALE,2
monitor=,preferred,auto,auto
Then similarly setting the in-built display settings works too:
env = GDK_SCALE,2
#monitor=,preferred,auto,auto
monitor = eDP-1, [email protected], 2560x0, 2
When running:
~ ❯ ~/.local/share/omarchy/bin/omarchy-cmd-screenshot
I get
config file not found
Error: Unrecognized image file format
Error: Unrecognized image file format
Screenshot didn't work for me either but claude-coded my way out of it. Now it works as intended.
` Summary of Omarchy Screenshot Issues & Solutions
Issue 1: Missing Satty Configuration
- Problem: omarchy-cmd-screenshot failed because satty couldn't find its config file
- Error: "config file not found"
- Solution: Create a basic ~/.config/satty/config.toml or ensure satty works with default settings
Issue 2: Hyprshot Exit Code Reliability
- Problem: hyprshot returns non-zero exit codes even when screenshots are successfully created
- Impact: The script's if hyprshot... condition failed, triggering "Screenshot cancelled" notifications despite successful file creation
- Solution: Instead of relying on hyprshot's exit code, check if the output file actually exists and has content:
Before (unreliable):
if hyprshot -m region -o "$DIR" -f "$FILE"; then
After (reliable):
hyprshot -m region -o "$DIR" -f "$FILE" sleep 0.2 # Give time for file to be written if [[ -f "$FILE" ]] && [[ -s "$FILE" ]]; then
Issue 3: Pipeline Issues with --raw --freeze
- Problem: Original script used hyprshot --raw --freeze | satty --filename - which caused "Unrecognized image file format" errors when selections were cancelled
- Solution: Use temporary files instead of piping raw data
Recommendation for Maintainer
The core issue is hyprshot's exit code behavior. Consider either:
- Updating the script to check file existence instead of exit codes
- Filing an issue with hyprshot about inconsistent exit codes
- Adding better error handling in the omarchy script
The current working solution ignores hyprshot's exit code and validates success by checking if the output file exists.`
Based on some research, the source of the issue here is the use of hyprpicker inside of hyprshot. Hyprshot is largely unmaintained it appears and in the process of wishing to add my smart region selector back, received a suggestion of wayfreeze which appears to be working great. If some folks who've experienced this want to pull that PR and test to see if this also resolves their issues, that'd be helpful regardless of if the smart regions remain or not. https://github.com/basecamp/omarchy/pull/1714
Based on some research, the source of the issue here is the use of hyprpicker inside of hyprshot. Hyprshot is largely unmaintained it appears and in the process of wishing to add my smart region selector back, received a suggestion of wayfreeze which appears to be working great. If some folks who've experienced this want to pull that PR and test to see if this also resolves their issues, that'd be helpful regardless of if the smart regions remain or not. #1714
wayfreeze does seem to work unless you run it with 10bcp and a nvidia card, I've made a PR for a temp hotfix for that. Could you please check that out? https://github.com/basecamp/omarchy/pull/2716#event-20454460151