fix
This commit is contained in:
parent
831b55d347
commit
4b3798c75f
3 changed files with 22 additions and 30 deletions
|
@ -45,30 +45,30 @@ schemes:
|
||||||
tokyo-night: &tokyo-night
|
tokyo-night: &tokyo-night
|
||||||
# Default colors
|
# Default colors
|
||||||
primary:
|
primary:
|
||||||
background: '0x1a1b26'
|
background: '#1a1b26'
|
||||||
foreground: '0xa9b1d6'
|
foreground: '#a9b1d6'
|
||||||
|
|
||||||
# Normal colors
|
# Normal colors
|
||||||
normal:
|
normal:
|
||||||
black: '0x32344a'
|
black: '#32344a'
|
||||||
red: '0xf7768e'
|
red: '#f7768e'
|
||||||
green: '0x9ece6a'
|
green: '#9ece6a'
|
||||||
yellow: '0xe0af68'
|
yellow: '#e0af68'
|
||||||
blue: '0x7aa2f7'
|
blue: '#34548a'
|
||||||
magenta: '0xad8ee6'
|
magenta: '#ad8ee6'
|
||||||
cyan: '0x449dab'
|
cyan: '#449dab'
|
||||||
white: '0x787c99'
|
white: '#9699a8'
|
||||||
|
|
||||||
# Bright colors
|
# Bright colors
|
||||||
bright:
|
bright:
|
||||||
black: '0x444b6a'
|
black: '#444b6a'
|
||||||
red: '0xff7a93'
|
red: '#ff7a93'
|
||||||
green: '0xb9f27c'
|
green: '#b9f27c'
|
||||||
yellow: '0xff9e64'
|
yellow: '#ff9e64'
|
||||||
blue: '0x7da6ff'
|
blue: '#7da6ff'
|
||||||
magenta: '0xbb9af7'
|
magenta: '#bb9af7'
|
||||||
cyan: '0x0db9d7'
|
cyan: '#0db9d7'
|
||||||
white: '0xacb0d0'
|
white: '#acb0d0'
|
||||||
|
|
||||||
|
|
||||||
### Dracula ###
|
### Dracula ###
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
local apps = {
|
local apps = {
|
||||||
terminal = "alacritty",
|
terminal = "alacritty",
|
||||||
editor = "emacsclient -c -a emacs",
|
editor = "emacsclient -c -a emacs",
|
||||||
music = "alacritty -t musik --class musik,musik -e musikcube",
|
music = "alacritty -t musik --class musik,musik -e cmus",
|
||||||
chat = "revolt-desktop",
|
chat = "revolt-desktop",
|
||||||
game = "retroarch",
|
game = "retroarch",
|
||||||
file = "alacritty -t vifm --class vifm,vifm -e ./.config/vifm/scripts/vifmrun",
|
file = "alacritty -t vifm --class vifm,vifm -e ./.config/vifm/scripts/vifmrun",
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Loop through all attached batteries and format the info
|
# Loop through all attached batteries and format the info
|
||||||
currntpwr=$(powerprofilesctl get)
|
|
||||||
if [ "${currntpwr}" = "performance" ]; then
|
|
||||||
pwr="- Performance"
|
|
||||||
elif [ "${currntpwr}" = "balanced" ]; then
|
|
||||||
pwr="- Balanced"
|
|
||||||
elif [ "${currntpwr}" = "power-saver" ]; then
|
|
||||||
pwr="- Power Saver"
|
|
||||||
fi
|
|
||||||
for battery in /sys/class/power_supply/BAT?*; do
|
for battery in /sys/class/power_supply/BAT?*; do
|
||||||
# If non-first battery, print a space separator.
|
# If non-first battery, print a space separator.
|
||||||
[ -n "${capacity+x}" ] && printf " "
|
[ -n "${capacity+x}" ] && printf " "
|
||||||
|
@ -24,5 +16,5 @@ for battery in /sys/class/power_supply/BAT?*; do
|
||||||
# Will make a warn variable if discharging and low
|
# Will make a warn variable if discharging and low
|
||||||
[ "$status" = " " ] && [ "$capacity" -le 100 ] && warn=""
|
[ "$status" = " " ] && [ "$capacity" -le 100 ] && warn=""
|
||||||
# Prints the info
|
# Prints the info
|
||||||
printf "%s%s%d%%%s" "$status" "$warn " "$capacity" " $pwr"; unset warn
|
printf "%s%s%d%%%s" "$status" "$warn " "$capacity"; unset warn
|
||||||
done && printf "\\n"
|
done && printf "\\n"
|
||||||
|
|
Loading…
Reference in a new issue