add justfile and kitty, improve time grouper

This commit is contained in:
Thilo Billerbeck 2024-10-07 19:51:42 +02:00
parent 7a1ac4b4bb
commit d8dc7bcc21
4 changed files with 48 additions and 5 deletions

View file

@ -0,0 +1,15 @@
flatpak-override: flatpak-override-chrome flatpak-override-steam
flatpak-override-chrome:
flatpak override \
--user \
--filesystem=~/.local/share/applications \
--filesystem=~/.local/share/icons \
--filesystem=~/.pki/nssdb \
com.google.Chrome
flatpak-override-steam:
flatpak override \
--user \
--filesystem=~/mnt \
com.valvesoftware.Steam

View file

@ -8,7 +8,6 @@ with lib;
{
imports = [
./../programs/atuin.nix
./../programs/alacritty.nix
./../programs/bat.nix
./../programs/beets.nix
./../programs/command-not-found.nix
@ -17,6 +16,7 @@ with lib;
./../programs/fzf.nix
./../programs/git.nix
./../programs/htop.nix
./../programs/kitty.nix
./../programs/neovim.nix
./../programs/starship.nix
./../programs/topgrade.nix
@ -89,6 +89,7 @@ with lib;
".config/nano/nanorc".text = ''
set linenumbers
'';
"justfile".source = ./../dotfiles/justfile;
".gitignore".source = ./../dotfiles/.gitignore;
".config/pipewire/pipewire.conf.d/99-noise-suppression.conf".text = ''
context.modules = [{

View file

@ -17,8 +17,12 @@ df.rename(columns={
'Duration': 'duration'
}, inplace=True)
df = df.groupby(['project','description','day'], as_index=False).agg({'duration': 'sum'})
df['duration'] = round(df['duration'].dt.total_seconds() / 60 / 60, 2)
print("Total hours are: ", round(df['duration'].sum(), 2))
dfg = df.groupby(['project','description','day'], as_index=False).agg({'duration': 'sum'})
dfg['duration'] = round(dfg['duration'].dt.total_seconds() / 60 / 60, 2)
print("Total hours are: ", round(dfg['duration'].sum(), 2))
df.to_csv(Path(sys.argv[1]).stem + '-grouped.csv', index=False)
dfg.to_csv(Path(sys.argv[1]).stem + '-grouped.csv', index=False)
dfc = dfg.groupby(['project'] , as_index=False).agg({'duration': 'sum'})
for index, row in dfc.iterrows():
print(row['project'], str(row['duration']).replace(".",","))

View file

@ -0,0 +1,23 @@
{
config,
pkgs,
...
}:
let
nixGL = import ./../../home-manager/utils/nixGLWrap.nix { inherit pkgs config; };
in
{
programs.kitty = {
enable = true;
package = (nixGL pkgs.kitty);
font = {
name = "JetbrainsMono NFM";
size = 14;
};
themeFile = "Dracula";
extraConfig = ''
background_opacity 0.9
'';
};
}