From f8acb4edc93d2570856381eb7fb6f75db3955cf6 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Tue, 21 Dec 2021 21:26:50 +0100 Subject: Initial commit2 --- .config/eww/scripts/get_brightness | 2 ++ .config/eww/scripts/get_headvol | 2 ++ .config/eww/scripts/get_mastervol | 2 ++ .config/eww/scripts/getram | 2 ++ 4 files changed, 8 insertions(+) create mode 100755 .config/eww/scripts/get_brightness create mode 100755 .config/eww/scripts/get_headvol create mode 100755 .config/eww/scripts/get_mastervol create mode 100755 .config/eww/scripts/getram (limited to '.config/eww/scripts') diff --git a/.config/eww/scripts/get_brightness b/.config/eww/scripts/get_brightness new file mode 100755 index 0000000..4f03d54 --- /dev/null +++ b/.config/eww/scripts/get_brightness @@ -0,0 +1,2 @@ +#!/bin/sh +printf "%.0f\n" $(xbacklight -get) diff --git a/.config/eww/scripts/get_headvol b/.config/eww/scripts/get_headvol new file mode 100755 index 0000000..5ce9bf5 --- /dev/null +++ b/.config/eww/scripts/get_headvol @@ -0,0 +1,2 @@ +#!/bin/sh +amixer sget Headphone | grep 'Left:' | cut -d\ -f7 | tr -d '[%]' diff --git a/.config/eww/scripts/get_mastervol b/.config/eww/scripts/get_mastervol new file mode 100755 index 0000000..e1fd62a --- /dev/null +++ b/.config/eww/scripts/get_mastervol @@ -0,0 +1,2 @@ +#!/bin/sh +amixer get Master | awk '$0~/%/{print $4}' | tr -d '[%]' diff --git a/.config/eww/scripts/getram b/.config/eww/scripts/getram new file mode 100755 index 0000000..791a5a5 --- /dev/null +++ b/.config/eww/scripts/getram @@ -0,0 +1,2 @@ +#!/bin/sh +printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}') -- cgit v1.2.3