From c349b7f0581c8a6147d3b091cd6feb883d46bed8 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 19 Apr 2023 23:44:01 +0200 Subject: [PATCH] polybar: Make i3's mode-label clickable to reset Reset to the "default" i3 mode when clicking on the mode-label. This makes it easy to recover from a mode without binding to `mode default`. --- .config/polybar/config | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/polybar/config b/.config/polybar/config index bb09662..79ec45f 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -67,6 +67,9 @@ label-urgent = %name% label-urgent-background = ${colors.alert} label-urgent-padding = ${self.label-focused-padding} +; click on mode to reset to default +label-mode = %{A1:i3-msg mode default:}%mode%%{A} + ;################################################# [module/pulseaudio]