Initial backup
This commit is contained in:
BIN
.xmonad/scripts/.wallpaper.sh.swp
Normal file
BIN
.xmonad/scripts/.wallpaper.sh.swp
Normal file
Binary file not shown.
3
.xmonad/scripts/getVolume.sh
Executable file
3
.xmonad/scripts/getVolume.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
amixer get Master |grep % |awk '{print $5, $6}' | head -1
|
||||
|
||||
7
.xmonad/scripts/getdGPULoad.py
Executable file
7
.xmonad/scripts/getdGPULoad.py
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
from pynvml import *
|
||||
|
||||
nvmlInit()
|
||||
handle = nvmlDeviceGetHandleByIndex(0)
|
||||
print(str(nvmlDeviceGetUtilizationRates(handle).gpu))
|
||||
10
.xmonad/scripts/getdGPUStatus.sh
Executable file
10
.xmonad/scripts/getdGPUStatus.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
STATE="$(cat /proc/acpi/bbswitch | grep -o "ON\|OFF")"
|
||||
if [ "$STATE" == "ON" ];
|
||||
then
|
||||
LOAD="$(~/.xmonad/scripts/getdGPULoad.py)"
|
||||
echo "${STATE} (${LOAD}%)"
|
||||
else
|
||||
echo "OFF"
|
||||
fi
|
||||
|
||||
3
.xmonad/scripts/wallpaper.sh
Executable file
3
.xmonad/scripts/wallpaper.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
DISPLAY=:0 /usr/bin/feh --recursive --randomize --bg-fill /home/marius/ownCloud/Wallpaper
|
||||
Reference in New Issue
Block a user