a lot of random poop

This commit is contained in:
Chris Cochrun 2021-10-11 09:18:45 -05:00
parent e4290fb279
commit f43677bd30
14 changed files with 50 additions and 14 deletions

10
scripts/batinfo Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
capacity=$(cat /sys/class/power_supply/BAT1/capacity)
status=$(cat /sys/class/power_supply/BAT1/status)
if [ $status = 'Charging' ]; then
icon=''
fi
echo $icon $capacity

View file

@ -7,7 +7,7 @@ else
#echo "this is not hidpi"
fi
lolcate | rofi -dmenu -p "File Search:" -i -matching regex -theme ~/.config/rofi/launchers-git/$style-rbw.rasi | xargs -r0 xdg-open $@ &
lolcate | rofi -dmenu -p "File Search:" -i -matching regex -theme ~/.config/rofi/launchers-git/$style-search.rasi | xargs -r0 xdg-open $@ &
c=0
while ! xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $(xdotool search -class 'rofi') ; do
sleep .1

View file

@ -41,7 +41,7 @@ abspath () {
listfiles () {
find -L "$(dirname "$target")" -maxdepth 1 -type f -iregex \
'.*\(jpe?g\|bmp\|png\|gif\)$' -print0 | sort -z
'.*\(jpe?g\|bmp\|png\|gif\)$' -print0 | sort -z
}
target="$(abspath "$1")"