diff options
-rw-r--r-- | .config/i3/config##desktop.Linux.Lowe | 4 | ||||
-rwxr-xr-x | bin/td | 24 |
2 files changed, 27 insertions, 1 deletions
diff --git a/.config/i3/config##desktop.Linux.Lowe b/.config/i3/config##desktop.Linux.Lowe index 476f645..35554d5 100644 --- a/.config/i3/config##desktop.Linux.Lowe +++ b/.config/i3/config##desktop.Linux.Lowe | |||
@@ -26,6 +26,9 @@ bindsym $mod+o exec --no-startup-id xdotool mousemove 1920 1080 | |||
26 | # bookmark from clipboard | 26 | # bookmark from clipboard |
27 | bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c | 27 | bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c |
28 | 28 | ||
29 | # add taskwarrior/gtd calendar item | ||
30 | bindsym $mod+Shift+t --no-startup-id ~/bin/td | ||
31 | |||
29 | # swap caps lock and escape, set keyboard layout, 35 is ]/ü (layout agnostic) | 32 | # swap caps lock and escape, set keyboard layout, 35 is ]/ü (layout agnostic) |
30 | bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape" | 33 | bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape" |
31 | 34 | ||
@@ -43,7 +46,6 @@ bindsym XF86AudioNext exec mpc next | |||
43 | # shortcuts for frequent programs | 46 | # shortcuts for frequent programs |
44 | bindsym $mod+Shift+z exec zotero | 47 | bindsym $mod+Shift+z exec zotero |
45 | bindsym $mod+Shift+f exec thunar | 48 | bindsym $mod+Shift+f exec thunar |
46 | bindsym $mod+Shift+t exec thunderbird | ||
47 | 49 | ||
48 | # start a terminal | 50 | # start a terminal |
49 | bindsym $mod+Return exec kitty | 51 | bindsym $mod+Return exec kitty |
@@ -0,0 +1,24 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | task_date=$(zenity --calendar --date-format=%Y-%m-%d) | ||
4 | |||
5 | if [[ $? -ne 0 ]]; then | ||
6 | notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error" | ||
7 | exit 0 | ||
8 | fi | ||
9 | |||
10 | task_time=$(zenity --entry --text="enter time in xx:xx format" --entry-text="00:00") | ||
11 | |||
12 | if [[ $? -ne 0 ]]; then | ||
13 | notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error" | ||
14 | exit 0 | ||
15 | fi | ||
16 | |||
17 | task_description=$(zenity --entry --text="enter description") | ||
18 | |||
19 | if [[ $? -ne 0 ]]; then | ||
20 | notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error" | ||
21 | exit 0 | ||
22 | fi | ||
23 | |||
24 | task add due:"$task_date" + "T$task_time" "$task_description" | ||