summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/i3/config##desktop.Linux.Lowe4
-rwxr-xr-xbin/td24
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
27bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c 27bindsym $mod+u exec --no-startup-id ~/bin/bukuadd_c
28 28
29# add taskwarrior/gtd calendar item
30bindsym $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)
30bindcode $mod+35 exec --no-startup-id "setxkbmap -model pc105 -layout us,tr -option grp:alt_shift_toggle,caps:swapescape" 33bindcode $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
44bindsym $mod+Shift+z exec zotero 47bindsym $mod+Shift+z exec zotero
45bindsym $mod+Shift+f exec thunar 48bindsym $mod+Shift+f exec thunar
46bindsym $mod+Shift+t exec thunderbird
47 49
48# start a terminal 50# start a terminal
49bindsym $mod+Return exec kitty 51bindsym $mod+Return exec kitty
diff --git a/bin/td b/bin/td
new file mode 100755
index 0000000..9bbbec1
--- /dev/null
+++ b/bin/td
@@ -0,0 +1,24 @@
1#!/bin/bash
2
3task_date=$(zenity --calendar --date-format=%Y-%m-%d)
4
5if [[ $? -ne 0 ]]; then
6 notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error"
7 exit 0
8fi
9
10task_time=$(zenity --entry --text="enter time in xx:xx format" --entry-text="00:00")
11
12if [[ $? -ne 0 ]]; then
13 notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error"
14 exit 0
15fi
16
17task_description=$(zenity --entry --text="enter description")
18
19if [[ $? -ne 0 ]]; then
20 notify-send "Cancelling..." "" --app-name="task todo" --icon="dialog error"
21 exit 0
22fi
23
24task add due:"$task_date" + "T$task_time" "$task_description"