Flameshot version
Flameshot 0.6.0+git20191001-2(Debian)
Describe the bug
None of the flameshot shortcut bindings seem to work under XMonad. However, switching to other DE/WMs works.
To Reproduce
Execute flameshot gui under xmonad
Expected behavior
The shortcuts should work. Please see referenced issue for additional details. The shortcuts seem to work with the AppImage.
System Information
Ubuntu 20.04 LTS, xmonad
I've experienced similar issues for some time. Changing focusFollowsMouse on or off does not seem to have an impact. The lack of keyboard support extends to not working for the keyboard commands for the app (Esc to exit or Spacebar to open panel) or even entering text. The latest AppImage seems to work, although icons are missing on the toolbar so it is not a sufficient replacement.
System Information
Archlinux, flameshot 0.6.0-4 (ArchLinux Community repo), xmonad 0.15
@karthikiyengar can you try the approach presented here:
https://github.com/flameshot-org/flameshot/issues/790#issuecomment-687416350
it seems in Ubuntu somehow one need to initiate the app (e.g via flameshot &) before running other flameshot commands (e.g flameshot gui)
Please report back if this have worked for you.
Closing stale issue
I'm sorry, I missed this message @mmahmoudian.
Sadly, this does not work. I can use the app perfectly fine using the mouse, but the keyboard does not work.
@karthikiyengar so even spacebar and Ctrl+c does not work when the Flameshot is open?
Neither does enter and escape, the only way to close flameshot is to draw a rectangle and press the close icon.
@karthikiyengar would you please provide the following
localectl status) System Locale: LANG=en_US.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
VC Keymap: n/a
X11 Layout: us
X11 Model: pc105
X11 Options: terminate:ctrl_alt_bksp
@mmahmoudian - It works on Gnome though :-)
My hypothesis is that there is a global keyboard shortcut conflict with your Xmonad configuration. Can you double-check that.
Okay, I used a minimal xmonad config and the shortcuts seem to work fine:
import XMonad
import XMonad.Config.Desktop
main = xmonad desktopConfig
{ terminal = "urxvt"
, modMask = mod4Mask
}
I'll drop a comment if find anything weird from my config that was causing the clash
Thanks for your suggestions and contributions :-)
It was the fullscreenEventHook that was causing this:
https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Hooks-EwmhDesktops.html#v:fullscreenEventHook
I've disabled the hook as I don't need it anymore :-)
Thanks!
I'm glad it worked out. Also thanks for sharing the information and changing the title to be more descriptive. Perhaps this can help other Xmonad users. 馃憤馃徏
Most helpful comment
It was the fullscreenEventHook that was causing this:
https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Hooks-EwmhDesktops.html#v:fullscreenEventHook
I've disabled the hook as I don't need it anymore :-)
Thanks!