moved the scripts for i3blocks into a block directory, and changed i3lock to i3lock-color

This commit is contained in:
termite 2025-05-06 08:28:02 -07:00
parent 56e2fff3bd
commit 21632788ed
10 changed files with 46 additions and 7 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
setup_specific
tags

36
bin/lock Executable file
View file

@ -0,0 +1,36 @@
#!/bin/sh
BLANK='#00000044'
CLEAR='#00000022'
DEFAULT='#aaaaaaff'
TEXT='#eeeeeeee'
WRONG='#880000bb'
VERIFYING='#00bbbbbb'
i3lock \
--insidever-color=$CLEAR \
--ringver-color=$VERIFYING \
\
--insidewrong-color=$CLEAR \
--ringwrong-color=$WRONG \
\
--inside-color=$BLANK \
--ring-color=$DEFAULT \
--line-color=$BLANK \
--separator-color=$DEFAULT \
\
--verif-color=$TEXT \
--wrong-color=$TEXT \
--time-color=$TEXT \
--date-color=$TEXT \
--layout-color=$TEXT \
--keyhl-color=$WRONG \
--bshl-color=$WRONG \
\
--screen 1 \
--blur 5 \
--clock \
--indicator \
--time-str="%H:%M:%S" \
--date-str="%A, %Y-%m-%d" \
--keylayout 1 \

View file

@ -1,14 +1,14 @@
[wifi]
command=~/.dotfiles/bin/wifi -np
command=~/.dotfiles/bin/blocks/wifi -np
interval=5
[battery]
command=~/.dotfiles/bin/battery
command=~/.dotfiles/bin/blocks/battery
markup=pango
interval=30
[cpu_usage]
command=~/.dotfiles/bin/cpu_usage
command=~/.dotfiles/bin/blocks/cpu_usage
interval=10
LABEL=
#min_width=CPU: 100.00%
@ -20,7 +20,7 @@ DECIMALS=1
#COLOR_CRIT=#FF0000
[memory]
command=~/.dotfiles/bin/memory
command=~/.dotfiles/bin/blocks/memory
label=
interval=30

View file

@ -29,7 +29,7 @@ exec --no-startup-id dex --autostart --environment i3
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id xss-lock --transfer-sleep-lock -- ~/.dotfiles/bin/lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.

View file

@ -1,5 +1,6 @@
yay -Syu
sudo pacman -S --needed --noconfirm - < installpackages.txt
yay -S light --needed --noconfirm
yay -S light i3lock-color --needed --noconfirm
mkdir -p ~/.config/i3
ln -sf ~/.dotfiles/i3config ~/.config/i3/config

View file

@ -1,4 +1,5 @@
i3
i3-wm
i3blocks
mpd
ncmpcpp
flameshot