nie wiem co zmieniałem, a dużo tego było

This commit is contained in:
2022-01-08 14:53:36 +01:00
parent 7f01e3c578
commit 8c1b3b2423
385 changed files with 24002 additions and 180 deletions

View File

@ -0,0 +1 @@
../applets/android/apps.sh

View File

@ -0,0 +1 @@
../applets/android/backlight.sh

View File

@ -0,0 +1 @@
../applets/android/mpd.sh

View File

@ -0,0 +1 @@
../applets/android/powermenu.sh

View File

@ -0,0 +1 @@
../applets/android/quicklinks.sh

View File

@ -0,0 +1 @@
../applets/android/screenshot.sh

View File

@ -0,0 +1 @@
../applets/android/volume.sh

View File

@ -0,0 +1 @@
../applets/applets/apps.sh

View File

@ -0,0 +1 @@
../applets/applets/backlight.sh

View File

@ -0,0 +1 @@
../applets/applets/battery.sh

1
.config/rofi/bin/applet_mpd Symbolic link
View File

@ -0,0 +1 @@
../applets/applets/mpd.sh

View File

@ -0,0 +1 @@
../applets/applets/network.sh

View File

@ -0,0 +1 @@
../applets/applets/powermenu.sh

View File

@ -0,0 +1 @@
../applets/applets/quicklinks.sh

View File

@ -0,0 +1 @@
../applets/applets/screenshot.sh

View File

@ -0,0 +1 @@
../applets/applets/time.sh

View File

@ -0,0 +1 @@
../applets/applets/volume.sh

View File

@ -0,0 +1 @@
../launchers/colorful/launcher.sh

View File

@ -0,0 +1 @@
../launchers/misc/launcher.sh

View File

@ -0,0 +1 @@
../launchers/ribbon/launcher.sh

View File

@ -0,0 +1 @@
../launchers/slate/launcher.sh

View File

@ -0,0 +1 @@
../launchers/text/launcher.sh

1
.config/rofi/bin/menu_apps Symbolic link
View File

@ -0,0 +1 @@
../applets/menu/apps.sh

View File

@ -0,0 +1 @@
../applets/menu/backlight.sh

View File

@ -0,0 +1 @@
../applets/menu/battery.sh

1
.config/rofi/bin/menu_mpd Symbolic link
View File

@ -0,0 +1 @@
../applets/menu/mpd.sh

View File

@ -0,0 +1 @@
../applets/menu/network.sh

View File

@ -0,0 +1 @@
../applets/menu/powermenu.sh

View File

@ -0,0 +1 @@
../applets/menu/quicklinks.sh

View File

@ -0,0 +1 @@
../applets/menu/screenshot.sh

1
.config/rofi/bin/menu_time Symbolic link
View File

@ -0,0 +1 @@
../applets/menu/time.sh

View File

@ -0,0 +1 @@
../applets/menu/volume.sh

1
.config/rofi/bin/powermenu Symbolic link
View File

@ -0,0 +1 @@
../powermenu/powermenu.sh

45
.config/rofi/bin/usedcpu Executable file
View File

@ -0,0 +1,45 @@
#!/usr/bin/env bash
PREV_TOTAL=0
PREV_IDLE=0
cpuFile="/tmp/.cpu"
if [[ -f "${cpuFile}" ]]; then
fileCont=$(cat "${cpuFile}")
PREV_TOTAL=$(echo "${fileCont}" | head -n 1)
PREV_IDLE=$(echo "${fileCont}" | tail -n 1)
fi
CPU=(`cat /proc/stat | grep '^cpu '`) # Get the total CPU statistics.
unset CPU[0] # Discard the "cpu" prefix.
IDLE=${CPU[4]} # Get the idle CPU time.
# Calculate the total CPU time.
TOTAL=0
for VALUE in "${CPU[@]:0:4}"; do
let "TOTAL=$TOTAL+$VALUE"
done
if [[ "${PREV_TOTAL}" != "" ]] && [[ "${PREV_IDLE}" != "" ]]; then
# Calculate the CPU usage since we last checked.
let "DIFF_IDLE=$IDLE-$PREV_IDLE"
let "DIFF_TOTAL=$TOTAL-$PREV_TOTAL"
let "DIFF_USAGE=(1000*($DIFF_TOTAL-$DIFF_IDLE)/$DIFF_TOTAL+5)/10"
if [[ $1 = "-i" ]]; then
echo " ${DIFF_USAGE}%"
else
echo "${DIFF_USAGE}%"
fi
else
if [[ $1 = "-i" ]]; then
echo " ?"
else
echo "?"
fi
fi
# Remember the total and idle CPU times for the next check.
echo "${TOTAL}" > "${cpuFile}"
echo "${IDLE}" >> "${cpuFile}"

27
.config/rofi/bin/usedram Executable file
View File

@ -0,0 +1,27 @@
#!/usr/bin/env bash
mem_info=$(</proc/meminfo)
mem_info=$(echo $(echo $(mem_info=${mem_info// /}; echo ${mem_info//kB/})))
for m in $mem_info; do
case ${m//:*} in
"MemTotal") usedmem=$((usedmem+=${m//*:})); totalmem=${m//*:} ;;
"ShMem") usedmem=$((usedmem+=${m//*:})) ;;
"MemFree"|"Buffers"|"Cached"|"SReclaimable") usedmem=$((usedmem-=${m//*:})) ;;
esac
done
usedmem=$((usedmem / 1024))
totalmem=$((totalmem / 1024))
mem="${usedmem}MB / ${totalmem}MB"
## Complete summary
if [[ $1 = "-fi" ]]; then
echo " $mem"
elif [[ $1 = "-f" ]]; then
echo "$mem"
## Only used RAM
elif [[ $1 = "-i" ]]; then
echo " $usedmem MB"
else
echo "$usedmem MB"
fi