mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2024-11-14 21:08:49 +01:00
add justfile and kitty, improve time grouper
This commit is contained in:
parent
7a1ac4b4bb
commit
d8dc7bcc21
4 changed files with 48 additions and 5 deletions
15
home-manager/dotfiles/justfile
Normal file
15
home-manager/dotfiles/justfile
Normal 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
|
|
@ -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 = [{
|
||||
|
|
|
@ -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(".",","))
|
23
home-manager/programs/kitty.nix
Normal file
23
home-manager/programs/kitty.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue