Commit graph

279 commits

Author SHA1 Message Date
Oliver Davies 4ba72da371 Add common-gpu-intel from nixos-hardware 2024-09-21 13:15:39 +01:00
Oliver Davies cd4e7048c5 Extract Docker configuration to a mixin 2024-09-21 12:46:14 +01:00
Oliver Davies 24e2edfb8e Extract font configuration into a mixin 2024-09-21 12:36:24 +01:00
Oliver Davies da330ef9ee Add logseq 2024-09-21 10:23:54 +01:00
Oliver Davies 990af27e35 Add more nixos-hardware modules 2024-09-21 10:22:52 +01:00
Oliver Davies fec58e770d Add nixos-hardware for system76 2024-09-21 09:58:08 +01:00
Oliver Davies f5c7b2ae10 Re-add Documents 2024-09-13 20:19:00 +01:00
Oliver Davies 098d714168 Use create-zellij-session 2024-09-13 20:18:20 +01:00
Oliver Davies 5cd3ddceff Re-add Pocket Casts 2024-09-13 13:49:25 +01:00
Oliver Davies d63992ed63 Re-organise Home Manager modules 2024-09-11 21:48:58 +01:00
Oliver Davies 9401bd3754 Remove DDEV and just 2024-09-11 20:39:19 +01:00
Oliver Davies 91dc0de725 Add fastfetch 2024-09-11 20:38:52 +01:00
Oliver Davies a476a53d3a Update completions 2024-09-11 15:22:49 +01:00
Oliver Davies 2082d9361b Update expansion matches 2024-09-10 01:41:50 +01:00
Oliver Davies a7556575ac Remove tmux
After using it as a daily driver from the last week or so, I'm switching
to Zellij.

https://zellij.dev
2024-09-04 08:00:59 +01:00
Oliver Davies edfa2b7c22 Only show the names of the directories
Remove the ~/Code prefix from the list of items.
2024-09-04 07:55:50 +01:00
Oliver Davies 246e383a77 Update flake dependencies 2024-09-04 07:55:42 +01:00
Oliver Davies 2d91ea65a4 Update abbreviations 2024-09-04 00:00:16 +01:00
Oliver Davies 56ce8ba735 Add create-zellij-session script
Based on t.nix, this creates or attaches to a Zellij session based on a
given directory.
2024-08-31 17:17:32 +01:00
Oliver Davies 9f4e5bebf8 Add the Zellij default configuration
Used `zellij setup --dump-config` to get the configuration and saved it
into its own file.
2024-08-29 09:44:59 +01:00
Oliver Davies 4406690f63 Set Zellij theme 2024-08-29 02:21:19 +01:00
Oliver Davies c62f741a90 Add a default directory when using yt-dlp
Always place downloaded videos in `~/Videos`.
2024-08-28 13:00:36 +01:00
Oliver Davies 7c6d68a589 zsh: add code directory to CDPATH 2024-08-28 13:00:09 +01:00
Oliver Davies e810a8506e Add a :zet expansion that links to my
...Zettelkasten site
2024-08-28 12:58:17 +01:00
Oliver Davies b9ff90afc0 Add watchexec 2024-08-28 12:58:02 +01:00
Oliver Davies 5fe35808d2 Trying out zellij 2024-08-24 23:36:39 +01:00
Oliver Davies 50fc641743 Update abbreviations 2024-08-21 09:36:15 +01:00
Oliver Davies a1c356a1f5 Update aliases, abbreviations and snippets 2024-08-21 01:12:55 +01:00
Oliver Davies a1ef2d1402 Update path to jq 2024-08-20 21:51:15 +01:00
Oliver Davies 4d4d65d812 Refactor: inject the username into the source path 2024-08-20 21:01:50 +01:00
Oliver Davies ce5b4fa0a1 Create export-video-list script
Create a `export-video-list` script that exports all the video files on
my external hard drive to a JSON file so I can easily see what videos I
have without needing to get and plug in the drive.

I can easily view it using `bat` or `jq` and combine it with `grep` to
search for a specific video - e.g. `cat ~/video.json | grep -i nix`
(`-i` makes the search case-insensitive).
2024-08-20 19:48:57 +01:00
Oliver Davies 13c83fb8b4 Hide error about nested tmux sessions 2024-08-20 17:07:04 +01:00
Oliver Davies b36ca8086e Add timer script for desktop machines
Based on https://github.com/sdaschner/dotfiles/blob/master/bin/timer and
https://github.com/sdaschner/dotfiles/blob/master/bin/_timer.

