diff --git a/scripts/status-disk b/scripts/status-disk new file mode 100755 index 0000000..8abd32a --- /dev/null +++ b/scripts/status-disk @@ -0,0 +1,10 @@ +#!/bin/bash + +freemb=$(df -h -B 1048576 | grep "/$" | awk -F ' ' '{ print $4 }') +freegb=$(df -h -B 1048576 | grep "/$" | awk -F ' ' '{ print $4/1024 }') + +if [ $freemb -lt 1024 ]; then + printf " %0.2fMb" $freemb +else + printf " %0.2fGb" $freegb +fi diff --git a/scripts/status-net b/scripts/status-net index 68992d6..9118329 100755 --- a/scripts/status-net +++ b/scripts/status-net @@ -43,7 +43,6 @@ ssid="$(iw dev $dev_wifi link | grep -i SSID)" if [ -n "$ssid" ] then signal="$(awk '/^\s*w/ { print int($3 * 100 / 70) "%" }' /proc/net/wireless)" - ((signal > 100)) && signal=100 wifi_status="$wifi_icon ${signal} ${ssid##*SSID: }" fi diff --git a/scripts/status-vol b/scripts/status-vol index cd5e3d7..67a23dc 100755 --- a/scripts/status-vol +++ b/scripts/status-vol @@ -31,8 +31,6 @@ then else status=MUTE color=$red - icon="" # fa-volume-off f026 + icon="" # fa-volume-off f026 fi echo "$icon $status" - - diff --git a/scripts/xmobar-status-disk b/scripts/xmobar-status-disk index c30b3e3..183c771 100755 --- a/scripts/xmobar-status-disk +++ b/scripts/xmobar-status-disk @@ -1,10 +1,7 @@ #!/bin/bash -freemb=$(df -h -B 1048576 | grep "/$" | awk -F ' ' '{ print $4 }') -freegb=$(df -h -B 1048576 | grep "/$" | awk -F ' ' '{ print $4/1024 }') +status=$(status-disk) -if [ $freemb -lt 1024 ]; then - printf " %0.2fMb" $freemb -else - printf " %0.2fGb" $freegb -fi +parts=($status) + +echo "${parts[0]} ${parts[1]}" diff --git a/tags b/tags new file mode 100644 index 0000000..acd9d6e --- /dev/null +++ b/tags @@ -0,0 +1,27 @@ +!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ +!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ +!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ +!_TAG_PROGRAM_AUTHOR Universal Ctags Team // +!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/ +!_TAG_PROGRAM_URL https://ctags.io/ /official site/ +!_TAG_PROGRAM_VERSION 0.0.0 // +EOF scripts/xmobar-trayer-padding-icon /^ cat << EOF > "$2"$/;" h +Important Note scripts/cron/README.md /^# Important Note$/;" c +Inks Scripts README.md /^# Inks Scripts$/;" c +asktype scripts/dmenumount /^asktype() { \\$/;" f +asktype scripts/dmenuumount /^asktype() { \\$/;" f +cleanup scripts/lfub /^cleanup() {$/;" f +create_xpm_icon scripts/xmobar-trayer-padding-icon /^create_xpm_icon () {$/;" f +getmount scripts/dmenumount /^getmount() { \\$/;" f +morescreen scripts/displayselect /^morescreen() { # If multi-monitor is selected and there are more than two screens.$/;" f +mountandroid scripts/dmenumount /^mountandroid() { \\$/;" f +mountusb scripts/dmenumount /^mountusb() { \\$/;" f +multimon scripts/displayselect /^multimon() { # Multi-monitor handler.$/;" f +onescreen scripts/displayselect /^onescreen() { # If only one output available or chosen.$/;" f +postrun scripts/displayselect /^postrun() { # Stuff to run to clean up.$/;" f +send_notification scripts/mod_backlight /^ function send_notification() {$/;" f +sharemount scripts/dmenumountcifs /^sharemount() {$/;" f +textype scripts/compiler /^textype() { \\$/;" f +twoscreen scripts/displayselect /^twoscreen() { # If multi-monitor is selected and there are two screens.$/;" f +unmountandroid scripts/dmenuumount /^unmountandroid() { \\$/;" f +unmountusb scripts/dmenuumount /^unmountusb() {$/;" f