summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2018-11-16 23:27:51 -0500
committerAmin Bandali <bandali@gnu.org>2018-11-16 23:27:51 -0500
commitf636d891b9b874e888c61b1be34714276bc2b9ff (patch)
tree7a01cb9daf8470e8c3c7316816c3a7867bc5a554
parent0e340dbb6d2137be8106666d56b7bbf82f223ece (diff)
downloadconfigs-f636d891b9b874e888c61b1be34714276bc2b9ff.tar.gz
configs-f636d891b9b874e888c61b1be34714276bc2b9ff.tar.xz
configs-f636d891b9b874e888c61b1be34714276bc2b9ff.zip
[rc/rofi-light] don’t invoke light when esc was pressed
Diffstat (limited to '')
-rw-r--r--rc.org2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.org b/rc.org
index d4e8a7c..336337f 100644
--- a/rc.org
+++ b/rc.org
@@ -5582,7 +5582,7 @@ if __name__ == '__main__':
#+begin_src bash
cur=$(light -G)
val=$(rofi -dmenu -mesg "light $cur" -p "light -S " -l 0 -width 12)
-light -S $val
+[ -n "$val" ] && light -S $val
#+end_src
** s (run sway)