From cac2eb1a7fec8238379526d5195cd0d3bad1620a Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 21 Jan 2019 18:08:11 +0100 Subject: [PATCH] change default alt. window command to bring to current desktop. Xkill is duplicate of shift-del (build in close). This is more useful. Fix test-case. Fixes: #902 --- config/config.c | 2 +- doc/rofi.1 | 2 +- doc/rofi.1.markdown | 2 +- doc/test_xr.txt | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/config.c b/config/config.c index 56053b04..855dacdc 100644 --- a/config/config.c +++ b/config/config.c @@ -66,7 +66,7 @@ Settings config = { /** Command executed when running application in terminal */ .run_shell_command = "{terminal} -e {cmd}", /** Command executed on accep-entry-custom for window modus */ - .window_command = "xkill -id {window}", + .window_command = "wmctrl -i -R {window}", /** No default icon theme, we search Adwaita and gnome as fallback */ .icon_theme = NULL, /** diff --git a/doc/rofi.1 b/doc/rofi.1 index eab9603c..7eba77e0 100644 --- a/doc/rofi.1 +++ b/doc/rofi.1 @@ -856,7 +856,7 @@ default: {w} {c} {t} Set command to execute on selected window for a custom action\. See \fIPATTERN\fR\. . .P -Default: \fI"xkill \-id {window}"\fR +Default: \fI"wmctrl \-i \-R {window}"\fR . .SS "Combi settings" \fB\-combi\-modi\fR \fImode1,mode2\fR diff --git a/doc/rofi.1.markdown b/doc/rofi.1.markdown index 1b4fb82e..675ae06d 100644 --- a/doc/rofi.1.markdown +++ b/doc/rofi.1.markdown @@ -487,7 +487,7 @@ default: {w} {c} {t} Set command to execute on selected window for a custom action. See *PATTERN*. -Default: *"xkill -id {window}"* +Default: *"wmctrl -i -R {window}"* ### Combi settings diff --git a/doc/test_xr.txt b/doc/test_xr.txt index dc1453eb..a07b73e3 100644 --- a/doc/test_xr.txt +++ b/doc/test_xr.txt @@ -48,6 +48,8 @@ rofi.window-command: xkill -id {window} ! rofi.drun-display-format: {name} [({generic})] ! "Disable history in run/ssh" Set from: File rofi.disable-history: false +! "Programs ignored for history" Set from: Default +! rofi.ignored-prefixes: ! "Use sorting" Set from: Default ! rofi.sort: false ! "Choose the strategy used for sorting: normal (levenshtein) or fzf." Set from: Default