Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
ee1fc137e8
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      dotfiles/i3/config

+ 1
- 1
dotfiles/i3/config Parādīt failu

@@ -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
         #     ‧•┇╻╹╹╿═╎╏◆◾║︙⎪∣∕⟘⟙∙∼⦀⦑⦒⦚⧸⧹▓▒░⧻⧺┆˘͡͡ːˌ˷|・፧።