refactored some stuff
This commit is contained in:
parent
e007eb5a58
commit
5f3ecf6090
29 changed files with 91 additions and 666 deletions
|
@ -1,4 +0,0 @@
|
|||
#! /bin/bash
|
||||
|
||||
dte="$(date +"%a, %B %d %l:%M%p"| sed 's/ / /g')"
|
||||
echo -e "$dte"
|
|
@ -1,4 +0,0 @@
|
|||
#! /bin/bash
|
||||
|
||||
kern="$(uname -r)"
|
||||
echo -e "$kern "
|
|
@ -1,4 +0,0 @@
|
|||
#! /bin/bash
|
||||
|
||||
mem="$(free -h | awk '/^Mem:/ {print $3 "/" $2}')"
|
||||
echo -e "$mem ram "
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/php
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
$script = array_shift($_SERVER['argv']);
|
||||
$settings['token'] = 'ayndqf6fdyjo9pua8reusvvb733k1u';
|
||||
|
@ -18,4 +18,4 @@ curl_close($curl);
|
|||
|
||||
$json = json_decode($return, true);
|
||||
|
||||
if(isset($json['info'])) echo("Result: ${json['info']}");
|
||||
if(isset($json['info'])) echo("Result: ${json['info']}");
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
cupd=$(checkupdates | wc -l)
|
||||
printf "$cupd updates \n"
|
4
bin/upt
4
bin/upt
|
@ -1,4 +0,0 @@
|
|||
#! /bin/bash
|
||||
|
||||
upt="$(uptime --pretty | sed -e 's/up //g' -e 's/ days/d/g' -e 's/ day/d/g' -e 's/ hours/h/g' -e 's/ hour/h/g' -e 's/ minutes/m/g' -e 's/, / /g')"
|
||||
echo -e "$upt uptime "
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
|
||||
echo "${vol}% "
|
Loading…
Add table
Add a link
Reference in a new issue