Commit graph

215 commits

Author SHA1 Message Date
Oliver Davies 7c06364329 Reapply "Remove starship"
This reverts commit e4923e708e.
2024-06-09 20:55:21 +01:00
Oliver Davies f952e2d6b8 Refactor zsh configuration
* Move aliases into `programs.zsh.shellAliases` and
  `programs.shellGlobalAliases`.
* Use the `MenkeTechnologies/zsh-expand` plugin instead of using custom
  expansion code.

https://github.com/MenkeTechnologies/zsh-expand
2024-06-09 20:54:19 +01:00
Oliver Davies a87750cd30 Tweak performance and battery optimisation settings
Based on https://github.com/MatthewCroughan/nixcfg and other sources.
2024-06-09 20:51:48 +01:00
Oliver Davies 00d9a75c3e Change date format
Change the date format used by `i3status-rs`.
2024-06-09 01:51:18 +01:00
Oliver Davies e4923e708e Revert "Remove starship"
This reverts commit 90a1ca81aa.
2024-06-02 01:43:01 +01:00
Oliver Davies c8bc522268 Revert "Use fzf for searching zsh history"
This reverts commit 0bbd536e3e.
2024-06-01 14:38:55 +01:00
Oliver Davies a3bcd63b3d Add keybindings for controlling volume
Add keybindings for increasing and decreasing volume in mpv.
2024-05-31 19:46:47 +01:00
Oliver Davies a29372ef99 Try using wezterm as my default terminal 2024-05-31 19:43:51 +01:00
Oliver Davies 194289f9a6 Replace VLC with mpv 2024-05-31 16:30:35 +01:00
Oliver Davies 859d46781c Update kanshi.settings 2024-05-31 16:09:49 +01:00
Oliver Davies d515d5cc0f Rename kanshi.profiles to kanshi.settings
> trace: warning: opdavies profile: kanshi.profiles option is
> deprecated. Use kanshi.settings instead.
2024-05-24 15:36:22 +01:00
Oliver Davies 361412db61 Add wezterm
Add wezterm as another terminal option and to see how it compares to
Alacritty.
2024-05-24 15:29:00 +01:00
Oliver Davies fb4886be49 Add simple-http-server 2024-05-23 17:14:07 +01:00
Oliver Davies 323df5ca10 Add GNOME as a desktop manager, working with sway
...and wayland
2024-05-22 21:36:26 +01:00
Oliver Davies d9d04025dc Move Slack into NixOS configuration 2024-05-22 21:35:12 +01:00
Oliver Davies c8cc72b1ac Add build-configs from its derivation
It currently uses a local version of `build-configs`. I need to look
into how to get it to with Nix and a private GitHub repository.
2024-05-22 09:21:25 +01:00
Oliver Davies 395e92054e Add vss alias for sorting words in my spellfile
Automatically sort and update the words within my `spellfile` that's
used by Neovim.
2024-05-22 08:52:27 +01:00
Oliver Davies 504fb96771 Add swaybg
At the moment, it's not being run automatically when sway starts, so I
need to add it to my sway configuration.
2024-05-20 19:11:04 +01:00
Oliver Davies ab20c7de69 Consolidate Git aliases
Move the `update` alias into the Git namespace, so it's now `git
update`, and remove the others that I wasn't using.
2024-05-20 19:09:17 +01:00
Oliver Davies c4eaf38a9c Remove references to nixpkgs 23.11
As it's no longer used by kdenlive.
2024-05-19 16:02:39 +01:00
Oliver Davies 9da6ec88cc Update kdenlive 2024-05-19 16:00:21 +01:00
Oliver Davies f766a15616 Alias cat to bat 2024-05-15 13:49:05 +01:00
Oliver Davies 7b9e5c6cfc Add todo and til functions
Add helper functions to write text input into a `TODO.txt` or `TIL.txt`
file respectively.

Extracting this to a function means I'm not able to overwrite the
contents of a file by typing `echo "foo" > TODO.txt` or similar
accidentally and overwriting the entire file instead of appending to it.
2024-05-12 09:25:21 +02:00
Oliver Davies 56ca4cba12 Open copyq in floating windows, too 2024-05-11 07:57:28 +02:00
Oliver Davies 1a285c668c Open pavucontrol in a floating window
The `app_id` is found by running `swaymsg -t get_tree`.
2024-05-11 07:57:28 +02:00
Oliver Davies 475a2195c0 Configure lsd
See: https://github.com/lsd-rs/lsd
2024-05-11 01:55:59 +02:00
Oliver Davies de2ca55cac Add just globally
See: https://just.systems/man/en
2024-05-11 01:55:10 +02:00
Oliver Davies 0a5815c116 Add the git root command
Add the `git root` command shown by Greg in his YouTube video:

https://www.youtube.com/watch?v=C5aRtq-Rtbg
2024-05-09 23:57:05 +01:00
Oliver Davies 5d3f7ef58f Override just command
If a `.ignored/justfile` exists, e.g. for open-source projects I can't
commit a `justfile` to, use it by default.
2024-05-09 23:40:30 +01:00
Oliver Davies 634ed23325 Override the ttyper command with a function
Set values for the number of words and languages, as there isn't a word
setting to add to a `config.toml` file.

This is based on https://www.youtube.com/watch?v=C5aRtq-Rtbg by Greg
Hurrell.
2024-05-09 23:31:43 +01:00
Oliver Davies 0976d079e4 Fix copying from tmux to the system clipboard 2024-05-09 18:53:09 +01:00
Oliver Davies 78f810844b Add yt-dlp 2024-05-09 18:52:43 +01:00
Oliver Davies 88c61fe7ad Update monitor resolution 2024-05-09 13:55:11 +01:00
Oliver Davies d9bd5fa3bd Fix colours in tmux 2024-05-09 13:54:41 +01:00
Oliver Davies d1fc5b7fd2 Remove reference to autotiling 2024-05-09 12:59:29 +01:00
Oliver Davies c0516b872a Add ttyper 2024-05-09 12:56:39 +01:00
Oliver Davies 7118326ec4 Re-organise system packages
Move some desktop-specific packages to the desktop list.
2024-05-09 12:55:48 +01:00
Oliver Davies 5329b3534f Update sway configuration 2024-05-07 14:33:26 +01:00
Oliver Davies 874e5a750e Update background colours 2024-05-05 20:22:00 +01:00
Oliver Davies 8bd3e93888 Include .tmux.conf.local file if it exists 2024-05-05 20:21:13 +01:00
Oliver Davies c99f23be11 Source the zsh-fzf-history-search plugin 2024-05-05 11:55:58 +01:00
Oliver Davies 7beeb924f7 Move bin into my .local directory 2024-05-04 21:52:21 +01:00
Oliver Davies 90a1ca81aa Remove starship 2024-05-04 21:17:36 +01:00
Oliver Davies cb56b55f42 Set the default workspace 2024-05-04 20:06:42 +01:00
Oliver Davies e967b5b7fd Remove commented-out code 2024-05-04 20:05:01 +01:00
Oliver Davies 93f4cb09d7 Revert "Sway configuration"
This reverts commit f831574d9c.
2024-05-04 20:04:31 +01:00
Oliver Davies f831574d9c Sway configuration
- Remove commented-out code.
- Set colours.
- Set the default workspace.
2024-05-04 16:59:54 +01:00
Oliver Davies c93dbad0db Stop automatically assigning apps to workspaces 2024-05-04 12:03:09 +01:00
Oliver Davies 2835bcd6cd Make Prefix+W open the wiki directory 2024-05-02 17:30:14 +01:00
Oliver Davies 41167cf442 Move syncthing into its own module 2024-05-02 17:29:35 +01:00
Oliver Davies 3d8493f050 Add syncthing as a service 2024-05-02 12:54:05 +01:00
Oliver Davies b3d360e421 Run kanshi when reloading sway 2024-04-30 21:00:04 +01:00
Oliver Davies ba681a9cdf Allow for firewall connections to xdebug 2024-04-30 20:43:22 +01:00
Oliver Davies 95e527be22 Add vscode for testing xdebug 2024-04-30 08:46:09 +01:00
Oliver Davies 57e4f05d12 Add ddev and mkcert 2024-04-25 14:46:01 +01:00
Oliver Davies d4f347186d Use a regular git clone 2024-04-24 22:08:38 +01:00
Oliver Davies e28f2816ef Move ~/.config/bin to ~/bin 2024-04-23 23:08:36 +01:00
Oliver Davies 022fb2d986 Fix warnings 2024-04-23 22:56:39 +01:00
Oliver Davies 0bbd536e3e Use fzf for searching zsh history 2024-04-19 21:38:00 +01:00
Oliver Davies 0a54e63a16 Fix Bitbucket URL 2024-04-17 10:26:57 +01:00
Oliver Davies 39fa2a2fc5 Make clone work with HTTPS URL 2024-04-17 08:48:28 +01:00
Oliver Davies bbfdb0362d Add TODO for extracting the domain from HTTPS URLs 2024-04-17 07:41:56 +01:00
Oliver Davies c9b423c9a8 Fix repo path 2024-04-17 00:27:05 +01:00
Oliver Davies d0e42b602f Echo the git clone command before running it 2024-04-17 00:24:46 +01:00
Oliver Davies 51b6d6b8c5 Add a REPOS environment variable 2024-04-17 00:24:41 +01:00
Oliver Davies c0fabc4f20 Rename variable 2024-04-17 00:08:13 +01:00
Oliver Davies a1f4782b63 Use git bare-clone when cloning the repo 2024-04-17 00:07:42 +01:00
Oliver Davies a57d60e1b4 Fix GitLab and Bitbucket URLs
Remove GitLab and Bitbucket URLs when getting the user and repo name.
2024-04-16 23:04:42 +01:00
Oliver Davies d26ecee2ee Extract the remote URL from the repository URL 2024-04-16 18:06:30 +01:00
Oliver Davies 2074c748cb Create new sessions using bin/t 2024-04-16 18:02:36 +01:00
Oliver Davies 5a934bf843 Add clone ZSH function 2024-04-16 16:22:52 +01:00
Oliver Davies 757c8b6b22 Add atuin 2024-04-07 01:36:40 +01:00
Oliver Davies 97abe951e4 Enable smart gaps in Sway 2024-04-03 20:04:05 +01:00
Oliver Davies 8a4f0d3bf3 Use MesloLGSDZ Nerd Font Mono 2024-03-31 18:13:01 +01:00
Oliver Davies 4a10b04f8e Use Meslo font 2024-03-31 17:30:21 +01:00
Oliver Davies dd0f70a9e7 Re-enable autotiling with sway 2024-03-31 09:21:07 +01:00
Oliver Davies a704e11376 Add keybinding for thunar 2024-03-30 22:23:16 +00:00
Oliver Davies afe587d3a1 Switch awscli2 back to unstable 2024-03-30 22:22:39 +00:00
Oliver Davies e67424baa5 Extract PHP version variables 2024-03-30 20:00:37 +00:00
Oliver Davies f2db3d29f7 Enable tmuxinator
This is a potential replacement for my custom `.tmux` files.
2024-03-26 20:45:02 +00:00
Oliver Davies 8dc0e30556 Configure gtk 2024-03-26 00:16:48 +00:00
Oliver Davies e92cfa3b23 Switch to wayland and sway 2024-03-26 00:15:29 +00:00
Oliver Davies f6c366611e Fix awscli2 build error 2024-03-25 12:03:08 +00:00
Oliver Davies 6ab382053d Format with nixfmt 2024-03-25 11:55:12 +00:00
Oliver Davies 40d6b9285a Fix wsl2 configuration 2024-03-25 11:49:39 +00:00
Oliver Davies f44a2570ac Re-add autotiling 2024-03-22 20:43:49 +00:00
Oliver Davies a41ad883c2 Enable floating by default for Zoom windows 2024-03-22 18:27:17 +00:00
Oliver Davies ca27706226 Replace watchexec with entr
https://eradman.com/entrproject
2024-03-22 08:14:28 +00:00
Oliver Davies 15e485ea81 Remove Mod4+Tab keyboard from i3 configuration 2024-03-20 15:36:30 +00:00
Oliver Davies 0073585678 Remove lib for now 2024-03-19 17:16:19 +00:00
Oliver Davies 5ebe064a28 Simplify nixos-* justfile recipes
Make the hostname configurable for NixOS and remove the need to specify
the profile name when running `nixos-rebuild` commands as the hostname
can be used.
2024-03-19 00:13:01 +00:00
Oliver Davies a0b155ea8e Update autorandr configuration 2024-03-18 23:28:21 +00:00
Oliver Davies b1421c97e1 Format using nixfmt 2024-03-18 20:34:51 +00:00
Oliver Davies a33c74c580 Automatically prune unused Docker images 2024-03-18 00:44:00 +00:00
Oliver Davies 5ea676df95 Remove overridden i3 colours 2024-03-17 09:05:58 +00:00
Oliver Davies 105f88ff1e Replace relative paths with self 2024-03-17 00:28:38 +00:00
Oliver Davies 5e5e46922c Move monospace fonts into a theme 2024-03-17 00:28:00 +00:00
Oliver Davies 384da2a640 Make configuration more modular 2024-03-16 22:38:39 +00:00
Oliver Davies 288d2837eb Update lock file 2024-03-14 23:33:00 +00:00
Oliver Davies 310e52dec8 Add desktop apps
Pocket Casts, Spotify, Microsoft Teams, Todoist.
2024-03-14 23:23:04 +00:00
Oliver Davies b22ee35bb6 Remove lazygit configuration 2024-03-12 23:02:49 +00:00
Oliver Davies 506f99fdf1 Use a different email address for TfW codebases 2024-03-12 23:02:39 +00:00
Oliver Davies d14f0a8883 Refactor to remove system variable 2024-03-12 17:15:10 +00:00
Oliver Davies b5e831ef35 Add udev rules for using VIA/Vial
https://get.vial.today/manual/linux-udev.html#generalized-via-udev-rule
2024-03-09 20:36:45 +00:00
Oliver Davies 553d967bed Fix Kdenlive
Error when rendering a project.
2024-03-09 18:51:13 +00:00
Oliver Davies 561eefeea3 Remove neofetch 2024-03-05 15:01:46 +00:00
Oliver Davies 466cff1ad4 Fix wsl2 build 2024-03-04 11:22:46 +00:00
Oliver Davies fd45324727 Fix allowUnfree and add obsidian 2024-03-04 00:05:23 +00:00
Oliver Davies 9aa51a9446 git: include untracked files in stash 2024-03-02 23:42:15 +00:00
Oliver Davies 5dee369667 Add cachix 2024-03-01 23:26:36 +00:00
Oliver Davies d2e1024897 Changes after working Scott Chacon's FOSDEM talk
- https://blog.gitbutler.com/fosdem-git-talk
- https://www.youtube.com/watch?v=aolI_Rz0ZqY
2024-03-01 23:26:36 +00:00
Oliver Davies 2c088442a1 Remove hostname variable 2024-02-29 23:24:50 +00:00
Oliver Davies 49ac5097b5 Add lib/default.nix 2024-02-29 10:06:27 +00:00
Oliver Davies 2f6977bb82 Rename variables 2024-02-29 10:06:27 +00:00
Oliver Davies addad268e5 Rename system to lib 2024-02-29 08:24:01 +00:00