updated and additions for dwm uplift
This commit is contained in:
parent
f2dd7ab51a
commit
4aa1d4a1ea
10
scripts/status-disk
Executable file
10
scripts/status-disk
Executable 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
|
||||
@ -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
|
||||
|
||||
|
||||
@ -31,8 +31,6 @@ then
|
||||
else
|
||||
status=MUTE
|
||||
color=$red
|
||||
icon="" # fa-volume-off f026
|
||||
icon="" # fa-volume-off f026
|
||||
fi
|
||||
echo "$icon $status"
|
||||
|
||||
|
||||
|
||||
@ -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 "<fn=1> </fn> %0.2fMb" $freemb
|
||||
else
|
||||
printf "<fn=1> </fn> %0.2fGb" $freegb
|
||||
fi
|
||||
parts=($status)
|
||||
|
||||
echo "<fn=1>${parts[0]} </fn> ${parts[1]}"
|
||||
|
||||
27
tags
Normal file
27
tags
Normal 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
|
||||
Reference in New Issue
Block a user