Skip to content

u/Cabbage_c

In this archive from Jun 2017 to Apr 2018

1
posts
3
comments
1
media
14
score

After a few of bugs being eliminated and using it for a while, I think it's time to share my modified version of gnome screenshot app. Checkout github repo here.

Work I've done: a) Rewriting the code for drop shadow effect in window shot, with much better effect(IMO) and much improved algorithm(that's truth lol). b) Adding an option to choose to save window shot pic file in JPG with white background or transparent PNG. c) Packaging it to AUR, Arch Linux users can now install it as "gnome-screenshot-heavy-shadow".

Currently, this modified version works pretty well under xorg. In gnome keyboard settings, you can setup a shortcut for easier use. Like /usr/bin/gnome-screenshot -cwbe shadow for a window shot with the new drop shadow effect and copy to clipboard. Run gnome-screenshot --help to check some more detailed options.

Under wayland, "save to clipboard" is broken in non interactive mode. It's not a bug of this application (may be of dbus'). But it works in interactive mode (run with option -i).

If you're not on archlinux and choose to install from source code, first find out the path prefix of your installed version of gnome-screenshot (like which gnome-screenshot shows /usr/bin/gnome-screenshot, then install with option --prefix=/usr appended to meson), to replace the original version. If an upgrade/reinstall of the app is performed by your package manager, you need to reinstall the modified version from source.

I'm non native English speaker, sorry for some error may present here.

1 points

I got this error yesterday but I didn't notice it and shut the system down, went to sleep...:( Today it failed to boot at loading kernel modules. I use the archiso to chroot into it, weirdly, vmlinuz is still the old one (4.11.3-1-ARCH). The linux package version is the new one though: # pacman -Q linux linux 4.11.5-1 Seems that linux modules/libraries got updated anyway (there exists the directory /lib/modules/4.11.5-1-ARCH), but vmlinuz wasn't updated. So at the next boot, DKMS tried to load new modules to the old kernel at booting, and boom! I'm really confused why this happened. I've checked pacman.log, there wasn't any error except the DKMS one. That's too weird! 0_o

Anyway, I've fixed this booting problem by just reinstalling the new linux package in arch-chroot environment. It automatically ignored the procedure of loading new modules in arch-chroot environment. So everything's fine now. # pacman -U /var/cache/pacman/pkg/linux ... Running in chroot, ignoring request. ...

Next time when updating linux, I guess this still will happen though :(, if they wouldn't have fixed this yet.

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.