mirror of
https://github.com/nmasur/dotfiles
synced 2025-05-11 02:25:51 +00:00
fix: class focus for aerc in xorg
This commit is contained in:
parent
515859d22d
commit
9014ca226e
@ -203,7 +203,10 @@ in
|
|||||||
let
|
let
|
||||||
terminal = config.nmasur.presets.services.i3.terminal;
|
terminal = config.nmasur.presets.services.i3.terminal;
|
||||||
startupCommand =
|
startupCommand =
|
||||||
if terminal == pkgs.wezterm then "start --class aerc -- aerc" else "--class=aerc --command=aerc";
|
if terminal == pkgs.wezterm then
|
||||||
|
"start --class com.noah.aerc -- aerc"
|
||||||
|
else
|
||||||
|
"--class=com.noah.aerc --command=aerc";
|
||||||
in
|
in
|
||||||
"exec ${
|
"exec ${
|
||||||
# Don't name the script `aerc` or it will affect grep
|
# Don't name the script `aerc` or it will affect grep
|
||||||
@ -214,7 +217,7 @@ in
|
|||||||
i3-msg "exec --no-startup-id ${lib.getExe terminal} ${startupCommand}"
|
i3-msg "exec --no-startup-id ${lib.getExe terminal} ${startupCommand}"
|
||||||
sleep 0.25
|
sleep 0.25
|
||||||
fi
|
fi
|
||||||
i3-msg "[class=aerc] focus"
|
i3-msg "[class=com.noah.aerc] focus"
|
||||||
''
|
''
|
||||||
)
|
)
|
||||||
}";
|
}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user