aboutsummaryrefslogtreecommitdiff
path: root/.scripts
diff options
context:
space:
mode:
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/battery_level.sh3
-rwxr-xr-x.scripts/battery_status.sh2
-rwxr-xr-x.scripts/charging_status.sh3
-rwxr-xr-x.scripts/notify_battery_status.sh2
-rwxr-xr-x.scripts/secondmonitor.sh2
-rwxr-xr-x.scripts/volume_level.sh3
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'