profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/snyball/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

snyball/Hawck 233

Key-rebinding daemon for Linux (Wayland/X11/Console)

snyball/spaik 9

A Lisp Implementation

snyball/emacs-fish-colors 1

Set fish colors according to Emacs faces (useful for vterm)

inf112-v19/Binary-Bois 0

Project repo for team 5 in group 1

snyball/doom-emacs 0

An Emacs framework for the stubborn martian hacker

snyball/doom-snippets 0

The Doom Emacs snippets library

snyball/ivy-posframe 0

ivy-posframe is a ivy extension, which let ivy use posframe to show its candidate menu, ivy-posframe is a **GNU ELPA** package.

snyball/meson 0

The Meson Build System

snyball/micro-manager 0

Microscope control and image acquisition integrated with ImageJ.

snyball/org-msg 0

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.

startedsnyball/Hawck

started time in 8 days

startedsnyball/spaik

started time in 17 days

startedsnyball/Hawck

started time in 18 days

startedsnyball/Hawck

started time in a month

startedsnyball/Hawck

started time in a month

issue openedsnyball/Hawck

Local build of Hawck, error on capital letters in script: "No such key"

Preamble: I built this on Lua 5.4.3, since that's what I have available. On the plus side, everything works but this.

I'd thought it was keymapping, but the strace makes me second guess that.

To Reproduce Steps to reproduce the behavior:

  1. Build and install Hawck on FC34
  2. Run scripts with capital letters

Expected behavior It should output the text in the file as written.

Actual behavior It drops capital letters (among other things)

In short:

nc ~/.config$ cat ~/.config/hawck/scripts/macro_test.hwk 
local macro_test = "Aa Bb Cc Dd Ee Ff Hh Ii JJ"
ctrl + alt + key "o" => write(macro_test)
nc ~/.config$ a b c d e f h i a b c d e f h i ^C    # this is execution of the macro
nc ~/.config$ journalctl --user -u hawck-macrod --no-pager | tail
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: A
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: B
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: C
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: D
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: E
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: F
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: H
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: I
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: J
May 23 11:21:19 localhost hawck-macrod[24233]: No such key: J

In long: hawck-macrod_strace.log

Desktop (please complete the following information):

  • Distro: Fedora 34
  • Version: 0.7.1 from git
  • Keymap: I've tried "no" and "us" and they appear to be loading per the strace
  • Keyboard: USB and laptop built-in
  • Kernel 5.11.20-300.fc34.x86_64
  • Lua 5.4.3

created time in a month

startedsnyball/Hawck

started time in a month

startedsnyball/Hawck

started time in a month

startedsnyball/spaik

started time in a month

startedsnyball/Hawck

started time in a month

startedsnyball/Hawck

started time in 2 months

fork knownunown/Hawck

Key-rebinding daemon for Linux (Wayland/X11/Console)

fork in 2 months

startedsnyball/Hawck

started time in 2 months

fork nathancurry/Hawck

Key-rebinding daemon for Linux (Wayland/X11/Console)

fork in 2 months

startedsnyball/Hawck

started time in 2 months

startedsnyball/Hawck

started time in 2 months

startedsnyball/Hawck

started time in 2 months

issue commentsnyball/Hawck

Install issues on Ubuntu 21.04

Fyi I was facing too many issues with 21.04 which were interupting work so I rolled back to 20.04. I have gone through the installation steps on 20.04 and still hit the same problem. Here's the output from tree.

$ tree ~/.local/share/hawck/
/home/csk/.local/share/hawck/
├── cfg.lua
├── logs
│   └── macrod.log
├── scripts
│   ├── example.hwk
│   ├── example.lua
│   ├── init.lua -> /usr/share/hawck/LLib/init.lua
│   ├── keymaps -> /usr/share/hawck/keymaps
│   └── LLib -> /usr/share/hawck/LLib
└── scripts-enabled

3 directories, 7 files
chrisk314

comment created time in 2 months

issue commentsnyball/Hawck

Install issues on Ubuntu 21.04

So have I. removing "-l init" from hawck-add kind of fixes it, but then runs into another issue with broken symlinks and trying to find lua.lua in "~/.local/share/hawck/scripts/<SCRIPT.lua>/" treating it as if it were a directory. something must've broken pretty badly. This is on 20.04 btw.

chrisk314

comment created time in 2 months

issue openedsnyball/Hawck

Install issues on Ubuntu 21.04

Hi there, I have encountered an issue with Lua dependencies whilst following the installation and testing steps in the README on an Ubuntu 21.04 system.

Below are the commands executed

cd /usr/local/src
git clone --recurse-submodules -j8 https://github.com/snyball/Hawck.git
cd Hawck
pkexec xargs apt -y install < bin/dependencies/debian-deps.txt
./install.sh

At this point installation appears to be successful: I can run hawck-add with no arguments which displays the usage message. Now I attempt to follow the testing instructions as below

sudo setfacl -m 'g:uinput:rw' /dev/uinput
sudo systemctl start hawck-inputd
hawck-macrod
vim ~/.config/hawck/scripts/example.hwk
hawck-add ~/.config/hawck/scripts/example.hwk

When executing the hawck-add command above I get the following error

$ hawck-add ~/.config/hawck/scripts/example.hwk
lua5.3: module 'init' not found:
        no field package.preload['init']
        no file '/usr/local/share/lua/5.3/init.lua'
        no file '/usr/local/share/lua/5.3/init/init.lua'
        no file '/usr/local/lib/lua/5.3/init.lua'
        no file '/usr/local/lib/lua/5.3/init/init.lua'
        no file '/usr/share/lua/5.3/init.lua'
        no file '/usr/share/lua/5.3/init/init.lua'
        no file './init.lua'
        no file './init/init.lua'
        no file '/usr/local/lib/lua/5.3/init.so'
        no file '/usr/lib/x86_64-linux-gnu/lua/5.3/init.so'
        no file '/usr/lib/lua/5.3/init.so'
        no file '/usr/local/lib/lua/5.3/loadall.so'
        no file './init.so'
stack traceback:
        [C]: in function 'require'
        [C]: in ?

Lua is new to me. I attempted to find a solution to this error by searching google but didn't see anything helpful. I instaled luarocks and attempted to install the missing init module; however, no such module exists.

Perhaps I've made a mistake which is obvious to someone more versed in Lua. Any assistance with getting hawck running on Ubuntu 21.04 would be much appreciated. I'm hoping it can replace AutoHotkey in Wayland on Ubuntu 21.04.

created time in 2 months

startedsnyball/Hawck

started time in 2 months

startedsnyball/Hawck

started time in 2 months

startedsnyball/Hawck

started time in 2 months

startedsnyball/Hawck

started time in 2 months

startedsnyball/Hawck

started time in 2 months

startedsnyball/Hawck

started time in 2 months

issue openedsnyball/Hawck

Relation to Autokey and evdevremapkeys

Hi! I'm trying to find a simple tool to remap a key combination (for example super+c to ctrl+shift+c) N:N mapping. I've found https://github.com/philipl/evdevremapkeys and https://github.com/autokey/autokey. Whats the pros cons compared to Hawck?

I can do this with autokey send_keys, but Ubuntu intercepts a lot of the commands (for example commands with super+ etc). Is it better for me to use Hawck here? Can I for example remap a key to mousewheel?

created time in 2 months

startedsnyball/Hawck

started time in 2 months

startedsnyball/Hawck

started time in 2 months

startedsnyball/Hawck

started time in 2 months