diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-12 10:19:13 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-12 10:19:13 +0530 |
commit | f300ba9a9302e70dcc72523639aecc1e04feec53 (patch) | |
tree | c5082bb03ddb1e1eeab84da22cbfcb47a089f279 /.scripts | |
parent | d45546d4e53f149dc6ab2fc0e3ee020427b6c01e (diff) |
switched back to polybar
Diffstat (limited to '.scripts')
-rwxr-xr-x | .scripts/battery_level.sh | 3 | ||||
-rwxr-xr-x | .scripts/battery_status.sh | 2 | ||||
-rwxr-xr-x | .scripts/charging_status.sh | 3 | ||||
-rwxr-xr-x | .scripts/notify_battery_status.sh | 2 | ||||
-rwxr-xr-x | .scripts/secondmonitor.sh | 2 | ||||
-rwxr-xr-x | .scripts/volume_level.sh | 3 |
6 files changed, 10 insertions, 5 deletions
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' |