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

36
config
View File

@ -14,22 +14,21 @@ separator_block_width=30
[mediaplayer2] [mediaplayer2]
command=$SCRIPT_DIR/mediaplayer2 command=$SCRIPT_DIR/mediaplayer2
label=[♪] label=[♪]
CONCISE=true CONCISE=false
interval=1 interval=1
#color=#ECEFF4 #color=#ECEFF4
color=#ebdbb2 color=#d3c6aa
#[mediaplayer] #[mediaplayer]
#command=$SCRIPT_DIR/mediaplayer #command=$SCRIPT_DIR/mediaplayer
#label=[♪] #label=[♪]
#interval=1 #interval=1
#color=#ebdbb2 #color=#d3c6aa
#[check-security-key] [check-security-key]
#command=$SCRIPT_DIR/check_security_key command=$SCRIPT_DIR/check_security_key
#interval=1 interval=1
#color=#ECEFF4 color=#d3c6aa
#color=#ebdbb2
#[rofi-wttr] #[rofi-wttr]
#command=$SCRIPT_DIR/rofi-wttr #command=$SCRIPT_DIR/rofi-wttr
@ -39,7 +38,7 @@ color=#ebdbb2
#LABEL=🌡️ #LABEL=🌡️
#LOCATION=Washington_DC #LOCATION=Washington_DC
#ROFI_CONFIG_FILE=/dev/null #ROFI_CONFIG_FILE=/dev/null
#color=#ebdbb2 #color=#d3c6aa
#[documentation] #[documentation]
#full_text=Documentation #full_text=Documentation
@ -62,7 +61,7 @@ MIXER=pulse
#SCONTROL=[determined automatically] #SCONTROL=[determined automatically]
NATURAL_MAPPING=0 NATURAL_MAPPING=0
#color=#ECEFF4 #color=#ECEFF4
color=#ebdbb2 color=#d3c6aa
[dunst] [dunst]
command=$SCRIPT_DIR/dunst command=$SCRIPT_DIR/dunst
@ -78,7 +77,7 @@ DIR=/
LABEL=[🖴] LABEL=[🖴]
interval=30 interval=30
#color=#ECEFF4 #color=#ECEFF4
color=#ebdbb2 color=#d3c6aa
[batterybar] [batterybar]
command=$SCRIPT_DIR/batterybar command=$SCRIPT_DIR/batterybar
@ -96,27 +95,32 @@ C6=#98971a
C7=#458588 C7=#458588
C8=#458588 C8=#458588
CHARGING_COLOR=#b16286 CHARGING_COLOR=#b16286
FULL_COLOR=#ebdbb2 FULL_COLOR=#d3c6aa
AC_COLOR=#b16286 AC_COLOR=#b16286
#color=#ECEFF4 #color=#ECEFF4
color=#ebdbb2 color=#d3c6aa
[time] [time]
label=[🕰] label=[🕰]
command=date '+%m/%d/%Y %H:%M' command=date '+%m/%d/%Y %H:%M'
interval=15 interval=15
#color=#ECEFF4 #color=#ECEFF4
color=#ebdbb2 color=#d3c6aa
#[i3-focusedwindow]
#label=[]
#command=$SCRIPT_DIR/i3-focusedwindow 20
#interval=persist
[laptop_mode] [laptop_mode]
full_text= ↺ 🖥 full_text= ↺ 🖥
command=$SCRIPT_DIR/laptopmode command=$SCRIPT_DIR/laptopmode
color=#ebdbb2 color=#d3c6aa
[tablet_mode] [tablet_mode]
full_text= ↺ 🖵 full_text= ↺ 🖵
command=$SCRIPT_DIR/tabletmode command=$SCRIPT_DIR/tabletmode
color=#ebdbb2 color=#d3c6aa
#[run] #[run]
#full_text= >_ #full_text= >_

View File

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