Flameshot: Keyboard shortcuts do not work under XMonad

Created on 14 Jun 2020  路  13Comments  路  Source: flameshot-org/flameshot

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

Linux Waiting For Info

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!

All 13 comments

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

  1. can yo confirm that you are using the latest version of Flameshot (v0.8.1)?
  2. try the AppImage (basically, download the file, make it executable and run it as explained here:
    https://flameshot.js.org/#/data/appimage-snap-flatpak )
  3. what is your keyboard layout?
  4. what is your locale (try this in terminal: localectl status)
  1. I was on 0.6 before, installed the AppImage
  2. The shortcuts still don't work on the AppImage
  3. I'm on the us layout
  4. Find below:
   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. 馃憤馃徏

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thiswillbeyourgithub picture thiswillbeyourgithub  路  3Comments

soundsbeard picture soundsbeard  路  4Comments

abba23 picture abba23  路  3Comments

borgmanJeremy picture borgmanJeremy  路  3Comments

hosiet picture hosiet  路  4Comments