This commit is contained in:
Liam Waldron 2024-11-25 16:16:17 -05:00
parent 1dd4472634
commit 009831503e
5 changed files with 57 additions and 39 deletions

82
config
View File

@ -13,10 +13,11 @@ separator_block_width=30
[mediaplayer2] [mediaplayer2]
command=$SCRIPT_DIR/mediaplayer2 command=$SCRIPT_DIR/mediaplayer2
label=[ ] label=[♪]
CONCISE=false CONCISE=true
interval=1 interval=1
color=#ECEFF4 #color=#ECEFF4
color=#ebdbb2
#[mediaplayer] #[mediaplayer]
#command=$SCRIPT_DIR/mediaplayer #command=$SCRIPT_DIR/mediaplayer
@ -24,10 +25,11 @@ color=#ECEFF4
#interval=1 #interval=1
#color=#ebdbb2 #color=#ebdbb2
[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=#ECEFF4
#color=#ebdbb2
#[rofi-wttr] #[rofi-wttr]
#command=$SCRIPT_DIR/rofi-wttr #command=$SCRIPT_DIR/rofi-wttr
@ -52,14 +54,15 @@ color=#ECEFF4
[volume] [volume]
command=$SCRIPT_DIR/volume command=$SCRIPT_DIR/volume
LABEL=[ 🕪 ] LABEL=[🕪]
interval=once interval=once
signal=10 signal=10
STEP=5% STEP=5%
MIXER=pulse MIXER=pulse
#SCONTROL=[determined automatically] #SCONTROL=[determined automatically]
NATURAL_MAPPING=0 NATURAL_MAPPING=0
color=#ECEFF4 #color=#ECEFF4
color=#ebdbb2
[dunst] [dunst]
command=$SCRIPT_DIR/dunst command=$SCRIPT_DIR/dunst
@ -72,46 +75,59 @@ align=center
[disk] [disk]
command=$SCRIPT_DIR/disk command=$SCRIPT_DIR/disk
DIR=/ DIR=/
LABEL=[ 🖴 ] LABEL=[🖴]
interval=30 interval=30
color=#ECEFF4 #color=#ECEFF4
color=#ebdbb2
[batterybar] [batterybar]
command=$SCRIPT_DIR/batterybar command=$SCRIPT_DIR/batterybar
label=[ 🗲 ] label=[🗲]
interval=5 interval=5
markup=pango markup=pango
min_width=bat: ■■■■■ min_width=bat: ■■■■■
# Discharging colors low to high # Discharging colors low to high
C1=#BF616A C1=#cc241d
C2=#BF616A C2=#cc241d
C3=#D08770 C3=#d79921
C4=#D08770 C4=#d79921
C5=#EBCB8B C5=#98971a
C6=#EBCB8B C6=#98971a
C7=#A3BE8C C7=#458588
C8=#A3BE8C C8=#458588
CHARGING_COLOR=#88C0D0 CHARGING_COLOR=#b16286
FULL_COLOR=#ECEFF4 FULL_COLOR=#ebdbb2
AC_COLOR=#88C0D0 AC_COLOR=#b16286
color=#ECEFF4 #color=#ECEFF4
color=#ebdbb2
[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
#[laptop_mode] [laptop_mode]
#full_text= ↺ Laptop Mode full_text= ↺ 🖥
#command=$SCRIPT_DIR/laptopmode command=$SCRIPT_DIR/laptopmode
color=#ebdbb2
[tablet_mode]
full_text= ↺ 🖵
command=$SCRIPT_DIR/tabletmode
color=#ebdbb2
#[run]
#full_text= >_
#command=rofi -show drun
#background=#458588 #background=#458588
#color=#282828 #color=#282828
#[tablet_mode] #[kill]
#full_text= ↺ Tablet Mode #full_text= X
#command=$SCRIPT_DIR/tabletmode #command=i3-msg kill > /dev/null
#background=#98971a #background=#cc241d
#color=#282828 #color=#282828
#[shutdown_menu] #[shutdown_menu]

View File

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

View File

@ -2,4 +2,5 @@
xinput enable 12 xinput enable 12
xinput reattach 13 3 xinput reattach 13 3
TABLET_MODE_ENABLED=1 dunstify "Laptop Mode" "Laptop mode is now enabled"
export TABLET_MODE_ENABLED="Laptop Mode"

View File

@ -11,9 +11,9 @@ playerctl metadata title > /dev/null
if [ "$?" != 0 ]; then if [ "$?" != 0 ]; then
printf "No players found" printf "No players found"
elif [ ${CONCISE} == "false" ]; then elif [ ${CONCISE} == "false" ]; then
printf "%.${MAXCHAR}s\n" "${TRACK} - by ${ARTIST} - on ${ALBUM}" printf "%.${MAXCHAR}s\n" "${TRACK} - by ${ARTIST} - from ${ALBUM}"
elif [ ${CONCISE} == "true" ]; then elif [ ${CONCISE} == "true" ]; then
printf "%.${MAXCHAR}s\n" "${ARTIST} - ${TRACK}" printf "%.${MAXCHAR}s\n" "${TRACK} - ${ARTIST}"
else else
printf "error: 'CONCISE' must be defined in i3blocks config\n" printf "error: 'CONCISE' must be defined in i3blocks config\n"
fi fi

View File

@ -2,4 +2,5 @@
xinput disable 12 xinput disable 12
xinput float 13 xinput float 13
TABLET_MODE_ENABLED=0 dunstify "Tablet Mode" "Tablet mode is now enabled"
export TABLET_MODE_ENABLED="Tablet Mode"