diff options
author | Aaron LI <aly@aaronly.me> | 2022-01-07 20:54:22 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2023-06-13 10:01:03 +0800 |
commit | 3ede28e4ffb9c0f71863367cdbd6d5f56ad95392 (patch) | |
tree | 9196a2817efabf329c7e4ae6686bf34513b20d75 /_config/awesome | |
parent | 971b45a7192fc8979472967710b3c7d31c90fc3a (diff) | |
download | dotfiles-3ede28e4ffb9c0f71863367cdbd6d5f56ad95392.tar.bz2 |
awesome: Improve Print keybinding
Diffstat (limited to '_config/awesome')
-rw-r--r-- | _config/awesome/rc.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_config/awesome/rc.lua b/_config/awesome/rc.lua index be775b3..8618fbd 100644 --- a/_config/awesome/rc.lua +++ b/_config/awesome/rc.lua @@ -332,10 +332,10 @@ globalkeys = gears.table.join( -- Custom awful.key({ }, "Print", function() awful.spawn.with_shell( "scrot -e 'mv $f ~/screenshots/' 2>/dev/null" ) end), - -- Wait for the key release so that scrot can grab the X server. - -- Credit: https://bbs.archlinux.org/viewtopic.php?pid=1698946#p1698946 - awful.key({ "Shift" }, "Print", - function() awful.spawn.with_shell( "sleep 0.5 && scrot -s -e 'mv $f ~/screenshots/' 2>/dev/null" ) end), + awful.key({ "Shift" }, "Print", nil, + -- Bind to the key 'release' action + -- Credit: https://wiki.archlinux.org/index.php/Awesome#scrot:_Cannot_take_a_mouse_selected_screenshot_with_keyboard_shortcuts + function() awful.spawn.with_shell( "scrot -s -e 'mv $f ~/screenshots/' 2>/dev/null" ) end), awful.key({ "Mod1" }, "F2", function() awful.spawn.with_shell( "rofi -show run" ) end), awful.key({ "Mod1" }, "F3", |