Updated to graphite theme

This commit is contained in:
davidovski 2022-12-11 18:45:10 +00:00
parent 365412b61b
commit 3739ff6661
16 changed files with 326 additions and 325 deletions

View file

@ -1,3 +1,23 @@
#!/bin/sh
#feh --force-aliasing --bg-tile ~/.config/dither.png
feh --force-aliasing --bg-fill ~/.config/bg
setbg="feh --force-aliasing --bg-tile "
image=~/.config/bg.gif
dir=/tmp/bggif
printf "Converting..."
[ ! -d "$dir" ] || rm -rf "$dir"
mkdir -p "$dir"
convert -coalesce $image $dir/%05d.png
printf "done\n"
amount_of_frames=$(ls -1 "$dir" | wc -l)
frames_per_second=30
speed=$(echo "scale=3; ($amount_of_frames/$frames_per_second) * (1/$frames_per_second)" | bc -l)
while : ; do
for i in $(ls -1 $dir); do
$setbg $dir/$i;
sleep $speed
done;
done

View file

@ -1,3 +1,3 @@
#!/bin/sh
MAIN_DP=DP-3;
MAIN_DP=DP-1;
v=$(xrandr --current --verbose | grep "Brightness" | cut -f2 -d " " | tr '\n' '*' | rev | cut -c 2- | rev | sed -e "s/$/==1/" | bc -l | grep -q 0 && echo 1 || echo 0); xrandr | grep " connected" | cut -f1 -d " " | while read -r line; do echo $line | grep -q $MAIN_DP && : || xrandr --output $line --brightness $v; done

View file

@ -15,5 +15,5 @@ case $1 in
;;
esac
ddcutil --bus=23 setvcp 60 ${OUT[0]} &
ddcutil --bus=12 setvcp 60 ${OUT[0]} &
wait

View file

@ -1,5 +1,5 @@
#!/bin/bash
MAIN_DP=DP-0;
MAIN_DP=DP-1;
v=$1

View file

@ -1,3 +1,3 @@
#!/bin/sh
GAP=16; bspc config window_gap | grep -q $GAP && bspc config window_gap 0 || bspc config window_gap $GAP
GAP=32; bspc config window_gap | grep -q $GAP && bspc config window_gap 0 || bspc config window_gap $GAP