projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0e340db
)
[rc/rofi-light] don’t invoke light when esc was pressed
author
Amin Bandali
<bandali@gnu.org>
Sat, 17 Nov 2018 04:27:51 +0000
(23:27 -0500)
committer
Amin Bandali
<bandali@gnu.org>
Sat, 17 Nov 2018 04:27:51 +0000
(23:27 -0500)
rc.org
patch
|
blob
|
blame
|
history
diff --git
a/rc.org
b/rc.org
index
d4e8a7c
..
336337f
100644
(file)
--- 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)
#+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)
#+end_src
** s (run sway)