Sync work calendar and map next/previous media key

This commit is contained in:
coolneng 2020-03-04 00:39:54 +01:00
parent 9310de768f
commit 35ba2dd3ad
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 43 additions and 9 deletions

View File

@ -1,13 +1,18 @@
[calendars] [calendars]
[[bob_calendar_local]] [[bob_calendar_local]]
path = ~/.calendars/* path = ~/.calendars/radicale/
type = discover type = discover
[[bob_contacts_local]] [[bob_contacts_local]]
path = ~/.contacts/* path = ~/.contacts/*
type = discover type = discover
[[google_calendar_local]]
path = ~/.calendars/google/amin.kasrou@jitkey.com/
type = discover
color = dark green
[locale] [locale]
timeformat = %H:%M timeformat = %H:%M
dateformat = %d/%m/ dateformat = %d/%m/
@ -18,10 +23,13 @@ local_timezone= Europe/Brussels
default_timezone= Europe/Brussels default_timezone= Europe/Brussels
[default] [default]
default_calendar = Misc default_calendar = amin.kasrou@jitkey.com
timedelta = 60d timedelta = 7d
highlight_event_days = true highlight_event_days = true
print_new = event print_new = event
[view]
agenda_event_format = {calendar-color}{cancelled}{start-end-time-style} {title}{repeat-symbol}{reset}
[highlight_days] [highlight_days]
method = fg method = fg

View File

@ -214,6 +214,16 @@
<command>mpc stop</command> <command>mpc stop</command>
</action> </action>
</keybind> </keybind>
<keybind key="XF86AudioNext">
<action name="Execute">
<command>mpc next</command>
</action>
</keybind>
<keybind key="XF86AudioPrev">
<action name="Execute">
<command>mpc prev</command>
</action>
</keybind>
<keybind key="S-W-d"> <keybind key="S-W-d">
<action name="Execute"> <action name="Execute">
<command>xdg-open "$(locate home media | rofi -threads 0 -width 100 -color-window "#000000, #000000, #000000" -color-normal "#000000, #b3e774, #000000, #b3e774, #000000" -color-active "#000000, #b3e774, #000000, #b3e774, #000000" -color-urgent "#000000, #b3e774, #000000, #b3e774, #000000" -dmenu -i -p "locate:")"</command> <command>xdg-open "$(locate home media | rofi -threads 0 -width 100 -color-window "#000000, #000000, #000000" -color-normal "#000000, #b3e774, #000000, #b3e774, #000000" -color-active "#000000, #b3e774, #000000, #b3e774, #000000" -color-urgent "#000000, #b3e774, #000000, #b3e774, #000000" -dmenu -i -p "locate:")"</command>
@ -241,7 +251,7 @@
</keybind> </keybind>
<keybind key="XF86AudioMute"> <keybind key="XF86AudioMute">
<action name="Execute"> <action name="Execute">
<command>amixer set Master toggle</command> <command>amixer set Speaker toggle</command>
</action> </action>
</keybind> </keybind>
<keybind key="Menu"> <keybind key="Menu">

View File

@ -47,8 +47,8 @@ url = "https://coolneng.duckdns.org/radicale/"
username = "coolneng" username = "coolneng"
# The password can also be fetched from the system password storage, netrc or a # The password can also be fetched from the system password storage, netrc or a
# custom command. See http://vdirsyncer.pimutils.org/en/stable/keyring.html # custom command. See http://vdirsyncer.pimutils.org/en/stable/keyring.html
password.fetch = ["command", "pass", "caldav"] password.fetch = ["command", "pass", "cli/caldav"]
verify_fingerprint = "81:74:1A:A8:18:DD:9F:91:A8:21:B3:B9:1F:A2:23:1E:DB:99:16:A6:37:1E:FC:84:08:F1:91:AA:16:44:75:FA" verify_fingerprint = "8F:B0:B1:7F:30:8F:3B:C2:FD:9A:B8:72:1E:57:C7:64:78:8C:4A:9C:1E:EE:69:7C:DC:60:DF:02:DE:E2:8E:B2"
# CALDAV # CALDAV
[pair bob_calendar] [pair bob_calendar]
@ -56,17 +56,33 @@ a = "bob_calendar_local"
b = "bob_calendar_remote" b = "bob_calendar_remote"
collections = ["from a", "from b"] collections = ["from a", "from b"]
[pair google_calendar]
a = "google_calendar_local"
b = "google_calendar_remote"
collections = ["from a", "from b"]
# Calendars also have a color property # Calendars also have a color property
metadata = ["displayname", "color"] metadata = ["displayname", "color"]
[storage bob_calendar_local] [storage bob_calendar_local]
type = "filesystem" type = "filesystem"
path = "~/.calendars/" path = "~/.calendars/radicale"
fileext = ".ics" fileext = ".ics"
[storage bob_calendar_remote] [storage bob_calendar_remote]
type = "caldav" type = "caldav"
url = "https://coolneng.duckdns.org/radicale/" url = "https://coolneng.duckdns.org/radicale/"
username = "coolneng" username = "coolneng"
password.fetch = ["command", "pass", "caldav"] password.fetch = ["command", "pass", "cli/caldav"]
verify_fingerprint = "81:74:1A:A8:18:DD:9F:91:A8:21:B3:B9:1F:A2:23:1E:DB:99:16:A6:37:1E:FC:84:08:F1:91:AA:16:44:75:FA" verify_fingerprint = "8F:B0:B1:7F:30:8F:3B:C2:FD:9A:B8:72:1E:57:C7:64:78:8C:4A:9C:1E:EE:69:7C:DC:60:DF:02:DE:E2:8E:B2"
[storage google_calendar_local]
type = "filesystem"
path = "~/.calendars/google"
fileext = ".ics"
[storage google_calendar_remote]
type = "google_calendar"
token_file = "~/.gauth"
client_id = "775357222304-1dpf6r6uqp7c9mn0imb0und5kaho5r7p.apps.googleusercontent.com"
client_secret.fetch = ["command", "pass", "cli/gsuite"]