diff options
Diffstat (limited to '.scripts')
-rwxr-xr-x | .scripts/cpu_temp.sh | 3 | ||||
-rwxr-xr-x | .scripts/get_wifi_name.sh | 3 | ||||
-rwxr-xr-x | .scripts/ram_usage.sh | 3 | ||||
-rwxr-xr-x | .scripts/secondmonitor.sh | 2 |
4 files changed, 10 insertions, 1 deletions
diff --git a/.scripts/cpu_temp.sh b/.scripts/cpu_temp.sh new file mode 100755 index 0000000..f2dd2b6 --- /dev/null +++ b/.scripts/cpu_temp.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +acpi -t | awk '{ print $4 }' | sed 's/\../%/' | tr -d '\n' diff --git a/.scripts/get_wifi_name.sh b/.scripts/get_wifi_name.sh new file mode 100755 index 0000000..57d44a3 --- /dev/null +++ b/.scripts/get_wifi_name.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +nmcli -t -f active,ssid dev wifi | grep -e '^yes' | cut -d\' -f2 | sed 's/^yes://' | tr -d '\n' diff --git a/.scripts/ram_usage.sh b/.scripts/ram_usage.sh new file mode 100755 index 0000000..b611831 --- /dev/null +++ b/.scripts/ram_usage.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +free | awk '/^Mem/ { printf("%.0f%\n", $3/$2 * 100.0) }' | tr -d '\n' diff --git a/.scripts/secondmonitor.sh b/.scripts/secondmonitor.sh index ca7fac6..84a5960 100755 --- a/.scripts/secondmonitor.sh +++ b/.scripts/secondmonitor.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output HDMI-0 --dpi 120 --mode 1920x1080 --pos 0x0 --rotate normal --output eDP-1-1 --dpi 120 --primary --mode 1920x1080 --pos 1920x679 --rotate normal +xrandr --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal --output eDP-1-1 --primary --mode 1920x1080 --pos 1920x673 --rotate normal |