refactored some stuff

This commit is contained in:
Nikolas Weger 2020-09-04 20:52:41 +02:00
parent e007eb5a58
commit 5f3ecf6090
29 changed files with 91 additions and 666 deletions

View file

@ -1,4 +0,0 @@
#! /bin/bash
dte="$(date +"%a, %B %d %l:%M%p"| sed 's/ / /g')"
echo -e "$dte"

View file

@ -1,4 +0,0 @@
#! /bin/bash
kern="$(uname -r)"
echo -e "$kern "

View file

@ -1,4 +0,0 @@
#! /bin/bash
mem="$(free -h | awk '/^Mem:/ {print $3 "/" $2}')"
echo -e "$mem ram "

View file

@ -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']}");

View file

@ -1,4 +0,0 @@
#!/bin/bash
cupd=$(checkupdates | wc -l)
printf "$cupd updates \n"

View file

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

View file

@ -1,4 +0,0 @@
#!/bin/bash
vol="$(amixer get Master | tail -n1 | sed -r 's/.*\[(.*)%\].*/\1/')"
echo "${vol}% "