very outdated but a bit less outdated than it was before
This commit is contained in:
parent
ccdca7c67e
commit
7c48d260e3
11 changed files with 159 additions and 14 deletions
23
.config/i3blocks/config
Normal file
23
.config/i3blocks/config
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# i3blocks configuration file
|
||||
#
|
||||
# The i3blocks man page describes the usage of the binary,
|
||||
# and its website describes the configuration:
|
||||
#
|
||||
# https://vivien.github.io/i3blocks
|
||||
|
||||
|
||||
# Global properties
|
||||
separator=true
|
||||
separator_block_width=15
|
||||
colors_script=
|
||||
command=~/.config/i3blocks/scripts/$BLOCK_NAME
|
||||
|
||||
[battery]
|
||||
interval=60
|
||||
|
||||
[mpd]
|
||||
interval=1
|
||||
|
||||
[time]
|
||||
interval=1
|
||||
|
||||
16
.config/i3blocks/scripts/battery
Executable file
16
.config/i3blocks/scripts/battery
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/bash
|
||||
source ~/.cache/wal/colors.sh
|
||||
|
||||
charge=$(acpi -b | cut -d ' ' -f 4 | tr -d % | tr -d ,)
|
||||
|
||||
if [ $charge -lt 20 ]; then
|
||||
color=$color10
|
||||
elif [ $charge -lt 75 ]; then
|
||||
color=$color11
|
||||
else
|
||||
color=$color14
|
||||
fi
|
||||
|
||||
echo ⚡ $charge%
|
||||
echo ⚡ $charge%
|
||||
echo $color
|
||||
13
.config/i3blocks/scripts/mpd
Executable file
13
.config/i3blocks/scripts/mpd
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/bash
|
||||
source ~/.cache/wal/colors.sh
|
||||
|
||||
if [ "$(mpc current)" != "" ]; then
|
||||
mpc -f "♪ $(mpc status "%artist% - %title% (%currenttime%/%totaltime%)" | tr -d '\n')" | sed -n 1p
|
||||
mpc -f "♪ $(mpc status "%title% %currenttime%/%totaltime%" | tr -d '\n')" | sed -n 1p
|
||||
echo $foreground
|
||||
else
|
||||
echo "♪ not playing"
|
||||
echo "♪ not playing"
|
||||
echo $color9
|
||||
fi
|
||||
|
||||
7
.config/i3blocks/scripts/time
Executable file
7
.config/i3blocks/scripts/time
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/bash
|
||||
source ~/.cache/wal/colors.sh
|
||||
|
||||
printf '🕛 '
|
||||
date '+%Y-%m-%d %H:%M:%S'
|
||||
date '+%H:%M:%S'
|
||||
echo $foreground
|
||||
Loading…
Add table
Add a link
Reference in a new issue