aboutsummaryrefslogtreecommitdiff
path: root/.config/eww/scripts
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2021-12-21 20:26:50 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2021-12-21 20:26:50 +0000
commitf8acb4edc93d2570856381eb7fb6f75db3955cf6 (patch)
treed8db466f88799f7d796e0b93d6a2ad8394c599c9 /.config/eww/scripts
parent2169a4155362a7f1639e4ad78033abb193f2d565 (diff)
downloaddotfiles-f8acb4edc93d2570856381eb7fb6f75db3955cf6.tar
dotfiles-f8acb4edc93d2570856381eb7fb6f75db3955cf6.tar.gz
dotfiles-f8acb4edc93d2570856381eb7fb6f75db3955cf6.tar.bz2
dotfiles-f8acb4edc93d2570856381eb7fb6f75db3955cf6.tar.lz
dotfiles-f8acb4edc93d2570856381eb7fb6f75db3955cf6.tar.xz
dotfiles-f8acb4edc93d2570856381eb7fb6f75db3955cf6.tar.zst
dotfiles-f8acb4edc93d2570856381eb7fb6f75db3955cf6.zip
Initial commit2
Diffstat (limited to '.config/eww/scripts')
-rwxr-xr-x.config/eww/scripts/get_brightness2
-rwxr-xr-x.config/eww/scripts/get_headvol2
-rwxr-xr-x.config/eww/scripts/get_mastervol2
-rwxr-xr-x.config/eww/scripts/getram2
4 files changed, 8 insertions, 0 deletions
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}')