aboutsummaryrefslogtreecommitdiff
path: root/code/sys/gfx-status.sh
diff options
context:
space:
mode:
authorxero <x@xero.nu>2014-07-14 13:23:05 -0400
committerxero <x@xero.nu>2014-07-14 13:23:05 -0400
commit56560fd597f94dfe6fe5fa79648398ab29d05775 (patch)
tree7e77d23be98b2df8ef847f49ee645085356305be /code/sys/gfx-status.sh
parent1434c859bcf94a0bbee88e72c8a01849d0356293 (diff)
downloaddotfiles_ascii-56560fd597f94dfe6fe5fa79648398ab29d05775.tar.xz
dotfiles_ascii-56560fd597f94dfe6fe5fa79648398ab29d05775.zip
updated repo to manage dotfiles via gnu stow, the symlink farm manager. happy birthday commit! :birthday: :sparkles:
Diffstat (limited to 'code/sys/gfx-status.sh')
-rwxr-xr-xcode/sys/gfx-status.sh39
1 files changed, 0 insertions, 39 deletions
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