From f300ba9a9302e70dcc72523639aecc1e04feec53 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 12 Sep 2022 10:19:13 +0530 Subject: switched back to polybar --- .scripts/battery_level.sh | 3 +++ .scripts/battery_status.sh | 2 -- .scripts/charging_status.sh | 3 +++ .scripts/notify_battery_status.sh | 2 -- .scripts/secondmonitor.sh | 2 +- .scripts/volume_level.sh | 3 +++ 6 files changed, 10 insertions(+), 5 deletions(-) create mode 100755 .scripts/battery_level.sh delete mode 100755 .scripts/battery_status.sh create mode 100755 .scripts/charging_status.sh delete mode 100755 .scripts/notify_battery_status.sh create mode 100755 .scripts/volume_level.sh (limited to '.scripts') diff --git a/.scripts/battery_level.sh b/.scripts/battery_level.sh new file mode 100755 index 0000000..a1b1b48 --- /dev/null +++ b/.scripts/battery_level.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +acpi -b | awk '{print $4}' | sed 's/,//' | tr -d '\n' diff --git a/.scripts/battery_status.sh b/.scripts/battery_status.sh deleted file mode 100755 index a66bd70..0000000 --- a/.scripts/battery_status.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -acpi -b | awk '{print substr($4, 0, length($2) + 1) ", " substr($3, 0, length($3) - 1)}' diff --git a/.scripts/charging_status.sh b/.scripts/charging_status.sh new file mode 100755 index 0000000..24c09e7 --- /dev/null +++ b/.scripts/charging_status.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +acpi -b | awk '{print $3}' | sed 's/,//' | tr -d '\n' diff --git a/.scripts/notify_battery_status.sh b/.scripts/notify_battery_status.sh deleted file mode 100755 index a9ccee4..0000000 --- a/.scripts/notify_battery_status.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -notify-send "Battery:" "$(battery_status.sh)" diff --git a/.scripts/secondmonitor.sh b/.scripts/secondmonitor.sh index 84a5960..cc379c0 100755 --- a/.scripts/secondmonitor.sh +++ b/.scripts/secondmonitor.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal --output eDP-1-1 --primary --mode 1920x1080 --pos 1920x673 --rotate normal +xrandr --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal --output eDP-1-1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal diff --git a/.scripts/volume_level.sh b/.scripts/volume_level.sh new file mode 100755 index 0000000..5aeba95 --- /dev/null +++ b/.scripts/volume_level.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +pamixer --get-volume-human | tr -d '\n' -- cgit v1.2.3