From 4cd16133e91944ceff73a94ccdd6099d7d9d7a0d Mon Sep 17 00:00:00 2001 From: stitchy Date: Wed, 27 Nov 2024 11:13:57 +0000 Subject: [PATCH] Hypr: Refactor Binds --- config/hypr/binds.conf | 35 +++++++++++++++++++++-------------- config/hypr/windowrules.conf | 7 +++++-- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/config/hypr/binds.conf b/config/hypr/binds.conf index fc0c916..9195640 100644 --- a/config/hypr/binds.conf +++ b/config/hypr/binds.conf @@ -1,32 +1,39 @@ # Binding Config File for Hyprland # Main Bindings -# -# Foot, you done goofed -bind=ALT,RETURN,exec,footclient -#bind=ALT,RETURN,exec,kitty -bind=ALT,Q,killactive, -bind=SUPER,M,exec,hyprctl dispatch exit 0 +# Programs +bind=ALT,B,exec,swaylock bind=ALT,E,exec,dolphin -bind=ALT,V,togglefloating, +bind=ALT,F,exec,${XDG_CONFIG_HOME:-~/.config}/hypr/plumbing.sh +bind=ALT,G,exec,${XDG_CONFIG_HOME:-~/.config}/hypr/plumbing.sh clip +bind=ALT,RETURN,exec,footclient bindr=ALTSHIFT,RETURN,exec,pkill wofi || wofi -S drun --allow-images + + +# Basic Actions +bind=ALT,Q,killactive, +bind=ALT,V,togglefloating, bind=ALTSHIFT,F,fullscreen,1 bind=ALTSHIFT,M,fullscreen,0 -bind=,Print,exec,grim -g "$(slurp)" -t jpeg - | wl-copy -bind=SHIFT,Print,exec,grim -g "$(slurp)" -t jpeg Downloads/screenshot.jpeg +bind=SUPER,M,exec,hyprctl dispatch exit 0 + +# Screenshots +bind=,Print,exec,slurp | grim -t jpeg -g - - | wl-copy +bind=SHIFT,Print,exec,slurp | grim -t jpeg -g - Downloads/screenshot.jpeg +bind=SHIFTSUPER,Print,exec,hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' | grim -t jpeg -g - - | wl-copy +bind=SUPER,Print,exec,hyprctl -j activewindow | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' | grim -g - Downloads/screenshot.jpeg # trigger when the switch is toggled bindl=,switch:Lid Switch,exec,swaylock --effect-greyscale - # Games -bind=ALTSHIFT,T,exec,gamescope -w 1280 -h 960 -f -r 60 wine "/home/flyingstitchman/Documents/Games/Touhou 15 - Legacy of Lunatic Kingdom/th15.exe" -bind=ALTSHIFT,O,exec,osu-lazer bind=ALTSHIFT,C,exec,"/home/flyingstitchman/Documents/Games/Celeste/Celeste" -bind=ALTSHIFT,S,exec,"/home/flyingstitchman/Documents/Games/Stardew Valley/StardewValley" +bind=ALTSHIFT,O,exec,osu-lazer bind=ALTSHIFT,R,exec,"/home/flyingstitchman/Documents/Games/factorio/bin/x64/factorio" +bind=ALTSHIFT,S,exec,"/home/flyingstitchman/Documents/Games/Stardew Valley/StardewValley" +bind=ALTSHIFT,T,exec,gamescope -w 1280 -h 960 -f -r 60 wine "/home/flyingstitchman/Documents/Games/Touhou 15 - Legacy of Lunatic Kingdom/th15.exe" # Window Moving @@ -35,7 +42,7 @@ bindm=SUPER,mouse:273,resizewindow # Quick Bindings bindle=,XF86MonBrightnessDown,exec,brightnessctl -d intel_backlight set 1%- -bindle=,XF86MonBrightnessUp,exec,brightnessctl -d intel_backlight set +1% +bindle=,XF86MonBrightnessUp,exec,brightnessctl -d intel_backlight set +1% bindle=,XF86AudioRaiseVolume,exec,${XDG_CONFIG_HOME:-~/.config}/dunst/scripts/volumeNotify.sh 1%+ bindle=,XF86AudioLowerVolume,exec,${XDG_CONFIG_HOME:-~/.config}/dunst/scripts/volumeNotify.sh 1%- diff --git a/config/hypr/windowrules.conf b/config/hypr/windowrules.conf index cbefe83..ee7fa91 100644 --- a/config/hypr/windowrules.conf +++ b/config/hypr/windowrules.conf @@ -1,10 +1,13 @@ # Window Rule Config File -# WLogout Configuration -# Might move to separate file cause screen resolutions whack +# Application Fixes +# Foot Fullscreen Transparency Fix +windowrulev2 = syncfullscreen 0, class:(foot), title:(foot) windowrule=nofocus,ibus,^(Ibus-ui-gtk3)$ +# WLogout Configuration +# Might move to separate file cause screen resolutions whack windowrule=move 720 222,wlogout windowrule=size 2000 1000,wlogout windowrule=tile,xyz