hi
This commit is contained in:
@@ -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
15
scripts/i3-focusedwindow
Executable 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
|
||||
Reference in New Issue
Block a user