added rainbow borders, edit app-autoclose

This commit is contained in:
JaKooLit 2023-10-14 11:20:26 +09:00
parent 1dace08316
commit 803f9d62a1
4 changed files with 35 additions and 24 deletions

View File

@ -32,10 +32,13 @@ exec-once = wl-paste --watch cliphist store
#source = $themes/macchiato.conf #source = $themes/macchiato.conf
source = $themes/mocha.conf source = $themes/mocha.conf
# Rainbow borders
exec-once = $scriptsDir/RainbowBorders.sh
# wlsunset - for automatic gamma adjustment. Default is 1900 to 0700 (7pm to 7am). Edit Sunset.sh accordingly # wlsunset - for automatic gamma adjustment. Default is 1900 to 0700 (7pm to 7am). Edit Sunset.sh accordingly
# exec-once = $scriptsDir/Sunset.sh # exec-once = $scriptsDir/Sunset.sh
# auto close of apps (timeout 2 secs) # auto close of apps (timeout 5 secs)
# exec-once = $scriptsDir/AppAutoClose.sh # exec-once = $scriptsDir/AppAutoClose.sh
# sway-idle with lock # sway-idle with lock

View File

@ -12,7 +12,6 @@ master {
new_is_master=1 new_is_master=1
new_on_top=0 new_on_top=0
mfact = 0.5 mfact = 0.5
} }
general { general {
@ -68,28 +67,27 @@ decoration {
} }
animations { animations {
enabled = yes enabled = yes
bezier = myBezier, 0.05, 0.9, 0.1, 1.05 bezier = myBezier, 0.05, 0.9, 0.1, 1.05
bezier = liner, 0, 0, 1, 1 bezier = linear, 0.0, 0.0, 1.0, 1.0
bezier = wind, 0.05, 0.9, 0.1, 1.05 bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.1 bezier = winIn, 0.1, 1.1, 0.1, 1.1
bezier = winOut, 0.3, -0.3, 0, 1 bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1 bezier = slow, 0, 0.85, 0.3, 1
bezier = slow, 0, 0.85, 0.3, 1 bezier = overshot, 0.7, 0.6, 0.1, 1.1
bezier = overshot, 0.7, 0.6, 0.1, 1.1 bezier = bounce, 1.1, 1.6, 0.1, 0.85
bezier = bounce, 1.1, 1.6, 0.1, 0.85 bezier = sligshot, 1, -1, 0.15, 1.25
bezier = sligshot, 1, -1, 0.15, 1.25 bezier = nice, 0, 6.9, 0.5, -4.20
bezier = nice, 0, 6.9, 0.5, -4.20
animation = windowsIn, 1, 5, slow, popin animation = windowsIn, 1, 5, slow, popin
animation = windowsOut, 1, 5, winOut, popin animation = windowsOut, 1, 5, winOut, popin
animation = windowsMove, 1, 5, wind, slide animation = windowsMove, 1, 5, wind, slide
animation = border, 1, 20, nice animation = border, 1, 10, linear
animation = borderangle, 1, 30, liner, loop animation = borderangle, 1, 100, linear, loop
animation = fade, 1, 5, overshot animation = fade, 1, 5, overshot
animation = workspaces, 1, 5, wind animation = workspaces, 1, 5, wind
animation = windows, 1, 5, bounce, popin animation = windows, 1, 5, bounce, popin
} }
input { input {

View File

@ -19,5 +19,5 @@ while true; do
fi fi
done done
sleep 2 sleep 5
done done

View File

@ -0,0 +1,10 @@
#!/bin/bash
function random_hex() {
random_hex=("0xff$(openssl rand -hex 3)")
echo $random_hex
}
hyprctl keyword general:col.active_border $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) 270deg
hyprctl keyword general:col.inactive_border $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) $(random_hex) 270deg