Skip to content

Instantly share code, notes, and snippets.

@dakshin-k
dakshin-k / drag.ahk
Created May 27, 2020 09:52
AutoHotKey Script for Three finger Click and Drag gesture on Windows
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
drag_enabled := 0
+^#F22::
@dakshin-k
dakshin-k / linux_3fd_instructions.sh
Created May 27, 2020 11:33
Instructions to get 3 finger drag gesture on Linux as part of the medium post
sudo cp libinput.so.10.14.0 /usr/lib/x86_64-linux-gnu/
sudo ln -sf /usr/lib/x86_64-linux-gnu/libinput.so.10.14.0 /usr/lib/x86_64-linux-gnu/libinput.so.10
@dakshin-k
dakshin-k / vs_edit_issue.sh
Last active June 20, 2024 18:46
Function that uses the Github CLI to load issues in VS Code and upload changes back to GitHub
function vs_edit_issue() {
gh issue view $1 --json body --jq .body > /tmp/gh-$1.md
code --wait /tmp/gh-$1.md
gh issue edit $1 --body-file /tmp/gh-$1.md
}