From 3d1d8274ca722b4e333c8e683a452d4cfdc648a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 8 Oct 2023 15:47:16 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(hypr):=20new=20color=20picker?= =?UTF-8?q?=20script=20and=20other=20misc=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - obsidian binds changed to super + o - wleave floating by default - slidefade animation for workspaces --- .config/hypr/keybinds/binds.conf | 4 ++-- .config/hypr/scripts/color_picker | 18 ++++++++++++++++++ .config/hypr/themes/luna/rules.conf | 2 ++ .config/hypr/themes/luna/theme.conf | 2 +- 4 files changed, 23 insertions(+), 3 deletions(-) create mode 100755 .config/hypr/scripts/color_picker diff --git a/.config/hypr/keybinds/binds.conf b/.config/hypr/keybinds/binds.conf index 6d601868..a6de3684 100644 --- a/.config/hypr/keybinds/binds.conf +++ b/.config/hypr/keybinds/binds.conf @@ -14,7 +14,7 @@ bind=SUPER,Z,exec,pypr zoom ## Applications bind=SUPER,W,exec,librewolf # Numpad dot bind=SUPER,22,exec,neovide # Return key -bind=SUPER,N,exec,obsidian +bind=SUPER,O,exec,obsidian # Nemo bind=SUPER,M,exec,nemo # Numpad 0 @@ -56,7 +56,7 @@ bind=ALT,Insert,exec, ~/.config/hypr/scripts/rofi/screenshots_selection bind=SUPER, space, exec, wleave # Color picker -bind=SUPER,Insert,exec,hyprpicker -a && notify-send -t 4000 "$(wl-paste)" +bind=SUPER,Insert,exec, ~/.config/hypr/scripts/color_picker # Wallpaper bind=SUPERSHIFT,w,exec, ~/.config/hypr/scripts/rofi/wallpaper_selection diff --git a/.config/hypr/scripts/color_picker b/.config/hypr/scripts/color_picker new file mode 100755 index 00000000..73eeb45a --- /dev/null +++ b/.config/hypr/scripts/color_picker @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +## Simple Script To Pick Color Quickly. + +# pick and autocopy +hyprpicker -n -a + +# get the value +color=$(wl-paste) + +image=/tmp/${color}.png + +if [[ "$color" ]]; then + # generate preview + convert -size 48x48 xc:"$color" ${image} + # notify the color + notify-send -u low -i ${image} "$color" "Copied to clipboard." +fi diff --git a/.config/hypr/themes/luna/rules.conf b/.config/hypr/themes/luna/rules.conf index 5c3f4367..c7727cbf 100644 --- a/.config/hypr/themes/luna/rules.conf +++ b/.config/hypr/themes/luna/rules.conf @@ -39,6 +39,8 @@ windowrule = float,^(pavucontrol)$ windowrule = size 30% 85%,^(pavucontrol)$ windowrule = float, xfce-polkit windowrule = float, galculator +windowrule = float, wleave +windowrulev2 = animation windowsOut, 0, class:(wleave) windowrule = float, Geeqie windowrule = float, title:Open File windowrule = float, title:Open Folder diff --git a/.config/hypr/themes/luna/theme.conf b/.config/hypr/themes/luna/theme.conf index bad80fb3..172ed462 100644 --- a/.config/hypr/themes/luna/theme.conf +++ b/.config/hypr/themes/luna/theme.conf @@ -46,7 +46,7 @@ animations { animation=windowsMove,1,5,overshot,slide animation=fadeIn,1,10,default animation=fadeOut,1,10,default - animation=workspaces,1,6,overshot,slide + animation=workspaces,1,6,overshot,slidefade 85% animation = border, 1, 1, liner animation = borderangle, 1, 30, liner, loop }