diff --git a/Makefile b/Makefile index aeb0b6dd..808b8824 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ NOCOLOR := $(shell tput sgr0) .PHONY: \ all docs brew \ cui cli gui \ - autohotkey_clean cargo git \ + cargo git \ nvim poetry tmux zsh all: clean cui docs @@ -28,9 +28,6 @@ brew_gui: cui: cargo git nvim poetry tmux zsh -autohotkey: autohotkey_clean - $(PWD)/autohotkey/bin/setup.sh - cargo: cargo_clean $(PWD)/cargo/bin/setup.sh @@ -59,9 +56,6 @@ clean: \ git_clean nvim_clean poetry_clean \ tmux_clean zsh_clean -autohotkey_clean: - $(PWD)/autohotkey/bin/clean.sh - cargo_clean: rm -rf $(HOME)/.cargo/config.toml diff --git a/autohotkey/bin/clean.sh b/autohotkey/bin/clean.sh deleted file mode 100755 index 6f01793b..00000000 --- a/autohotkey/bin/clean.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -WINDOWS_HOME=$(wslpath `wslvar USERPROFILE`) -rm -f $WINDOWS_HOME/AppData/Roaming/Microsoft/Windows/Start\ Menu/Programs/Startup/emacs.ahk -rm -f $WINDOWS_HOME/AppData/Roaming/Microsoft/Windows/Start\ Menu/Programs/Startup/windows.ahk -rm -f $WINDOWS_HOME/AppData/Roaming/Microsoft/Windows/Start\ Menu/Programs/Startup/minimum.ahk diff --git a/autohotkey/bin/setup.sh b/autohotkey/bin/setup.sh deleted file mode 100755 index abfc22a4..00000000 --- a/autohotkey/bin/setup.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -TARGET=windows.ahk -WINDOWS_HOME=$(wslpath `wslvar USERPROFILE`) - -cp $HOME/dotfiles/autohotkey/config.d/$TARGET $WINDOWS_HOME/AppData/Roaming/Microsoft/Windows/Start\ Menu/Programs/Startup/$TARGET diff --git a/autohotkey/config.d/emacs.ahk b/autohotkey/config.d/emacs.ahk deleted file mode 100644 index d328c681..00000000 --- a/autohotkey/config.d/emacs.ahk +++ /dev/null @@ -1,244 +0,0 @@ -#InstallKeybdHook -#UseHook - - -is_terminal() -{ - ifWinActive,ahk_exe WindowsTerminal.exe - return 1 - return 0 -} - -is_vscode() -{ - ifWinActive,ahk_exe Code.exe - return 0 - return 1 -} - - -SetKeyDelay 0 - - -; Mac-style commands (Win + {key}) - -; cursor -^a:: - if is_terminal() - send %A_ThisHotKey% - else - send {HOME} - return - -<#a:: - send ^a - return - -^b:: - if is_terminal() - send %A_ThisHotKey% - else - send {Left} - return - -<#b:: - if is_vscode() - send %A_ThisHotKey% - else - send ^b - return - -<#c:: - send ^c - return - -<#d:: - send ^d - return - -; cursor -^d:: - if is_terminal() - send %A_ThisHotKey% - else - send {DEL} - return - -; cursor -^e:: - if is_terminal() - send %A_ThisHotKey% - else - send {END} - return - -; cursor -^f:: - if is_terminal() - send %A_ThisHotKey% - else - send {Right} - return - -^+f:: - if is_terminal() - send %A_ThisHotKey% - else - send ^f - return - -; win+d -> win+m -<#m:: - send #d - return - -<#f:: - send ^f - return - -<#j:: - if is_vscode() - send %A_ThisHotKey% - else - send ^j - return - -<#n:: - if is_vscode() - send %A_ThisHotKey% - else - send ^n - return - -<^n:: - ; vim: c-{p,n} - if is_terminal() - send ^n - else - send #n - return - -^p:: - ; vim: c-{p,n} - if is_terminal() - send %A_ThisHotKey% - else - send {Up} - return - -<#r:: - send ^r - return - -<^r:: - ; vim: redo - if is_terminal() - ; FIXME (himkt): %A_ThisHotKey% - send ^r - else - send #r - return - -<#s:: - send ^s - return - -<#t:: - send ^t - return - -<#v:: - send ^+v - return - -<^+v:: - send #v - return - -<#w:: - send ^w - return - -<#x:: - send ^x - return - -<^x:: - if is_terminal() - ; FIXME (himkt): %A_ThisHotKey% - send ^x - else - send #x - return - -<#+z:: - send ^Z - return - -<#z:: - send ^z - return - -<#/:: - send ^/ - return - -<#Space:: - send ^{Space} - return - -<#Left:: - send ^{Left} - return - -<#+Left:: - send ^+{Left} - return - -<^Left:: - send #{Left} - return - -<#Right:: - send ^{Right} - return - -<#+Right:: - send ^+{Right} - return - -<^Right:: - send #{Right} - return - -<#Up:: - send ^{Up} - return - -<#+Up:: - send ^+{Up} - return - -<^Up:: - send #{Up} - return - -<#Down:: - send ^{Down} - return - -<#+Down:: - send ^+{Down} - return - -<^Down:: - send #{Down} - return - -<#Backspace:: - send ^{BS} - return - -<#Enter:: - send ^{Enter} - return diff --git a/autohotkey/config.d/minimum.ahk b/autohotkey/config.d/minimum.ahk deleted file mode 100644 index 0d425180..00000000 --- a/autohotkey/config.d/minimum.ahk +++ /dev/null @@ -1,33 +0,0 @@ -#InstallKeybdHook -#UseHook - - -is_terminal() -{ - ifWinActive,ahk_exe WindowsTerminal.exe - return 1 - return 0 -} - - -^a:: - if is_terminal() - send %A_ThisHotKey% - else - send {HOME} - return - -^e:: - if is_terminal() - send %A_ThisHotKey% - else - send {END} - return - -#+a:: - send #a - return - -#a:: - send ^a - return diff --git a/autohotkey/config.d/windows.ahk b/autohotkey/config.d/windows.ahk deleted file mode 100644 index bd1e287b..00000000 --- a/autohotkey/config.d/windows.ahk +++ /dev/null @@ -1,307 +0,0 @@ -#InstallKeybdHook -#UseHook - - -is_terminal() -{ - ifWinActive,ahk_exe WindowsTerminal.exe - return 1 - return 0 -} - -; windows shortcut - - #+a:: - send #a - return - - #+b:: - send #b - return - - #+c:: - send #c - return - - #+d:: - send #d - return - - #+e:: - send #e - return - - #+f:: - send #f - return - - #+g:: - send #g - return - - #+h:: - send #h - return - - #+i:: - send #i - return - - #+j:: - send #j - return - - #+k:: - send #k - return - - #+l:: - send #l - return - - #+m:: - send #m - return - - #+n:: - send #n - return - - #+o:: - send #o - return - - #+p:: - send #p - return - - #+q:: - send #q - return - - #+r:: - send #r - return - - ; disable #s because I prefer using - ; the original #+s (screenshot) - ; - ; #+s:: - ; send #s - ; return - - #+t:: - send #t - return - - #+u:: - send #u - return - - #+v:: - send #v - return - - #+w:: - send #w - return - - #+x:: - send #x - return - - #+y:: - send #y - return - - #+z:: - send #z - return - - <#+Up:: - send ^+{Up} - return - - <#+Down:: - send ^+{Down} - return - - <#+Left:: - send ^+{Left} - return - - <#+Right:: - send ^+{Right} - return - -; emacs binding - - ^a:: - if is_terminal() { - send %A_ThisHotKey% - } else { - send {HOME} - } - return - - ^b:: - if is_terminal() { - send %A_ThisHotKey% - } else { - send {Left} - } - return - - ^d:: - if is_terminal() { - send %A_ThisHotKey% - } else { - send {DEL} - } - return - - ^e:: - if is_terminal() { - send %A_ThisHotKey% - } else { - send {END} - } - return - - ^f:: - if is_terminal() { - send %A_ThisHotKey% - } else { - send {Right} - } - return - - ^h:: - if is_terminal() { - send %A_ThisHotKey% - } else { - send {BackSpace} - } - return - - ^n:: - if is_terminal() { - send %A_ThisHotKey% - } else { - send {Down} - } - return - - ^p:: - if is_terminal() { - send %A_ThisHotKey% - } else { - send {Up} - } - return - -; mac-style shortcut - - #a:: - send ^a - return - - #b:: - send ^b - return - - #c:: - send ^c - return - - #d:: - send ^d - return - - #e:: - send ^e - return - - #f:: - send ^f - return - - #g:: - send ^g - return - - #h:: - send ^h - return - - #i:: - send ^i - return - - #j:: - send ^j - return - - #k:: - send ^k - return - - #l:: - send ^l - return - - #m:: - send ^m - return - - #n:: - send ^n - return - - #o:: - send ^o - return - - #p:: - send ^p - return - - #q:: - send ^q - return - - #r:: - send ^r - return - - #s:: - send ^s - return - - #t:: - send ^t - return - - #u:: - send ^u - return - - #v:: - send ^v - return - - #w:: - send ^w - return - - #x:: - send ^x - return - - #y:: - send ^y - return - - #z:: - send ^z - return