From 77be4b963622669e4f72a3052ce09082dce2acb3 Mon Sep 17 00:00:00 2001 From: Hannes Date: Fri, 26 Jun 2026 23:06:50 +0200 Subject: [PATCH] fixed some shortcuts --- scripts/makropad/button01.sh | 2 ++ scripts/makropad/button05.sh | 2 ++ user_config/windowrules.lua | 20 ++++++++++++++++++-- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/scripts/makropad/button01.sh b/scripts/makropad/button01.sh index 5aebe4e..620b44a 100755 --- a/scripts/makropad/button01.sh +++ b/scripts/makropad/button01.sh @@ -20,6 +20,7 @@ fi # Focus Discord hyprctl dispatch focuswindow address:$DISCORD_WIN +hyprctl dispatch "hl.dsp.focus({window = 'address:$DISCORD_WIN'})" # Give it a moment to receive focus sleep 0.1 @@ -31,6 +32,7 @@ wtype -M ctrl -M shift -k M -m shift -m ctrl if [ -n "$ACTIVE_WIN" ]; then sleep 0.1 hyprctl dispatch focuswindow address:$ACTIVE_WIN + hyprctl dispatch "hl.dsp.focus({window = 'address:$ACTIVE_WIN'})" fi hyprctl notify 1 500 0 "Row 1, Colums 1" \ No newline at end of file diff --git a/scripts/makropad/button05.sh b/scripts/makropad/button05.sh index 5650d70..362adb6 100755 --- a/scripts/makropad/button05.sh +++ b/scripts/makropad/button05.sh @@ -22,6 +22,7 @@ fi # Focus the Discord window hyprctl dispatch focuswindow address:$DISCORD_WIN +hyprctl dispatch "hl.dsp.focus({window = 'address:$DISCORD_WIN'})" # Give Discord time to focus sleep 0.1 @@ -33,6 +34,7 @@ wtype -M ctrl -M shift -k D -m shift -m ctrl if [ -n "$ACTIVE_WIN" ]; then sleep 0.1 hyprctl dispatch focuswindow address:$ACTIVE_WIN + hyprctl dispatch "hl.dsp.focus({window = 'address:$ACTIVE_WIN'})" fi # Add shared script Functions diff --git a/user_config/windowrules.lua b/user_config/windowrules.lua index f0932ca..a6bc0a6 100644 --- a/user_config/windowrules.lua +++ b/user_config/windowrules.lua @@ -73,8 +73,6 @@ hl.window_rule({ no_dim = true, content = "video" }) - --- Videos hl.window_rule({ name = "Crunchyroll", match = { @@ -84,6 +82,24 @@ hl.window_rule({ content = "video" }) +-- Images +hl.window_rule({ + name = "Viewnior", + match = { + class = "viewnior" + }, + no_dim = true, + content = "image" +}) +hl.window_rule({ + name = "Gimp", + match = { + class = "gimp" + }, + no_dim = true, + content = "image" +}) + hl.window_rule({ name = "Fladder", match = {