From dd150ca729059c6e34b44174ce410f2d4c2418c7 Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sat, 25 Mar 2023 06:59:59 -0400 Subject: [PATCH] Awesome WM Micky Submodule - Add awesomewm-micky as submodule - Automatically centers mouse cursor on the focused window --- .gitmodules | 4 ++++ README.org | 3 +++ awesomewm-micky | 1 + rc.lua | 3 +++ 4 files changed, 11 insertions(+) create mode 100644 .gitmodules create mode 160000 awesomewm-micky diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..06010c4 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "awesomewm-micky"] + path = awesomewm-micky + url = git@github.com:basaran/awesomewm-micky.git + branch = master diff --git a/README.org b/README.org index 2a58012..5cf707f 100644 --- a/README.org +++ b/README.org @@ -48,6 +48,9 @@ local hotkeys_popup = require("awful.hotkeys_popup") -- Enable hotkeys help widget for VIM and other apps -- when client with a matching name is opened: require("awful.hotkeys_popup.keys") + +-- Automatically move and center mouse cursors to the focused window +require("awesomewm-micky") #+END_SRC * Error Handling diff --git a/awesomewm-micky b/awesomewm-micky new file mode 160000 index 0000000..63b3061 --- /dev/null +++ b/awesomewm-micky @@ -0,0 +1 @@ +Subproject commit 63b3061bad41ca28ca0c5e64d89a525957637c2d diff --git a/rc.lua b/rc.lua index b487532..563da3e 100644 --- a/rc.lua +++ b/rc.lua @@ -17,6 +17,9 @@ local hotkeys_popup = require("awful.hotkeys_popup") -- when client with a matching name is opened: require("awful.hotkeys_popup.keys") +-- Automatically move and center mouse cursors to the focused window +require("awesomewm-micky") + -- {{{ Error handling -- Check if awesome encountered an error during startup and fell back to -- another config (This code will only ever execute for the fallback config)