feat(hypr): deleted quake, now using scratchpads from pyprland

This commit is contained in:
Sergio Laín 2023-11-08 00:26:11 +01:00
parent f76624f9ce
commit 2a6d103df4
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
4 changed files with 33 additions and 35 deletions

View file

@ -10,20 +10,21 @@ 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
## Applications ## Applications
bind=SUPER,W,exec,librewolf bind=SUPER,W,exec,librewolf
bind=SUPER,O,exec,~/.config/hypr/scripts/custom_app_launch obsidian bind=SUPER,O,exec,~/.config/hypr/scripts/custom_app_launch obsidian
bind=SUPERSHIFT,E,exec, ~/.config/hypr/scripts/custom_app_launch nemo bind=SUPERSHIFT,E,exec, ~/.config/hypr/scripts/custom_app_launch nemo
bind=SUPER,RETURN,exec,kitty bind=SUPER,RETURN,exec,kitty
bind=SUPER,E,exec,kitty --class center-float 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
# Scratchpads # Scratchpads
bind=SUPER,V,exec,pypr toggle volume bind=SUPER,V,exec,pypr toggle volume
bind=SUPER, 51, exec, pypr toggle terminal && hyprctl dispatch bringactivetotop ## Backslash
bind=SUPER, B, exec, pypr toggle btop && hyprctl dispatch bringactivetotop
bind=SUPER,E,exec,pypr toggle yazi && hyprctl dispatch bringactivetotop
# Screenshotting # Screenshotting
bind=SHIFT,Insert,exec, hyprshot -m output -o ~/Imagenes/Capturas/PC -f captura-$(date +'%Y-%m-%d-%s').png bind=SHIFT,Insert,exec, hyprshot -m output -o ~/Imagenes/Capturas/PC -f captura-$(date +'%Y-%m-%d-%s').png

View file

@ -1,6 +1,10 @@
{ {
"pyprland": { "pyprland": {
"plugins": ["scratchpads", "expose", "magnify"] "plugins": [
"scratchpads",
"expose",
"magnify"
]
}, },
"scratchpads": { "scratchpads": {
"volume": { "volume": {
@ -8,6 +12,15 @@
"unfocus": "hide", "unfocus": "hide",
"animation": "fromLeft", "animation": "fromLeft",
"margin": 20 "margin": 20
},
"terminal": {
"command": "kitty --class scratchpad"
},
"yazi": {
"command": "kitty --class scratchpad yazi"
},
"btop": {
"command": "kitty --class scratchpad btop"
} }
} }
} }

View file

@ -1,25 +0,0 @@
#!/bin/env bash
WORKSPACE=$(hyprctl clients -j | jq -rec '.[] | select(.class == "quake") | .workspace .name')
TERM_CMD="kitty -1 --class quake -o background_opacity=0.90 -o hide_window_decorations=yes -o remember_window_size=no"
if [ "$WORKSPACE" = "" ]; then
echo "start"
hyprctl dispatch -- exec "[float;size 1600 650;center] $TERM_CMD"
elif [ "$WORKSPACE" == "special:quake" ]; then
echo "show"
hyprctl activewindow | head -n1 | cut -f2 -d ' ' >/tmp/hypr-quake-address
hyprctl activewindow | rg "fullscreen: 1" && hyprctl dispatch fullscreen
hyprctl dispatch movetoworkspacesilent "+0,^(quake)\$"
hyprctl dispatch focuswindow "^(quake)\$"
hyprctl dispatch bringactivetotop
else
echo "hide"
hyprctl dispatch movetoworkspacesilent "special:quake,^(quake)\$"
hyprctl dispatch focuswindow "address:0x$(cat /tmp/hypr-quake-address)"
hyprctl dispatch bringactivetotop
fi

View file

@ -25,10 +25,8 @@ windowrulev2 = workspace 8,class:^(Ryujinx)$
windowrulev2 = workspace 8,class:^(.*steam_app.*)$ windowrulev2 = workspace 8,class:^(.*steam_app.*)$
windowrulev2 = workspace 5,class:^(photoshop.exe)$ windowrulev2 = workspace 5,class:^(photoshop.exe)$
windowrulev2 = workspace 5,class:^(pinta)$ windowrulev2 = workspace 5,class:^(pinta)$
windowrule = workspace special silent,^(pavucontrol)$
## Float ## Float
windowrule = float,^(pavucontrol)$
windowrule = float, xfce-polkit windowrule = float, xfce-polkit
windowrule = float, galculator windowrule = float, galculator
windowrule = float, wleave windowrule = float, wleave
@ -40,12 +38,10 @@ windowrule = float, nwg-look
windowrule = float, nm-connection-editor windowrule = float, nm-connection-editor
## Other ## Other
windowrulev2 = center,class:^(kitty)$
windowrulev2 = animation windowsOut, 0, class:(wleave) windowrulev2 = animation windowsOut, 0, class:(wleave)
windowrule = float, keyb-kitty windowrule = float, keyb-kitty
windowrule = center 1, keyb-kitty windowrule = center 1, keyb-kitty
windowrule = size 35% 80%, keyb-kitty windowrule = size 35% 80%, keyb-kitty
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)$
@ -55,6 +51,19 @@ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
## Base Rules ## Base Rules
windowrule = float, ^(center-float)$ $center-float = class:^(center-float)$
windowrule = size 70% 70%, ^(center-float)$ windowrule = float, $center-float
windowrule = center 1, ^(center-float)$ windowrule = size 70% 70%, $center-float
windowrule = center 1, $center-float
# Scratchpads
$scratchpad = class:^(scratchpad)$
windowrulev2 = float,$scratchpad
windowrulev2 = size 70% 70%,$scratchpad
windowrulev2 = center 1,$scratchpad
windowrulev2 = workspace special silent,$scratchpad
$pavu = class:^(pavucontrol)$
windowrulev2 = workspace special silent,$pavu
windowrulev2 = float,$pavu
windowrulev2 = size 30% 85%,$pavu