This commit is contained in:
2025-04-17 21:56:51 -04:00
parent 009831503e
commit a5db9ec9b6
3 changed files with 36 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
msg_connected="✓ Security key connected"
msg_disconnected="𐄂 Security key not connected\n"
lsusb | grep Lexar > /dev/null
lsusb | grep Emtec > /dev/null
if [ "$?" == 0 ]; then
printf "[ ✓ ] Unlocked.\n"

15
scripts/i3-focusedwindow Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Author: Kn
while :
do
ID=$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')
if [[ $1 ]]
then
TITLE=$(xprop -id $ID -len $1 | awk '/_NET_WM_NAME/{$1=$2="";print}' | cut -d'"' -f2)
echo "$TITLE"
else
TITLE=$(xprop -id $ID | awk '/_NET_WM_NAME/{$1=$2="";print}' | cut -d'"' -f2)
echo "$TITLE"
fi
done