This commit is contained in:
Barrett Ruth 2026-03-03 01:16:57 -05:00
parent 25b821a4fd
commit f871626e0a
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
6 changed files with 78 additions and 1 deletions

53
.github/workflows/quality.yaml vendored Normal file
View file

@ -0,0 +1,53 @@
name: quality
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
changes:
runs-on: ubuntu-latest
outputs:
nix: ${{ steps.changes.outputs.nix }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
nix:
- '**/*.nix'
- 'flake.lock'
- 'flake.nix'
nix-format:
name: Nix Format Check
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.nix == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
- run: nix fmt -- --ci
deadnix:
name: Deadnix Check
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.nix == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
- run: nix develop --command deadnix --fail .
statix:
name: Statix Check
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.nix == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
- run: nix develop --command statix check .

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
result result
.direnv/ .direnv/
.envrc
fonts/ fonts/

9
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,9 @@
repos:
- repo: local
hooks:
- id: nixfmt
name: nixfmt
entry: nix fmt -- --fail-on-change
language: system
files: \.nix$
pass_filenames: false

View file

@ -54,6 +54,7 @@ unbind ?; bind ? if -F '#{pane_in_mode}' { send-keys -X cancel } { copy-mode ; c
bind -T copy-mode-vi v send-keys -X begin-selection bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' bind -T copy-mode-vi y send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
# TODO: breaks all the time
bind -n DoubleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' bind -n DoubleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
bind -n TripleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-line \; run-shell -d 0.3 \; send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' bind -n TripleClick1Pane select-pane \; copy-mode -M \; send-keys -X select-line \; run-shell -d 0.3 \; send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
bind -T copy-mode-vi DoubleClick1Pane select-pane \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' \; send-keys -X clear-selection bind -T copy-mode-vi DoubleClick1Pane select-pane \; send-keys -X select-word \; run-shell -d 0.3 \; send-keys -X copy-pipe 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c' \; send-keys -X clear-selection

View file

@ -96,6 +96,19 @@
{ {
formatter.x86_64-linux = (mkPkgs "x86_64-linux" [ ]).nixfmt-tree; formatter.x86_64-linux = (mkPkgs "x86_64-linux" [ ]).nixfmt-tree;
devShells.x86_64-linux.default =
let
pkgs = mkPkgs "x86_64-linux" [ ];
in
pkgs.mkShell {
packages = [
pkgs.deadnix
pkgs.statix
pkgs.nixfmt
pkgs.pre-commit
];
};
nixosConfigurations.xps15 = nixpkgs.lib.nixosSystem { nixosConfigurations.xps15 = nixpkgs.lib.nixosSystem {
modules = [ modules = [
nixos-hardware.nixosModules.dell-xps-15-9500-nvidia nixos-hardware.nixosModules.dell-xps-15-9500-nvidia

View file

@ -171,7 +171,7 @@ in
interval = 1; interval = 1;
signal = 1; signal = 1;
on-click = "ctl audio sink"; on-click = "ctl audio sink";
on-click-right = "pgrep -f 'waybar.*slider' && pkill -f 'waybar.*slider' || (waybar -c ${config.xdg.configHome}/waybar/slider.json &)"; on-click-right = "pgrep -f 'waybar.*slider' && pkill -f 'waybar.*slider' || hyprctl dispatch exec 'waybar -c ${config.xdg.configHome}/waybar/slider.json'";
on-click-middle = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; pkill -RTMIN+1 waybar"; on-click-middle = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; pkill -RTMIN+1 waybar";
on-scroll-up = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ --limit 1.0; pkill -RTMIN+1 waybar"; on-scroll-up = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ --limit 1.0; pkill -RTMIN+1 waybar";
on-scroll-down = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; pkill -RTMIN+1 waybar"; on-scroll-down = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; pkill -RTMIN+1 waybar";