Comments (5)
It's now possible since @notdodo commit
Previously if you did it, both blocks would have pulled from the same cache.
Now you can set a different config dir for each block and let them run simultaneously
You would need something like this
Step 1
You will have to create both directories first
mkdir -p ~/.config/i3agenda/work && mkdir -p ~/.config/i3agenda/personal
Step 2
You will need to download both google credential files for both accounts and place them in the appropriate directories.
More information here
Step 3
Configure your bar
Polybar example
modules-center = agenda-personal agenda-work
....
[module/agenda-personal]
type = custom/script
; Show the next event and forget cache automatically every 60 minutes. Save cache in personal config dir
exec = i3-agenda -c ~/.config/i3agenda/personal/google_credentials.json -ttl 60 --conf ~/.config/i3agenda/personal
interval = 60
....
[module/agenda-work]
type = custom/script
; Show the next event and forget cache automatically every 60 minutes. Save cache in work config dir
exec = i3-agenda -c ~/.config/i3agenda/work/google_credentials.json -ttl 60 --conf ~/.config/i3agenda/work
interval = 60
Edit:
Added this workaround to the README
from i3-agenda.
we could add an option to provide the script with multiple credentials file (using the -c flag)
This will require users to download 2 files, one for each account, then the script will simply fetch n times for each credentials file provided, it will then just merge the resulting lists and from there it's business as usual.
TODO:
-
Change the get_events call to be called for each credential file provided
https://github.com/rosenpin/i3-agenda/blob/master/i3_agenda/__init__.py#L33 -
Add support for multiple credentials file command line argument
https://github.com/rosenpin/i3-agenda/blob/master/i3_agenda/config.py#L14
from i3-agenda.
Currently this script only supports a single account, you could add your work account calendar to your personal account calendar, then sync your personal calendar. This will make the script go through both calendars
from i3-agenda.
This is not going to be good enough workaround. In case of a Google Account managed by an organization you can share with your personal account only with permission to see busy / free events 😞
from i3-agenda.
Just out of curiosity, why is not possible to run the same command with different permission files? Because if that would have been possible, a user could render it in separated blocks with different styles. It would have been a bit more flexible.
from i3-agenda.
Related Issues (20)
- Error after upgrade HOT 1
- Limiting Size of Summary HOT 1
- Token revoked HOT 1
- refactor
- Suddenly "Bad Request" Error HOT 3
- Long-lasting Focus/Highlight Color HOT 1
- --today event conflicts with cache HOT 1
- help message for the --date-format flag is missleading
- scrolling on the bar module navigate the events HOT 1
- AUR i3-agenda-git installation - No module named 'config' HOT 3
- i3agenda_google_token.pickle not found HOT 2
- Crashes if .i3agenda dir doesn't exist when trying to read pickle file
- module 'pyparsing' has no attribute 'downcaseTokens' HOT 1
- Google Refresh Token error HOT 2
- Google Refresh Token error HOT 1
- aur package is installing lib files in /usr/bin HOT 1
- Add option to only show events if they are within X minutes
- Refactoring HOT 4
- Looking for maintainer HOT 4
- Add CD to auto upload new versions from master to pip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from i3-agenda.