hugokernel / todofi.sh Goto Github PK
View Code? Open in Web Editor NEWHandle your todo-txt tasks directly from Rofi
License: MIT License
Handle your todo-txt tasks directly from Rofi
License: MIT License
Is there a way to add todofi.sh as a mode to rofi?
I tried it like this:
rofi.modi: drun,todofi:todofi.sh -c /home/hd/.config/todo/config,calc:qalc +u8,window
There is no error message, but the resulting mode just shows the output of todofi.sh --help
.
No matter if I use -c / -d or no argument at all - nothing changes.
Any help is greatly appreciated!
adding a todo e.g. a&b
results in the text in the todo.txt, but shows blank in todofi.sh
todo.txt
uses $HOME/.todo/config
as a default file for user configuration. i wonder what is the need of a separate configuration in $HOME/.config/todo-txt.cfg
.
On Arch todotxt - provided by todotxt (AUR) - exists as todo.sh
. It would be nice if todofi
searches for this script in addition to todo-txt
.
Line 36 in 3b994ed
whereis
also matches directories and this makes the test unreliable:
~ whereis -b todotxt | awk '{print $2}'
/usr/share/todotxt
~ todotxt
zsh: command not found: todotxt
~ ls -ld /usr/share/todotxt
drwxr-xr-x 2 root root 4096 jún 7 22:09 /usr/share/todotxt
The screenshot in the readme shows todofi.sh using the gruvbox theme.
I would like to have exactly the same theme, but I'm pretty new to rofi, and I don't see how I can theme the dialog using the todofi.sh script?
It would be good to have an example of how to manage theming for todofi.sh.
Would be lovely for readability if priorities, tags, and contexts could be displayed in an alternate color.
The color of the text in editpriority() and confirm() is not configurable.
Add a variable (COLOR_ITEM
) like the others, and change out the hardcoded color.
In the script there's a declaration of the default location of the todofish config: CONFIG_FILE="${HOME}/.config/todofish.conf"
But that config file never gets loaded? Only if the script is called with the -c
option?
I am using a custom solarized dark rofi theme, and some of the default markup colors are barely readable (project) or extremely bright (due date).
I tried overriding the MARKUP_xxx
variables in the config file:
Lines 27 to 30 in c1ecf94
However it seems the sed invocation breaks the markup code, as I am getting pango errors.
Could it be possible to add variables for the markup colors, that can be easily overriden in config file?
Thank you
when i open my todo.txt (which is in an alternative place so I use the -c argument) todofi opens very slow. It's something like 3 seconds. Shouldn't be that hard to open a text file, so something must be wrong.
I'm on a fully updated manjaro linux system with i3. only alternative thing I got going for todofi is the placement of my todo folder, but can't see how that should mean anything.
Thanks for your script and I love it so much. But the font color seems to be weried when I add -theme
argument in todofish.conf
like the following:
ROFI_BIN="$(command -v rofi) -theme ~/.config/rofi/tokyonight.rasi"
and when I run the script by ./todofi.sh
, it outputs:
As you can see, some item's text color is not corespond with its priority, I try to change the theme file like https://github.com/newmanls/rofi-themes-collection/blob/master/themes/nord.rasi but the result is same. Here is my theme file:
* {
font: "JetBrainsMono Nerd Font Bold 20";
bg0 : #1a1b26;
bg1 : #1f2335;
bg2 : #24283b;
bg3 : #414868;
fg0 : #c0caf5;
fg1 : #a9b1d6;
fg2 : #737aa2;
red : #f7768e;
green : #9ece6a;
yellow : #e0af68;
blue : #7aa2f7;
magenta : #9a7ecc;
cyan : #4abaaf;
accent: @blue;
urgent: @yellow;
background-color : transparent;
text-color : @fg0;
margin : 0;
padding : 0;
spacing : 0;
}
window {
location: center;
width: 1000;
height: 700;
background-color: @bg0;
/*background-image: url("/home/ch4ser/Media/Pictures/jarvis.jpg", width);*/
border: 2px;
border-color: @bg3;
}
inputbar {
spacing: 8px;
padding: 8px;
border: 2px;
border-color: @blue;
background-color: @bg1;
}
prompt, entry, element-icon, element-text {
vertical-align: 0.5;
}
prompt {
text-color: @accent;
}
textbox {
padding: 8px;
background-color: @bg1;
}
listview {
padding: 4px 0;
lines: 8;
columns: 2;
fixed-height: false;
}
element {
padding: 8px;
spacing: 8px;
}
element normal normal {
text-color: @fg0;
}
element normal urgent {
text-color: @urgent;
}
element normal active {
text-color: @accent;
}
element selected {
text-color: @bg0;
}
element selected normal, element selected active {
background-color: @accent;
}
element selected urgent {
background-color: @urgent;
}
element-icon {
size: 0.8em;
}
element-text {
text-color: inherit;
}
Finally, thanks for your contribution and patience again.
This would allow customizing the Rofi font, theme, and layout.
Although there's a check for todo.sh instead of todo-txt, when the script actually runs the command it's hard-coded to todo-txt:
Line 59 in 35b4e27
I fixed it by changing that line to:
$TODO_BIN -p -d "$TODOTXT_CFG_FILE" "$@"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.