Seen in https://youtu.be/8CZIv3MJvic?si=PiVPM_vwuUKI7ak3&t=1460.
2024-08-20 14:34:32 +01:00
Oliver Davies b30909b32a zsh: add some suffix aliases
Aliases that run when files of a matching type are opened.

See https://youtu.be/8CZIv3MJvic?si=QVqtaCDNaygs2qaE&t=670.
2024-08-19 22:18:02 +01:00
Oliver Davies c712a1b254 Add aliases for curl
Use the cursor position to not have a trailing space after expanding the
abbreviation, making it easier to type any following characters.

See https://zsh-abbr.olets.dev/usage.html#place-the-cursor and
https://github.com/olets/zsh-abbr/discussions/97
2024-08-19 22:10:29 +01:00
Oliver Davies 5dac3f312d Add an abbreviation for C to copy to the
...clipboard using `xclip`

This also works in WSL.
2024-08-19 21:41:42 +01:00
Oliver Davies 74c6c2f8dc Always install xclip, not just on desktop 2024-08-19 21:41:28 +01:00
Oliver Davies 730c776646 Add xclip 2024-08-19 21:09:01 +01:00
Oliver Davies 49ec84d9e4 Add mermaid-cli 2024-08-19 21:08:41 +01:00
Oliver Davies 92cecef02c Remove feh and nitrogen
Go back to the default awesome WM wallpaper.
2024-08-15 21:22:55 +01:00
Oliver Davies 9f860ee6f2 Experiment with pet for snippets
https://github.com/knqyf263/pet

Seen on https://youtu.be/fU8HB1cvG9w?si=-lPdL1csAB_4D6tL&t=653.
2024-08-13 18:12:59 +01:00
Oliver Davies 95f6620c47 Remove nnn 2024-08-13 12:04:43 +01:00
Oliver Davies 1d59baa998 t: sort and reverse directories 2024-08-13 12:04:43 +01:00
Oliver Davies 4b7bae5c97 Don't include results from /tmp 2024-08-13 12:04:43 +01:00
Oliver Davies 0acedf8bea Remove starship, atuin and wezterm 2024-08-13 12:04:40 +01:00
Oliver Davies bcf8104617 Add age and sshs
Seen on https://youtu.be/1QqvL-k11NE?si=I_nNNf7b7u9O16Xr.
2024-08-13 09:13:32 +01:00
Oliver Davies ffc8945630 Simplify tmux configuration 2024-08-13 09:11:06 +01:00
Oliver Davies 4d1040a4de bluetuith: use j and k to navigate up and down
https://github.com/darkhz/bluetuith/issues/62#issuecomment-2141669880
https://darkhz.github.io/bluetuith/Configuration.html
2024-08-09 12:50:18 +01:00
Oliver Davies 23cf80d9c6 Add bluetuith
A TUI for managing Bluetooth devices and connections.

https://darkhz.github.io/bluetuith/index.html
2024-08-07 09:21:31 +01:00
Oliver Davies 6082de62b0 Look for .ignored/run when running commands
Make the `run` command cleverer by also searching for a `.ignored/run`
file, following the convention of always ignoring a `.ignored` directory
from Git.

