diff options
Diffstat (limited to 'code/sys')
-rwxr-xr-x | code/sys/gfx-intel.sh | 9 | ||||
-rwxr-xr-x | code/sys/gfx-off.sh | 9 | ||||
-rwxr-xr-x | code/sys/gfx-on.sh | 9 | ||||
-rwxr-xr-x | code/sys/gfx-radeon.sh | 9 | ||||
-rwxr-xr-x | code/sys/gfx-status.sh | 39 | ||||
-rw-r--r-- | code/sys/hash-compare.sh | 17 | ||||
-rwxr-xr-x | code/sys/toggle-touchpad.sh | 20 |
7 files changed, 0 insertions, 112 deletions
diff --git a/code/sys/gfx-intel.sh b/code/sys/gfx-intel.sh deleted file mode 100755 index 804de12..0000000 --- a/code/sys/gfx-intel.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -integrated=$(echo IGD | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓▓████▓▓▓▒▒░░' \ -" intel powered on"
\ No newline at end of file diff --git a/code/sys/gfx-off.sh b/code/sys/gfx-off.sh deleted file mode 100755 index aeb6daf..0000000 --- a/code/sys/gfx-off.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -integrated=$(echo OFF | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓▓████▓▓▓▒▒░░' \ -"unused powered off"
\ No newline at end of file diff --git a/code/sys/gfx-on.sh b/code/sys/gfx-on.sh deleted file mode 100755 index 57d08d4..0000000 --- a/code/sys/gfx-on.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -integrated=$(echo ON | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓▓████▓▓▓▒▒░░' \ -" both powered on"
\ No newline at end of file diff --git a/code/sys/gfx-radeon.sh b/code/sys/gfx-radeon.sh deleted file mode 100755 index a0db665..0000000 --- a/code/sys/gfx-radeon.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -integrated=$(echo DIS | sudo tee /sys/kernel/debug/vgaswitcheroo/switch) - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓▓████▓▓▓▒▒░░' \ -"radeon powered on"
\ No newline at end of file diff --git a/code/sys/gfx-status.sh b/code/sys/gfx-status.sh deleted file mode 100755 index 93d564a..0000000 --- a/code/sys/gfx-status.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -pci_integrated=$(lspci | grep VGA | sed -n '1p' | cut -f 1 -d " ") -pci_discrete=$(lspci | grep VGA | sed -n '2p' | cut -f 1 -d " ") - -integrated=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_integrated | grep -o -P ':.:...:') -discrete=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_discrete | grep -o -P ':.:...:') - -name_integrated=$(lspci | grep VGA | sed -n '1p' | sed -e "s/.* VGA compatible controller[ :]*//g" | sed -e "s/ Corporation//g" | sed -e "s/ Technologies Inc//g" | sed -e 's/\[[0-9]*\]: //g' | sed -e 's/\[[0-9:a-z]*\]//g' | sed -e 's/(rev [a-z0-9]*)//g' | sed -e "s/ Integrated Graphics Controller//g") -name_discrete=$(lspci | grep VGA | sed -n '2p' | sed -e "s/.* VGA compatible controller[ :]*//g" | sed -e "s/ Corporation//g" | sed -e "s/ Technologies Inc//g" | sed -e 's/\[[0-9]*\]: //g' | sed -e 's/\[[0-9:a-z]*\]//g' | sed -e 's/(rev [a-z0-9]*)//g' | sed -e "s/ Integrated Graphics Controller//g") - -if [ "$integrated" = ":+:Pwr:" ] -then -integrated_condition="on" -elif [ "$integrated" = ": :Pwr:" ] -then -integrated_condition="on" -elif [ "$integrated" = ": :Off:" ] -then -integrated_condition="off" -fi - -if [ "$discrete" = ":+:Pwr:" ] -then -discrete_condition="on" -elif [ "$discrete" = ": :Pwr:" ] -then -discrete_condition="on" -elif [ "$discrete" = ": :Off:" ] -then -discrete_condition="off" -fi - -notify-send -t 5000 \ --i "/home/xero/.config/awesome/themes/ghost/gfx.png" \ -' gfx status -░░▒▒▓▓███▓▓▒▒░░' \ -" intel = $integrated_condition - radeon = $discrete_condition"
\ No newline at end of file diff --git a/code/sys/hash-compare.sh b/code/sys/hash-compare.sh deleted file mode 100644 index 49dad54..0000000 --- a/code/sys/hash-compare.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -if [ "$#" -ne 2 ]; then - echo "please supply two files to diff" -else - sum1=$(md5sum $1) - sum2=$(md5sum $2) - - hash1="${sum1/$1/}" - hash2="${sum2/$2/}" - - if [ "$hash1" == "$hash2" ]; then - echo "identical" - else - echo "different" - fi -fi diff --git a/code/sys/toggle-touchpad.sh b/code/sys/toggle-touchpad.sh deleted file mode 100755 index 2381a86..0000000 --- a/code/sys/toggle-touchpad.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# -# enable/disable touchpad -# find your touchpad name: -# egrep -i 'synap|alps|etps' /proc/bus/input/devices -PAD='SynPS/2 Synaptics TouchPad' -A=`xinput list-props "$PAD" | sed -n -e 's/.*Device Enabled ([0-9][0-9]*):\t\(.*\)/\1/p' ` -if [ $A -eq 1 ]; then -xinput set-int-prop "$PAD" "Device Enabled" 8 0 -notify-send -t 5000 \ -' touchpad -░░▒▒▓▓██▓▓▒▒░░' \ -' disabled' -else -xinput set-int-prop "$PAD" "Device Enabled" 8 1 -notify-send -t 5000 \ -' touchpad -░░▒▒▓▓██▓▓▒▒░░' \ -' enabled' -fi |