From 72efe134f645a5212f875c153dd8db4a64cbe968 Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Tue, 23 Jan 2024 11:13:18 +0100 Subject: changes --- Common/rofi/bin/android_apps | 1 - Common/rofi/bin/android_backlight | 1 - Common/rofi/bin/android_mpd | 1 - Common/rofi/bin/android_powermenu | 1 - Common/rofi/bin/android_quicklinks | 1 - Common/rofi/bin/android_screenshot | 1 - Common/rofi/bin/android_volume | 1 - Common/rofi/bin/applet_apps | 1 - Common/rofi/bin/applet_backlight | 1 - Common/rofi/bin/applet_battery | 1 - Common/rofi/bin/applet_mpd | 1 - Common/rofi/bin/applet_network | 1 - Common/rofi/bin/applet_powermenu | 1 - Common/rofi/bin/applet_quicklinks | 1 - Common/rofi/bin/applet_screenshot | 1 - Common/rofi/bin/applet_time | 1 - Common/rofi/bin/applet_volume | 1 - Common/rofi/bin/launcher_colorful | 1 - Common/rofi/bin/launcher_misc | 1 - Common/rofi/bin/launcher_ribbon | 1 - Common/rofi/bin/launcher_slate | 1 - Common/rofi/bin/launcher_text | 1 - Common/rofi/bin/menu_apps | 1 - Common/rofi/bin/menu_backlight | 1 - Common/rofi/bin/menu_battery | 1 - Common/rofi/bin/menu_mpd | 1 - Common/rofi/bin/menu_network | 1 - Common/rofi/bin/menu_powermenu | 1 - Common/rofi/bin/menu_quicklinks | 1 - Common/rofi/bin/menu_screenshot | 1 - Common/rofi/bin/menu_time | 1 - Common/rofi/bin/menu_volume | 1 - Common/rofi/bin/powermenu | 1 - Common/rofi/bin/usedcpu | 45 -------------------------------------- Common/rofi/bin/usedram | 27 ----------------------- 35 files changed, 105 deletions(-) delete mode 120000 Common/rofi/bin/android_apps delete mode 120000 Common/rofi/bin/android_backlight delete mode 120000 Common/rofi/bin/android_mpd delete mode 120000 Common/rofi/bin/android_powermenu delete mode 120000 Common/rofi/bin/android_quicklinks delete mode 120000 Common/rofi/bin/android_screenshot delete mode 120000 Common/rofi/bin/android_volume delete mode 120000 Common/rofi/bin/applet_apps delete mode 120000 Common/rofi/bin/applet_backlight delete mode 120000 Common/rofi/bin/applet_battery delete mode 120000 Common/rofi/bin/applet_mpd delete mode 120000 Common/rofi/bin/applet_network delete mode 120000 Common/rofi/bin/applet_powermenu delete mode 120000 Common/rofi/bin/applet_quicklinks delete mode 120000 Common/rofi/bin/applet_screenshot delete mode 120000 Common/rofi/bin/applet_time delete mode 120000 Common/rofi/bin/applet_volume delete mode 120000 Common/rofi/bin/launcher_colorful delete mode 120000 Common/rofi/bin/launcher_misc delete mode 120000 Common/rofi/bin/launcher_ribbon delete mode 120000 Common/rofi/bin/launcher_slate delete mode 120000 Common/rofi/bin/launcher_text delete mode 120000 Common/rofi/bin/menu_apps delete mode 120000 Common/rofi/bin/menu_backlight delete mode 120000 Common/rofi/bin/menu_battery delete mode 120000 Common/rofi/bin/menu_mpd delete mode 120000 Common/rofi/bin/menu_network delete mode 120000 Common/rofi/bin/menu_powermenu delete mode 120000 Common/rofi/bin/menu_quicklinks delete mode 120000 Common/rofi/bin/menu_screenshot delete mode 120000 Common/rofi/bin/menu_time delete mode 120000 Common/rofi/bin/menu_volume delete mode 120000 Common/rofi/bin/powermenu delete mode 100755 Common/rofi/bin/usedcpu delete mode 100755 Common/rofi/bin/usedram (limited to 'Common/rofi/bin') diff --git a/Common/rofi/bin/android_apps b/Common/rofi/bin/android_apps deleted file mode 120000 index 7b11b66..0000000 --- a/Common/rofi/bin/android_apps +++ /dev/null @@ -1 +0,0 @@ -../applets/android/apps.sh \ No newline at end of file diff --git a/Common/rofi/bin/android_backlight b/Common/rofi/bin/android_backlight deleted file mode 120000 index 9de32b8..0000000 --- a/Common/rofi/bin/android_backlight +++ /dev/null @@ -1 +0,0 @@ -../applets/android/backlight.sh \ No newline at end of file diff --git a/Common/rofi/bin/android_mpd b/Common/rofi/bin/android_mpd deleted file mode 120000 index 1f16126..0000000 --- a/Common/rofi/bin/android_mpd +++ /dev/null @@ -1 +0,0 @@ -../applets/android/mpd.sh \ No newline at end of file diff --git a/Common/rofi/bin/android_powermenu b/Common/rofi/bin/android_powermenu deleted file mode 120000 index 7d66a76..0000000 --- a/Common/rofi/bin/android_powermenu +++ /dev/null @@ -1 +0,0 @@ -../applets/android/powermenu.sh \ No newline at end of file diff --git a/Common/rofi/bin/android_quicklinks b/Common/rofi/bin/android_quicklinks deleted file mode 120000 index 7d44c74..0000000 --- a/Common/rofi/bin/android_quicklinks +++ /dev/null @@ -1 +0,0 @@ -../applets/android/quicklinks.sh \ No newline at end of file diff --git a/Common/rofi/bin/android_screenshot b/Common/rofi/bin/android_screenshot deleted file mode 120000 index 1bd8694..0000000 --- a/Common/rofi/bin/android_screenshot +++ /dev/null @@ -1 +0,0 @@ -../applets/android/screenshot.sh \ No newline at end of file diff --git a/Common/rofi/bin/android_volume b/Common/rofi/bin/android_volume deleted file mode 120000 index 33bcea2..0000000 --- a/Common/rofi/bin/android_volume +++ /dev/null @@ -1 +0,0 @@ -../applets/android/volume.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_apps b/Common/rofi/bin/applet_apps deleted file mode 120000 index 0cbf8f8..0000000 --- a/Common/rofi/bin/applet_apps +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/apps.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_backlight b/Common/rofi/bin/applet_backlight deleted file mode 120000 index 0663ec3..0000000 --- a/Common/rofi/bin/applet_backlight +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/backlight.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_battery b/Common/rofi/bin/applet_battery deleted file mode 120000 index 4b660cb..0000000 --- a/Common/rofi/bin/applet_battery +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/battery.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_mpd b/Common/rofi/bin/applet_mpd deleted file mode 120000 index 2a55e5f..0000000 --- a/Common/rofi/bin/applet_mpd +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/mpd.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_network b/Common/rofi/bin/applet_network deleted file mode 120000 index cecf37c..0000000 --- a/Common/rofi/bin/applet_network +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/network.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_powermenu b/Common/rofi/bin/applet_powermenu deleted file mode 120000 index 0a0635d..0000000 --- a/Common/rofi/bin/applet_powermenu +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/powermenu.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_quicklinks b/Common/rofi/bin/applet_quicklinks deleted file mode 120000 index 319e0b2..0000000 --- a/Common/rofi/bin/applet_quicklinks +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/quicklinks.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_screenshot b/Common/rofi/bin/applet_screenshot deleted file mode 120000 index 3107901..0000000 --- a/Common/rofi/bin/applet_screenshot +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/screenshot.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_time b/Common/rofi/bin/applet_time deleted file mode 120000 index 0565f05..0000000 --- a/Common/rofi/bin/applet_time +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/time.sh \ No newline at end of file diff --git a/Common/rofi/bin/applet_volume b/Common/rofi/bin/applet_volume deleted file mode 120000 index 493275a..0000000 --- a/Common/rofi/bin/applet_volume +++ /dev/null @@ -1 +0,0 @@ -../applets/applets/volume.sh \ No newline at end of file diff --git a/Common/rofi/bin/launcher_colorful b/Common/rofi/bin/launcher_colorful deleted file mode 120000 index 8e48b54..0000000 --- a/Common/rofi/bin/launcher_colorful +++ /dev/null @@ -1 +0,0 @@ -../launchers/colorful/launcher.sh \ No newline at end of file diff --git a/Common/rofi/bin/launcher_misc b/Common/rofi/bin/launcher_misc deleted file mode 120000 index ff3f68f..0000000 --- a/Common/rofi/bin/launcher_misc +++ /dev/null @@ -1 +0,0 @@ -../launchers/misc/launcher.sh \ No newline at end of file diff --git a/Common/rofi/bin/launcher_ribbon b/Common/rofi/bin/launcher_ribbon deleted file mode 120000 index 925a1a8..0000000 --- a/Common/rofi/bin/launcher_ribbon +++ /dev/null @@ -1 +0,0 @@ -../launchers/ribbon/launcher.sh \ No newline at end of file diff --git a/Common/rofi/bin/launcher_slate b/Common/rofi/bin/launcher_slate deleted file mode 120000 index d409300..0000000 --- a/Common/rofi/bin/launcher_slate +++ /dev/null @@ -1 +0,0 @@ -../launchers/slate/launcher.sh \ No newline at end of file diff --git a/Common/rofi/bin/launcher_text b/Common/rofi/bin/launcher_text deleted file mode 120000 index 65eac28..0000000 --- a/Common/rofi/bin/launcher_text +++ /dev/null @@ -1 +0,0 @@ -../launchers/text/launcher.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_apps b/Common/rofi/bin/menu_apps deleted file mode 120000 index a07c955..0000000 --- a/Common/rofi/bin/menu_apps +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/apps.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_backlight b/Common/rofi/bin/menu_backlight deleted file mode 120000 index 18eea2f..0000000 --- a/Common/rofi/bin/menu_backlight +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/backlight.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_battery b/Common/rofi/bin/menu_battery deleted file mode 120000 index 10f11b5..0000000 --- a/Common/rofi/bin/menu_battery +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/battery.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_mpd b/Common/rofi/bin/menu_mpd deleted file mode 120000 index b3e204b..0000000 --- a/Common/rofi/bin/menu_mpd +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/mpd.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_network b/Common/rofi/bin/menu_network deleted file mode 120000 index 2c4c1d9..0000000 --- a/Common/rofi/bin/menu_network +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/network.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_powermenu b/Common/rofi/bin/menu_powermenu deleted file mode 120000 index da40a0b..0000000 --- a/Common/rofi/bin/menu_powermenu +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/powermenu.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_quicklinks b/Common/rofi/bin/menu_quicklinks deleted file mode 120000 index e873658..0000000 --- a/Common/rofi/bin/menu_quicklinks +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/quicklinks.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_screenshot b/Common/rofi/bin/menu_screenshot deleted file mode 120000 index 8c4b92d..0000000 --- a/Common/rofi/bin/menu_screenshot +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/screenshot.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_time b/Common/rofi/bin/menu_time deleted file mode 120000 index a7d56c1..0000000 --- a/Common/rofi/bin/menu_time +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/time.sh \ No newline at end of file diff --git a/Common/rofi/bin/menu_volume b/Common/rofi/bin/menu_volume deleted file mode 120000 index b0f235a..0000000 --- a/Common/rofi/bin/menu_volume +++ /dev/null @@ -1 +0,0 @@ -../applets/menu/volume.sh \ No newline at end of file diff --git a/Common/rofi/bin/powermenu b/Common/rofi/bin/powermenu deleted file mode 120000 index d9f9d95..0000000 --- a/Common/rofi/bin/powermenu +++ /dev/null @@ -1 +0,0 @@ -../powermenu/powermenu.sh \ No newline at end of file diff --git a/Common/rofi/bin/usedcpu b/Common/rofi/bin/usedcpu deleted file mode 100755 index 512933c..0000000 --- a/Common/rofi/bin/usedcpu +++ /dev/null @@ -1,45 +0,0 @@ -#!/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}" diff --git a/Common/rofi/bin/usedram b/Common/rofi/bin/usedram deleted file mode 100755 index e8a6108..0000000 --- a/Common/rofi/bin/usedram +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -mem_info=$(