From 7cf055bb98a8be913ff3a2b03ef2ed2528e61db8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 11 Jan 2022 18:19:21 +0000 Subject: dtas-console: support Wayland terminal titles, too Tested-by: James Rowe --- bin/dtas-console | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dtas-console b/bin/dtas-console index 0e762bd..7a7ed6c 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -26,7 +26,7 @@ w.req_ok('watch') c = DTAS::UNIXClient.new cur = YAML.load(c.req('current')) readable = [ se, w, $stdin ] -set_title = ENV['DISPLAY'] ? $stdout : nil +set_title = (ENV['DISPLAY'] || ENV['WAYLAND_DISPLAY']) ? $stdout : nil # current rg mode rg_mode = DTAS::RGState::RG_MODE.keys.unshift("off") -- cgit v1.2.3-24-ge0c7