diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-04-17 15:44:01 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-04-17 15:44:01 +0800 |
| commit | 4fb90b0b1bca82113111e7460795f55d02acb0b2 (patch) | |
| tree | a634873eceda048a2e3caaba5b69494aca6da710 | |
| parent | a7757e8373d195d7eef6416535671cd887e37cab (diff) | |
Update
| -rw-r--r-- | X11/openbox/rc.xml | 7 | ||||
| -rwxr-xr-x | bin/task/context | 2 |
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 |