Commit graph

1884 commits

Author SHA1 Message Date
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 ac34ff2742 Update flake lock dependencies 2024-07-28 13:29:37 +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 960b354b31 awesome: change font size 2024-07-23 21:32:25 +01:00
Oliver Davies b661f78a28 awesome: remove s.mylayoutbox
It's not needed if I only have one layout option enabled.
2024-07-23 21:27:07 +01:00
Oliver Davies bc92eb0afb awesome: only use the tiled layout 2024-07-23 21:26:28 +01:00
Oliver Davies 0a28c2a5b3 zsh: open nvim with Ctrl+v 2024-07-23 20:47:53 +01:00
Oliver Davies 4d5e17c46f awesome: add a keybind to run notetaker in a
...floating window
2024-07-23 17:00:30 +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 c7ca1fd14c Remove nixedo host 2024-07-22 18:09:50 +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 9a84a3bcc1 Update flake lock dependencies 2024-07-20 23:41:29 +01:00
Oliver Davies a1065e8466 Update opdavies-nvim 2024-07-16 18:08:02 +01:00
Oliver Davies 6fa5a95636 Fix traefik repo path 2024-07-14 18:38:00 +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 2b157d1275 awesome: allow toggling the wibar with Mod+b 2024-07-10 22:48:24 +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 91aa0e0c0e Update opdavies-nvim 2024-07-10 09:32:28 +01:00
Oliver Davies d1e47d867e Update opdavies-nvim 2024-07-09 19:59:43 +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 590cb3ab40 Update opdavies-nvim 2024-07-09 18:39:05 +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 9677ef8ecd Replace justfile with run 2024-07-08 22:13:06 +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 b23d33586b Update opdavies-nvim 2024-07-08 16:53:43 +01:00
Oliver Davies d769885d8f Flatten Code directories 2024-07-06 02:21:40 +01:00
Oliver Davies 766a35d27e awesome: add space between keybindings 2024-07-06 02:21:40 +01:00
Oliver Davies c90b77f4a1 awesome: increase font size 2024-07-06 02:21:40 +01:00