From c317066f1c58c76854bb3e0377635b4ac69010f6 Mon Sep 17 00:00:00 2001 From: dbroqua Date: Sun, 5 Jul 2020 10:36:38 +0200 Subject: [PATCH] Added khal/libinput in i3 --- config/i3/config | 5 +++++ config/khal/config | 27 +++++++++++++++++++++++++++ config/khard/khard.conf | 25 +++++++++++++++++++++++++ config/khard/khard.conf.old | 32 ++++++++++++++++++++++++++++++++ config/vdirsyncer/config | 36 ++++++++++++++++++++++++++++++++++++ 5 files changed, 125 insertions(+) create mode 100644 config/khal/config create mode 100644 config/khard/khard.conf create mode 100644 config/khard/khard.conf.old create mode 100644 config/vdirsyncer/config diff --git a/config/i3/config b/config/i3/config index 4954468..5bc4747 100644 --- a/config/i3/config +++ b/config/i3/config @@ -172,6 +172,7 @@ exec --no-startup-id i3-msg 'exec remmina -i &' exec --no-startup-id xsettingsd & exec --no-startup-id compton --config ~/.compton.conf & exec --no-startup-id setxkbmap -option compose:rctrl & +exec --no-startup-id libinput-gestures-setup start exec --no-startup-id i3-msg 'exec /usr/bin/terminator' exec --no-startup-id i3-msg 'exec /usr/bin/firefox' exec --no-startup-id i3-msg 'exec /usr/bin/spotify' @@ -241,6 +242,9 @@ bindsym $mod+Print exec ~/Bin/slip # Switch screen layouts bindsym XF86Display exec ~/Bin/screenlayout.sh +# Calendar +bindsym $mod+c exec "rxvt-unicode -e khal interactive" + # ------------------------------------------------------------------------------------------------- # COLORS # @@ -277,6 +281,7 @@ client.background $nord0 for_window [class="Spotify"], move container to workspace $wksp4 #for_window [class="Firefox"], move container to workspace $wksp1 #for_window [class="Ristretto"] fullscreen enable +for_window [title="khal"] floating enable border pixel 8 resize set 800 600 # ------------------------------------------------------------------------------------------------- # OTHER STUFF diff --git a/config/khal/config b/config/khal/config new file mode 100644 index 0000000..fffe27b --- /dev/null +++ b/config/khal/config @@ -0,0 +1,27 @@ +[calendars] +[[default]] +path = ~/.calendars/default/ +color = dark red +[[birthdays]] +path = ~/.calendars/contact_birthdays +color = yellow + +[sqlite] +path = ~/.khal/khal.db + +[locale] +local_timezone = Europe/Paris +default_timezone = Europe/Paris + +timeformat = %H:%M +dateformat = %d.%m. +longdateformat = %d.%m.%Y +datetimeformat = %d.%m. %H:%M +longdatetimeformat = %d.%m.%Y %H:%M + +firstweekday = 0 + +[default] +default_command = calendar +default_calendar = default +highlight_event_days = True # the default is False diff --git a/config/khard/khard.conf b/config/khard/khard.conf new file mode 100644 index 0000000..1df96bc --- /dev/null +++ b/config/khard/khard.conf @@ -0,0 +1,25 @@ +[addressbooks] +[[default]] +path = ~/.contacts/default + +[general] +default_action = list +editor = vim +merge_editor = vimdiff + +[contact table] +display = first_name +group_by_addressbook = no +reverse = no +show_nicknames = no +show_uids = yes +sort = last_name +localize_dates = yes +preferred_phone_number_type = pref, cell, home +preferred_email_address_type = pref, home, work + +[vcard] +private_objects = +preferred_version = 3.0 +search_in_source_files = no +skip_unparsable = no diff --git a/config/khard/khard.conf.old b/config/khard/khard.conf.old new file mode 100644 index 0000000..87a76ca --- /dev/null +++ b/config/khard/khard.conf.old @@ -0,0 +1,32 @@ +# example configuration file for khard version > 0.14.0 +# place it under ~/.config/khard/khard.conf +# This file is parsed by the configobj library. The syntax is described at +# https://configobj.readthedocs.io/en/latest/configobj.html#the-config-file-format + +[addressbooks] +[[default]] +path = ~/.contacts/default/ + +[general] +debug = yes +default_action = list +# These are either strings or comma seperated lists +editor = vim, -i, NONE +merge_editor = vimdiff + +[contact table] +display = first_name +group_by_addressbook = no +reverse = no +show_nicknames = no +show_uids = yes +sort = last_name +localize_dates = yes +preferred_phone_number_type = pref, cell, home +preferred_email_address_type = pref, work, home + +[vcard] +private_objects = Jabber, Skype, Twitter +preferred_version = 3.0 +search_in_source_files = no +skip_unparsable = no diff --git a/config/vdirsyncer/config b/config/vdirsyncer/config new file mode 100644 index 0000000..5b2d0ec --- /dev/null +++ b/config/vdirsyncer/config @@ -0,0 +1,36 @@ +[general] +status_path = "~/.vdirsyncer/status/" + +# CARDDAV +[pair contacts] +a = "contacts_local" +b = "contacts_remote" + +collections = ["from a", "from b"] + +metadata = ["displayname"] + +[storage contacts_local] +type = "filesystem" +path = "~/.contacts/" +fileext = ".vcf" + +[storage contacts_remote] +type = "carddav" +url = "https://cloud.darkou.fr/remote.php/cardav" + +[pair calendar] +a = "calendar_local" +b = "calendar_remote" +collections = ["from a", "from b"] + +metadata = ["displayname", "color"] + +[storage calendar_local] +type = "filesystem" +path = "~/.calendars/" +fileext = ".ics" + +[storage calendar_remote] +type = "caldav" +url = "https://cloud.darkou.fr/remote.php/caldav/"