updated and additions for dwm uplift

This commit is contained in:
Solomon Laing 2022-10-30 16:40:38 +10:30
parent f2dd7ab51a
commit 4aa1d4a1ea
5 changed files with 42 additions and 11 deletions

10
scripts/status-disk Executable file
View File

@ -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

View File

@ -43,7 +43,6 @@ ssid="$(iw dev $dev_wifi link | grep -i SSID)"
if [ -n "$ssid" ] if [ -n "$ssid" ]
then then
signal="$(awk '/^\s*w/ { print int($3 * 100 / 70) "%" }' /proc/net/wireless)" signal="$(awk '/^\s*w/ { print int($3 * 100 / 70) "%" }' /proc/net/wireless)"
((signal > 100)) && signal=100
wifi_status="$wifi_icon ${signal} ${ssid##*SSID: }" wifi_status="$wifi_icon ${signal} ${ssid##*SSID: }"
fi fi

View File

@ -31,8 +31,6 @@ then
else else
status=MUTE status=MUTE
color=$red color=$red
icon="" # fa-volume-off f026 icon="" # fa-volume-off f026
fi fi
echo "$icon $status" echo "$icon $status"

View File

@ -1,10 +1,7 @@
#!/bin/bash #!/bin/bash
freemb=$(df -h -B 1048576 | grep "/$" | awk -F ' ' '{ print $4 }') status=$(status-disk)
freegb=$(df -h -B 1048576 | grep "/$" | awk -F ' ' '{ print $4/1024 }')
if [ $freemb -lt 1024 ]; then parts=($status)
printf "<fn=1> </fn> %0.2fMb" $freemb
else echo "<fn=1>${parts[0]} </fn> ${parts[1]}"
printf "<fn=1> </fn> %0.2fGb" $freegb
fi

27
tags Normal file
View File

@ -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