feat(hypr): new color picker script and other misc changes

- obsidian binds changed to super + o
- wleave floating by default
- slidefade animation for workspaces
This commit is contained in:
Sergio Laín 2023-10-08 15:47:16 +02:00
parent bf3b28cc26
commit 3d1d8274ca
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 23 additions and 3 deletions

View file

@ -14,7 +14,7 @@ bind=SUPER,Z,exec,pypr zoom
## Applications ## Applications
bind=SUPER,W,exec,librewolf # Numpad dot bind=SUPER,W,exec,librewolf # Numpad dot
bind=SUPER,22,exec,neovide # Return key bind=SUPER,22,exec,neovide # Return key
bind=SUPER,N,exec,obsidian bind=SUPER,O,exec,obsidian
# Nemo # Nemo
bind=SUPER,M,exec,nemo # Numpad 0 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 bind=SUPER, space, exec, wleave
# Color picker # Color picker
bind=SUPER,Insert,exec,hyprpicker -a && notify-send -t 4000 "$(wl-paste)" bind=SUPER,Insert,exec, ~/.config/hypr/scripts/color_picker
# Wallpaper # Wallpaper
bind=SUPERSHIFT,w,exec, ~/.config/hypr/scripts/rofi/wallpaper_selection bind=SUPERSHIFT,w,exec, ~/.config/hypr/scripts/rofi/wallpaper_selection

View file

@ -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

View file

@ -39,6 +39,8 @@ windowrule = float,^(pavucontrol)$
windowrule = size 30% 85%,^(pavucontrol)$ windowrule = size 30% 85%,^(pavucontrol)$
windowrule = float, xfce-polkit windowrule = float, xfce-polkit
windowrule = float, galculator windowrule = float, galculator
windowrule = float, wleave
windowrulev2 = animation windowsOut, 0, class:(wleave)
windowrule = float, Geeqie windowrule = float, Geeqie
windowrule = float, title:Open File windowrule = float, title:Open File
windowrule = float, title:Open Folder windowrule = float, title:Open Folder

View file

@ -46,7 +46,7 @@ animations {
animation=windowsMove,1,5,overshot,slide animation=windowsMove,1,5,overshot,slide
animation=fadeIn,1,10,default animation=fadeIn,1,10,default
animation=fadeOut,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 = border, 1, 1, liner
animation = borderangle, 1, 30, liner, loop animation = borderangle, 1, 30, liner, loop
} }