mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-04 06:32:03 +00:00
Update 2025-02-24
Update 2025-02-03 Update 2025-02-04 Update 2025-02-09 Update 2025-02-14 Update 2025-02-15 Update 2025-02-22 Update 2025-02-24
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
battery() {
|
||||
BAT=`ls /sys/class/power_supply | grep BAT | head -n 1`
|
||||
cat /sys/class/power_supply/${BAT}/capacity
|
||||
}
|
||||
battery_stat() {
|
||||
BAT=`ls /sys/class/power_supply | grep BAT | head -n 1`
|
||||
cat /sys/class/power_supply/${BAT}/status
|
||||
}
|
||||
|
||||
if [[ "$1" == "--bat" ]]; then
|
||||
battery
|
||||
elif [[ "$1" == "--bat-st" ]]; then
|
||||
battery_stat
|
||||
fi
|
||||
|
||||
0
config/eww/scripts/change-active-workspace
Executable file → Normal file
0
config/eww/scripts/change-active-workspace
Executable file → Normal file
0
config/eww/scripts/get-active-workspace
Executable file → Normal file
0
config/eww/scripts/get-active-workspace
Executable file → Normal file
0
config/eww/scripts/get-window-title
Executable file → Normal file
0
config/eww/scripts/get-window-title
Executable file → Normal file
0
config/eww/scripts/get-workspaces
Executable file → Normal file
0
config/eww/scripts/get-workspaces
Executable file → Normal file
3
config/eww/scripts/mem-ad
Executable file → Normal file
3
config/eww/scripts/mem-ad
Executable file → Normal file
@@ -1,5 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
#!/usr/bin/env bash
|
||||
|
||||
total="$(free -m | grep Mem: | awk '{ print $2 }')"
|
||||
used="$(free -m | grep Mem: | awk '{ print $3 }')"
|
||||
|
||||
4
config/eww/scripts/memory
Executable file → Normal file
4
config/eww/scripts/memory
Executable file → Normal file
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}')
|
||||
awk '/Mem:/ {printf "%.0f\n", ($3/$2)*100}' <(free -m)
|
||||
|
||||
0
config/eww/scripts/music_info
Executable file → Normal file
0
config/eww/scripts/music_info
Executable file → Normal file
0
config/eww/scripts/music_info.bak
Executable file → Normal file
0
config/eww/scripts/music_info.bak
Executable file → Normal file
0
config/eww/scripts/pop
Executable file → Normal file
0
config/eww/scripts/pop
Executable file → Normal file
0
config/eww/scripts/wifi
Executable file → Normal file
0
config/eww/scripts/wifi
Executable file → Normal file
0
config/eww/scripts/workspace
Executable file → Normal file
0
config/eww/scripts/workspace
Executable file → Normal file
Reference in New Issue
Block a user