aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--X11/openbox/rc.xml7
-rwxr-xr-xbin/task/context2
2 files changed, 7 insertions, 2 deletions
diff --git a/X11/openbox/rc.xml b/X11/openbox/rc.xml
index 14ab723..8f76da4 100644
--- a/X11/openbox/rc.xml
+++ b/X11/openbox/rc.xml
@@ -552,7 +552,12 @@
552 </keybind> 552 </keybind>
553 <keybind key="W-f"> 553 <keybind key="W-f">
554 <action name="Execute"> 554 <action name="Execute">
555 <command>thunar ~/Downloads</command> 555 <command>
556 sh -c '
557 xdotool search --onlyvisible --classname thunar windowactivate || \
558 thunar ~/Downloads
559 '
560 </command>
556 </action> 561 </action>
557 </keybind> 562 </keybind>
558 <keybind key="W-w"> 563 <keybind key="W-w">
diff --git a/bin/task/context b/bin/task/context
index 95d17c1..ae78b26 100755
--- a/bin/task/context
+++ b/bin/task/context
@@ -76,7 +76,7 @@ _update_spend_time() {
76 given_seconds="$(_get_seconds "$time")" 76 given_seconds="$(_get_seconds "$time")"
77 _desktop_notify "$(_format_seconds "${given_seconds}")" 77 _desktop_notify "$(_format_seconds "${given_seconds}")"
78 78
79 echo -e "$(date +'%Y%m%d %H:%m:%S')\t$context\t${given_seconds}" >>$LOG_FILE 79 echo -e "$(date +'%Y%m%d %H:%M:%S')\t$context\t${given_seconds}" >>$LOG_FILE
80} 80}
81 81
82# Print spend for each context 82# Print spend for each context