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/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
# exec-once = $scriptsDir/Sunset.sh
# auto close of apps (timeout 2 secs)
# auto close of apps (timeout 5 secs)
# exec-once = $scriptsDir/AppAutoClose.sh
# sway-idle with lock

View File

@ -12,7 +12,6 @@ master {
new_is_master=1
new_on_top=0
mfact = 0.5
}
general {
@ -71,11 +70,10 @@ animations {
enabled = yes
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 = winIn, 0.1, 1.1, 0.1, 1.1
bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1
bezier = slow, 0, 0.85, 0.3, 1
bezier = overshot, 0.7, 0.6, 0.1, 1.1
bezier = bounce, 1.1, 1.6, 0.1, 0.85
@ -85,8 +83,8 @@ animations {
animation = windowsIn, 1, 5, slow, popin
animation = windowsOut, 1, 5, winOut, popin
animation = windowsMove, 1, 5, wind, slide
animation = border, 1, 20, nice
animation = borderangle, 1, 30, liner, loop
animation = border, 1, 10, linear
animation = borderangle, 1, 100, linear, loop
animation = fade, 1, 5, overshot
animation = workspaces, 1, 5, wind
animation = windows, 1, 5, bounce, popin

View File

@ -19,5 +19,5 @@ while true; do
fi
done
sleep 2
sleep 5
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