This allows me to have a local `run` file that doesn't need to be
committed and pushed to the repo (e.g. it's too specific to me), and
being able to keep it outside of the root of the project directory where
it could be committed accidentally.

A similar approach was done by Andreas Möller using Makefiles in this
article:

https://localheinz.com/articles/2020/05/07/using-makefiles-in-projects-where-i-can-not-use-them

With this function, the `.ignored/run` file is executed if it's found
and exits with the status code of the command.

If not, it will fall back to using `./run` as before.

I considered reversing these and checking for `./run` first as there
could be a performance benefit but, if neither file is found, I want the
error to show `./run` and not `.ignored/run` as that's the main use
case.
2024-07-31 16:40:25 +01:00
Oliver Davies 75f983fea7 Revert "git: use difftastic"
This reverts commit c06fb20115.
2024-07-28 13:30:11 +01:00
Oliver Davies 22385b9a1c Revert "git: use difftastic by default"
This reverts commit 2fbf67507f.
2024-07-28 13:29:57 +01:00
Oliver Davies b944d20123 zsh: run zle reset-prompt in each widget
Instead of having to press the Enter key after running a widget, use
`zle reset-prompt` to reset the prompt.
2024-07-24 08:01:20 +01:00
Oliver Davies 15d6fa1aab tmux: update prefix key 2024-07-23 21:33:13 +01:00
Oliver Davies 0a28c2a5b3 zsh: open nvim with Ctrl+v 2024-07-23 20:47:53 +01:00
Oliver Davies c2ead888dd Add notetaker script
Add a script to quickly and easily create and edit a daily note.
2024-07-23 15:19:47 +01:00
Oliver Davies e63150e278 Re-add GNOME to fix the thunar theme and see if it
...fixes autorandr
2024-07-22 11:56:17 +01:00
Oliver Davies 3ae1d8d51d Add pmutils 2024-07-21 13:11:22 +01:00
Oliver Davies 8c095288dc espanso: move matches into a separate file 2024-07-21 00:28:35 +01:00
Oliver Davies b64556e2ca Remove unused packages 2024-07-20 23:42:16 +01:00
Oliver Davies ce9cf2ea83 Add gpl and gps abbreviations
`gpl` expands to `git pull` and `gps` expands to `git push`.
2024-07-14 10:38:24 +01:00
Oliver Davies c258e6f70c Re-add lightdm as a display manager 2024-07-14 09:14:15 +01:00
Oliver Davies d2dbf29483 Don't use pkgs.firefox-wayland 2024-07-11 13:16:59 +01:00
Oliver Davies 537eb704e7 zsh: remove zsh-auto-notify plugin
`AUTO_NOTIFY_IGNORE` keeps being reset within a tmux session, so I'm
removing this for now until I have time to investigate further and
resolve.
2024-07-11 13:14:10 +01:00
Oliver Davies d2ae9d01ee git-instafix: set a default upstream branch 2024-07-11 02:58:46 +01:00
Oliver Davies a2ed026258 Use $REPOS variable consistently in scripts 2024-07-10 13:44:09 +01:00
Oliver Davies c8d21d28c1 Re-add backintime for Linux backups 2024-07-10 13:27:47 +01:00
Oliver Davies cc896e94b4 Add cpufrequtils to get cpufreq-info to check
...CPU performance
2024-07-10 13:27:47 +01:00
Oliver Davies 2220569643 Re-add gtk configuration, switch Thunar back to
...the dark theme
2024-07-10 12:34:20 +01:00
Oliver Davies 97ac64195c autorandr: fix automatically switching when a
...monitor is plugged or unplugged
2024-07-09 18:39:40 +01:00
Oliver Davies f0e3671e1d zsh: remove unused functions 2024-07-09 14:25:41 +01:00
Oliver Davies 5bf2253f98 git: organise extraConfig values 2024-07-09 14:25:00 +01:00
Oliver Davies 2fbf67507f git: use difftastic by default
As described in
https://difftastic.wilfred.me.uk/git.html#difftastic-by-default, the
`--ext-diff` option needs to be used for difftastic to be used on
commands other than `git diff`, such as `git show` or `git log`.

> This only applies to git diff. For other git commands, you still need
to specify --ext-diff, or use an alias as described above.

```shell
$ git diff
$ git show HEAD --ext-diff
$ git log -p --ext-diff
```

> Conversely, if you need to copy/paste a diff in the standard diff
format, you can use git diff --no-ext-diff.
2024-07-09 14:15:46 +01:00
Oliver Davies c06fb20115 git: use difftastic 2024-07-09 13:53:02 +01:00
Oliver Davies 42c1bc4045 zsh: remove just override 2024-07-09 12:01:08 +01:00
Oliver Davies 0610b0e865 t: search in ~/Documents 2024-07-09 07:07:51 +01:00
Oliver Davies 75731bda19 t: extract a function that finds and executes
...`.tmux` files
2024-07-09 07:07:44 +01:00
Oliver Davies ad796ad495 Remove unused files and references 2024-07-08 22:13:06 +01:00
Oliver Davies 84cff06cf3 Move autorandr configuration so it works
...automatically when docking or undocking
2024-07-08 22:12:28 +01:00
Oliver Davies 0c4167a464 zsh: don't automatically source zsh plugins
It seems this is done automatically.
2024-07-08 18:46:56 +01:00
Oliver Davies d1080e0cbc t: ignore the _archive directory 2024-07-08 18:43:32 +01:00
Oliver Davies d769885d8f Flatten Code directories 2024-07-06 02:21:40 +01:00
Oliver Davies e6e55d8af8 Remove build-configs
Caching permissions error when running `app:generate`.
2024-07-06 01:41:43 +01:00
Oliver Davies 53b8745b34 Update git-instafix to 0.2.7
v0.2.6 contained fixes for trunk-based development workflows that don't
require being on a separate branch.

https://github.com/quodlibetor/git-instafix/releases/tag/v0.2.6
2024-07-06 01:38:44 +01:00
Oliver Davies 0fc3c765e5 tmux: remove padding around words in the status
...bar
2024-07-05 23:10:56 +01:00
Oliver Davies fc8f930aef t: work for .ignored/.tmux files too 2024-07-05 19:43:55 +01:00
Oliver Davies d37e30e67c git: ignore .ddev/providers 2024-07-05 15:12:06 +01:00
Oliver Davies b636f365ca tmux: remove tmuxinator 2024-07-03 09:08:47 +01:00
Oliver Davies b11055fd8e zsh: configure auto-notify ignore settings 2024-07-03 09:08:47 +01:00
Oliver Davies b68d48603e zsh: extract aliases and abbreviations into
...separate files
2024-06-30 14:22:57 +01:00
Oliver Davies 0ec273cbb4 zsh: fix gs alias for git status 2024-06-29 20:51:22 +01:00
Oliver Davies 53423ccdbf zsh: add zsh-auto-notify plugin
Shows notifications when long running tasks are completed.

See https://github.com/MichaelAquilina/zsh-auto-notify.
2024-06-29 20:47:41 +01:00
Oliver Davies 0df5f17dae zsh: migrate to zsh-abbr
Migrate from `zsh-expand` to `zsh-abbr` as it seems more performant and
isn't giving me unwanted expansions, such as when typing `run` within
this repository and it completing to something else.

Whilst Home Manager does have `programs.zsh-attr`, there isn't an option
for setting global abbreviations that expand anywhere in the command,
which I need to replace global ZSH aliases such as `G` which expands to
`| grep`.

For now, I've installed `zsh-abbr` via zplug and am creating the
`user-abbreviations` file using Home Manager where I can use `attr -g`
for global aliases.

If or when support is added for global abbreviations in Home Manager,
I'll switch to `programs.zsh-abbr.abbreviations`.

`programs.zsh.shellAliases` is still used for aliases that shouldn't
expand, whereas everything else has been moved to abbreviations.
2024-06-25 12:43:30 +01:00
Oliver Davies d277199c23 services.xserver.displayManager is now
...`services.displayManager`
2024-06-25 07:04:26 +01:00
Oliver Davies 3092cafb20 tmux: make the status bar transparent 2024-06-24 22:36:48 +01:00
Oliver Davies b3b96c3163 Add navigation aliases 2024-06-19 22:04:51 +01:00
Oliver Davies 5ba78f110a Configure starship prompt
Based on the Plain Text present.

https://starship.rs/presets/plain-text
2024-06-19 22:04:51 +01:00
Oliver Davies f0163cd28c Revert "Reapply "Remove starship""
This reverts commit 7c06364329.
2024-06-19 21:59:18 +01:00
Oliver Davies 1e14953314 Add git-instafix
As seen on
https://www.youtube.com/live/ik_d0dWYQgQ?si=XSNR00ovIgSu7Ent&t=6510,
`git-instafix` is a tool for quickly fix up an old commit using your
currently-staged changes.

https://github.com/quodlibetor/git-instafix
2024-06-19 08:07:02 +01:00
Oliver Davies 4ddd317c6c Add xdg-utils and wsl-open
Add `xdg-utils` to add functions like `xdg-open` to run commands such
as `mob timer open` and have them open a browser.

Also add `wsl-open` so this works within WSL.
2024-06-18 12:32:47 +01:00