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
|
||||
# Default colors
|
||||
primary:
|
||||
background: '0x1a1b26'
|
||||
foreground: '0xa9b1d6'
|
||||
background: '#1a1b26'
|
||||
foreground: '#a9b1d6'
|
||||
|
||||
# Normal colors
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '0x32344a'
|
||||
red: '0xf7768e'
|
||||
green: '0x9ece6a'
|
||||
yellow: '0xe0af68'
|
||||
blue: '0x7aa2f7'
|
||||
magenta: '0xad8ee6'
|
||||
cyan: '0x449dab'
|
||||
white: '0x787c99'
|
||||
black: '#32344a'
|
||||
red: '#f7768e'
|
||||
green: '#9ece6a'
|
||||
yellow: '#e0af68'
|
||||
blue: '#34548a'
|
||||
magenta: '#ad8ee6'
|
||||
cyan: '#449dab'
|
||||
white: '#9699a8'
|
||||
|
||||
# Bright colors
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '0x444b6a'
|
||||
red: '0xff7a93'
|
||||
green: '0xb9f27c'
|
||||
yellow: '0xff9e64'
|
||||
blue: '0x7da6ff'
|
||||
magenta: '0xbb9af7'
|
||||
cyan: '0x0db9d7'
|
||||
white: '0xacb0d0'
|
||||
black: '#444b6a'
|
||||
red: '#ff7a93'
|
||||
green: '#b9f27c'
|
||||
yellow: '#ff9e64'
|
||||
blue: '#7da6ff'
|
||||
magenta: '#bb9af7'
|
||||
cyan: '#0db9d7'
|
||||
white: '#acb0d0'
|
||||
|
||||
|
||||
### Dracula ###
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
local apps = {
|
||||
terminal = "alacritty",
|
||||
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",
|
||||
game = "retroarch",
|
||||
file = "alacritty -t vifm --class vifm,vifm -e ./.config/vifm/scripts/vifmrun",
|
||||
|
|
|
@ -1,13 +1,5 @@
|
|||
#!/bin/bash
|
||||
# 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
|
||||
# If non-first battery, print a space separator.
|
||||
[ -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
|
||||
[ "$status" = " " ] && [ "$capacity" -le 100 ] && warn=""
|
||||
# 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"
|
||||
|
|
Loading…
Reference in a new issue