소스 검색

Use the newer, smarter, xclose rather than the crude gxkill

xclose just closes window instead of killing its owner, which would tear
down all this owner's windows along.

Uses different utilities with a different set of drawbacks, though:

 *  wmctrl(1) needs to be installed.

 *  [slop][1] can be optionally installed from source but can be unreliable
    when selecting some windows, e.g. urxvt.

 *  If slop is missing, xwininfo is used, which, unlike xkill(1), has no
    way of cancelling the user action (r-click selects a window just the
    same as l-click).  We work around it using timeout(1), which is
    rather inconvenient, though.

But all in all, we're still better off than with xkill(1).

  [1]: https://github.com/naelstrof/slop
Alois Mahdal 9 년 전
부모
커밋
ee1fc137e8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      dotfiles/i3/config

+ 1
- 1
dotfiles/i3/config 파일 보기

@@ -196,7 +196,7 @@ mode "resize" {
196 196
 bar {
197 197
         status_command i3status
198 198
         bindsym button2 exec thunar
199
-        bindsym button3 exec gxkill
199
+        bindsym button3 exec "$spn xclose"
200 200
         separator_symbol "•"
201 201
         # other suggestions:
202 202
         #     ‧•┇╻╹╹╿═╎╏◆◾║︙⎪∣∕⟘⟙∙∼⦀⦑⦒⦚⧸⧹▓▒░⧻⧺┆˘͡͡ːˌ˷|・፧።