summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2023-10-22 18:51:41 +0000
committerjustanothercatgirl <sotov2070@gmail.com>2023-10-22 18:51:41 +0000
commit43f9769f63a98efe50b94886bf7a501c011d871d (patch)
treef6bbbebf947cdb6e67223d4c5f8399af7f7306b8 /.bashrc
parent726dbe2c74a2cec6af14cd67fab0d08ad6edf9fc (diff)
aaaaaaaaaa
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc12
1 files changed, 10 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index 22178df..4f87462 100644
--- a/.bashrc
+++ b/.bashrc
@@ -13,8 +13,15 @@ export d="/mnt/D"
function swap() { mv "$1" "$1._tmp" && mv "$2" "$1" && mv "$1._tmp" "$2"; }
-function kboff() { xinput float 22; }
-function kbon() { xinput reattach 22 3; }
+function kboff() { xinput float `xinput \
+ | grep "AT Translated" \
+ | sed -r 's/.+id=([0-9]+).+/\1/'`; }
+function kbon() { xinput reattach `xinput \
+ | grep "AT Translated" \
+ | sed -r 's/.+id=([0-9]+).+/\1/'` \
+ `xinput \
+ | grep "Virtual core keyboard" \
+ | sed -r 's/.+id=([0-9]+).+/\1/'` ; }
# dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.cfg --work-tree=$HOME'
@@ -23,3 +30,4 @@ GHC_PACKAGE_PATH="/usr/lib/ghc-9.0.2/package.conf.d"
# Created by `pipx` on 2023-08-09 18:40:17
export PATH="$PATH:/home/main/.local/bin"
export VISUAL=vim
+