From ed3a1d52c5517fc39552d484c48911f19dac7ea8 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 23 May 2023 11:42:58 -0700 Subject: [PATCH 1/2] i3: float Godot debug windows --- modules/i3/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/i3/default.nix b/modules/i3/default.nix index 6077991..6f53942 100644 --- a/modules/i3/default.nix +++ b/modules/i3/default.nix @@ -124,6 +124,10 @@ in with theme.colors; { command = "floating enable"; criteria = { title = "Task Planner - Quick Add"; }; } + { + command = "floating enable"; + criteria = { instance = "Godot_Engine"; title="*(DEBUG)"; }; + } ]; bars = []; }; From 8a89be85907920cba9635dadcbe5ba6e8b39cd06 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 23 May 2023 17:08:33 -0700 Subject: [PATCH 2/2] i3: add screenshot active window shortcut --- modules/i3/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/i3/default.nix b/modules/i3/default.nix index 6f53942..e1303fa 100644 --- a/modules/i3/default.nix +++ b/modules/i3/default.nix @@ -9,6 +9,7 @@ in with theme.colors; { playerctl # pactl comes with PulseAudio wmctrl # For rofi power menu xborders # Active window borders + maim xdotool # Active window screenshots ]; # Screenshots @@ -96,6 +97,7 @@ in with theme.colors; { # Screenshots "Print" = "exec flameshot gui"; + "${mod}+Print" = "exec maim -i \"$(xdotool getactivewindow)\" | xclip -selection clipboard -t image/png"; # Remove dmenu "${mod}+d" = null;