🎨 ux(hypr): center window on bind, yazi centered and float

This commit is contained in:
Sergio Laín 2023-11-04 18:57:04 +01:00
parent 35b5c1251c
commit 71695e8c40
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 14 additions and 5 deletions

View file

@ -5,9 +5,9 @@ bindm=SUPER,mouse:273,resizewindow
# Basic keybinds # Basic keybinds
bind=SUPER,Q,killactive, bind=SUPER,Q,killactive,
bind=SUPERCTRL,R,exec, pkill waybar || waybar bind=SUPERCTRL,R,exec, pkill waybar || waybar
bind=SUPERCTRL,M,exit, bind=SUPERCTRL,M,exit
bind=SUPER,A,togglefloating, bind=SUPER,A,togglefloating
bind=SUPER,P,pseudo, bind=SUPER,P,pseudo
bind=SUPER,F,fullscreen,0 bind=SUPER,F,fullscreen,0
bind=SUPER,Z,exec,pypr zoom bind=SUPER,Z,exec,pypr zoom
bindr=SUPERSHIFT, Return, exec, ~/.config/hypr/scripts/quake bindr=SUPERSHIFT, Return, exec, ~/.config/hypr/scripts/quake
@ -17,7 +17,7 @@ bind=SUPER,W,exec,librewolf
bind=SUPER,O,exec,obsidian bind=SUPER,O,exec,obsidian
bind=SUPERSHIFT,E,exec,nemo bind=SUPERSHIFT,E,exec,nemo
bind=SUPER,RETURN,exec,kitty bind=SUPER,RETURN,exec,kitty
bind=SUPER,E,exec,kitty yazi bind=SUPER,E,exec,kitty --class kitty-yazi yazi
# Launchers # Launchers
bind=SUPER, 23, exec, rofi -show drun -theme ~/.config/rofi/style.rasi # tab bind=SUPER, 23, exec, rofi -show drun -theme ~/.config/rofi/style.rasi # tab
@ -32,7 +32,7 @@ bind=CTRL,Insert,exec, hyprshot -m region -o ~/Imagenes/Capturas/PC -f captura-$
bind=ALT,Insert,exec, ~/.config/hypr/scripts/rofi/screenshots_selection bind=ALT,Insert,exec, ~/.config/hypr/scripts/rofi/screenshots_selection
# Clipboard # Clipboard
bind=SUPER,c,exec, cliphist list | rofi -dmenu -theme ~/.config/rofi/style.rasi | cliphist decode | wl-copy bind=SUPER,y,exec, cliphist list | rofi -dmenu -theme ~/.config/rofi/style.rasi | cliphist decode | wl-copy
# Logout menu # Logout menu
bind=SUPER, escape, exec, wleave bind=SUPER, escape, exec, wleave
@ -120,6 +120,9 @@ bind=SUPERCTRL,RIGHT,workspace,m+1
bind=SUPERCTRL,h,workspace,m-1 bind=SUPERCTRL,h,workspace,m-1
bind=SUPERCTRL,l,workspace,m+1 bind=SUPERCTRL,l,workspace,m+1
# Center a window
bind=SUPER,c,exec,hyprctl dispatch centerwindow
# Group control # Group control
bind =SUPER, S, togglesplit bind =SUPER, S, togglesplit
bind=SUPER,G,togglegroup bind=SUPER,G,togglegroup

View file

@ -58,6 +58,12 @@ windowrule = size 30% 85%,^(pavucontrol)$
windowrule = float, ^(yazi-geeqie)$ windowrule = float, ^(yazi-geeqie)$
windowrule = size 80% 80%,^(yazi-geeqie)$ windowrule = size 80% 80%,^(yazi-geeqie)$
windowrule = center 1, ^(yazi-geeqie)$ windowrule = center 1, ^(yazi-geeqie)$
windowrule = float, ^(kitty-yazi)$
windowrule = size 80% 80%,^(kitty-yazi)$
windowrule = center 1, ^(kitty-yazi)$
# windowrule = float, ^(nemo)$
# windowrule = size 80% 80%,^(nemo)$
# windowrule = center 1, ^(nemo)$
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$ windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$