Browse Source

Updated status bar scripts

main
Yiğit Çolakoğlu 4 years ago
parent
commit
5255e3d728
7 changed files with 21 additions and 21 deletions
  1. +2
    -2
      chroot/plist.sh
  2. +1
    -1
      scripts/status-bar/arch
  3. +10
    -10
      scripts/status-bar/battery
  4. +1
    -1
      scripts/status-bar/cpu-temp
  5. +1
    -1
      scripts/status-bar/fecha
  6. +2
    -2
      scripts/status-bar/red
  7. +4
    -4
      scripts/status-bar/volume

+ 2
- 2
chroot/plist.sh View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
pacman -Qqe | grep -v "$(pacman -Qqm)" > nonAUR.txt
pacman -Qqm > AUR.txt
pacman -Qqe | grep -v "$(pacman -Qqm)" > ~/.dotfiles/chroot/nonAUR.txt
pacman -Qqm > ~/.dotfiles/chroot/AUR.txt

+ 1
- 1
scripts/status-bar/arch View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
icon=󰮯
icon=
if ! updates=$(checkupdates 2> /dev/null | wc -l ); then if ! updates=$(checkupdates 2> /dev/null | wc -l ); then
updates=0 updates=0


+ 10
- 10
scripts/status-bar/battery View File

@ -3,16 +3,16 @@
bat=$(cat /sys/class/power_supply/BAT0/capacity) bat=$(cat /sys/class/power_supply/BAT0/capacity)
status=$(cat /sys/class/power_supply/BAT0/status) status=$(cat /sys/class/power_supply/BAT0/status)
ramp10=󰁺
ramp20=󰁻
ramp30=󰁼
ramp40=󰁽
ramp50=󰁾
ramp60=󰁿
ramp70=󰂀
ramp80=󰂁
ramp90=󰂂
ramp100=󰁹
ramp10=
ramp20=
ramp30=
ramp40=
ramp50=
ramp60=
ramp70=
ramp80=
ramp90=
ramp100=
if [[ $bat -lt 10 ]]; then if [[ $bat -lt 10 ]]; then
echo " $ramp10 $bat% " echo " $ramp10 $bat% "


+ 1
- 1
scripts/status-bar/cpu-temp View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
temp=$(sed 's/000$/°C/' /sys/class/thermal/thermal_zone0/temp) temp=$(sed 's/000$/°C/' /sys/class/thermal/thermal_zone0/temp)
icon=󰔏
icon=
echo "$icon $temp " echo "$icon $temp "

+ 1
- 1
scripts/status-bar/fecha View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
icon=󰸘
icon=
cmd=$(date +"%b %e, %R") cmd=$(date +"%b %e, %R")


+ 2
- 2
scripts/status-bar/red View File

@ -1,9 +1,9 @@
#! /bin/sh #! /bin/sh
if [[ $(cat /sys/class/net/wlp*/operstate) == "up" ]]; then if [[ $(cat /sys/class/net/wlp*/operstate) == "up" ]]; then
echo " 󰤨 "
echo " "
else else
echo " 󰤮 "
echo " "
fi fi

+ 4
- 4
scripts/status-bar/volume View File

@ -4,10 +4,10 @@
#vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }' ) #vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }' )
mute=$(pamixer --get-mute) mute=$(pamixer --get-mute)
vol=$(pamixer --get-volume) vol=$(pamixer --get-volume)
iconmute=󰖁
ramp1=󰕿
ramp2=󰖀
ramp3=󰕾
iconmute=
ramp1=
ramp2=奔
ramp3=
#if [[ $mute == "true" ]]; then #if [[ $mute == "true" ]]; then
# echo " $iconmute $vol% " # echo " $iconmute $vol% "


Loading…
Cancel
Save