big module system implementation
This commit is contained in:
47
.scripts/forge-ssh.sh
Executable file
47
.scripts/forge-ssh.sh
Executable file
@@ -0,0 +1,47 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Get the original user's home directory and username
|
||||||
|
USER_HOME=$(eval echo ~${SUDO_USER:-$USER})
|
||||||
|
SSH_KEY="$USER_HOME/.ssh/id_ed25519"
|
||||||
|
|
||||||
|
MOUNT_POINT="$HOME/forge_mount"
|
||||||
|
REMOTE_SERVER="forge@167.172.100.32:/"
|
||||||
|
|
||||||
|
# Ensure SSH key has the correct permissions
|
||||||
|
if [ "$(stat -c %a "$SSH_KEY")" -ne 600 ]; then
|
||||||
|
echo "Warning: SSH key permissions are not secure (expected 600)."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create the mount point if it doesn't exist
|
||||||
|
mkdir -p "$MOUNT_POINT"
|
||||||
|
|
||||||
|
# Debugging: Print the SSHFS command before running it
|
||||||
|
echo "Running SSHFS with command:"
|
||||||
|
echo "sshfs -o IdentityFile=\"$SSH_KEY\" \"$REMOTE_SERVER\" \"$MOUNT_POINT\""
|
||||||
|
|
||||||
|
# Mount the remote server
|
||||||
|
if sshfs -o IdentityFile="$SSH_KEY" "$REMOTE_SERVER" "$MOUNT_POINT"; then
|
||||||
|
echo "SSHFS mount successful."
|
||||||
|
else
|
||||||
|
echo "SSHFS mount failed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if the mount was successful
|
||||||
|
if ! mountpoint -q "$MOUNT_POINT"; then
|
||||||
|
echo "Failed to mount $REMOTE_SERVER"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Successfully mounted $REMOTE_SERVER at $MOUNT_POINT"
|
||||||
|
|
||||||
|
# Change to the mounted directory
|
||||||
|
cd "$MOUNT_POINT" || {
|
||||||
|
echo "Failed to navigate to $MOUNT_POINT"
|
||||||
|
fusermount -u "$MOUNT_POINT"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# Keep the shell open to interact with the mounted directory
|
||||||
|
trap 'fusermount -u "$MOUNT_POINT"; exit' SIGINT SIGTERM
|
||||||
|
exec "${SHELL:-/bin/bash}"
|
||||||
205
flake.lock
generated
205
flake.lock
generated
@@ -1,10 +1,31 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"ags": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1721306136,
|
||||||
|
"narHash": "sha256-VKPsIGf3/a+RONBipx4lEE4LXG2sdMNkWQu22LNQItg=",
|
||||||
|
"owner": "Aylur",
|
||||||
|
"repo": "ags",
|
||||||
|
"rev": "344ea72cd3b8d4911f362fec34bce7d8fb37028c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Aylur",
|
||||||
|
"repo": "ags",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"anyrun": {
|
"anyrun": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"systems": "systems"
|
"systems": "systems_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721135360,
|
"lastModified": 1721135360,
|
||||||
@@ -40,11 +61,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722347739,
|
"lastModified": 1723405438,
|
||||||
"narHash": "sha256-rAoh+K6KG+b1DwSWtqRVocdojnH6nGk6q07mNltoUSM=",
|
"narHash": "sha256-bpmC2m7OhlDvqgQZdZ2jBLyeIkq/Jld3X4bqRAxBSp8=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "aquamarine",
|
"repo": "aquamarine",
|
||||||
"rev": "7c3565f9bedc7cb601cc0baa14792247e4dc1d5a",
|
"rev": "9312aa28271c91e5d67ecb9def527b2bbcff0e66",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -77,16 +98,16 @@
|
|||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"jovian": "jovian",
|
"jovian": "jovian",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"systems": "systems_2",
|
"systems": "systems_3",
|
||||||
"yafas": "yafas"
|
"yafas": "yafas"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723330979,
|
"lastModified": 1723531925,
|
||||||
"narHash": "sha256-OSwb8PTMfnK36trpBS2JShw5HiC2/c6ghT6CpzUJ/y0=",
|
"narHash": "sha256-QPETOkVNZwm3Zx0FRfkrPWScbc46I5QwIOdBmByYtKg=",
|
||||||
"rev": "e389756159d7ccfb7cf00645db5b86d94641718c",
|
"rev": "b8b1c616f8b869af7bce3179ad423e3d45b0d079",
|
||||||
"revCount": 1332,
|
"revCount": 1336,
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://api.flakehub.com/f/pinned/chaotic-cx/nyx/0.1.1332%2Brev-e389756159d7ccfb7cf00645db5b86d94641718c/01913e88-a178-7f95-b225-f95a10f0dba4/source.tar.gz"
|
"url": "https://api.flakehub.com/f/pinned/chaotic-cx/nyx/0.1.1336%2Brev-b8b1c616f8b869af7bce3179ad423e3d45b0d079/01914a8c-c7f9-75a8-a4f6-9bd0651d9e6f/source.tar.gz"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
@@ -158,11 +179,11 @@
|
|||||||
"rust-analyzer-src": "rust-analyzer-src"
|
"rust-analyzer-src": "rust-analyzer-src"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723185066,
|
"lastModified": 1723444276,
|
||||||
"narHash": "sha256-u7guFfIrfspwUp6/SEWCDhs2tVoE1fcgft0Fw7LdNEU=",
|
"narHash": "sha256-ErWXmB84hedrDmeaHOaFFfNShC21AopTfM4x4rlvk3c=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "fenix",
|
"repo": "fenix",
|
||||||
"rev": "d5f1b280af93acddbcce948d946bb5db2f8035fe",
|
"rev": "70c22198ab822aa93c92a7ec0933908b17131edd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -180,11 +201,11 @@
|
|||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "pkgs/firefox-addons",
|
"dir": "pkgs/firefox-addons",
|
||||||
"lastModified": 1723349009,
|
"lastModified": 1723867392,
|
||||||
"narHash": "sha256-nzdTzcDyD8JyQDy30g2rcsrpsN5Qp8CEhtJamKq9Tq8=",
|
"narHash": "sha256-tGb8HmrVx2zTBiRfZAbq/yFqx7M6HHkFRvjiNblG9JY=",
|
||||||
"owner": "rycee",
|
"owner": "rycee",
|
||||||
"repo": "nur-expressions",
|
"repo": "nur-expressions",
|
||||||
"rev": "ef2d6f05865029005b1e9821ba142935e86dc3fe",
|
"rev": "a264b9ef7ff744dc5a5ea717dd5dc324ea2f0884",
|
||||||
"type": "gitlab"
|
"type": "gitlab"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -205,11 +226,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723382313,
|
"lastModified": 1723897578,
|
||||||
"narHash": "sha256-7cB8t9jg02WKLAeoHiZpywVPscuqg4u18F396aamogg=",
|
"narHash": "sha256-8K7qxP5MLUt5LC/8UPlEGrzo6P3dRf8v8Y48C1ooM3w=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "flake-firefox-nightly",
|
"repo": "flake-firefox-nightly",
|
||||||
"rev": "5489a2d5a212c69f8126af908f82ddaf726a2903",
|
"rev": "c0673c288ad8fd55a0bd630b1560ad1811ba9e47",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -392,7 +413,7 @@
|
|||||||
},
|
},
|
||||||
"flake-utils_2": {
|
"flake-utils_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_3"
|
"systems": "systems_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710146030,
|
"lastModified": 1710146030,
|
||||||
@@ -430,7 +451,7 @@
|
|||||||
},
|
},
|
||||||
"flake-utils_4": {
|
"flake-utils_4": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_5"
|
"systems": "systems_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710146030,
|
"lastModified": 1710146030,
|
||||||
@@ -567,11 +588,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723015306,
|
"lastModified": 1723399884,
|
||||||
"narHash": "sha256-jQnFEtH20/OsDPpx71ntZzGdRlpXhUENSQCGTjn//NA=",
|
"narHash": "sha256-97wn0ihhGqfMb8WcUgzzkM/TuAxce2Gd20A8oiruju4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "b3d5ea65d88d67d4ec578ed11d4d2d51e3de525e",
|
"rev": "086f619dd991a4d355c07837448244029fc2d9ab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -588,11 +609,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723015306,
|
"lastModified": 1723399884,
|
||||||
"narHash": "sha256-jQnFEtH20/OsDPpx71ntZzGdRlpXhUENSQCGTjn//NA=",
|
"narHash": "sha256-97wn0ihhGqfMb8WcUgzzkM/TuAxce2Gd20A8oiruju4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "b3d5ea65d88d67d4ec578ed11d4d2d51e3de525e",
|
"rev": "086f619dd991a4d355c07837448244029fc2d9ab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -609,11 +630,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723015306,
|
"lastModified": 1723399884,
|
||||||
"narHash": "sha256-jQnFEtH20/OsDPpx71ntZzGdRlpXhUENSQCGTjn//NA=",
|
"narHash": "sha256-97wn0ihhGqfMb8WcUgzzkM/TuAxce2Gd20A8oiruju4=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "b3d5ea65d88d67d4ec578ed11d4d2d51e3de525e",
|
"rev": "086f619dd991a4d355c07837448244029fc2d9ab",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -638,11 +659,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1721330371,
|
"lastModified": 1722623071,
|
||||||
"narHash": "sha256-aYlHTWylczLt6ERJyg6E66Y/XSCbVL7leVcRuJmVbpI=",
|
"narHash": "sha256-sLADpVgebpCBFXkA1FlCXtvEPu1tdEsTfqK1hfeHySE=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprcursor",
|
"repo": "hyprcursor",
|
||||||
"rev": "4493a972b48f9c3014befbbf381ed5fff91a65dc",
|
"rev": "912d56025f03d41b1ad29510c423757b4379eb1c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -659,15 +680,15 @@
|
|||||||
"hyprutils": "hyprutils",
|
"hyprutils": "hyprutils",
|
||||||
"hyprwayland-scanner": "hyprwayland-scanner",
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"systems": "systems_4",
|
"systems": "systems_5",
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723322565,
|
"lastModified": 1723824059,
|
||||||
"narHash": "sha256-iwTi2QEc1H6s65Uv7V/Tro/vkvg8WCnpdjzX01mDp7g=",
|
"narHash": "sha256-3AebH/B40viTNVJpgiQkfptVe4aRTfyffa8rjUNB0pU=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "01ff5fdf6a00a9231bd3b56400d8bcab378c4257",
|
"rev": "c5feee1e357f3c3c59ebe406630601c627807963",
|
||||||
"revCount": 5076,
|
"revCount": 5098,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
@@ -800,11 +821,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722098849,
|
"lastModified": 1722869141,
|
||||||
"narHash": "sha256-D3wIZlBNh7LuZ0NaoCpY/Pvu+xHxIVtSN+KkWZYvvVs=",
|
"narHash": "sha256-0KU4qhyMp441qfwbirNg3+wbm489KnEjXOz2I/RbeFs=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprutils",
|
"repo": "hyprutils",
|
||||||
"rev": "5dcbbc1e3de40b2cecfd2007434d86e924468f1f",
|
"rev": "0252fd13e78e60fb0da512a212e56007515a49f7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -847,11 +868,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723016361,
|
"lastModified": 1723367191,
|
||||||
"narHash": "sha256-iEVCAOn7WUdJGrK2EW5hkfl4gBmYl5gVck+MSn6ba44=",
|
"narHash": "sha256-noi5tre7BLtxImN38jEHeVOtOG1Xu37sJFwHKSAPHjo=",
|
||||||
"owner": "Jovian-Experiments",
|
"owner": "Jovian-Experiments",
|
||||||
"repo": "Jovian-NixOS",
|
"repo": "Jovian-NixOS",
|
||||||
"rev": "fc3d12deef508a73c7beef4cd9bebe03acde4ed7",
|
"rev": "91178062f365b64eece94c5dff93e09b07e87d9d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -907,11 +928,11 @@
|
|||||||
"nixpkgs": "nixpkgs_5"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722846822,
|
"lastModified": 1723745278,
|
||||||
"narHash": "sha256-/6q7oH3ahod5BVW93s6ABZTrPC/mUjjjMJAxcqam1gs=",
|
"narHash": "sha256-MWb768ipDgFnnVGxtk754w4SDomGgPItye/k18EHAZM=",
|
||||||
"owner": "NotAShelf",
|
"owner": "NotAShelf",
|
||||||
"repo": "microfetch",
|
"repo": "microfetch",
|
||||||
"rev": "927f6077b4b78cd112bc6932aab5287edc413ce8",
|
"rev": "64ac7a6ef3a903959ffe4c9d621ec5451104de29",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -968,11 +989,11 @@
|
|||||||
"umu": "umu"
|
"umu": "umu"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723339533,
|
"lastModified": 1723857668,
|
||||||
"narHash": "sha256-WDjDc/5ghWcuD72Wm7UzR9YMe2wi2LCuU5vVFg183nY=",
|
"narHash": "sha256-DWOnhDHEAEsXypFF6gll56ouenyIqswZpWgDckUHT9Y=",
|
||||||
"owner": "fufexan",
|
"owner": "fufexan",
|
||||||
"repo": "nix-gaming",
|
"repo": "nix-gaming",
|
||||||
"rev": "e8ef080c3f3f307fd94c1e699be66abfcf6677f8",
|
"rev": "aaddd014658f1451c2f861b27e19a042c7c90dae",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1015,11 +1036,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723083542,
|
"lastModified": 1723688652,
|
||||||
"narHash": "sha256-Nkbb3j+P0zMqvZUlV6WbT5erHasZ14NW0TJS3Bb9dVY=",
|
"narHash": "sha256-yag+lCB908g2ZPIeRBu6EO2R2Kmx0JfFojoOrtKZa0E=",
|
||||||
"owner": "nixpak",
|
"owner": "nixpak",
|
||||||
"repo": "nixpak",
|
"repo": "nixpak",
|
||||||
"rev": "d36970c58794c90401617accae0eb48868e335e6",
|
"rev": "ebffe76fb837b03bc0d54c4eeba9837e7a0541d9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1061,11 +1082,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-small": {
|
"nixpkgs-small": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723316219,
|
"lastModified": 1723850757,
|
||||||
"narHash": "sha256-2B9qh8QBvw3kV/8cHc7ZJcrbVsRwP8wKjkwPXTSz76Y=",
|
"narHash": "sha256-Lqn8eyTjACro7a3ed3+cBbmxqMfZYG3Id9VpShdQWC4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bef98989a27429e1cb9e3d9c25701ba2da742af2",
|
"rev": "6845e6ff1ce315870e98b53b300fc5175ed73211",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1109,11 +1130,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722813957,
|
"lastModified": 1723362943,
|
||||||
"narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
|
"narHash": "sha256-dFZRVSgmJkyM0bkPpaYRtG/kRMRTorUIDj8BxoOt1T4=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa",
|
"rev": "a58bc8ad779655e790115244571758e8de055e3d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1125,11 +1146,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722185531,
|
"lastModified": 1723637854,
|
||||||
"narHash": "sha256-veKR07psFoJjINLC8RK4DiLniGGMgF3QMlS4tb74S6k=",
|
"narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "52ec9ac3b12395ad677e8b62106f0b98c1f8569d",
|
"rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1172,11 +1193,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_6": {
|
"nixpkgs_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723175592,
|
"lastModified": 1723637854,
|
||||||
"narHash": "sha256-M0xJ3FbDUc4fRZ84dPGx5VvgFsOzds77KiBMW/mMTnI=",
|
"narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5e0ca22929f3342b19569b21b2f3462f053e497b",
|
"rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1215,11 +1236,11 @@
|
|||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723323133,
|
"lastModified": 1723816538,
|
||||||
"narHash": "sha256-g3wit604jFhBvjDBziJgulDUXDl/ApafMXq7o7ioMxo=",
|
"narHash": "sha256-h37ltjdifkd7iLtMtBXSBBeYSTuBEKMW6ClFoC7nReQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "f13bdef0bc697261c51eab686c28c7e2e7b7db3c",
|
"rev": "00f32f0430f82c74919c72af84bc95bf5ae434e4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1237,11 +1258,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723134722,
|
"lastModified": 1723367906,
|
||||||
"narHash": "sha256-wknII7R6ewALIxIKYtqeahjUk/ZrFj1ZtSpNBaHDCyg=",
|
"narHash": "sha256-v1qA4WBGDI2uH/TVqRwuXSBP341W681psbzYJ8zrjog=",
|
||||||
"owner": "NuschtOS",
|
"owner": "NuschtOS",
|
||||||
"repo": "search",
|
"repo": "search",
|
||||||
"rev": "1016f4620e321c12ff1dbcd464e9de889e302d1c",
|
"rev": "6ca2c3ae05a915c160512bd41f6810f456c9b30d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1279,6 +1300,7 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"ags": "ags",
|
||||||
"anyrun": "anyrun",
|
"anyrun": "anyrun",
|
||||||
"chaotic": "chaotic",
|
"chaotic": "chaotic",
|
||||||
"firefox-addons": "firefox-addons",
|
"firefox-addons": "firefox-addons",
|
||||||
@@ -1299,17 +1321,17 @@
|
|||||||
"nixpkgs-small": "nixpkgs-small",
|
"nixpkgs-small": "nixpkgs-small",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"systems": "systems_6"
|
"systems": "systems_7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723124382,
|
"lastModified": 1723304838,
|
||||||
"narHash": "sha256-WdJYEBlc8qsif+y4qnkjaeEpDmOZhz8qA6i/2n1q2kw=",
|
"narHash": "sha256-xAxVDxuvCs8WWkrxVWjCiqxTkHhGj7sSppr1YMuEdT8=",
|
||||||
"owner": "rust-lang",
|
"owner": "rust-lang",
|
||||||
"repo": "rust-analyzer",
|
"repo": "rust-analyzer",
|
||||||
"rev": "dab022fb3127466e47e29e40769b11174b3e0ac3",
|
"rev": "0daeb5c0b05cfdf2101b0f078c27539099bf38e6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1348,11 +1370,11 @@
|
|||||||
"nixpkgs-stable": "nixpkgs-stable_2"
|
"nixpkgs-stable": "nixpkgs-stable_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1722897572,
|
"lastModified": 1723501126,
|
||||||
"narHash": "sha256-3m/iyyjCdRBF8xyehf59QlckIcmShyTesymSb+N4Ap4=",
|
"narHash": "sha256-N9IcHgj/p1+2Pvk8P4Zc1bfrMwld5PcosVA0nL6IGdE=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "8ae477955dfd9cbf5fa4eb82a8db8ddbb94e79d9",
|
"rev": "be0eec2d27563590194a9206f551a6f73d52fa34",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1392,6 +1414,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_3": {
|
"systems_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1689347949,
|
||||||
|
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default-linux",
|
||||||
|
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default-linux",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
@@ -1406,7 +1443,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_4": {
|
"systems_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689347949,
|
"lastModified": 1689347949,
|
||||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
||||||
@@ -1421,7 +1458,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_5": {
|
"systems_6": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1681028828,
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
@@ -1436,7 +1473,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems_6": {
|
"systems_7": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1689347949,
|
"lastModified": 1689347949,
|
||||||
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
||||||
@@ -1459,11 +1496,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1723303070,
|
"lastModified": 1723454642,
|
||||||
"narHash": "sha256-krGNVA30yptyRonohQ+i9cnK+CfCpedg6z3qzqVJcTs=",
|
"narHash": "sha256-S0Gvsenh0II7EAaoc9158ZB4vYyuycvMGKGxIbERNAM=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "treefmt-nix",
|
"repo": "treefmt-nix",
|
||||||
"rev": "14c092e0326de759e16b37535161b3cb9770cea3",
|
"rev": "349de7bc435bdff37785c2466f054ed1766173be",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
./home
|
./home
|
||||||
./hosts
|
./hosts
|
||||||
];
|
];
|
||||||
|
|
||||||
perSystem = {pkgs, ...}: {
|
perSystem = {pkgs, ...}: {
|
||||||
devShells = import ./system/nix/shell {inherit pkgs;};
|
devShells = import ./system/nix/shell {inherit pkgs;};
|
||||||
formatter = pkgs.alejandra;
|
formatter = pkgs.alejandra;
|
||||||
@@ -16,7 +17,7 @@
|
|||||||
packages.cleanup-boot = pkgs.buildFHSUserEnv {
|
packages.cleanup-boot = pkgs.buildFHSUserEnv {
|
||||||
name = "cleanup-boot";
|
name = "cleanup-boot";
|
||||||
targetPkgs = pkgs: [pkgs.bash];
|
targetPkgs = pkgs: [pkgs.bash];
|
||||||
runScript = ./.cleanup-boot.sh;
|
runScript = ./.scripts/cleanup-boot.sh;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -92,5 +93,9 @@
|
|||||||
url = "github:Mic92/sops-nix";
|
url = "github:Mic92/sops-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
ags = {
|
||||||
|
url = "github:Aylur/ags";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
imports = [
|
|
||||||
# shared apps
|
|
||||||
./neovim
|
|
||||||
./waybar
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
general = {
|
|
||||||
gaps_in = 2;
|
|
||||||
gaps_out = 4;
|
|
||||||
border_size = 3;
|
|
||||||
#col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
|
||||||
#col.inactive_border = rgba(595959aa)
|
|
||||||
"col.active_border" = "rgb(4c7a5d)"; # rgba(b16286ee) 45deg
|
|
||||||
"col.inactive_border" = "rgb(504945)";
|
|
||||||
layout = "dwindle";
|
|
||||||
allow_tearing = false;
|
|
||||||
resize_on_border = true;
|
|
||||||
};
|
|
||||||
decoration = {
|
|
||||||
rounding = 0;
|
|
||||||
blur = {
|
|
||||||
enabled = true;
|
|
||||||
size = 8;
|
|
||||||
passes = 1;
|
|
||||||
vibrancy = 0.1696;
|
|
||||||
};
|
|
||||||
drop_shadow = false;
|
|
||||||
shadow_range = 4;
|
|
||||||
shadow_render_power = 3;
|
|
||||||
# col.shadow = rgba(1a1a1aee)
|
|
||||||
};
|
|
||||||
animations = {
|
|
||||||
enabled = true;
|
|
||||||
bezier = [
|
|
||||||
"myBezier,0.05, 0.9, 0.1, 1.05"
|
|
||||||
];
|
|
||||||
animation = [
|
|
||||||
"windows, 1, 3, myBezier"
|
|
||||||
"windowsOut, 1, 3, default, popin 80%"
|
|
||||||
"border, 1, 3, default"
|
|
||||||
"borderangle, 1, 8, default"
|
|
||||||
"fade, 1, 7, default"
|
|
||||||
"workspaces, 1, 3, default"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
dwindle = {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
||||||
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true; # you probably want this
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{inputs, ...}: {
|
|
||||||
imports = [
|
|
||||||
inputs.hyprland.homeManagerModules.default
|
|
||||||
./appearance.nix
|
|
||||||
./inputs.nix
|
|
||||||
./keybinds.nix
|
|
||||||
./rules.nix
|
|
||||||
./startup.nix
|
|
||||||
];
|
|
||||||
config = {
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
systemd = {
|
|
||||||
variables = ["--all"];
|
|
||||||
extraCommands = [
|
|
||||||
"systemctl --user stop graphical-session.target"
|
|
||||||
"systemctl --user start hyprland-session.target"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
monitor = [
|
|
||||||
"DP-3, 2560x1440@143.86, auto, auto"
|
|
||||||
"eDP-1,1920x1200@60.02,auto,1"
|
|
||||||
];
|
|
||||||
env = [
|
|
||||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
|
||||||
];
|
|
||||||
|
|
||||||
input = {
|
|
||||||
follow_mouse = 1;
|
|
||||||
accel_profile = "flat";
|
|
||||||
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
|
||||||
|
|
||||||
touchpad = {
|
|
||||||
natural_scroll = true;
|
|
||||||
disable_while_typing = true;
|
|
||||||
clickfinger_behavior = true;
|
|
||||||
scroll_factor = 0.5;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# Desktop keyboard
|
|
||||||
device = [
|
|
||||||
{
|
|
||||||
name = "pfu-limited-hhkb-hybrid";
|
|
||||||
kb_layout = "hhkbse";
|
|
||||||
kb_options = "lv3:rwin_switch";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
name = "hhkb-hybrid_1-keyboard";
|
|
||||||
kb_layout = "hhkbse";
|
|
||||||
kb_options = "lv3:rwin_switch";
|
|
||||||
}
|
|
||||||
# Laptop keyboard
|
|
||||||
{
|
|
||||||
name = "at-translated-set-2-keyboard";
|
|
||||||
kb_layout = "se";
|
|
||||||
kb_options = "ctrl:swapcaps";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
gestures = {
|
|
||||||
workspace_swipe = true;
|
|
||||||
workspace_swipe_distance = 400;
|
|
||||||
workspace_swipe_fingers = 3;
|
|
||||||
workspace_swipe_cancel_ratio = 0.2;
|
|
||||||
workspace_swipe_min_speed_to_force = 5;
|
|
||||||
workspace_swipe_direction_lock = true;
|
|
||||||
workspace_swipe_direction_lock_threshold = 10;
|
|
||||||
workspace_swipe_create_new = true;
|
|
||||||
};
|
|
||||||
misc = {
|
|
||||||
vrr = 2;
|
|
||||||
mouse_move_enables_dpms = 1;
|
|
||||||
key_press_enables_dpms = 0;
|
|
||||||
force_default_wallpaper = 0;
|
|
||||||
disable_hyprland_logo = true;
|
|
||||||
disable_splash_rendering = true;
|
|
||||||
disable_autoreload = true;
|
|
||||||
};
|
|
||||||
xwayland = {
|
|
||||||
force_zero_scaling = false;
|
|
||||||
};
|
|
||||||
render = {
|
|
||||||
explicit_sync = 2;
|
|
||||||
explicit_sync_kms = 2;
|
|
||||||
direct_scanout = false;
|
|
||||||
};
|
|
||||||
# cursor = {
|
|
||||||
# no_hardware_cursors = true;
|
|
||||||
# no_break_fs_vrr = true;
|
|
||||||
# min_refresh_rate = 24;
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
# KEYBINDS
|
|
||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
"$terminal" = "kitty";
|
|
||||||
"$fileManager" = "thunar";
|
|
||||||
"$passwordManager" = "keepassxc";
|
|
||||||
"$menu" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --";
|
|
||||||
"$menuw" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --";
|
|
||||||
"$browser" = "firefox-nightly";
|
|
||||||
"$browserinc" = "firefox-nightly --private-window";
|
|
||||||
"$yazi" = "alacritty -e yazi";
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
||||||
"$mod" = "SUPER";
|
|
||||||
|
|
||||||
bind = [
|
|
||||||
# Custom binds
|
|
||||||
"$mod SHIFT, B, exec, pkill -SIGUSR2 waybar" # Reload waybar
|
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
||||||
"$mod, A, exec, pkill -SIGUSR1 waybar"
|
|
||||||
"$mod, T, exec, $terminal"
|
|
||||||
"$mod, W, exec, $browser"
|
|
||||||
"$mod, K, exec, $passwordManager"
|
|
||||||
"$mod SHIFT, W, exec, $browserinc"
|
|
||||||
"$mod, Q, killactive,"
|
|
||||||
#bind = $mod, M, exec, hyprctl dispatch exit
|
|
||||||
#bind = $mod, E, exec, $fileManager
|
|
||||||
"$mod, E, exec, $fileManager"
|
|
||||||
"$mod SHIFT, E, exec, $yazi"
|
|
||||||
"$mod, F, fullscreen,"
|
|
||||||
"$mod SHIFT, F, togglefloating,"
|
|
||||||
"$mod, SPACE, exec, $menu"
|
|
||||||
"$mod, P, pseudo," # dwindle
|
|
||||||
"$mod, J, togglesplit," # dwindle
|
|
||||||
"$mod, C, exec, hyprctl dispatch exec copyq toggle"
|
|
||||||
"$mod, TAB, exec, $menuw"
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
"$mod, left, movefocus, l"
|
|
||||||
"$mod, right, movefocus, r"
|
|
||||||
"$mod, up, movefocus, u"
|
|
||||||
"$mod, down, movefocus, d"
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
"$mod, 1, workspace, 1"
|
|
||||||
"$mod, 2, workspace, 2"
|
|
||||||
"$mod, 3, workspace, 3"
|
|
||||||
"$mod, 4, workspace, 4"
|
|
||||||
"$mod, 5, workspace, 5"
|
|
||||||
"$mod, 6, workspace, 6"
|
|
||||||
"$mod, 7, workspace, 7"
|
|
||||||
"$mod, 8, workspace, 8"
|
|
||||||
"$mod, 9, workspace, 9"
|
|
||||||
"$mod, 0, workspace, 10"
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
"$mod SHIFT, 1, movetoworkspace, 1"
|
|
||||||
"$mod SHIFT, 2, movetoworkspace, 2"
|
|
||||||
"$mod SHIFT, 3, movetoworkspace, 3"
|
|
||||||
"$mod SHIFT, 4, movetoworkspace, 4"
|
|
||||||
"$mod SHIFT, 5, movetoworkspace, 5"
|
|
||||||
"$mod SHIFT, 6, movetoworkspace, 6"
|
|
||||||
"$mod SHIFT, 7, movetoworkspace, 7"
|
|
||||||
"$mod SHIFT, 8, movetoworkspace, 8"
|
|
||||||
"$mod SHIFT, 9, movetoworkspace, 9"
|
|
||||||
"$mod SHIFT, 0, movetoworkspace, 10"
|
|
||||||
|
|
||||||
# Laptop controls
|
|
||||||
",XF86AudioLowerVolume, exec, pamixer -d 5"
|
|
||||||
",XF86AudioRaiseVolume, exec, pamixer -i 5"
|
|
||||||
",XF86AudioMute, exec, pamixer -m"
|
|
||||||
",XF86AudioMicMute, exec, pactl -- set-source-mute 0 toggle"
|
|
||||||
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
|
||||||
",XF86MonBrightnessUp, exec, brightnessctl s +10%"
|
|
||||||
|
|
||||||
"$mod, XF86MonBrightnessUp, exec, hyprctl dispatch dpms on"
|
|
||||||
"$mod, XF86MonBrightnessDown, exec, hyprctl dispatch dpms off"
|
|
||||||
|
|
||||||
# Screenshot a window
|
|
||||||
"$mod, F10, exec, hyprshot -m window"
|
|
||||||
# Screenshot a monitor
|
|
||||||
", F10, exec, hyprshot -m output"
|
|
||||||
# Screenshot a region
|
|
||||||
"$mod SHIFT, F10, exec, hyprshot -m region"
|
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
|
||||||
"$mod, S, togglespecialworkspace, magic"
|
|
||||||
"$mod SHIFT, S, movetoworkspace, special:magic"
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
# bind = $mod, mouse_down, workspace, e+1
|
|
||||||
# bind = $mod, mouse_up, workspace, e-1
|
|
||||||
];
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = [
|
|
||||||
"$mod, mouse:272, movewindow"
|
|
||||||
"$mod, mouse:273, resizewindow"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
# CALCURSE SETTINGS
|
|
||||||
windowrulev2 = [
|
|
||||||
"float,initialTitle:(floatcal)"
|
|
||||||
"size 843 650,initialTitle:(floatcal)"
|
|
||||||
"move 100%-w-20 40,initialTitle:(floatcal)"
|
|
||||||
#windowrulev2 = move 1708 32,class:(floatcal)
|
|
||||||
|
|
||||||
# RANGER/NNN SETTINGS
|
|
||||||
"float,class:(floatranger)"
|
|
||||||
"float,class:(floatnnn)"
|
|
||||||
#windowrulev2 = size 843 650,class:(floatranger)
|
|
||||||
#windowrulev2 = move 1708 32,class:(floatranger)
|
|
||||||
#windowrulev2 = move 1708 32;size 843 650;dimaround;float,class:^(kitty)$,title:^(kitty)$
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
||||||
"suppressevent maximize, class:.* # You'll probably like this."
|
|
||||||
#windowrulev2 = noshadow, floating:0
|
|
||||||
"float,class:^(org.keepassxc.KeePassXC)$"
|
|
||||||
"center,class:^(org.keepassxc.KeePassXC)$"
|
|
||||||
"float,class:^(imv)$"
|
|
||||||
"float,class:^(com.github.hluk.copyq)$"
|
|
||||||
"float,class:^(blueman-manager)$"
|
|
||||||
"center,class:^(nwg-look)$"
|
|
||||||
"float,class:^(nwg-look)$"
|
|
||||||
"float,class:^(Lxappearance)$"
|
|
||||||
"float,class:(pavucontrol)$"
|
|
||||||
"move 100%-w-20 40,class:(pavucontrol)$"
|
|
||||||
"float,class:^(polkit-gnome-authentication-agent-1)$"
|
|
||||||
"float,class:^(org.gnome.Calculator)$"
|
|
||||||
"size 741 585,class:(pavucontrol)$"
|
|
||||||
"float,class:^(cnst.test)$"
|
|
||||||
"float,class:^(org.corectrl.CoreCtrl)$"
|
|
||||||
"float,class:^(feh)$"
|
|
||||||
"float,class:^(com.example.gtk-adieux)$"
|
|
||||||
];
|
|
||||||
windowrule = [
|
|
||||||
"center, ^(xarchiver)$"
|
|
||||||
"float, ^(xarchiver)$"
|
|
||||||
"float, ^(org.gnome.FileRoller)$"
|
|
||||||
"float, ^(org.freedesktop.impl.portal.desktop.kde)$"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
exec-once = [
|
|
||||||
# STARTUP
|
|
||||||
# exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
|
||||||
"systemctl --user start polkit-gnome-authentication-agent-1"
|
|
||||||
# exec-once = lxqt-policykit-agent &
|
|
||||||
"waybar"
|
|
||||||
"pamixer --set-volume 50"
|
|
||||||
"blueman-applet & udiskie -Nt"
|
|
||||||
"nm-applet --indicator"
|
|
||||||
"mullvad-vpn"
|
|
||||||
# exec-once = swaybg -i ~/media/images/wallpaper.png
|
|
||||||
"wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+'"
|
|
||||||
# exec-once = hyprctl dispatch exec "sleep 4s && copyq --start-server"
|
|
||||||
"hyprctl dispatch exec 'sleep 5s && keepassxc'"
|
|
||||||
"hyprctl dispatch exec 'sleep 3s && solaar -w hide'"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
inputs,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
options = {
|
|
||||||
# Define an option to enable the `cnst` configuration
|
|
||||||
cnst.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Enable the cnst configuration";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Define an option to enable the `adam` configuration
|
|
||||||
adam.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Enable the adam configuration";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Define an option to enable the `toothpick` configuration
|
|
||||||
toothpick.enable = lib.mkOption {
|
|
||||||
type = lib.types.bool;
|
|
||||||
default = false;
|
|
||||||
description = "Enable the toothpick configuration";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = {
|
|
||||||
# Hyprland configuration shared across all users
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
|
|
||||||
systemd = {
|
|
||||||
variables = ["--all"];
|
|
||||||
extraCommands = [
|
|
||||||
"systemctl --user stop graphical-session.target"
|
|
||||||
"systemctl --user start hyprland-session.target"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Conditionally include configurations based on the enable flags
|
|
||||||
imports =
|
|
||||||
lib.optional config.cnst.enable ./cnst
|
|
||||||
++ lib.optional config.adam.enable ./adam
|
|
||||||
++ lib.optional config.toothpick.enable ./toothpick;
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
general = {
|
|
||||||
gaps_in = 2;
|
|
||||||
gaps_out = 4;
|
|
||||||
border_size = 3;
|
|
||||||
#col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
|
||||||
#col.inactive_border = rgba(595959aa)
|
|
||||||
"col.active_border" = "rgb(4c7a5d)"; # rgba(b16286ee) 45deg
|
|
||||||
"col.inactive_border" = "rgb(504945)";
|
|
||||||
layout = "dwindle";
|
|
||||||
allow_tearing = false;
|
|
||||||
resize_on_border = true;
|
|
||||||
};
|
|
||||||
decoration = {
|
|
||||||
rounding = 0;
|
|
||||||
blur = {
|
|
||||||
enabled = true;
|
|
||||||
size = 8;
|
|
||||||
passes = 1;
|
|
||||||
vibrancy = 0.1696;
|
|
||||||
};
|
|
||||||
drop_shadow = false;
|
|
||||||
shadow_range = 4;
|
|
||||||
shadow_render_power = 3;
|
|
||||||
# col.shadow = rgba(1a1a1aee)
|
|
||||||
};
|
|
||||||
animations = {
|
|
||||||
enabled = true;
|
|
||||||
bezier = [
|
|
||||||
"myBezier,0.05, 0.9, 0.1, 1.05"
|
|
||||||
];
|
|
||||||
animation = [
|
|
||||||
"windows, 1, 3, myBezier"
|
|
||||||
"windowsOut, 1, 3, default, popin 80%"
|
|
||||||
"border, 1, 3, default"
|
|
||||||
"borderangle, 1, 8, default"
|
|
||||||
"fade, 1, 7, default"
|
|
||||||
"workspaces, 1, 3, default"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
dwindle = {
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
||||||
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true; # you probably want this
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{inputs, ...}: {
|
|
||||||
imports = [
|
|
||||||
inputs.hyprland.homeManagerModules.default
|
|
||||||
./appearance.nix
|
|
||||||
./inputs.nix
|
|
||||||
./keybinds.nix
|
|
||||||
./rules.nix
|
|
||||||
./startup.nix
|
|
||||||
];
|
|
||||||
config = {
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
systemd = {
|
|
||||||
variables = ["--all"];
|
|
||||||
extraCommands = [
|
|
||||||
"systemctl --user stop graphical-session.target"
|
|
||||||
"systemctl --user start hyprland-session.target"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
monitor = [
|
|
||||||
"monitor=DVI-D-1,1920x1080@144,auto,1"
|
|
||||||
];
|
|
||||||
env = [
|
|
||||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
|
||||||
];
|
|
||||||
|
|
||||||
input = {
|
|
||||||
follow_mouse = 1;
|
|
||||||
accel_profile = "flat";
|
|
||||||
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
|
||||||
|
|
||||||
touchpad = {
|
|
||||||
natural_scroll = true;
|
|
||||||
disable_while_typing = true;
|
|
||||||
clickfinger_behavior = true;
|
|
||||||
scroll_factor = 0.5;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
# Desktop keyboard
|
|
||||||
device = [
|
|
||||||
{
|
|
||||||
name = "usb-hid-keyboard";
|
|
||||||
kb_layout = "se";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
gestures = {
|
|
||||||
workspace_swipe = true;
|
|
||||||
workspace_swipe_distance = 400;
|
|
||||||
workspace_swipe_fingers = 3;
|
|
||||||
workspace_swipe_cancel_ratio = 0.2;
|
|
||||||
workspace_swipe_min_speed_to_force = 5;
|
|
||||||
workspace_swipe_direction_lock = true;
|
|
||||||
workspace_swipe_direction_lock_threshold = 10;
|
|
||||||
workspace_swipe_create_new = true;
|
|
||||||
};
|
|
||||||
misc = {
|
|
||||||
vrr = 1;
|
|
||||||
mouse_move_enables_dpms = 1;
|
|
||||||
key_press_enables_dpms = 0;
|
|
||||||
force_default_wallpaper = 0;
|
|
||||||
disable_hyprland_logo = true;
|
|
||||||
disable_splash_rendering = true;
|
|
||||||
};
|
|
||||||
# xwayland {
|
|
||||||
# force_zero_scaling = true
|
|
||||||
# }
|
|
||||||
# cursor {
|
|
||||||
# no_hardware_cursors = true
|
|
||||||
# no_break_fs_vrr = true
|
|
||||||
# min_refresh_rate = 60
|
|
||||||
# }
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
# KEYBINDS
|
|
||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
"$terminal" = "foot";
|
|
||||||
"$fileManager" = "thunar";
|
|
||||||
"$passwordManager" = "keepassxc";
|
|
||||||
"$menu" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --";
|
|
||||||
"$menuw" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --";
|
|
||||||
"$browser" = "firefox-nightly";
|
|
||||||
"$browserinc" = "firefox-nightly --private-window";
|
|
||||||
"$ranger" = "rangerscript";
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
||||||
"$mod" = "ALT_L";
|
|
||||||
|
|
||||||
bind = [
|
|
||||||
# Custom binds
|
|
||||||
"$mod SHIFT, B, exec, pkill -SIGUSR2 waybar" # Reload waybar
|
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
||||||
"$mod, A, exec, pkill -SIGUSR1 waybar"
|
|
||||||
"$mod, T, exec, $terminal"
|
|
||||||
"$mod, W, exec, $browser"
|
|
||||||
"$mod, K, exec, $passwordManager"
|
|
||||||
"$mod SHIFT, W, exec, $browserinc"
|
|
||||||
"$mod, Q, killactive,"
|
|
||||||
#bind = $mod, M, exec, hyprctl dispatch exit
|
|
||||||
#bind = $mod, E, exec, $fileManager
|
|
||||||
"$mod, E, exec, $fileManager"
|
|
||||||
"$mod SHIFT, E, exec, $ranger"
|
|
||||||
"$mod, F, fullscreen,"
|
|
||||||
"$mod SHIFT, F, togglefloating,"
|
|
||||||
"$mod, SPACE, exec, $menu"
|
|
||||||
"$mod, P, pseudo," # dwindle
|
|
||||||
"$mod, J, togglesplit," # dwindle
|
|
||||||
"$mod, C, exec, hyprctl dispatch exec copyq toggle"
|
|
||||||
"$mod, TAB, exec, $menuw"
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
"$mod, left, movefocus, l"
|
|
||||||
"$mod, right, movefocus, r"
|
|
||||||
"$mod, up, movefocus, u"
|
|
||||||
"$mod, down, movefocus, d"
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
"$mod, 1, workspace, 1"
|
|
||||||
"$mod, 2, workspace, 2"
|
|
||||||
"$mod, 3, workspace, 3"
|
|
||||||
"$mod, 4, workspace, 4"
|
|
||||||
"$mod, 5, workspace, 5"
|
|
||||||
"$mod, 6, workspace, 6"
|
|
||||||
"$mod, 7, workspace, 7"
|
|
||||||
"$mod, 8, workspace, 8"
|
|
||||||
"$mod, 9, workspace, 9"
|
|
||||||
"$mod, 0, workspace, 10"
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
"$mod SHIFT, 1, movetoworkspace, 1"
|
|
||||||
"$mod SHIFT, 2, movetoworkspace, 2"
|
|
||||||
"$mod SHIFT, 3, movetoworkspace, 3"
|
|
||||||
"$mod SHIFT, 4, movetoworkspace, 4"
|
|
||||||
"$mod SHIFT, 5, movetoworkspace, 5"
|
|
||||||
"$mod SHIFT, 6, movetoworkspace, 6"
|
|
||||||
"$mod SHIFT, 7, movetoworkspace, 7"
|
|
||||||
"$mod SHIFT, 8, movetoworkspace, 8"
|
|
||||||
"$mod SHIFT, 9, movetoworkspace, 9"
|
|
||||||
"$mod SHIFT, 0, movetoworkspace, 10"
|
|
||||||
|
|
||||||
# Laptop controls
|
|
||||||
",XF86AudioLowerVolume, exec, pamixer -d 5"
|
|
||||||
",XF86AudioRaiseVolume, exec, pamixer -i 5"
|
|
||||||
",XF86AudioMute, exec, pamixer -m"
|
|
||||||
",XF86AudioMicMute, exec, pactl -- set-source-mute 0 toggle"
|
|
||||||
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
|
||||||
",XF86MonBrightnessUp, exec, brightnessctl s +10%"
|
|
||||||
|
|
||||||
"$mod, XF86MonBrightnessUp, exec, hyprctl dispatch dpms on"
|
|
||||||
"$mod, XF86MonBrightnessDown, exec, hyprctl dispatch dpms off"
|
|
||||||
|
|
||||||
# Screenshot a window
|
|
||||||
"$mod, F10, exec, hyprshot -m window"
|
|
||||||
# Screenshot a monitor
|
|
||||||
", F10, exec, hyprshot -m output"
|
|
||||||
# Screenshot a region
|
|
||||||
"$mod SHIFT, F10, exec, hyprshot -m region"
|
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
|
||||||
"$mod, S, togglespecialworkspace, magic"
|
|
||||||
"$mod SHIFT, S, movetoworkspace, special:magic"
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
# bind = $mod, mouse_down, workspace, e+1
|
|
||||||
# bind = $mod, mouse_up, workspace, e-1
|
|
||||||
];
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = [
|
|
||||||
"$mod, mouse:272, movewindow"
|
|
||||||
"$mod, mouse:273, resizewindow"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
# CALCURSE SETTINGS
|
|
||||||
windowrulev2 = [
|
|
||||||
"float,initialTitle:(floatcal)"
|
|
||||||
"size 843 650,initialTitle:(floatcal)"
|
|
||||||
"move 100%-w-20 40,initialTitle:(floatcal)"
|
|
||||||
#windowrulev2 = move 1708 32,class:(floatcal)
|
|
||||||
|
|
||||||
# RANGER/NNN SETTINGS
|
|
||||||
"float,class:(floatranger)"
|
|
||||||
"float,class:(floatnnn)"
|
|
||||||
#windowrulev2 = size 843 650,class:(floatranger)
|
|
||||||
#windowrulev2 = move 1708 32,class:(floatranger)
|
|
||||||
#windowrulev2 = move 1708 32;size 843 650;dimaround;float,class:^(kitty)$,title:^(kitty)$
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
||||||
"suppressevent maximize, class:.* # You'll probably like this."
|
|
||||||
#windowrulev2 = noshadow, floating:0
|
|
||||||
"float,class:^(org.keepassxc.KeePassXC)$"
|
|
||||||
"center,class:^(org.keepassxc.KeePassXC)$"
|
|
||||||
"float,class:^(imv)$"
|
|
||||||
"float,class:^(com.github.hluk.copyq)$"
|
|
||||||
"float,class:^(blueman-manager)$"
|
|
||||||
"center,class:^(nwg-look)$"
|
|
||||||
"float,class:^(nwg-look)$"
|
|
||||||
"float,class:^(Lxappearance)$"
|
|
||||||
"float,class:(pavucontrol)$"
|
|
||||||
"move 100%-w-20 40,class:(pavucontrol)$"
|
|
||||||
"float,class:^(polkit-gnome-authentication-agent-1)$"
|
|
||||||
"float,class:^(org.gnome.Calculator)$"
|
|
||||||
"size 741 585,class:(pavucontrol)$"
|
|
||||||
"float,class:^(cnst.test)$"
|
|
||||||
"float,class:^(org.corectrl.CoreCtrl)$"
|
|
||||||
"float,class:^(feh)$"
|
|
||||||
];
|
|
||||||
windowrule = [
|
|
||||||
"center, ^(xarchiver)$"
|
|
||||||
"float, ^(xarchiver)$"
|
|
||||||
"float, ^(org.gnome.FileRoller)$"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
{
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
|
||||||
exec-once = [
|
|
||||||
# STARTUP
|
|
||||||
# exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
|
||||||
"systemctl --user start polkit-gnome-authentication-agent-1"
|
|
||||||
# exec-once = lxqt-policykit-agent &
|
|
||||||
"waybar"
|
|
||||||
"pamixer --set-volume 50"
|
|
||||||
"blueman-applet & udiskie -Nt"
|
|
||||||
"nm-applet --indicator"
|
|
||||||
"mullvad-vpn"
|
|
||||||
# exec-once = swaybg -i ~/media/images/wallpaper.png
|
|
||||||
"wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+'"
|
|
||||||
# exec-once = hyprctl dispatch exec "sleep 4s && copyq --start-server"
|
|
||||||
"hyprctl dispatch exec 'sleep 5s && keepassxc'"
|
|
||||||
"hyprctl dispatch exec 'sleep 3s && solaar -w hide'"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
{inputs, ...}: {
|
|
||||||
imports = [
|
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
|
||||||
./autocommands.nix
|
|
||||||
./completion.nix
|
|
||||||
./keymappings.nix
|
|
||||||
./options.nix
|
|
||||||
./plugins
|
|
||||||
./todo.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
home.shellAliases.v = "nvim";
|
|
||||||
|
|
||||||
programs.nixvim = {
|
|
||||||
enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
|
|
||||||
viAlias = true;
|
|
||||||
vimAlias = true;
|
|
||||||
|
|
||||||
luaLoader.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{pkgs, ...}: {
|
|
||||||
programs.waybar = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.waybar;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -8,11 +8,8 @@
|
|||||||
|
|
||||||
# Define the shared imports
|
# Define the shared imports
|
||||||
sharedImports = [
|
sharedImports = [
|
||||||
./opt/browsers/firefox
|
./modules
|
||||||
./etc
|
./etc
|
||||||
./bin
|
|
||||||
./opt
|
|
||||||
./srv
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Define homeImports for each profile, including sharedImports
|
# Define homeImports for each profile, including sharedImports
|
||||||
@@ -20,26 +17,16 @@
|
|||||||
"cnst@cnix" =
|
"cnst@cnix" =
|
||||||
sharedImports
|
sharedImports
|
||||||
++ [
|
++ [
|
||||||
./bin/hyprland/cnst
|
|
||||||
./usr/share/shell/cnst
|
|
||||||
./usr/share/git/cnst
|
|
||||||
./opt/sops
|
|
||||||
./profiles/cnst
|
./profiles/cnst
|
||||||
];
|
];
|
||||||
"adam@adampad" =
|
"adam@adampad" =
|
||||||
sharedImports
|
sharedImports
|
||||||
++ [
|
++ [
|
||||||
./bin/hyprland/adam
|
|
||||||
./usr/share/shell/adam
|
|
||||||
./usr/share/git/cnst
|
|
||||||
./profiles/adam
|
./profiles/adam
|
||||||
];
|
];
|
||||||
"toothpick@toothpc" =
|
"toothpick@toothpc" =
|
||||||
sharedImports
|
sharedImports
|
||||||
++ [
|
++ [
|
||||||
./bin/hyprland/toothpick
|
|
||||||
./usr/share/git/toothpick
|
|
||||||
./usr/share/shell/toothpick
|
|
||||||
./profiles/toothpick
|
./profiles/toothpick
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
imports = [
|
imports = [
|
||||||
# shared imports
|
# shared imports
|
||||||
./dconf
|
./dconf
|
||||||
|
./polkit
|
||||||
./gtk
|
./gtk
|
||||||
|
./utility
|
||||||
./xdg
|
./xdg
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,5 +34,8 @@
|
|||||||
networkmanagerapplet # tray icon for NetworkManager
|
networkmanagerapplet # tray icon for NetworkManager
|
||||||
usbimager # write bootable usb images!
|
usbimager # write bootable usb images!
|
||||||
chatgpt-cli
|
chatgpt-cli
|
||||||
|
exiftool
|
||||||
|
libnotify
|
||||||
|
filezilla
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
25
home/modules/browsers/chromium/default.nix
Normal file
25
home/modules/browsers/chromium/default.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.browsers.chromium;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.browsers.chromium.enable = mkEnableOption "Enables chromium";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.ungoogled-chromium;
|
||||||
|
extensions = [
|
||||||
|
"gebbhagfogifgggkldgodflihgfeippi" # return youtube dislike
|
||||||
|
"mnjggcdmjocbbbhaepdhchncahnbgone" # sponsorblock for youtube
|
||||||
|
"ponfpcnoihfmfllpaingbgckeeldkhle" # enhancer for youtube
|
||||||
|
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
44
home/modules/browsers/firefox/default.nix
Normal file
44
home/modules/browsers/firefox/default.nix
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.browsers.firefox;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.browsers.firefox.enable = mkEnableOption "Enables firefox";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.firefox;
|
||||||
|
profiles = {
|
||||||
|
default = {
|
||||||
|
search = {
|
||||||
|
force = true;
|
||||||
|
default = "DuckDuckGo";
|
||||||
|
privateDefault = "DuckDuckGo";
|
||||||
|
order = ["DuckDuckGo" "Google"];
|
||||||
|
};
|
||||||
|
bookmarks = {};
|
||||||
|
extensions = with inputs.firefox-addons.packages.${pkgs.system}; [
|
||||||
|
ublock-origin
|
||||||
|
sponsorblock
|
||||||
|
clearurls
|
||||||
|
return-youtube-dislikes
|
||||||
|
# enhancer-for-youtube # unfree
|
||||||
|
];
|
||||||
|
settings = {
|
||||||
|
"apz.overscroll.enabled" = true;
|
||||||
|
"browser.aboutConfig.showWarning" = false;
|
||||||
|
"general.autoScroll" = true;
|
||||||
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
57
home/modules/comm/discord/default.nix
Normal file
57
home/modules/comm/discord/default.nix
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.comm.discord;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.comm.discord.enable = mkEnableOption "Enables discord";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = with pkgs; [vesktop];
|
||||||
|
|
||||||
|
xdg.configFile."vesktop/themes/base16.css".text =
|
||||||
|
/*
|
||||||
|
css
|
||||||
|
*/
|
||||||
|
''
|
||||||
|
/**
|
||||||
|
* @name Material Gruvbox
|
||||||
|
* @.
|
||||||
|
* @author Costeer
|
||||||
|
* @version 1.5.0
|
||||||
|
* @website https://github.com/Costeer
|
||||||
|
* @source https://github.com/Costeer/Gruvbox-Material-Themes
|
||||||
|
*/
|
||||||
|
|
||||||
|
@import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/DiscordRecolor/DiscordRecolor.css);
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--accentcolor: 137, 180, 130;
|
||||||
|
--accentcolor2: 211, 134, 155;
|
||||||
|
--linkcolor: 125, 174, 163;
|
||||||
|
--mentioncolor: 211, 134, 155;
|
||||||
|
--textbrightest: 221, 199, 161;
|
||||||
|
--textbrighter: 212, 190, 152;
|
||||||
|
--textbright: 168, 153, 132;
|
||||||
|
--textdark: 146, 131, 116;
|
||||||
|
--textdarker: 146, 131, 116;
|
||||||
|
--textdarkest: 80, 80, 80;
|
||||||
|
--font: Input Sans Narrow;
|
||||||
|
--main-font: Input Sans Narrow;
|
||||||
|
--code-font: Input Mono Compressed;
|
||||||
|
--backgroundaccent: 80, 73, 69;
|
||||||
|
--backgroundprimary: 60, 56, 54;
|
||||||
|
--backgroundsecondary: 50, 48, 47;
|
||||||
|
--backgroundsecondaryalt: 40, 40, 40;
|
||||||
|
--backgroundtertiary: 29, 32, 33;
|
||||||
|
--backgroundfloating: 20, 22, 23;
|
||||||
|
--settingsicons: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
35
home/modules/default.nix
Normal file
35
home/modules/default.nix
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{userModules, ...}: {
|
||||||
|
imports = [
|
||||||
|
"${userModules}/wm/hyprland"
|
||||||
|
"${userModules}/wm/utils/hypridle"
|
||||||
|
"${userModules}/wm/utils/hyprlock"
|
||||||
|
"${userModules}/wm/utils/hyprpaper"
|
||||||
|
|
||||||
|
"${userModules}/browsers/firefox"
|
||||||
|
"${userModules}/browsers/chromium"
|
||||||
|
|
||||||
|
"${userModules}/comm/discord"
|
||||||
|
|
||||||
|
"${userModules}/gaming/lutris"
|
||||||
|
"${userModules}/gaming/mangohud"
|
||||||
|
# "${userModules}/create"
|
||||||
|
"${userModules}/devtools/neovim"
|
||||||
|
"${userModules}/devtools/vscode"
|
||||||
|
# "${userModules}/media"
|
||||||
|
"${userModules}/terminal/alacritty"
|
||||||
|
"${userModules}/terminal/foot"
|
||||||
|
"${userModules}/terminal/kitty"
|
||||||
|
"${userModules}/terminal/zellij"
|
||||||
|
"${userModules}/userd/sops"
|
||||||
|
"${userModules}/userd/copyq"
|
||||||
|
"${userModules}/userd/mako"
|
||||||
|
"${userModules}/userd/udiskie"
|
||||||
|
# "${userModules}/userd"
|
||||||
|
"${userModules}/utils/ags"
|
||||||
|
"${userModules}/utils/anyrun"
|
||||||
|
"${userModules}/utils/rofi"
|
||||||
|
"${userModules}/utils/waybar"
|
||||||
|
"${userModules}/utils/yazi"
|
||||||
|
# "${userModules}/wm"
|
||||||
|
];
|
||||||
|
}
|
||||||
33
home/modules/devtools/neovim/default.nix
Normal file
33
home/modules/devtools/neovim/default.nix
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.devtools.neovim;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
./autocommands.nix
|
||||||
|
./completion.nix
|
||||||
|
./keymappings.nix
|
||||||
|
./options.nix
|
||||||
|
./plugins
|
||||||
|
./todo.nix
|
||||||
|
];
|
||||||
|
options = {
|
||||||
|
modules.devtools.neovim.enable = mkEnableOption "Enables neovim";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
|
||||||
|
luaLoader.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
17
home/modules/devtools/vscode/default.nix
Normal file
17
home/modules/devtools/vscode/default.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.devtools.vscode;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.devtools.vscode.enable = mkEnableOption "Enables vscode";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.vscode = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
25
home/modules/gaming/lutris/default.nix
Normal file
25
home/modules/gaming/lutris/default.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.gaming.lutris;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.gaming.lutris.enable = mkEnableOption "Enables lutris";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
home.packages = [
|
||||||
|
(pkgs.lutris.override {
|
||||||
|
extraPkgs = p: [
|
||||||
|
p.wineWowPackages.staging
|
||||||
|
p.pixman
|
||||||
|
p.libjpeg
|
||||||
|
p.gnome.zenity
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
20
home/modules/gaming/mangohud/default.nix
Normal file
20
home/modules/gaming/mangohud/default.nix
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.gaming.mangohud;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.gaming.mangohud.enable = mkEnableOption "Enables mangohud";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.mangohud = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
full = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
87
home/modules/terminal/alacritty/default.nix
Normal file
87
home/modules/terminal/alacritty/default.nix
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.terminal.alacritty;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.terminal.alacritty.enable = mkEnableOption "Enables firefox";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
# Default colors
|
||||||
|
colors.primary = {
|
||||||
|
background = "#282828";
|
||||||
|
foreground = "#d4be98";
|
||||||
|
};
|
||||||
|
colors = {
|
||||||
|
# Normal colors
|
||||||
|
normal = {
|
||||||
|
black = "#3c3836";
|
||||||
|
red = "#ea6962";
|
||||||
|
green = "#a9b665";
|
||||||
|
yellow = "#d8a657";
|
||||||
|
blue = "#7daea3";
|
||||||
|
magenta = "#d3869b";
|
||||||
|
cyan = "#89b482";
|
||||||
|
white = "#d4be98";
|
||||||
|
};
|
||||||
|
# Bright colors (same as normal colors)
|
||||||
|
bright = {
|
||||||
|
black = "#3c3836";
|
||||||
|
red = "#ea6962";
|
||||||
|
green = "#a9b665";
|
||||||
|
yellow = "#d8a657";
|
||||||
|
blue = "#7daea3";
|
||||||
|
magenta = "#d3869b";
|
||||||
|
cyan = "#89b482";
|
||||||
|
white = "#d4be98";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
font = {
|
||||||
|
size = 10;
|
||||||
|
normal = {
|
||||||
|
family = "Input Mono Compressed";
|
||||||
|
style = "Light";
|
||||||
|
};
|
||||||
|
bold = {
|
||||||
|
family = "Input Mono Compressed";
|
||||||
|
style = "Regular";
|
||||||
|
};
|
||||||
|
italic = {
|
||||||
|
family = "Input Mono Compressed";
|
||||||
|
style = "Italic";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
keyboard.bindings = [
|
||||||
|
{
|
||||||
|
action = "Copy";
|
||||||
|
key = "C";
|
||||||
|
mods = "Command";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
action = "Paste";
|
||||||
|
key = "V";
|
||||||
|
mods = "Command";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
window = {
|
||||||
|
dynamic_title = true;
|
||||||
|
opacity = 0.9;
|
||||||
|
padding = {
|
||||||
|
x = 5;
|
||||||
|
y = 5;
|
||||||
|
};
|
||||||
|
dimensions = {
|
||||||
|
columns = 120;
|
||||||
|
lines = 35;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
248
home/modules/terminal/foot/default.nix
Normal file
248
home/modules/terminal/foot/default.nix
Normal file
@@ -0,0 +1,248 @@
|
|||||||
|
{ pkgs
|
||||||
|
, config
|
||||||
|
, lib
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.terminal.foot;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
modules.terminal.foot.enable = mkEnableOption "Enables foot terminal";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.foot = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.foot;
|
||||||
|
settings = {
|
||||||
|
# -*- conf -*-
|
||||||
|
|
||||||
|
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
||||||
|
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
|
||||||
|
# login-shell=no
|
||||||
|
|
||||||
|
# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode
|
||||||
|
# title=foot
|
||||||
|
# locked-title=no
|
||||||
|
|
||||||
|
# font=monospace:size=8
|
||||||
|
# font-bold=<bold variant of regular font>
|
||||||
|
# font-italic=<italic variant of regular font>
|
||||||
|
# font-bold-italic=<bold+italic variant of regular font>
|
||||||
|
# font-size-adjustment=0.5
|
||||||
|
# line-height=<font metrics>
|
||||||
|
# letter-spacing=0
|
||||||
|
# horizontal-letter-offset=0
|
||||||
|
# vertical-letter-offset=0
|
||||||
|
# underline-offset=<font metrics>
|
||||||
|
# underline-thickness=<font underline thickness>
|
||||||
|
# box-drawings-uses-font-glyphs=no
|
||||||
|
# dpi-aware=no
|
||||||
|
|
||||||
|
# initial-window-size-pixels=700x500 # Or,
|
||||||
|
# initial-window-size-chars=<COLSxROWS>
|
||||||
|
# initial-window-mode=windowed
|
||||||
|
# pad=0x0 # optionally append 'center'
|
||||||
|
# resize-by-cells=yes
|
||||||
|
# resize-delay-ms=100
|
||||||
|
|
||||||
|
# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body}
|
||||||
|
|
||||||
|
# bold-text-in-bright=no
|
||||||
|
# word-delimiters=,│`|:"'()[]{}<>
|
||||||
|
# selection-target=primary
|
||||||
|
# workers=<number of logical CPUs>
|
||||||
|
# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is ‘libutempter’ (Linux)
|
||||||
|
# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ‘ulog’ (FreeBSD)
|
||||||
|
|
||||||
|
main = {
|
||||||
|
font = "Input Mono Compressed:size=12";
|
||||||
|
box-drawings-uses-font-glyphs = "yes";
|
||||||
|
dpi-aware = "no";
|
||||||
|
pad = "3x1";
|
||||||
|
term = "xterm-256color";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
# name=value
|
||||||
|
};
|
||||||
|
|
||||||
|
bell = {
|
||||||
|
urgent = "no";
|
||||||
|
notify = "no";
|
||||||
|
visual = "no";
|
||||||
|
command = "no";
|
||||||
|
command-focused = "no";
|
||||||
|
};
|
||||||
|
|
||||||
|
scrollback = {
|
||||||
|
lines = "100";
|
||||||
|
# multiplier=3.0
|
||||||
|
# indicator-position=relative
|
||||||
|
# indicator-format=""
|
||||||
|
};
|
||||||
|
|
||||||
|
url = {
|
||||||
|
# launch=xdg-open ${url}
|
||||||
|
# label-letters=sadfjklewcmpgh
|
||||||
|
# osc8-underline=url-mode
|
||||||
|
# protocols=http, https, ftp, ftps, file, gemini, gopher
|
||||||
|
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]
|
||||||
|
};
|
||||||
|
|
||||||
|
cursor = {
|
||||||
|
style = "block";
|
||||||
|
# color=<inverse foreground/background>
|
||||||
|
blink = "no";
|
||||||
|
# blink-rate=500
|
||||||
|
# beam-thickness=1.5
|
||||||
|
# underline-thickness=<font underline thickness>
|
||||||
|
};
|
||||||
|
|
||||||
|
mouse = {
|
||||||
|
hide-when-typing = "no";
|
||||||
|
# alternate-scroll-mode=yes
|
||||||
|
};
|
||||||
|
|
||||||
|
touch = {
|
||||||
|
# long-press-delay=400
|
||||||
|
};
|
||||||
|
|
||||||
|
colors = {
|
||||||
|
alpha = "0.9";
|
||||||
|
background = "282828";
|
||||||
|
foreground = "ebdbb2";
|
||||||
|
regular0 = "282828";
|
||||||
|
regular1 = "cc241d";
|
||||||
|
regular2 = "98971a";
|
||||||
|
regular3 = "d79921";
|
||||||
|
regular4 = "458588";
|
||||||
|
regular5 = "b16286";
|
||||||
|
regular6 = "689d6a";
|
||||||
|
regular7 = "a89984";
|
||||||
|
bright0 = "928374";
|
||||||
|
bright1 = "fb4934";
|
||||||
|
bright2 = "b8bb26";
|
||||||
|
bright3 = "fabd2f";
|
||||||
|
bright4 = "83a598";
|
||||||
|
bright5 = "d3869b";
|
||||||
|
bright6 = "8ec07c";
|
||||||
|
bright7 = "ebdbb2";
|
||||||
|
};
|
||||||
|
|
||||||
|
csd = {
|
||||||
|
# preferred=server
|
||||||
|
# size=26
|
||||||
|
# font=<primary font>
|
||||||
|
# color=<foreground color>
|
||||||
|
# hide-when-maximized=no
|
||||||
|
# double-click-to-maximize=yes
|
||||||
|
# border-width=0
|
||||||
|
# border-color=<csd.color>
|
||||||
|
# button-width=26
|
||||||
|
# button-color=<background color>
|
||||||
|
# button-minimize-color=<regular4>
|
||||||
|
# button-maximize-color=<regular2>
|
||||||
|
# button-close-color=<regular1>
|
||||||
|
};
|
||||||
|
|
||||||
|
key-bindings = {
|
||||||
|
# scrollback-up-page=Shift+Page_Up
|
||||||
|
# scrollback-up-half-page=none
|
||||||
|
# scrollback-up-line=none
|
||||||
|
# scrollback-down-page=Shift+Page_Down
|
||||||
|
# scrollback-down-half-page=none
|
||||||
|
# scrollback-down-line=none
|
||||||
|
# scrollback-home=none
|
||||||
|
# scrollback-end=none
|
||||||
|
# clipboard-copy=Control+Shift+c XF86Copy
|
||||||
|
# clipboard-paste=Control+Shift+v XF86Paste
|
||||||
|
# primary-paste=Shift+Insert
|
||||||
|
# search-start=Control+Shift+r
|
||||||
|
# font-increase=Control+plus Control+equal Control+KP_Add
|
||||||
|
# font-decrease=Control+minus Control+KP_Subtract
|
||||||
|
# font-reset=Control+0 Control+KP_0
|
||||||
|
# spawn-terminal=Control+Shift+n
|
||||||
|
# minimize=none
|
||||||
|
# maximize=none
|
||||||
|
# fullscreen=none
|
||||||
|
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||||
|
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||||
|
# pipe-selected=[xargs -r firefox] none
|
||||||
|
# pipe-command-output=[wl-copy] none # Copy last command's output to the clipboard
|
||||||
|
# show-urls-launch=Control+Shift+o
|
||||||
|
# show-urls-copy=none
|
||||||
|
# show-urls-persistent=none
|
||||||
|
# prompt-prev=Control+Shift+z
|
||||||
|
# prompt-next=Control+Shift+x
|
||||||
|
# unicode-input=Control+Shift+u
|
||||||
|
# noop=none
|
||||||
|
};
|
||||||
|
|
||||||
|
search-bindings = {
|
||||||
|
# cancel=Control+g Control+c Escape
|
||||||
|
# commit=Return
|
||||||
|
# find-prev=Control+r
|
||||||
|
# find-next=Control+s
|
||||||
|
# cursor-left=Left Control+b
|
||||||
|
# cursor-left-word=Control+Left Mod1+b
|
||||||
|
# cursor-right=Right Control+f
|
||||||
|
# cursor-right-word=Control+Right Mod1+f
|
||||||
|
# cursor-home=Home Control+a
|
||||||
|
# cursor-end=End Control+e
|
||||||
|
# delete-prev=BackSpace
|
||||||
|
# delete-prev-word=Mod1+BackSpace Control+BackSpace
|
||||||
|
# delete-next=Delete
|
||||||
|
# delete-next-word=Mod1+d Control+Delete
|
||||||
|
# extend-char=Shift+Right
|
||||||
|
# extend-to-word-boundary=Control+w Control+Shift+Right
|
||||||
|
# extend-to-next-whitespace=Control+Shift+w
|
||||||
|
# extend-line-down=Shift+Down
|
||||||
|
# extend-backward-char=Shift+Left
|
||||||
|
# extend-backward-to-word-boundary=Control+Shift+Left
|
||||||
|
# extend-backward-to-next-whitespace=none
|
||||||
|
# extend-line-up=Shift+Up
|
||||||
|
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
|
||||||
|
# primary-paste=Shift+Insert
|
||||||
|
# unicode-input=none
|
||||||
|
# quit=none
|
||||||
|
# scrollback-up-page=Shift+Page_Up
|
||||||
|
# scrollback-up-half-page=none
|
||||||
|
# scrollback-up-line=none
|
||||||
|
# scrollback-down-page=Shift+Page_Down
|
||||||
|
# scrollback-down-half-page=none
|
||||||
|
# scrollback-down-line=none
|
||||||
|
# scrollback-home=none
|
||||||
|
# scrollback-end=none
|
||||||
|
};
|
||||||
|
|
||||||
|
url-bindings = {
|
||||||
|
# cancel=Control+g Control+c Control+d Escape
|
||||||
|
# toggle-url-visible=t
|
||||||
|
};
|
||||||
|
|
||||||
|
text-bindings = {
|
||||||
|
# \x03=Mod4+c # Map Super+c -> Ctrl+c
|
||||||
|
};
|
||||||
|
|
||||||
|
mouse-bindings = {
|
||||||
|
# scrollback-up-mouse=BTN_BACK
|
||||||
|
# scrollback-down-mouse=BTN_FORWARD
|
||||||
|
# selection-override-modifiers=Shift
|
||||||
|
# primary-paste=BTN_MIDDLE
|
||||||
|
# select-begin=BTN_LEFT
|
||||||
|
# select-begin-block=Control+BTN_LEFT
|
||||||
|
# select-extend=BTN_RIGHT
|
||||||
|
# select-extend-character-wise=Control+BTN_RIGHT
|
||||||
|
# select-word=BTN_LEFT-2
|
||||||
|
# select-word-whitespace=Control+BTN_LEFT-2
|
||||||
|
# select-quote = BTN_LEFT-3
|
||||||
|
# select-row=BTN_LEFT-4
|
||||||
|
};
|
||||||
|
|
||||||
|
# vim: ft=dosini
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
107
home/modules/terminal/kitty/default.nix
Normal file
107
home/modules/terminal/kitty/default.nix
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.terminal.kitty;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
modules.terminal.kitty.enable = mkEnableOption "Enables kitty terminal";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
# include = "theme.conf";
|
||||||
|
enable_audio_bell = false;
|
||||||
|
open_url_with = "firefox-nightly";
|
||||||
|
font_family = "Input Mono Compressed Extra Light";
|
||||||
|
bold_font = "auto";
|
||||||
|
italic_font = "auto";
|
||||||
|
bold_italic_font = "auto";
|
||||||
|
font_size = "11.0";
|
||||||
|
cursor_blink_interval = 0;
|
||||||
|
copy_on_select = "clipboard";
|
||||||
|
background_opacity = "0.95";
|
||||||
|
background_blur = "32";
|
||||||
|
window_padding_width = 3;
|
||||||
|
# tab_bar_min_tabs = 1;
|
||||||
|
# tab_bar_edge = "bottom";
|
||||||
|
tab_bar_style = "separator";
|
||||||
|
tab_bar_margin_width = "0.0";
|
||||||
|
tab_bar_margin_height = "0.0 0.0";
|
||||||
|
active_tab_font_style = "normal";
|
||||||
|
inactive_tab_font_style = "normal";
|
||||||
|
# tab_title_max_length = 30;
|
||||||
|
# # colors
|
||||||
|
# active_tab_foreground = "#32302f";
|
||||||
|
# active_tab_background = "#282828";
|
||||||
|
# inactive_tab_foreground = "#282828";
|
||||||
|
# inactive_tab_background = "#504945";
|
||||||
|
tab_bar_background = "#504945";
|
||||||
|
tab_bar_min_tabs = 1;
|
||||||
|
tab_bar_edge = "bottom";
|
||||||
|
# tab_powerline_style = "slanted";
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
kitty_mod shift+ctrl
|
||||||
|
map kitty_mod+q close_tab
|
||||||
|
map ctrl+shift+c copy_to_clipboard
|
||||||
|
map ctrl+shift+v paste_from_clipboard
|
||||||
|
tab_separator ""
|
||||||
|
tab_title_template "{fmt.fg._504945}{fmt.bg.default}▓{fmt.fg._282828}{fmt.bg.default}{index}{fmt.fg._282828}{fmt.bg._504945} {title[:15] + (title[15:] and '…')} {fmt.fg._504945}{fmt.bg.default}▓ "
|
||||||
|
active_tab_title_template "{fmt.fg._282828}{fmt.bg.default}▓{fmt.fg._A89984}{fmt.bg._282828}{fmt.fg._A89984}{fmt.bg._282828} {title[:40] + (title[40:] and '…')} {fmt.fg._282828}{fmt.bg.default}▓ "
|
||||||
|
|
||||||
|
# vim:ft=kitty
|
||||||
|
## name: Gruvbox Material Dark Cnst
|
||||||
|
## author: Sainnhe Park
|
||||||
|
## license: MIT
|
||||||
|
## upstream: https://raw.githubusercontent.com/rsaihe/gruvbox-material-kitty/main/colors/gruvbox-material-dark-medium.conf
|
||||||
|
## blurb: A modified version of Gruvbox with softer contrasts
|
||||||
|
|
||||||
|
background #282828
|
||||||
|
foreground #d4be98
|
||||||
|
|
||||||
|
selection_background #d4be98
|
||||||
|
selection_foreground #282828
|
||||||
|
|
||||||
|
cursor #a89984
|
||||||
|
cursor_text_color background
|
||||||
|
|
||||||
|
# Black
|
||||||
|
color0 #665c54
|
||||||
|
color8 #928374
|
||||||
|
|
||||||
|
# Red
|
||||||
|
color1 #ea6962
|
||||||
|
color9 #ea6962
|
||||||
|
|
||||||
|
# Green
|
||||||
|
color2 #a9b665
|
||||||
|
color10 #a9b665
|
||||||
|
|
||||||
|
# Yellow
|
||||||
|
color3 #e78a4e
|
||||||
|
color11 #d8a657
|
||||||
|
|
||||||
|
# Blue
|
||||||
|
color4 #7daea3
|
||||||
|
color12 #7daea3
|
||||||
|
|
||||||
|
# Magenta
|
||||||
|
color5 #d3869b
|
||||||
|
color13 #d3869b
|
||||||
|
|
||||||
|
# Cyan
|
||||||
|
color6 #89b482
|
||||||
|
color14 #89b482
|
||||||
|
|
||||||
|
# White
|
||||||
|
color7 #d4be98
|
||||||
|
color15 #d4be98
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
89
home/modules/terminal/zellij/default.nix
Normal file
89
home/modules/terminal/zellij/default.nix
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.terminal.zellij;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.terminal.zellij.enable = mkEnableOption "Enables zellij";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.zellij = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = false;
|
||||||
|
};
|
||||||
|
home.shellAliases = {
|
||||||
|
zr = "zellij run --";
|
||||||
|
zrf = "zellij run --floating --";
|
||||||
|
ze = "zellij edit";
|
||||||
|
zef = "zellij edit --floating";
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."zellij/config.kdl".text = ''
|
||||||
|
default_layout "compact"
|
||||||
|
mouse_mode true
|
||||||
|
copy_on_select true
|
||||||
|
copy_command "wl-copy"
|
||||||
|
simplified_ui false
|
||||||
|
scrollback_editor "/home/cnst/.nix-profile/bin/nvim"
|
||||||
|
pane_frames true
|
||||||
|
on_force_close "detach"
|
||||||
|
|
||||||
|
ui {
|
||||||
|
pane_frames {
|
||||||
|
rounded_corners false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
keybinds {
|
||||||
|
normal {
|
||||||
|
bind "Alt m" {
|
||||||
|
LaunchPlugin "file:~/.config/zellij/plugins/monocle.wasm" {
|
||||||
|
in_place true
|
||||||
|
kiosk true
|
||||||
|
};
|
||||||
|
SwitchToMode "Normal"
|
||||||
|
}
|
||||||
|
bind "Ctrl f" {
|
||||||
|
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/monocle.wasm" {
|
||||||
|
floating true
|
||||||
|
}
|
||||||
|
SwitchToMode "Normal"
|
||||||
|
}
|
||||||
|
bind "Alt 1" { GoToTab 1;}
|
||||||
|
bind "Alt 2" { GoToTab 2;}
|
||||||
|
bind "Alt 3" { GoToTab 3;}
|
||||||
|
bind "Alt 4" { GoToTab 4;}
|
||||||
|
}
|
||||||
|
|
||||||
|
shared_except "locked" {
|
||||||
|
bind "Ctrl y" {
|
||||||
|
LaunchOrFocusPlugin "file:~/.config/zellij/plugins/room.wasm" {
|
||||||
|
floating true
|
||||||
|
ignore_case true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
unbind "Ctrl b" "Ctrl h" "Ctrl g" "Alt j"
|
||||||
|
}
|
||||||
|
|
||||||
|
themes {
|
||||||
|
gruvbox-dark {
|
||||||
|
bg "#282828"
|
||||||
|
fg "#D5C4A1"
|
||||||
|
black "#3C3836"
|
||||||
|
red "#CC241D"
|
||||||
|
green "#98971A"
|
||||||
|
yellow "#D79921"
|
||||||
|
blue "#458588"
|
||||||
|
magenta "#B16286"
|
||||||
|
cyan "#689D6A"
|
||||||
|
white "#FBF1C7"
|
||||||
|
orange "#D65D0E"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
17
home/modules/userd/copyq/default.nix
Normal file
17
home/modules/userd/copyq/default.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.userd.copyq;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.userd.copyq.enable = mkEnableOption "Enables copyq";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.copyq = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
39
home/modules/userd/mako/default.nix
Normal file
39
home/modules/userd/mako/default.nix
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.userd.mako;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.userd.mako.enable = mkEnableOption "Enables mako";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.mako = {
|
||||||
|
enable = true;
|
||||||
|
iconPath = "$HOME/.nix-profile/share/icons/Gruvbox-Plus-Dark";
|
||||||
|
font = "FiraCode Nerd Font Medium 12";
|
||||||
|
padding = "20";
|
||||||
|
margin = "10";
|
||||||
|
anchor = "top-right";
|
||||||
|
width = 400;
|
||||||
|
height = 150;
|
||||||
|
borderSize = 2;
|
||||||
|
defaultTimeout = 12000;
|
||||||
|
backgroundColor = "#3c3836dd";
|
||||||
|
borderColor = "#689d6add";
|
||||||
|
textColor = "#d5c4a1dd";
|
||||||
|
layer = "overlay";
|
||||||
|
extraConfig = ''
|
||||||
|
max-history=50
|
||||||
|
max-visible=4
|
||||||
|
outer-margin=25
|
||||||
|
icon-location=right
|
||||||
|
max-icon-size=48
|
||||||
|
[mode=do-not-disturb]
|
||||||
|
invisible=1
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -50,19 +50,25 @@
|
|||||||
};
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.userd.sops;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.sops-nix.homeManagerModules.sops
|
inputs.sops-nix.homeManagerModules.sops
|
||||||
];
|
];
|
||||||
|
options = {
|
||||||
sops = lib.mkMerge [
|
modules.userd.sops.enable = mkEnableOption "Enables sops home environment";
|
||||||
{
|
};
|
||||||
gnupg = {
|
config = mkIf cfg.enable {
|
||||||
home = "~/.gnupg";
|
sops = lib.mkMerge [
|
||||||
sshKeyPaths = [];
|
{
|
||||||
};
|
gnupg = {
|
||||||
}
|
home = "~/.gnupg";
|
||||||
defaultConfig
|
sshKeyPaths = [];
|
||||||
userSpecificConfig
|
};
|
||||||
];
|
}
|
||||||
|
defaultConfig
|
||||||
|
userSpecificConfig
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
19
home/modules/userd/udiskie/default.nix
Normal file
19
home/modules/userd/udiskie/default.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.userd.udiskie;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.userd.udiskie.enable = mkEnableOption "Enables udiskie";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
services.udiskie = {
|
||||||
|
enable = true;
|
||||||
|
tray = "always";
|
||||||
|
notify = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
57
home/modules/utils/ags/default.nix
Normal file
57
home/modules/utils/ags/default.nix
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
requiredDeps = with pkgs; [
|
||||||
|
bash
|
||||||
|
bun
|
||||||
|
coreutils
|
||||||
|
dart-sass
|
||||||
|
gawk
|
||||||
|
imagemagick
|
||||||
|
procps
|
||||||
|
ripgrep
|
||||||
|
util-linux
|
||||||
|
];
|
||||||
|
|
||||||
|
guiDeps = with pkgs; [
|
||||||
|
gnome.gnome-control-center
|
||||||
|
mission-center
|
||||||
|
overskride
|
||||||
|
wlogout
|
||||||
|
];
|
||||||
|
|
||||||
|
dependencies = requiredDeps ++ guiDeps;
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.utils.ags;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
inputs.ags.homeManagerModules.default
|
||||||
|
];
|
||||||
|
options = {
|
||||||
|
modules.utils.ags.enable = mkEnableOption "Enables ags";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.ags.enable = true;
|
||||||
|
|
||||||
|
systemd.user.services.ags = {
|
||||||
|
Unit = {
|
||||||
|
Description = "Aylur's Gtk Shell";
|
||||||
|
PartOf = [
|
||||||
|
"tray.target"
|
||||||
|
"graphical-session.target"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
|
Environment = "PATH=/run/wrappers/bin:${lib.makeBinPath dependencies}";
|
||||||
|
ExecStart = "${cfg.package}/bin/ags";
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
|
Install.WantedBy = ["graphical-session.target"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
23
home/modules/utils/anyrun/default.nix
Normal file
23
home/modules/utils/anyrun/default.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.utils.anyrun;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
inputs.anyrun.homeManagerModules.default
|
||||||
|
];
|
||||||
|
options = {
|
||||||
|
modules.utils.anyrun.enable = mkEnableOption "Enables anyrun";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.anyrun = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
#extraCss = builtins.readFile (./. + "/style-dark.css");
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
21
home/modules/utils/rofi/default.nix
Normal file
21
home/modules/utils/rofi/default.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.utils.rofi;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.utils.rofi.enable = mkEnableOption "Enables firefox";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.rofi = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.rofi-wayland-unwrapped;
|
||||||
|
configPath = "home/cnst/.config/rofi/config.rasi";
|
||||||
|
font = "Rec Mono Linear 11";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
19
home/modules/utils/waybar/default.nix
Normal file
19
home/modules/utils/waybar/default.nix
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.utils.waybar;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.utils.waybar.enable = mkEnableOption "Enables waybar";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.waybar;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
47
home/modules/utils/yazi/default.nix
Normal file
47
home/modules/utils/yazi/default.nix
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.utils.yazi;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
./theme
|
||||||
|
];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
modules.utils.yazi.enable = mkEnableOption "Enables yazi";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
programs.yazi = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
package = pkgs.yazi;
|
||||||
|
|
||||||
|
enableBashIntegration = config.programs.bash.enable;
|
||||||
|
enableZshIntegration = config.programs.zsh.enable;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
manager = {
|
||||||
|
layout = [1 4 3];
|
||||||
|
sort_by = "alphabetical";
|
||||||
|
sort_sensitive = true;
|
||||||
|
sort_reverse = false;
|
||||||
|
sort_dir_first = true;
|
||||||
|
linemode = "none";
|
||||||
|
show_hidden = false;
|
||||||
|
show_symlink = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
preview = {
|
||||||
|
tab_size = 2;
|
||||||
|
max_width = 600;
|
||||||
|
max_height = 900;
|
||||||
|
cache_dir = config.xdg.cacheHome;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
60
home/modules/wm/hyprland/cnst/appearance.nix
Normal file
60
home/modules/wm/hyprland/cnst/appearance.nix
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.wm.hyprland.cnst.appearance;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.cnst.appearance.enable = mkEnableOption "Enables appearance settings in Hyprland";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
general = {
|
||||||
|
gaps_in = 2;
|
||||||
|
gaps_out = 4;
|
||||||
|
border_size = 3;
|
||||||
|
#col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
|
#col.inactive_border = rgba(595959aa)
|
||||||
|
"col.active_border" = "rgb(4c7a5d)"; # rgba(b16286ee) 45deg
|
||||||
|
"col.inactive_border" = "rgb(504945)";
|
||||||
|
layout = "dwindle";
|
||||||
|
allow_tearing = false;
|
||||||
|
resize_on_border = true;
|
||||||
|
};
|
||||||
|
decoration = {
|
||||||
|
rounding = 0;
|
||||||
|
blur = {
|
||||||
|
enabled = true;
|
||||||
|
size = 8;
|
||||||
|
passes = 1;
|
||||||
|
vibrancy = 0.1696;
|
||||||
|
};
|
||||||
|
drop_shadow = false;
|
||||||
|
shadow_range = 4;
|
||||||
|
shadow_render_power = 3;
|
||||||
|
# col.shadow = rgba(1a1a1aee)
|
||||||
|
};
|
||||||
|
animations = {
|
||||||
|
enabled = true;
|
||||||
|
bezier = [
|
||||||
|
"myBezier,0.05, 0.9, 0.1, 1.05"
|
||||||
|
];
|
||||||
|
animation = [
|
||||||
|
"windows, 1, 3, myBezier"
|
||||||
|
"windowsOut, 1, 3, default, popin 80%"
|
||||||
|
"border, 1, 3, default"
|
||||||
|
"borderangle, 1, 8, default"
|
||||||
|
"fade, 1, 7, default"
|
||||||
|
"workspaces, 1, 3, default"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
dwindle = {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
|
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
|
preserve_split = true; # you probably want this
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
44
home/modules/wm/hyprland/cnst/default.nix
Normal file
44
home/modules/wm/hyprland/cnst/default.nix
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
userModules,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption mkDefault;
|
||||||
|
cfg = config.modules.wm.hyprland.cnst;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
"${userModules}/wm/hyprland/cnst/appearance.nix"
|
||||||
|
"${userModules}/wm/hyprland/cnst/inputs.nix"
|
||||||
|
"${userModules}/wm/hyprland/cnst/keybinds.nix"
|
||||||
|
"${userModules}/wm/hyprland/cnst/rules.nix"
|
||||||
|
"${userModules}/wm/hyprland/cnst/startup.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.cnst.enable = mkEnableOption "Enable Hyprland";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
modules.wm.hyprland.cnst = {
|
||||||
|
appearance.enable = mkDefault cfg.enable;
|
||||||
|
inputs.enable = mkDefault cfg.enable;
|
||||||
|
keybinds.enable = mkDefault cfg.enable;
|
||||||
|
rules.enable = mkDefault cfg.enable;
|
||||||
|
startup.enable = mkDefault cfg.enable;
|
||||||
|
};
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
package = inputs.hyprland.packages.${pkgs.system}.default;
|
||||||
|
systemd = {
|
||||||
|
variables = ["--all"];
|
||||||
|
extraCommands = [
|
||||||
|
"systemctl --user stop graphical-session.target"
|
||||||
|
"systemctl --user start hyprland-session.target"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
87
home/modules/wm/hyprland/cnst/inputs.nix
Normal file
87
home/modules/wm/hyprland/cnst/inputs.nix
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.wm.hyprland.cnst.inputs;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.cnst.inputs.enable = mkEnableOption "Enables input settings in Hyprland";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
monitor = [
|
||||||
|
"DP-3, 2560x1440@143.86, auto, auto"
|
||||||
|
"eDP-1,1920x1200@60.02,auto,1"
|
||||||
|
];
|
||||||
|
env = [
|
||||||
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||||
|
];
|
||||||
|
|
||||||
|
input = {
|
||||||
|
follow_mouse = 1;
|
||||||
|
accel_profile = "flat";
|
||||||
|
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
||||||
|
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = true;
|
||||||
|
disable_while_typing = true;
|
||||||
|
clickfinger_behavior = true;
|
||||||
|
scroll_factor = 0.5;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# Desktop keyboard
|
||||||
|
device = [
|
||||||
|
{
|
||||||
|
name = "pfu-limited-hhkb-hybrid";
|
||||||
|
kb_layout = "hhkbse";
|
||||||
|
kb_options = "lv3:rwin_switch";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "hhkb-hybrid_1-keyboard";
|
||||||
|
kb_layout = "hhkbse";
|
||||||
|
kb_options = "lv3:rwin_switch";
|
||||||
|
}
|
||||||
|
# Laptop keyboard
|
||||||
|
{
|
||||||
|
name = "at-translated-set-2-keyboard";
|
||||||
|
kb_layout = "se";
|
||||||
|
kb_options = "ctrl:swapcaps";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
gestures = {
|
||||||
|
workspace_swipe = true;
|
||||||
|
workspace_swipe_distance = 400;
|
||||||
|
workspace_swipe_fingers = 3;
|
||||||
|
workspace_swipe_cancel_ratio = 0.2;
|
||||||
|
workspace_swipe_min_speed_to_force = 5;
|
||||||
|
workspace_swipe_direction_lock = true;
|
||||||
|
workspace_swipe_direction_lock_threshold = 10;
|
||||||
|
workspace_swipe_create_new = true;
|
||||||
|
};
|
||||||
|
misc = {
|
||||||
|
vrr = 2;
|
||||||
|
mouse_move_enables_dpms = 1;
|
||||||
|
key_press_enables_dpms = 0;
|
||||||
|
force_default_wallpaper = 0;
|
||||||
|
disable_hyprland_logo = true;
|
||||||
|
disable_splash_rendering = true;
|
||||||
|
disable_autoreload = true;
|
||||||
|
};
|
||||||
|
xwayland = {
|
||||||
|
force_zero_scaling = false;
|
||||||
|
};
|
||||||
|
render = {
|
||||||
|
explicit_sync = 2;
|
||||||
|
explicit_sync_kms = 2;
|
||||||
|
direct_scanout = false;
|
||||||
|
};
|
||||||
|
# cursor = {
|
||||||
|
# no_hardware_cursors = true;
|
||||||
|
# no_break_fs_vrr = true;
|
||||||
|
# min_refresh_rate = 24;
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
116
home/modules/wm/hyprland/cnst/keybinds.nix
Normal file
116
home/modules/wm/hyprland/cnst/keybinds.nix
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.wm.hyprland.cnst.keybinds;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.cnst.keybinds.enable = mkEnableOption "Enables keybind settings in Hyprland";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
"$terminal" = "kitty";
|
||||||
|
"$fileManager" = "thunar";
|
||||||
|
"$passwordManager" = "keepassxc";
|
||||||
|
"$menu" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --";
|
||||||
|
"$menuw" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --";
|
||||||
|
"$browser" = "firefox";
|
||||||
|
"$browserinc" = "firefox --private-window";
|
||||||
|
"$yazi" = "alacritty -e yazi";
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
|
"$mod" = "SUPER";
|
||||||
|
|
||||||
|
bind = let
|
||||||
|
grimblast = lib.getExe pkgs.grimblast;
|
||||||
|
tesseract = lib.getExe pkgs.tesseract;
|
||||||
|
notify-send = lib.getExe' pkgs.libnotify "notify-send";
|
||||||
|
in [
|
||||||
|
# Custom binds
|
||||||
|
"$mod SHIFT, B, exec, pkill -SIGUSR2 waybar" # Reload waybar
|
||||||
|
|
||||||
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
|
"$mod, A, exec, pkill -SIGUSR1 waybar"
|
||||||
|
"$mod, T, exec, $terminal"
|
||||||
|
"$mod, W, exec, $browser"
|
||||||
|
"$mod, K, exec, $passwordManager"
|
||||||
|
"$mod SHIFT, W, exec, $browserinc"
|
||||||
|
"$mod, Q, killactive,"
|
||||||
|
#bind = $mod, M, exec, hyprctl dispatch exit
|
||||||
|
#bind = $mod, E, exec, $fileManager
|
||||||
|
"$mod, E, exec, $fileManager"
|
||||||
|
"$mod SHIFT, E, exec, $yazi"
|
||||||
|
"$mod, F, fullscreen,"
|
||||||
|
"$mod SHIFT, F, togglefloating,"
|
||||||
|
"$mod, SPACE, exec, $menu"
|
||||||
|
"$mod, P, pseudo," # dwindle
|
||||||
|
"$mod, J, togglesplit," # dwindle
|
||||||
|
"$mod, C, exec, hyprctl dispatch exec copyq toggle"
|
||||||
|
"$mod, TAB, exec, $menuw"
|
||||||
|
|
||||||
|
# Move focus with mainMod + arrow keys
|
||||||
|
"$mod, left, movefocus, l"
|
||||||
|
"$mod, right, movefocus, r"
|
||||||
|
"$mod, up, movefocus, u"
|
||||||
|
"$mod, down, movefocus, d"
|
||||||
|
|
||||||
|
# Switch workspaces with mainMod + [0-9]
|
||||||
|
"$mod, 1, workspace, 1"
|
||||||
|
"$mod, 2, workspace, 2"
|
||||||
|
"$mod, 3, workspace, 3"
|
||||||
|
"$mod, 4, workspace, 4"
|
||||||
|
"$mod, 5, workspace, 5"
|
||||||
|
"$mod, 6, workspace, 6"
|
||||||
|
"$mod, 7, workspace, 7"
|
||||||
|
"$mod, 8, workspace, 8"
|
||||||
|
"$mod, 9, workspace, 9"
|
||||||
|
"$mod, 0, workspace, 10"
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
"$mod SHIFT, 1, movetoworkspace, 1"
|
||||||
|
"$mod SHIFT, 2, movetoworkspace, 2"
|
||||||
|
"$mod SHIFT, 3, movetoworkspace, 3"
|
||||||
|
"$mod SHIFT, 4, movetoworkspace, 4"
|
||||||
|
"$mod SHIFT, 5, movetoworkspace, 5"
|
||||||
|
"$mod SHIFT, 6, movetoworkspace, 6"
|
||||||
|
"$mod SHIFT, 7, movetoworkspace, 7"
|
||||||
|
"$mod SHIFT, 8, movetoworkspace, 8"
|
||||||
|
"$mod SHIFT, 9, movetoworkspace, 9"
|
||||||
|
"$mod SHIFT, 0, movetoworkspace, 10"
|
||||||
|
|
||||||
|
# Laptop controls
|
||||||
|
",XF86AudioLowerVolume, exec, pamixer -d 5"
|
||||||
|
",XF86AudioRaiseVolume, exec, pamixer -i 5"
|
||||||
|
",XF86AudioMute, exec, pamixer -m"
|
||||||
|
",XF86AudioMicMute, exec, pactl -- set-source-mute 0 toggle"
|
||||||
|
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
||||||
|
",XF86MonBrightnessUp, exec, brightnessctl s +10%"
|
||||||
|
|
||||||
|
"$mod, XF86MonBrightnessUp, exec, hyprctl dispatch dpms on"
|
||||||
|
"$mod, XF86MonBrightnessDown, exec, hyprctl dispatch dpms off"
|
||||||
|
|
||||||
|
# Screenshotting
|
||||||
|
",Insert,exec,${grimblast} --notify --freeze copysave area"
|
||||||
|
"SHIFT,Insert,exec,${grimblast} --notify --freeze copysave output"
|
||||||
|
# To OCR
|
||||||
|
"ALT,Insert,exec,${grimblast} --freeze save area - | ${tesseract} - - | wl-copy && ${notify-send} -t 3000 'OCR result copied to buffer'"
|
||||||
|
|
||||||
|
# Example special workspace (scratchpad)
|
||||||
|
"$mod, S, togglespecialworkspace, magic"
|
||||||
|
"$mod SHIFT, S, movetoworkspace, special:magic"
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
# bind = $mod, mouse_down, workspace, e+1
|
||||||
|
# bind = $mod, mouse_up, workspace, e-1
|
||||||
|
];
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = [
|
||||||
|
"$mod, mouse:272, movewindow"
|
||||||
|
"$mod, mouse:273, resizewindow"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
56
home/modules/wm/hyprland/cnst/rules.nix
Normal file
56
home/modules/wm/hyprland/cnst/rules.nix
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.wm.hyprland.cnst.rules;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.cnst.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
# CALCURSE SETTINGS
|
||||||
|
windowrulev2 = [
|
||||||
|
"float,initialTitle:(floatcal)"
|
||||||
|
"size 843 650,initialTitle:(floatcal)"
|
||||||
|
"move 100%-w-20 40,initialTitle:(floatcal)"
|
||||||
|
#windowrulev2 = move 1708 32,class:(floatcal)
|
||||||
|
|
||||||
|
# RANGER/NNN SETTINGS
|
||||||
|
"float,class:(floatranger)"
|
||||||
|
"float,class:(floatnnn)"
|
||||||
|
#windowrulev2 = size 843 650,class:(floatranger)
|
||||||
|
#windowrulev2 = move 1708 32,class:(floatranger)
|
||||||
|
#windowrulev2 = move 1708 32;size 843 650;dimaround;float,class:^(kitty)$,title:^(kitty)$
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
|
"suppressevent maximize, class:.* # You'll probably like this."
|
||||||
|
#windowrulev2 = noshadow, floating:0
|
||||||
|
"float,class:^(org.keepassxc.KeePassXC)$"
|
||||||
|
"center,class:^(org.keepassxc.KeePassXC)$"
|
||||||
|
"float,class:^(imv)$"
|
||||||
|
"float,class:^(com.github.hluk.copyq)$"
|
||||||
|
"float,class:^(blueman-manager)$"
|
||||||
|
"center,class:^(nwg-look)$"
|
||||||
|
"float,class:^(nwg-look)$"
|
||||||
|
"float,class:^(Lxappearance)$"
|
||||||
|
"float,class:(pavucontrol)$"
|
||||||
|
"move 100%-w-20 40,class:(pavucontrol)$"
|
||||||
|
"float,class:^(polkit-gnome-authentication-agent-1)$"
|
||||||
|
"float,class:^(org.gnome.Calculator)$"
|
||||||
|
"size 741 585,class:(pavucontrol)$"
|
||||||
|
"float,class:^(cnst.test)$"
|
||||||
|
"float,class:^(org.corectrl.CoreCtrl)$"
|
||||||
|
"float,class:^(feh)$"
|
||||||
|
"float,class:^(com.example.gtk-adieux)$"
|
||||||
|
];
|
||||||
|
windowrule = [
|
||||||
|
"center, ^(xarchiver)$"
|
||||||
|
"float, ^(xarchiver)$"
|
||||||
|
"float, ^(org.gnome.FileRoller)$"
|
||||||
|
"float, ^(org.freedesktop.impl.portal.desktop.kde)$"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
32
home/modules/wm/hyprland/cnst/startup.nix
Normal file
32
home/modules/wm/hyprland/cnst/startup.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.wm.hyprland.cnst.startup;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.cnst.startup.enable = mkEnableOption "Enables startup settings in Hyprland";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
exec-once = [
|
||||||
|
# STARTUP
|
||||||
|
# exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
|
"systemctl --user start polkit-gnome-authentication-agent-1"
|
||||||
|
# exec-once = lxqt-policykit-agent &
|
||||||
|
"waybar"
|
||||||
|
"pamixer --set-volume 50"
|
||||||
|
"blueman-applet & udiskie -Nt"
|
||||||
|
"nm-applet --indicator"
|
||||||
|
"mullvad-vpn"
|
||||||
|
# exec-once = swaybg -i ~/media/images/wallpaper.png
|
||||||
|
"wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+'"
|
||||||
|
# exec-once = hyprctl dispatch exec "sleep 4s && copyq --start-server"
|
||||||
|
"hyprctl dispatch exec 'sleep 5s && keepassxc'"
|
||||||
|
"hyprctl dispatch exec 'sleep 3s && solaar -w hide'"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
home/modules/wm/hyprland/default.nix
Normal file
7
home/modules/wm/hyprland/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{userModules, ...}: {
|
||||||
|
imports = [
|
||||||
|
"${userModules}/wm/hyprland/cnst"
|
||||||
|
"${userModules}/wm/hyprland/toothpick"
|
||||||
|
# "${userModules}/wm/hyprland/adam"
|
||||||
|
];
|
||||||
|
}
|
||||||
60
home/modules/wm/hyprland/toothpick/appearance.nix
Normal file
60
home/modules/wm/hyprland/toothpick/appearance.nix
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.wm.hyprland.toothpick.appearance;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.toothpick.appearance.enable = mkEnableOption "Enables appearance settings in Hyprland";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
general = {
|
||||||
|
gaps_in = 2;
|
||||||
|
gaps_out = 4;
|
||||||
|
border_size = 3;
|
||||||
|
#col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
|
#col.inactive_border = rgba(595959aa)
|
||||||
|
"col.active_border" = "rgb(4c7a5d)"; # rgba(b16286ee) 45deg
|
||||||
|
"col.inactive_border" = "rgb(504945)";
|
||||||
|
layout = "dwindle";
|
||||||
|
allow_tearing = false;
|
||||||
|
resize_on_border = true;
|
||||||
|
};
|
||||||
|
decoration = {
|
||||||
|
rounding = 0;
|
||||||
|
blur = {
|
||||||
|
enabled = true;
|
||||||
|
size = 8;
|
||||||
|
passes = 1;
|
||||||
|
vibrancy = 0.1696;
|
||||||
|
};
|
||||||
|
drop_shadow = false;
|
||||||
|
shadow_range = 4;
|
||||||
|
shadow_render_power = 3;
|
||||||
|
# col.shadow = rgba(1a1a1aee)
|
||||||
|
};
|
||||||
|
animations = {
|
||||||
|
enabled = true;
|
||||||
|
bezier = [
|
||||||
|
"myBezier,0.05, 0.9, 0.1, 1.05"
|
||||||
|
];
|
||||||
|
animation = [
|
||||||
|
"windows, 1, 3, myBezier"
|
||||||
|
"windowsOut, 1, 3, default, popin 80%"
|
||||||
|
"border, 1, 3, default"
|
||||||
|
"borderangle, 1, 8, default"
|
||||||
|
"fade, 1, 7, default"
|
||||||
|
"workspaces, 1, 3, default"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
dwindle = {
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
|
pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
|
preserve_split = true; # you probably want this
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
44
home/modules/wm/hyprland/toothpick/default.nix
Normal file
44
home/modules/wm/hyprland/toothpick/default.nix
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
userModules,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption mkDefault;
|
||||||
|
cfg = config.modules.wm.hyprland.toothpick;
|
||||||
|
in {
|
||||||
|
imports = [
|
||||||
|
"${userModules}/wm/hyprland/toothpick/appearance.nix"
|
||||||
|
"${userModules}/wm/hyprland/toothpick/inputs.nix"
|
||||||
|
"${userModules}/wm/hyprland/toothpick/keybinds.nix"
|
||||||
|
"${userModules}/wm/hyprland/toothpick/rules.nix"
|
||||||
|
"${userModules}/wm/hyprland/toothpick/startup.nix"
|
||||||
|
];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.toothpick.enable = mkEnableOption "Enable Hyprland";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
modules.wm.hyprland.toothpick = {
|
||||||
|
appearance.enable = mkDefault cfg.enable;
|
||||||
|
inputs.enable = mkDefault cfg.enable;
|
||||||
|
keybinds.enable = mkDefault cfg.enable;
|
||||||
|
rules.enable = mkDefault cfg.enable;
|
||||||
|
startup.enable = mkDefault cfg.enable;
|
||||||
|
};
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
package = inputs.hyprland.packages.${pkgs.system}.default;
|
||||||
|
systemd = {
|
||||||
|
variables = ["--all"];
|
||||||
|
extraCommands = [
|
||||||
|
"systemctl --user stop graphical-session.target"
|
||||||
|
"systemctl --user start hyprland-session.target"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
73
home/modules/wm/hyprland/toothpick/inputs.nix
Normal file
73
home/modules/wm/hyprland/toothpick/inputs.nix
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.wm.hyprland.toothpick.inputs;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.toothpick.inputs.enable = mkEnableOption "Enables input settings in Hyprland";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
monitor = [
|
||||||
|
"monitor=DVI-D-1,1920x1080@144,auto,1"
|
||||||
|
];
|
||||||
|
env = [
|
||||||
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||||
|
];
|
||||||
|
|
||||||
|
input = {
|
||||||
|
follow_mouse = 1;
|
||||||
|
accel_profile = "flat";
|
||||||
|
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
||||||
|
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = true;
|
||||||
|
disable_while_typing = true;
|
||||||
|
clickfinger_behavior = true;
|
||||||
|
scroll_factor = 0.5;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
# Desktop keyboard
|
||||||
|
device = [
|
||||||
|
{
|
||||||
|
name = "usb-hid-keyboard";
|
||||||
|
kb_layout = "se";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
gestures = {
|
||||||
|
workspace_swipe = true;
|
||||||
|
workspace_swipe_distance = 400;
|
||||||
|
workspace_swipe_fingers = 3;
|
||||||
|
workspace_swipe_cancel_ratio = 0.2;
|
||||||
|
workspace_swipe_min_speed_to_force = 5;
|
||||||
|
workspace_swipe_direction_lock = true;
|
||||||
|
workspace_swipe_direction_lock_threshold = 10;
|
||||||
|
workspace_swipe_create_new = true;
|
||||||
|
};
|
||||||
|
misc = {
|
||||||
|
vrr = 2;
|
||||||
|
mouse_move_enables_dpms = 1;
|
||||||
|
key_press_enables_dpms = 0;
|
||||||
|
force_default_wallpaper = 0;
|
||||||
|
disable_hyprland_logo = true;
|
||||||
|
disable_splash_rendering = true;
|
||||||
|
};
|
||||||
|
xwayland = {
|
||||||
|
force_zero_scaling = false;
|
||||||
|
};
|
||||||
|
render = {
|
||||||
|
explicit_sync = 2;
|
||||||
|
explicit_sync_kms = 2;
|
||||||
|
direct_scanout = false;
|
||||||
|
};
|
||||||
|
cursor = {
|
||||||
|
no_hardware_cursors = true;
|
||||||
|
# no_break_fs_vrr = true;
|
||||||
|
# min_refresh_rate = 60;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
116
home/modules/wm/hyprland/toothpick/keybinds.nix
Normal file
116
home/modules/wm/hyprland/toothpick/keybinds.nix
Normal file
@@ -0,0 +1,116 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.wm.hyprland.toothpick.keybinds;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.toothpick.keybinds.enable = mkEnableOption "Enables keybind settings in Hyprland";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
"$terminal" = "foot";
|
||||||
|
"$fileManager" = "thunar";
|
||||||
|
"$passwordManager" = "keepassxc";
|
||||||
|
"$menu" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --";
|
||||||
|
"$menuw" = "pkill anyrun || anyrun | xargs hyprctl dispatch exec --";
|
||||||
|
"$browser" = "firefox";
|
||||||
|
"$browserinc" = "firefox --private-window";
|
||||||
|
"$ranger" = "rangerscript";
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||||
|
"$mod" = "ALT_L";
|
||||||
|
|
||||||
|
bind = let
|
||||||
|
grimblast = lib.getExe pkgs.grimblast;
|
||||||
|
tesseract = lib.getExe pkgs.tesseract;
|
||||||
|
notify-send = lib.getExe' pkgs.libnotify "notify-send";
|
||||||
|
in [
|
||||||
|
# Custom binds
|
||||||
|
"$mod SHIFT, B, exec, pkill -SIGUSR2 waybar" # Reload waybar
|
||||||
|
|
||||||
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
|
"$mod, A, exec, pkill -SIGUSR1 waybar"
|
||||||
|
"$mod, T, exec, $terminal"
|
||||||
|
"$mod, W, exec, $browser"
|
||||||
|
"$mod, K, exec, $passwordManager"
|
||||||
|
"$mod SHIFT, W, exec, $browserinc"
|
||||||
|
"$mod, Q, killactive,"
|
||||||
|
#bind = $mod, M, exec, hyprctl dispatch exit
|
||||||
|
#bind = $mod, E, exec, $fileManager
|
||||||
|
"$mod, E, exec, $fileManager"
|
||||||
|
"$mod SHIFT, E, exec, $ranger"
|
||||||
|
"$mod, F, fullscreen,"
|
||||||
|
"$mod SHIFT, F, togglefloating,"
|
||||||
|
"$mod, SPACE, exec, $menu"
|
||||||
|
"$mod, P, pseudo," # dwindle
|
||||||
|
"$mod, J, togglesplit," # dwindle
|
||||||
|
"$mod, C, exec, hyprctl dispatch exec copyq toggle"
|
||||||
|
"$mod, TAB, exec, $menuw"
|
||||||
|
|
||||||
|
# Move focus with mainMod + arrow keys
|
||||||
|
"$mod, left, movefocus, l"
|
||||||
|
"$mod, right, movefocus, r"
|
||||||
|
"$mod, up, movefocus, u"
|
||||||
|
"$mod, down, movefocus, d"
|
||||||
|
|
||||||
|
# Switch workspaces with mainMod + [0-9]
|
||||||
|
"$mod, 1, workspace, 1"
|
||||||
|
"$mod, 2, workspace, 2"
|
||||||
|
"$mod, 3, workspace, 3"
|
||||||
|
"$mod, 4, workspace, 4"
|
||||||
|
"$mod, 5, workspace, 5"
|
||||||
|
"$mod, 6, workspace, 6"
|
||||||
|
"$mod, 7, workspace, 7"
|
||||||
|
"$mod, 8, workspace, 8"
|
||||||
|
"$mod, 9, workspace, 9"
|
||||||
|
"$mod, 0, workspace, 10"
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
"$mod SHIFT, 1, movetoworkspace, 1"
|
||||||
|
"$mod SHIFT, 2, movetoworkspace, 2"
|
||||||
|
"$mod SHIFT, 3, movetoworkspace, 3"
|
||||||
|
"$mod SHIFT, 4, movetoworkspace, 4"
|
||||||
|
"$mod SHIFT, 5, movetoworkspace, 5"
|
||||||
|
"$mod SHIFT, 6, movetoworkspace, 6"
|
||||||
|
"$mod SHIFT, 7, movetoworkspace, 7"
|
||||||
|
"$mod SHIFT, 8, movetoworkspace, 8"
|
||||||
|
"$mod SHIFT, 9, movetoworkspace, 9"
|
||||||
|
"$mod SHIFT, 0, movetoworkspace, 10"
|
||||||
|
|
||||||
|
# Laptop controls
|
||||||
|
",XF86AudioLowerVolume, exec, pamixer -d 5"
|
||||||
|
",XF86AudioRaiseVolume, exec, pamixer -i 5"
|
||||||
|
",XF86AudioMute, exec, pamixer -m"
|
||||||
|
",XF86AudioMicMute, exec, pactl -- set-source-mute 0 toggle"
|
||||||
|
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
|
||||||
|
",XF86MonBrightnessUp, exec, brightnessctl s +10%"
|
||||||
|
|
||||||
|
"$mod, XF86MonBrightnessUp, exec, hyprctl dispatch dpms on"
|
||||||
|
"$mod, XF86MonBrightnessDown, exec, hyprctl dispatch dpms off"
|
||||||
|
|
||||||
|
# Screenshotting
|
||||||
|
",Print,exec,${grimblast} --notify --freeze copysave area"
|
||||||
|
"SHIFT,Print,exec,${grimblast} --notify --freeze copysave output"
|
||||||
|
# To OCR
|
||||||
|
"ALT,Print,exec,${grimblast} --freeze save area - | ${tesseract} - - | wl-copy && ${notify-send} -t 3000 'OCR result copied to buffer'"
|
||||||
|
|
||||||
|
# Example special workspace (scratchpad)
|
||||||
|
"$mod, S, togglespecialworkspace, magic"
|
||||||
|
"$mod SHIFT, S, movetoworkspace, special:magic"
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
# bind = $mod, mouse_down, workspace, e+1
|
||||||
|
# bind = $mod, mouse_up, workspace, e-1
|
||||||
|
];
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = [
|
||||||
|
"$mod, mouse:272, movewindow"
|
||||||
|
"$mod, mouse:273, resizewindow"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
53
home/modules/wm/hyprland/toothpick/rules.nix
Normal file
53
home/modules/wm/hyprland/toothpick/rules.nix
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
cfg = config.modules.wm.hyprland.toothpick.rules;
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
modules.wm.hyprland.toothpick.rules.enable = mkEnableOption "Enables window rule settings in Hyprland";
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
# CALCURSE SETTINGS
|
||||||
|
windowrulev2 = [
|
||||||
|
"float,initialTitle:(floatcal)"
|
||||||
|
"size 843 650,initialTitle:(floatcal)"
|
||||||
|
"move 100%-w-20 40,initialTitle:(floatcal)"
|
||||||
|
#windowrulev2 = move 1708 32,class:(floatcal)
|
||||||
|
|
||||||
|
# RANGER/NNN SETTINGS
|
||||||
|
"float,class:(floatranger)"
|
||||||
|
"float,class:(floatnnn)"
|
||||||
|
#windowrulev2 = size 843 650,class:(floatranger)
|
||||||
|
#windowrulev2 = move 1708 32,class:(floatranger)
|
||||||
|
#windowrulev2 = move 1708 32;size 843 650;dimaround;float,class:^(kitty)$,title:^(kitty)$
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
|
"suppressevent maximize, class:.* # You'll probably like this."
|
||||||
|
#windowrulev2 = noshadow, floating:0
|
||||||
|
"float,class:^(org.keepassxc.KeePassXC)$"
|
||||||
|
"center,class:^(org.keepassxc.KeePassXC)$"
|
||||||
|
"float,class:^(imv)$"
|
||||||
|
"float,class:^(com.github.hluk.copyq)$"
|
||||||
|
"float,class:^(blueman-manager)$"
|
||||||
|
"center,class:^(nwg-look)$"
|
||||||
|
"float,class:^(nwg-look)$"
|
||||||
|
"float,class:^(Lxappearance)$"
|
||||||
|
"float,class:(pavucontrol)$"
|
||||||
|
"move 100%-w-20 40,class:(pavucontrol)$"
|
||||||
|
"float,class:^(polkit-gnome-authentication-agent-1)$"
|
||||||
|
"float,class:^(org.gnome.Calculator)$"
|
||||||
|
"size 741 585,class:(pavucontrol)$"
|
||||||
|
"float,class:^(org.corectrl.CoreCtrl)$"
|
||||||
|
"float,class:^(feh)$"
|
||||||
|
];
|
||||||
|
windowrule = [
|
||||||
|
"center, ^(xarchiver)$"
|
||||||
|
"float, ^(xarchiver)$"
|
||||||
|
"float, ^(org.gnome.FileRoller)$"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user