From 803f9d62a140feda062feb744b5b872bdfa5be03 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sat, 14 Oct 2023 11:20:26 +0900 Subject: [PATCH] added rainbow borders, edit app-autoclose --- config/hypr/configs/Execs.conf | 5 +++- config/hypr/configs/Settings.conf | 42 +++++++++++++-------------- config/hypr/scripts/AppAutoClose.sh | 2 +- config/hypr/scripts/RainbowBorders.sh | 10 +++++++ 4 files changed, 35 insertions(+), 24 deletions(-) create mode 100755 config/hypr/scripts/RainbowBorders.sh diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 709a9a9..1824d23 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -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 diff --git a/config/hypr/configs/Settings.conf b/config/hypr/configs/Settings.conf index 0b08b93..2fe1e69 100644 --- a/config/hypr/configs/Settings.conf +++ b/config/hypr/configs/Settings.conf @@ -12,7 +12,6 @@ master { new_is_master=1 new_on_top=0 mfact = 0.5 - } general { @@ -68,28 +67,27 @@ decoration { } animations { - enabled = yes - - bezier = myBezier, 0.05, 0.9, 0.1, 1.05 - bezier = liner, 0, 0, 1, 1 - 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 - bezier = sligshot, 1, -1, 0.15, 1.25 - bezier = nice, 0, 6.9, 0.5, -4.20 + enabled = yes + + bezier = myBezier, 0.05, 0.9, 0.1, 1.05 + 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 = 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 + bezier = sligshot, 1, -1, 0.15, 1.25 + bezier = nice, 0, 6.9, 0.5, -4.20 - 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 = fade, 1, 5, overshot - animation = workspaces, 1, 5, wind - animation = windows, 1, 5, bounce, popin + animation = windowsIn, 1, 5, slow, popin + animation = windowsOut, 1, 5, winOut, popin + animation = windowsMove, 1, 5, wind, slide + 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 } input { diff --git a/config/hypr/scripts/AppAutoClose.sh b/config/hypr/scripts/AppAutoClose.sh index 97dd6e6..32a6d73 100755 --- a/config/hypr/scripts/AppAutoClose.sh +++ b/config/hypr/scripts/AppAutoClose.sh @@ -19,5 +19,5 @@ while true; do fi done - sleep 2 + sleep 5 done diff --git a/config/hypr/scripts/RainbowBorders.sh b/config/hypr/scripts/RainbowBorders.sh new file mode 100755 index 0000000..1f5e6cd --- /dev/null +++ b/config/hypr/scripts/RainbowBorders.sh @@ -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 \ No newline at end of file