Compare commits
66 Commits
a393b84c92
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d0afea3bf | |||
| 4eab3730be | |||
| 07d95c5255 | |||
| ddb412cdea | |||
| 5c29aeffc5 | |||
| f9dfd7ae1a | |||
| 34a8b4ffed | |||
| 93480fdf86 | |||
| f5605570e0 | |||
| 9d9e3570df | |||
| 8be54bb19b | |||
| b533415ab7 | |||
| 3b2fd0b3f4 | |||
| ef90d16de8 | |||
| 5222447894 | |||
| 8d9d8d4ca2 | |||
| f32ad388b2 | |||
| e1ff3e4624 | |||
| 1187753bb7 | |||
| dde5b26215 | |||
| 1db52368f7 | |||
| 9e9970f517 | |||
| 00df88dc0e | |||
| de09bd0179 | |||
| 2180d78dfc | |||
| 1cb0490c03 | |||
| 424dd06e18 | |||
| 17b23c8497 | |||
| ba6bb433b6 | |||
| c3120b819e | |||
| edcb1af2d9 | |||
| 0cc43ddbb5 | |||
| 3f4096dfe5 | |||
| 2b27db1bff | |||
| f9aafdc772 | |||
| 0568b5d256 | |||
| 76ed5e3b0a | |||
| 61a70a7c37 | |||
| cebb8d311d | |||
| 42d7bb5c6e | |||
| 0eb1751e41 | |||
| c995295397 | |||
| 448a482497 | |||
| 9bd0c2f190 | |||
| 283d757327 | |||
| 32c9cd7504 | |||
| fac419453e | |||
| b043028ec7 | |||
| 900eb52b17 | |||
| 89d705f414 | |||
| 34e5fbb417 | |||
| 0aa6df37cd | |||
| a185bd740d | |||
| bd81378c22 | |||
| 96c6f25c3c | |||
| 61a67cd51d | |||
| fe6ef8762e | |||
| c6c053585c | |||
| f3dcd108db | |||
| 8e8bb981e1 | |||
| 5000562333 | |||
| e2aad1b524 | |||
| bb383dcddb | |||
| d59434285a | |||
| e55f66e4fb | |||
| 7c3ff59a0f |
@@ -0,0 +1,2 @@
|
|||||||
|
.sops.yaml
|
||||||
|
todolist.md
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 Hadi
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -1,21 +1,169 @@
|
|||||||
# Nixy
|
<h1 align="center">
|
||||||
|
<img src="https://image.nostr.build/70ebe2b5183879d8c0ffa682cd0089e030ad01909678b242ed86449517eac3a5.png" width="100px" />
|
||||||
|
<br>
|
||||||
|
Nixy
|
||||||
|
<br>
|
||||||
|
<img src="https://image.nostr.build/aaf8cf0f3b9784c817f8cf328f19222db2e1886dfb89ae97de83ffa101d437b4.png" width="600px" /> <br>
|
||||||
|
<div align="center">
|
||||||
|
|
||||||
This is my dotfiles repo. It's a work in progress, and I'm still learning how to use nix.
|
<div align="center">
|
||||||
|
<p></p>
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=starship&logoColor=a158ff">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=github&logoColor=a158ff">
|
||||||
|
</a>
|
||||||
|
<a href="https://nixos.org">
|
||||||
|
<img src="https://img.shields.io/badge/NixOS-unstable-blue.svg?style=for-the-badge&labelColor=040409&logo=NixOS&logoColor=a158ff&color=a158ff">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/anotherhadi/nixy/blob/main/LICENSE">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&colorA=040409&colorB=a158ff&logo=unlicense&logoColor=a158ff&"/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
|
</h1>
|
||||||
|
|
||||||
Every things that you *must* change got a "CHANGEME" comment.
|
Hello there! This is my **NixOs (w/home-manager) dotfiles** repo. It's still a *work in progress*, and I'm still learning how to use nix.
|
||||||
You can search for it with ripgrep: `rg "CHANGEME"`
|
|
||||||
|
|
||||||
# TODOLIST
|
## Gallery
|
||||||
|
|
||||||
- [ ] Variable user & homeDir
|

|
||||||
- [ ] Settings fzf
|

|
||||||
- [ ] Nixvim Alpha config
|

|
||||||
- [ ] Scripts:
|

|
||||||
- [ ] Edit
|
|
||||||
- [ ] Rebuild
|
## Apps
|
||||||
- [ ] Update
|
|
||||||
- [ ] Garbage collector
|
<details>
|
||||||
- [ ] Ricing things
|
<summary>Click to expand</summary>
|
||||||
- [ ] Peaclock
|
|
||||||
- [ ] Find a tui app for white noises (does that exist ? If not, I'll build my own)
|
| Category | Software |
|
||||||
- [ ] Custom GTK & Qt Theme based on the colorscheme
|
|----------------|---------------|
|
||||||
|
| WM | Hyprland |
|
||||||
|
| | hyprlock |
|
||||||
|
| | hyprpaper |
|
||||||
|
| | hypridle |
|
||||||
|
| | wlogout |
|
||||||
|
| Bar | waybar |
|
||||||
|
| Terminal | kitty |
|
||||||
|
| Shell | zsh |
|
||||||
|
| | tmux |
|
||||||
|
| | starship |
|
||||||
|
| | bat |
|
||||||
|
| | eza |
|
||||||
|
| | zoxide |
|
||||||
|
| | fzf |
|
||||||
|
| Editor | nixvim |
|
||||||
|
| File manager | lf |
|
||||||
|
| | thunar |
|
||||||
|
| Browser | qutebrowser |
|
||||||
|
| Music | spicetify |
|
||||||
|
| Notifications | dunst |
|
||||||
|
| Launcher | wofi |
|
||||||
|
| DM | tuigreet |
|
||||||
|
| Secrets | sops-nix |
|
||||||
|
| Misc | lazygit |
|
||||||
|
| | neofetch |
|
||||||
|
| | cava |
|
||||||
|
| | ... |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Themes & Colors
|
||||||
|
|
||||||
|
Themes and colors are managed by the `home/themes` folder. You can copy the default `nixy.nix` theme and make your own.
|
||||||
|
|
||||||
|
To apply the theme to duckduckgo, follow the instructions in `$HOME/.config/duckduckgo-colorscheme.js`.
|
||||||
|
|
||||||
|
## Scripts
|
||||||
|
|
||||||
|
### Nix/NixOs shortcuts
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click to expand</summary>
|
||||||
|
|
||||||
|
- `nixy-edit`
|
||||||
|
- `nixy-rebuild`
|
||||||
|
- `nixy-update`
|
||||||
|
- `nixy-gc` # garbage collection
|
||||||
|
- `nixy-cb` # clean boot menu
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### Brightness control
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click to expand</summary>
|
||||||
|
|
||||||
|
- `brightness-up`
|
||||||
|
- `brightness-down`
|
||||||
|
- `brightness-change <up/down> <increment>`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### Sound control
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click to expand</summary>
|
||||||
|
|
||||||
|
- `sound-up`
|
||||||
|
- `sound-down`
|
||||||
|
- `sound-toggle`
|
||||||
|
- `sound-output`
|
||||||
|
- `sound-change <up/down/mute> <increment>`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### Caffeine
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click to expand</summary>
|
||||||
|
|
||||||
|
Caffeine is a simple script that toggles hypridle (disable suspend & screenlock).
|
||||||
|
|
||||||
|
- `caffeine` # Toggle caffeine
|
||||||
|
- `caffeine-status` # Return active/inactive
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### Night-Shift
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click to expand</summary>
|
||||||
|
|
||||||
|
Blue light filter, using wlsunset
|
||||||
|
|
||||||
|
- `night-shift-on`
|
||||||
|
- `night-shift-off`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
### Nerdfont FZF
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Click to expand</summary>
|
||||||
|
|
||||||
|
Nerdfont fzf is a quick way to search for nerdfont icons locally.
|
||||||
|
It will copy the selected icon to the clipboard.
|
||||||
|
|
||||||
|
- `nerdfont-fzf`
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
|
```
|
||||||
|
|
||||||
|
- Change the `variables.nix` file to match your configuration
|
||||||
|
- Remove the hardware module in flake.nix line 30
|
||||||
|
- Change the `nixos/configuration.nix` file to match your system
|
||||||
|
- Copy your `hardware-configuration.nix` file to the `nixos` folder
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
|
||||||
|
```
|
||||||
|
|||||||
@@ -33,11 +33,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710156081,
|
"lastModified": 1713532798,
|
||||||
"narHash": "sha256-4PMY6aumJi5dLFjBzF5O4flKXmadMNq3AGUHKYfchh0=",
|
"narHash": "sha256-wtBhsdMJA3Wa32Wtm1eeo84GejtI43pMrFrmwLXrsEc=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "devshell",
|
"repo": "devshell",
|
||||||
"rev": "bc68b058dc7e6d4d6befc4ec6c60082b6e844b7d",
|
"rev": "12e914740a25ea1891ec619bb53cf5e6ca922e40",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -84,11 +84,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709336216,
|
"lastModified": 1714641030,
|
||||||
"narHash": "sha256-Dt/wOWeW6Sqm11Yh+2+t0dfEWxoMxGBvv3JpIocFl9E=",
|
"narHash": "sha256-yzcRNDoyVP7+SCNX0wmuDju1NUCt8Dz9+lyUXEI0dbI=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2",
|
"rev": "e5d10a24b66c3ea8f150e47dfdb0416ab7c3390e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -97,6 +97,21 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flake-root": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1713493429,
|
||||||
|
"narHash": "sha256-ztz8JQkI08tjKnsTpfLqzWoKFQF4JGu2LRz8bkdnYUk=",
|
||||||
|
"owner": "srid",
|
||||||
|
"repo": "flake-root",
|
||||||
|
"rev": "bc748b93b86ee76e2032eecda33440ceb2532fcd",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "srid",
|
||||||
|
"repo": "flake-root",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
@@ -117,7 +132,7 @@
|
|||||||
},
|
},
|
||||||
"flake-utils_2": {
|
"flake-utils_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_2"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1701680307,
|
"lastModified": 1701680307,
|
||||||
@@ -135,14 +150,14 @@
|
|||||||
},
|
},
|
||||||
"flake-utils_3": {
|
"flake-utils_3": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_3"
|
"systems": "systems_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1701680307,
|
"lastModified": 1710146030,
|
||||||
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -153,7 +168,7 @@
|
|||||||
},
|
},
|
||||||
"flake-utils_4": {
|
"flake-utils_4": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_4"
|
"systems": "systems_7"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685518550,
|
"lastModified": 1685518550,
|
||||||
@@ -178,11 +193,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703887061,
|
"lastModified": 1709087332,
|
||||||
"narHash": "sha256-gGPa9qWNc6eCXT/+Z5/zMkyYOuRZqeFZBDbopNZQkuY=",
|
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "gitignore.nix",
|
"repo": "gitignore.nix",
|
||||||
"rev": "43e1aa1308018f37118e34d3a9cb4f5e75dc11d5",
|
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -198,11 +213,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710281778,
|
"lastModified": 1715077503,
|
||||||
"narHash": "sha256-bvWr9vvBrAxb44kHM3H3cY/uQg+4pYP1BM/Nu3e/7V8=",
|
"narHash": "sha256-AfHQshzLQfUqk/efMtdebHaQHqVntCMjhymQzVFLes0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "49a266d2ca59df8a03249550e73a54626181b65d",
|
"rev": "6e277d9566de9976f47228dd8c580b97488734d4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -219,11 +234,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710062421,
|
"lastModified": 1715077503,
|
||||||
"narHash": "sha256-FiCNRfyUgJOLYIokLiFsfI7B+Zn9HDnOzFR3uVr5qsQ=",
|
"narHash": "sha256-AfHQshzLQfUqk/efMtdebHaQHqVntCMjhymQzVFLes0=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "36f873dfc8e2b6b89936ff3e2b74803d50447e0a",
|
"rev": "6e277d9566de9976f47228dd8c580b97488734d4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -232,6 +247,159 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"hyprcursor": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprlang": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprlang"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1713612213,
|
||||||
|
"narHash": "sha256-zJboXgWNpNhKyNF8H/3UYzWkx7w00TOCGKi3cwi+tsw=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprcursor",
|
||||||
|
"rev": "cab4746180f210a3c1dd3d53e45c510e309e90e1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprcursor",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprland": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprcursor": "hyprcursor",
|
||||||
|
"hyprlang": "hyprlang",
|
||||||
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"systems": "systems_2",
|
||||||
|
"xdph": "xdph"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715203037,
|
||||||
|
"narHash": "sha256-yWsrCPhBpin7AXVI66/EAE+YPJTweS8CDCZJQliB10k=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "e4e84064f2d07810e0c150bce1369a0a00503e9a",
|
||||||
|
"revCount": 4638,
|
||||||
|
"submodules": true,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"submodules": true,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprland-protocols": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"xdph",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"xdph",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1714869498,
|
||||||
|
"narHash": "sha256-vbLVOWvQqo4n1yvkg/Q70VTlPbMmTiCQfNTgcWDCfJM=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprland-protocols",
|
||||||
|
"rev": "e06482e0e611130cd1929f75e8c1cf679e57d161",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprland-protocols",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprlang": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1713121246,
|
||||||
|
"narHash": "sha256-502X0Q0fhN6tJK7iEUA8CghONKSatW/Mqj4Wappd++0=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprlang",
|
||||||
|
"rev": "78fcaa27ae9e1d782faa3ff06c8ea55ddce63706",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprlang",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprlang_2": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"rose-pine-hyprcursor",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": "systems_5"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1709914708,
|
||||||
|
"narHash": "sha256-bR4o3mynoTa1Wi4ZTjbnsZ6iqVcPGriXp56bZh5UFTk=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprlang",
|
||||||
|
"rev": "a685493fdbeec01ca8ccdf1f3655c044a8ce2fe2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprlang",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprwayland-scanner": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715090986,
|
||||||
|
"narHash": "sha256-FXpQvmS9R7alwZ47XK5UIcAbC9YKSxc0+GOVYqwa0jM=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprwayland-scanner",
|
||||||
|
"rev": "94e32ec37e7215b16d5c1b41b1773ff6742e704b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprwayland-scanner",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-darwin": {
|
"nix-darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -240,11 +408,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709771483,
|
"lastModified": 1713946171,
|
||||||
"narHash": "sha256-Hjzu9nCknHLQvhdaRFfCEprH0o15KcaNu1QDr3J88DI=",
|
"narHash": "sha256-lc75rgRQLdp4Dzogv5cfqOg6qYc5Rp83oedF2t0kDp8=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "550340062c16d7ef8c2cc20a3d2b97bcd3c6b6f6",
|
"rev": "230a197063de9287128e2c68a7a4b0cd7d0b50a7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -253,6 +421,22 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-hardware": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715148395,
|
||||||
|
"narHash": "sha256-lRxjTxY3103LGMjWdVqntKZHhlmMX12QUjeFrQMmGaE=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"rev": "a4e2b7909fc1bdf30c30ef21d388fde0b5cdde4a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696375444,
|
"lastModified": 1696375444,
|
||||||
@@ -269,13 +453,45 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1714858427,
|
||||||
|
"narHash": "sha256-tCxeDP4C1pWe2rYY3IIhdA40Ujz32Ufd4tcrHPSKx2M=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "b980b91038fc4b09067ef97bbe5ad07eecca1e76",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "release-23.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710272261,
|
"lastModified": 1714253743,
|
||||||
"narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=",
|
"narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "58a1abdbae3217ca6b702f03d3b35125d88a2994",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715087517,
|
||||||
|
"narHash": "sha256-CLU5Tsg24Ke4+7sH8azHWXKd0CFd4mhLWfhYgUiDBpQ=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2",
|
"rev": "b211b392b8486ee79df6cdfb1157ad2133427a29",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -285,7 +501,23 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_4": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1710272261,
|
||||||
|
"narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686020360,
|
"lastModified": 1686020360,
|
||||||
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
|
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
|
||||||
@@ -306,19 +538,21 @@
|
|||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
|
"flake-root": "flake-root",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"pre-commit-hooks": "pre-commit-hooks"
|
"pre-commit-hooks": "pre-commit-hooks",
|
||||||
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710283972,
|
"lastModified": 1715115147,
|
||||||
"narHash": "sha256-kkN0CJwykU4XoTDLHG68eEBXyp+GLTp7eJGDVrI7QIU=",
|
"narHash": "sha256-oREqXPEtuYbOdBKbsDQzr2V01EzK4kD8MTdwO9ljTnU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "c2cd3cb7a13c0677c49f46d55a8c65b50b7d9431",
|
"rev": "f7f255afe22fcca0c07177c3707fd61fa0c85835",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -354,11 +588,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1708018599,
|
"lastModified": 1714478972,
|
||||||
"narHash": "sha256-M+Ng6+SePmA8g06CmUZWi1AjG2tFBX9WCXElBHEKnyM=",
|
"narHash": "sha256-q//cgb52vv81uOuwz1LaXElp3XAe1TqrABXODAEF6Sk=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "pre-commit-hooks.nix",
|
"repo": "pre-commit-hooks.nix",
|
||||||
"rev": "5df5a70ad7575f6601d91f0efec95dd9bc619431",
|
"rev": "2849da033884f54822af194400f8dff435ada242",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -371,11 +605,35 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"apple-fonts": "apple-fonts",
|
"apple-fonts": "apple-fonts",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"hyprland": "hyprland",
|
||||||
|
"nixos-hardware": "nixos-hardware",
|
||||||
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixvim": "nixvim",
|
"nixvim": "nixvim",
|
||||||
|
"rose-pine-hyprcursor": "rose-pine-hyprcursor",
|
||||||
|
"sops-nix": "sops-nix",
|
||||||
"spicetify-nix": "spicetify-nix"
|
"spicetify-nix": "spicetify-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rose-pine-hyprcursor": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprlang": "hyprlang_2",
|
||||||
|
"nixpkgs": "nixpkgs_4",
|
||||||
|
"utils": "utils"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1711302328,
|
||||||
|
"narHash": "sha256-wLuFLI6S5DOretqJN05+kvrs8cbnZKfVLXrJ4hvI/Tg=",
|
||||||
|
"owner": "ndom91",
|
||||||
|
"repo": "rose-pine-hyprcursor",
|
||||||
|
"rev": "7e0473876f0e6d2308813a78fe84a6c6430b112b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "ndom91",
|
||||||
|
"repo": "rose-pine-hyprcursor",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"sf-arabic": {
|
"sf-arabic": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@@ -424,10 +682,31 @@
|
|||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"sops-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1715244550,
|
||||||
|
"narHash": "sha256-ffOZL3eaZz5Y1nQ9muC36wBCWwS1hSRLhUzlA9hV2oI=",
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"rev": "0dc50257c00ee3c65fef3a255f6564cfbfe6eb7f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"spicetify-nix": {
|
"spicetify-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_4",
|
"flake-utils": "flake-utils_4",
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_5"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1704167711,
|
"lastModified": 1704167711,
|
||||||
@@ -460,16 +739,16 @@
|
|||||||
},
|
},
|
||||||
"systems_2": {
|
"systems_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1681028828,
|
"lastModified": 1689347949,
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default",
|
"repo": "default-linux",
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-systems",
|
"owner": "nix-systems",
|
||||||
"repo": "default",
|
"repo": "default-linux",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -502,6 +781,120 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems_5": {
|
||||||
|
"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_6": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems_7": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1714058656,
|
||||||
|
"narHash": "sha256-Qv4RBm4LKuO4fNOfx9wl40W2rBbv5u5m+whxRYUMiaA=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "c6aaf729f34a36c445618580a9f95a48f5e4e03f",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems_6"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1710146030,
|
||||||
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"xdph": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprland-protocols": "hyprland-protocols",
|
||||||
|
"hyprlang": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprlang"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1714060055,
|
||||||
|
"narHash": "sha256-j43TS9wv9luaAlpxcxw0sjxkbcc2mGANVR2RYgo3RCw=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
|
"rev": "0fe840441e43da12cd7865ed9aa8cdc35a8da85a",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
description = "NixOS configuration";
|
description = "Nixy - Hadi's NixOS configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
@@ -13,30 +13,42 @@
|
|||||||
};
|
};
|
||||||
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
||||||
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
||||||
|
sops-nix = {
|
||||||
|
url = "github:Mic92/sops-nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
|
rose-pine-hyprcursor.url = "github:ndom91/rose-pine-hyprcursor";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, nixvim, spicetify-nix, ... }: {
|
outputs = inputs@{ nixpkgs, home-manager, sops-nix, hyprland, spicetify-nix
|
||||||
nixosConfigurations = {
|
, nixos-hardware, ... }: {
|
||||||
nixy = nixpkgs.lib.nixosSystem {
|
nixosConfigurations = {
|
||||||
system = "x86_64-linux";
|
nixy = nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
system = "x86_64-linux";
|
||||||
./nixos/configuration.nix
|
modules = [
|
||||||
./hosts
|
nixos-hardware.nixosModules.omen-16-n0005ne # REMOVE
|
||||||
{ _module.args = { inherit inputs; }; }
|
./nixos/configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
./nixos/fonts.nix
|
||||||
{
|
./nixos/tuigreet.nix
|
||||||
home-manager = {
|
{ _module.args = { inherit inputs; }; }
|
||||||
useGlobalPkgs = true;
|
home-manager.nixosModules.home-manager
|
||||||
useUserPackages = true;
|
{
|
||||||
users.hadi = import ./home/home.nix; # CHANGEME - replace "hadi"
|
home-manager = {
|
||||||
extraSpecialArgs = {
|
useGlobalPkgs = true;
|
||||||
inherit inputs;
|
useUserPackages = true;
|
||||||
inherit spicetify-nix;
|
users."hadi" = import ./home/home.nix;
|
||||||
|
extraSpecialArgs = {
|
||||||
|
inherit inputs;
|
||||||
|
inherit spicetify-nix;
|
||||||
|
inherit sops-nix;
|
||||||
|
inherit hyprland;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
}
|
];
|
||||||
];
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.cava = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general.framerate = 60;
|
||||||
|
smoothing.noise_reduction = 88;
|
||||||
|
color = {
|
||||||
|
background = "'#${config.theme.colors.bg}'";
|
||||||
|
foreground = "'#${config.theme.colors.primary-bg}'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./kitty
|
||||||
|
./lf
|
||||||
|
./neofetch
|
||||||
|
./nvim
|
||||||
|
./qutebrowser
|
||||||
|
./spicetify
|
||||||
|
./wofi
|
||||||
|
./cava
|
||||||
|
./tmux
|
||||||
|
./lazygit
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
confirm_os_window_close = "0";
|
confirm_os_window_close = "0";
|
||||||
remember_window_size = "no";
|
remember_window_size = "no";
|
||||||
disable_ligatures = "never";
|
disable_ligatures = "never";
|
||||||
shell = "zsh";
|
shell = "${pkgs.tmux}/bin/tmux";
|
||||||
initial_window_width = 1000;
|
initial_window_width = 1200;
|
||||||
initial_window_height = 600;
|
initial_window_height = 600;
|
||||||
|
|
||||||
background = "#" + config.theme.colors.bg;
|
background = "#" + config.theme.colors.bg;
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.lazygit = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
gui.theme = {
|
||||||
|
ligthTheme = false;
|
||||||
|
activeBorderColor = [ "${config.theme.colors.primary-ansi-16}" "bold" ];
|
||||||
|
inactiveBorderColor = [ "black" ];
|
||||||
|
selectedLineBgColor = [ "default" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,174 @@
|
|||||||
|
# vim:ft=dircolors
|
||||||
|
# (This is not a dircolors file but it helps to highlight colors and comments)
|
||||||
|
|
||||||
|
# default values from dircolors
|
||||||
|
# (entries with a leading # are not implemented in lf)
|
||||||
|
# #no 00 # NORMAL
|
||||||
|
# fi 00 # FILE
|
||||||
|
# #rs 0 # RESET
|
||||||
|
# di 01;34 # DIR
|
||||||
|
# ln 01;36 # LINK
|
||||||
|
# #mh 00 # MULTIHARDLINK
|
||||||
|
# pi 40;33 # FIFO
|
||||||
|
# so 01;35 # SOCK
|
||||||
|
# #do 01;35 # DOOR
|
||||||
|
# bd 40;33;01 # BLK
|
||||||
|
# cd 40;33;01 # CHR
|
||||||
|
# or 40;31;01 # ORPHAN
|
||||||
|
# #mi 00 # MISSING
|
||||||
|
# su 37;41 # SETUID
|
||||||
|
# sg 30;43 # SETGID
|
||||||
|
# #ca 30;41 # CAPABILITY
|
||||||
|
# tw 30;42 # STICKY_OTHER_WRITABLE
|
||||||
|
# ow 34;42 # OTHER_WRITABLE
|
||||||
|
# st 37;44 # STICKY
|
||||||
|
# ex 01;32 # EXEC
|
||||||
|
|
||||||
|
# default values from lf (with matching order)
|
||||||
|
# ln 01;36 # LINK
|
||||||
|
# or 31;01 # ORPHAN
|
||||||
|
# tw 01;34 # STICKY_OTHER_WRITABLE
|
||||||
|
# ow 01;34 # OTHER_WRITABLE
|
||||||
|
# st 01;34 # STICKY
|
||||||
|
# di 01;34 # DIR
|
||||||
|
# pi 33 # FIFO
|
||||||
|
# so 01;35 # SOCK
|
||||||
|
# bd 33;01 # BLK
|
||||||
|
# cd 33;01 # CHR
|
||||||
|
# su 01;32 # SETUID
|
||||||
|
# sg 01;32 # SETGID
|
||||||
|
# ex 01;32 # EXEC
|
||||||
|
# fi 00 # FILE
|
||||||
|
|
||||||
|
# file types (with matching order)
|
||||||
|
ln 01;36 # LINK
|
||||||
|
or 31;01 # ORPHAN
|
||||||
|
tw 34 # STICKY_OTHER_WRITABLE
|
||||||
|
ow 34 # OTHER_WRITABLE
|
||||||
|
st 01;34 # STICKY
|
||||||
|
di 01;34 # DIR
|
||||||
|
pi 33 # FIFO
|
||||||
|
so 01;35 # SOCK
|
||||||
|
bd 33;01 # BLK
|
||||||
|
cd 33;01 # CHR
|
||||||
|
su 01;32 # SETUID
|
||||||
|
sg 01;32 # SETGID
|
||||||
|
ex 01;32 # EXEC
|
||||||
|
fi 00 # FILE
|
||||||
|
|
||||||
|
# archives or compressed (dircolors defaults)
|
||||||
|
*.tar 01;31
|
||||||
|
*.tgz 01;31
|
||||||
|
*.arc 01;31
|
||||||
|
*.arj 01;31
|
||||||
|
*.taz 01;31
|
||||||
|
*.lha 01;31
|
||||||
|
*.lz4 01;31
|
||||||
|
*.lzh 01;31
|
||||||
|
*.lzma 01;31
|
||||||
|
*.tlz 01;31
|
||||||
|
*.txz 01;31
|
||||||
|
*.tzo 01;31
|
||||||
|
*.t7z 01;31
|
||||||
|
*.zip 01;31
|
||||||
|
*.z 01;31
|
||||||
|
*.dz 01;31
|
||||||
|
*.gz 01;31
|
||||||
|
*.lrz 01;31
|
||||||
|
*.lz 01;31
|
||||||
|
*.lzo 01;31
|
||||||
|
*.xz 01;31
|
||||||
|
*.zst 01;31
|
||||||
|
*.tzst 01;31
|
||||||
|
*.bz2 01;31
|
||||||
|
*.bz 01;31
|
||||||
|
*.tbz 01;31
|
||||||
|
*.tbz2 01;31
|
||||||
|
*.tz 01;31
|
||||||
|
*.deb 01;31
|
||||||
|
*.rpm 01;31
|
||||||
|
*.jar 01;31
|
||||||
|
*.war 01;31
|
||||||
|
*.ear 01;31
|
||||||
|
*.sar 01;31
|
||||||
|
*.rar 01;31
|
||||||
|
*.alz 01;31
|
||||||
|
*.ace 01;31
|
||||||
|
*.zoo 01;31
|
||||||
|
*.cpio 01;31
|
||||||
|
*.7z 01;31
|
||||||
|
*.rz 01;31
|
||||||
|
*.cab 01;31
|
||||||
|
*.wim 01;31
|
||||||
|
*.swm 01;31
|
||||||
|
*.dwm 01;31
|
||||||
|
*.esd 01;31
|
||||||
|
|
||||||
|
# image formats (dircolors defaults)
|
||||||
|
*.jpg 01;35
|
||||||
|
*.jpeg 01;35
|
||||||
|
*.mjpg 01;35
|
||||||
|
*.mjpeg 01;35
|
||||||
|
*.gif 01;35
|
||||||
|
*.bmp 01;35
|
||||||
|
*.pbm 01;35
|
||||||
|
*.pgm 01;35
|
||||||
|
*.ppm 01;35
|
||||||
|
*.tga 01;35
|
||||||
|
*.xbm 01;35
|
||||||
|
*.xpm 01;35
|
||||||
|
*.tif 01;35
|
||||||
|
*.tiff 01;35
|
||||||
|
*.png 01;35
|
||||||
|
*.svg 01;35
|
||||||
|
*.svgz 01;35
|
||||||
|
*.mng 01;35
|
||||||
|
*.pcx 01;35
|
||||||
|
*.mov 01;35
|
||||||
|
*.mpg 01;35
|
||||||
|
*.mpeg 01;35
|
||||||
|
*.m2v 01;35
|
||||||
|
*.mkv 01;35
|
||||||
|
*.webm 01;35
|
||||||
|
*.ogm 01;35
|
||||||
|
*.mp4 01;35
|
||||||
|
*.m4v 01;35
|
||||||
|
*.mp4v 01;35
|
||||||
|
*.vob 01;35
|
||||||
|
*.qt 01;35
|
||||||
|
*.nuv 01;35
|
||||||
|
*.wmv 01;35
|
||||||
|
*.asf 01;35
|
||||||
|
*.rm 01;35
|
||||||
|
*.rmvb 01;35
|
||||||
|
*.flc 01;35
|
||||||
|
*.avi 01;35
|
||||||
|
*.fli 01;35
|
||||||
|
*.flv 01;35
|
||||||
|
*.gl 01;35
|
||||||
|
*.dl 01;35
|
||||||
|
*.xcf 01;35
|
||||||
|
*.xwd 01;35
|
||||||
|
*.yuv 01;35
|
||||||
|
*.cgm 01;35
|
||||||
|
*.emf 01;35
|
||||||
|
*.ogv 01;35
|
||||||
|
*.ogx 01;35
|
||||||
|
|
||||||
|
# audio formats (dircolors defaults)
|
||||||
|
*.aac 00;36
|
||||||
|
*.au 00;36
|
||||||
|
*.flac 00;36
|
||||||
|
*.m4a 00;36
|
||||||
|
*.mid 00;36
|
||||||
|
*.midi 00;36
|
||||||
|
*.mka 00;36
|
||||||
|
*.mp3 00;36
|
||||||
|
*.mpc 00;36
|
||||||
|
*.ogg 00;36
|
||||||
|
*.ra 00;36
|
||||||
|
*.wav 00;36
|
||||||
|
*.oga 00;36
|
||||||
|
*.opus 00;36
|
||||||
|
*.spx 00;36
|
||||||
|
*.xspf 00;36
|
||||||
@@ -0,0 +1,361 @@
|
|||||||
|
# vim:ft=conf
|
||||||
|
|
||||||
|
# These examples require Nerd Fonts or a compatible font to be used.
|
||||||
|
# See https://www.nerdfonts.com for more information.
|
||||||
|
|
||||||
|
# default values from lf (with matching order)
|
||||||
|
# ln l # LINK
|
||||||
|
# or l # ORPHAN
|
||||||
|
# tw t # STICKY_OTHER_WRITABLE
|
||||||
|
# ow d # OTHER_WRITABLE
|
||||||
|
# st t # STICKY
|
||||||
|
# di d # DIR
|
||||||
|
# pi p # FIFO
|
||||||
|
# so s # SOCK
|
||||||
|
# bd b # BLK
|
||||||
|
# cd c # CHR
|
||||||
|
# su u # SETUID
|
||||||
|
# sg g # SETGID
|
||||||
|
# ex x # EXEC
|
||||||
|
# fi - # FILE
|
||||||
|
|
||||||
|
# file types (with matching order)
|
||||||
|
ln # LINK
|
||||||
|
or # ORPHAN
|
||||||
|
tw t # STICKY_OTHER_WRITABLE
|
||||||
|
ow # OTHER_WRITABLE
|
||||||
|
st t # STICKY
|
||||||
|
di # DIR
|
||||||
|
pi p # FIFO
|
||||||
|
so s # SOCK
|
||||||
|
bd b # BLK
|
||||||
|
cd c # CHR
|
||||||
|
su u # SETUID
|
||||||
|
sg g # SETGID
|
||||||
|
ex # EXEC
|
||||||
|
fi # FILE
|
||||||
|
|
||||||
|
# file extensions (vim-devicons)
|
||||||
|
*.styl
|
||||||
|
*.sass
|
||||||
|
*.scss
|
||||||
|
*.htm
|
||||||
|
*.html
|
||||||
|
*.slim
|
||||||
|
*.haml
|
||||||
|
*.ejs
|
||||||
|
*.css
|
||||||
|
*.less
|
||||||
|
*.md
|
||||||
|
*.mdx
|
||||||
|
*.markdown
|
||||||
|
*.rmd
|
||||||
|
*.json
|
||||||
|
*.webmanifest
|
||||||
|
*.js
|
||||||
|
*.mjs
|
||||||
|
*.jsx
|
||||||
|
*.rb
|
||||||
|
*.gemspec
|
||||||
|
*.rake
|
||||||
|
*.php
|
||||||
|
*.py
|
||||||
|
*.pyc
|
||||||
|
*.pyo
|
||||||
|
*.pyd
|
||||||
|
*.coffee
|
||||||
|
*.mustache
|
||||||
|
*.hbs
|
||||||
|
*.conf
|
||||||
|
*.ini
|
||||||
|
*.yml
|
||||||
|
*.yaml
|
||||||
|
*.toml
|
||||||
|
*.bat
|
||||||
|
*.mk
|
||||||
|
*.jpg
|
||||||
|
*.jpeg
|
||||||
|
*.bmp
|
||||||
|
*.png
|
||||||
|
*.webp
|
||||||
|
*.gif
|
||||||
|
*.ico
|
||||||
|
*.twig
|
||||||
|
*.cpp
|
||||||
|
*.c++
|
||||||
|
*.cxx
|
||||||
|
*.cc
|
||||||
|
*.cp
|
||||||
|
*.c
|
||||||
|
*.cs
|
||||||
|
*.h
|
||||||
|
*.hh
|
||||||
|
*.hpp
|
||||||
|
*.hxx
|
||||||
|
*.hs
|
||||||
|
*.lhs
|
||||||
|
*.nix
|
||||||
|
*.lua
|
||||||
|
*.java
|
||||||
|
*.sh
|
||||||
|
*.fish
|
||||||
|
*.bash
|
||||||
|
*.zsh
|
||||||
|
*.ksh
|
||||||
|
*.csh
|
||||||
|
*.awk
|
||||||
|
*.ps1
|
||||||
|
*.ml λ
|
||||||
|
*.mli λ
|
||||||
|
*.diff
|
||||||
|
*.db
|
||||||
|
*.sql
|
||||||
|
*.dump
|
||||||
|
*.clj
|
||||||
|
*.cljc
|
||||||
|
*.cljs
|
||||||
|
*.edn
|
||||||
|
*.scala
|
||||||
|
*.go
|
||||||
|
*.dart
|
||||||
|
*.xul
|
||||||
|
*.sln
|
||||||
|
*.suo
|
||||||
|
*.pl
|
||||||
|
*.pm
|
||||||
|
*.t
|
||||||
|
*.rss
|
||||||
|
'*.f#'
|
||||||
|
*.fsscript
|
||||||
|
*.fsx
|
||||||
|
*.fs
|
||||||
|
*.fsi
|
||||||
|
*.rs
|
||||||
|
*.rlib
|
||||||
|
*.d
|
||||||
|
*.erl
|
||||||
|
*.hrl
|
||||||
|
*.ex
|
||||||
|
*.exs
|
||||||
|
*.eex
|
||||||
|
*.leex
|
||||||
|
*.heex
|
||||||
|
*.vim
|
||||||
|
*.ai
|
||||||
|
*.psd
|
||||||
|
*.psb
|
||||||
|
*.ts
|
||||||
|
*.tsx
|
||||||
|
*.jl
|
||||||
|
*.pp
|
||||||
|
*.vue
|
||||||
|
*.elm
|
||||||
|
*.swift
|
||||||
|
*.xcplayground
|
||||||
|
*.tex
|
||||||
|
*.r
|
||||||
|
*.rproj
|
||||||
|
*.sol
|
||||||
|
*.pem
|
||||||
|
|
||||||
|
# file names (vim-devicons) (case-insensitive not supported in lf)
|
||||||
|
*gruntfile.coffee
|
||||||
|
*gruntfile.js
|
||||||
|
*gruntfile.ls
|
||||||
|
*gulpfile.coffee
|
||||||
|
*gulpfile.js
|
||||||
|
*gulpfile.ls
|
||||||
|
*mix.lock
|
||||||
|
*dropbox
|
||||||
|
*.ds_store
|
||||||
|
*.gitconfig
|
||||||
|
*.gitignore
|
||||||
|
*.gitattributes
|
||||||
|
*.gitlab-ci.yml
|
||||||
|
*.bashrc
|
||||||
|
*.zshrc
|
||||||
|
*.zshenv
|
||||||
|
*.zprofile
|
||||||
|
*.vimrc
|
||||||
|
*.gvimrc
|
||||||
|
*_vimrc
|
||||||
|
*_gvimrc
|
||||||
|
*.bashprofile
|
||||||
|
*favicon.ico
|
||||||
|
*license
|
||||||
|
*node_modules
|
||||||
|
*react.jsx
|
||||||
|
*procfile
|
||||||
|
*dockerfile
|
||||||
|
*docker-compose.yml
|
||||||
|
*docker-compose.yaml
|
||||||
|
*compose.yml
|
||||||
|
*compose.yaml
|
||||||
|
*rakefile
|
||||||
|
*config.ru
|
||||||
|
*gemfile
|
||||||
|
*makefile
|
||||||
|
*cmakelists.txt
|
||||||
|
*robots.txt
|
||||||
|
|
||||||
|
# file names (case-sensitive adaptations)
|
||||||
|
*Gruntfile.coffee
|
||||||
|
*Gruntfile.js
|
||||||
|
*Gruntfile.ls
|
||||||
|
*Gulpfile.coffee
|
||||||
|
*Gulpfile.js
|
||||||
|
*Gulpfile.ls
|
||||||
|
*Dropbox
|
||||||
|
*.DS_Store
|
||||||
|
*LICENSE
|
||||||
|
*React.jsx
|
||||||
|
*Procfile
|
||||||
|
*Dockerfile
|
||||||
|
*Docker-compose.yml
|
||||||
|
*Docker-compose.yaml
|
||||||
|
*Rakefile
|
||||||
|
*Gemfile
|
||||||
|
*Makefile
|
||||||
|
*CMakeLists.txt
|
||||||
|
|
||||||
|
# file patterns (vim-devicons) (patterns not supported in lf)
|
||||||
|
# .*jquery.*\.js$
|
||||||
|
# .*angular.*\.js$
|
||||||
|
# .*backbone.*\.js$
|
||||||
|
# .*require.*\.js$
|
||||||
|
# .*materialize.*\.js$
|
||||||
|
# .*materialize.*\.css$
|
||||||
|
# .*mootools.*\.js$
|
||||||
|
# .*vimrc.*
|
||||||
|
# Vagrantfile$
|
||||||
|
|
||||||
|
# file patterns (file name adaptations)
|
||||||
|
*jquery.min.js
|
||||||
|
*angular.min.js
|
||||||
|
*backbone.min.js
|
||||||
|
*require.min.js
|
||||||
|
*materialize.min.js
|
||||||
|
*materialize.min.css
|
||||||
|
*mootools.min.js
|
||||||
|
*vimrc
|
||||||
|
Vagrantfile
|
||||||
|
|
||||||
|
# archives or compressed (extensions from dircolors defaults)
|
||||||
|
*.tar
|
||||||
|
*.tgz
|
||||||
|
*.arc
|
||||||
|
*.arj
|
||||||
|
*.taz
|
||||||
|
*.lha
|
||||||
|
*.lz4
|
||||||
|
*.lzh
|
||||||
|
*.lzma
|
||||||
|
*.tlz
|
||||||
|
*.txz
|
||||||
|
*.tzo
|
||||||
|
*.t7z
|
||||||
|
*.zip
|
||||||
|
*.z
|
||||||
|
*.dz
|
||||||
|
*.gz
|
||||||
|
*.lrz
|
||||||
|
*.lz
|
||||||
|
*.lzo
|
||||||
|
*.xz
|
||||||
|
*.zst
|
||||||
|
*.tzst
|
||||||
|
*.bz2
|
||||||
|
*.bz
|
||||||
|
*.tbz
|
||||||
|
*.tbz2
|
||||||
|
*.tz
|
||||||
|
*.deb
|
||||||
|
*.rpm
|
||||||
|
*.jar
|
||||||
|
*.war
|
||||||
|
*.ear
|
||||||
|
*.sar
|
||||||
|
*.rar
|
||||||
|
*.alz
|
||||||
|
*.ace
|
||||||
|
*.zoo
|
||||||
|
*.cpio
|
||||||
|
*.7z
|
||||||
|
*.rz
|
||||||
|
*.cab
|
||||||
|
*.wim
|
||||||
|
*.swm
|
||||||
|
*.dwm
|
||||||
|
*.esd
|
||||||
|
|
||||||
|
# image formats (extensions from dircolors defaults)
|
||||||
|
*.jpg
|
||||||
|
*.jpeg
|
||||||
|
*.mjpg
|
||||||
|
*.mjpeg
|
||||||
|
*.gif
|
||||||
|
*.bmp
|
||||||
|
*.pbm
|
||||||
|
*.pgm
|
||||||
|
*.ppm
|
||||||
|
*.tga
|
||||||
|
*.xbm
|
||||||
|
*.xpm
|
||||||
|
*.tif
|
||||||
|
*.tiff
|
||||||
|
*.png
|
||||||
|
*.svg
|
||||||
|
*.svgz
|
||||||
|
*.mng
|
||||||
|
*.pcx
|
||||||
|
*.mov
|
||||||
|
*.mpg
|
||||||
|
*.mpeg
|
||||||
|
*.m2v
|
||||||
|
*.mkv
|
||||||
|
*.webm
|
||||||
|
*.ogm
|
||||||
|
*.mp4
|
||||||
|
*.m4v
|
||||||
|
*.mp4v
|
||||||
|
*.vob
|
||||||
|
*.qt
|
||||||
|
*.nuv
|
||||||
|
*.wmv
|
||||||
|
*.asf
|
||||||
|
*.rm
|
||||||
|
*.rmvb
|
||||||
|
*.flc
|
||||||
|
*.avi
|
||||||
|
*.fli
|
||||||
|
*.flv
|
||||||
|
*.gl
|
||||||
|
*.dl
|
||||||
|
*.xcf
|
||||||
|
*.xwd
|
||||||
|
*.yuv
|
||||||
|
*.cgm
|
||||||
|
*.emf
|
||||||
|
*.ogv
|
||||||
|
*.ogx
|
||||||
|
|
||||||
|
# audio formats (extensions from dircolors defaults)
|
||||||
|
*.aac
|
||||||
|
*.au
|
||||||
|
*.flac
|
||||||
|
*.m4a
|
||||||
|
*.mid
|
||||||
|
*.midi
|
||||||
|
*.mka
|
||||||
|
*.mp3
|
||||||
|
*.mpc
|
||||||
|
*.ogg
|
||||||
|
*.ra
|
||||||
|
*.wav
|
||||||
|
*.oga
|
||||||
|
*.opus
|
||||||
|
*.spx
|
||||||
|
*.xspf
|
||||||
|
|
||||||
|
# other formats
|
||||||
|
*.pdf
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [ pistol ];
|
||||||
|
|
||||||
|
programs.lf = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
commands = {
|
||||||
|
dragon-out = ''%${pkgs.xdragon}/bin/xdragon -a -x "$fx"'';
|
||||||
|
editor-open = "$$EDITOR $f";
|
||||||
|
mkdir = ''
|
||||||
|
''${{
|
||||||
|
printf "Directory Name: "
|
||||||
|
read DIR
|
||||||
|
mkdir $DIR
|
||||||
|
}}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
keybindings = {
|
||||||
|
d = "delete";
|
||||||
|
x = "cut";
|
||||||
|
"<enter>" = "open";
|
||||||
|
"<c-g>" = "quit";
|
||||||
|
"<esc>" = "quit";
|
||||||
|
"H" = "set hidden!";
|
||||||
|
"\\\"" = "";
|
||||||
|
o = "";
|
||||||
|
c = "mkdir";
|
||||||
|
"." = "set hidden!";
|
||||||
|
"`" = "mark-load";
|
||||||
|
"\\'" = "mark-load";
|
||||||
|
"g~" = "cd";
|
||||||
|
do = "dragon-out";
|
||||||
|
gh = "cd";
|
||||||
|
"g/" = "/";
|
||||||
|
ee = "editor-open";
|
||||||
|
V = ''$''${pkgs.bat}/bin/bat --paging=always "$f"'';
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
ratios = [ 1 1 2 ];
|
||||||
|
preview = true;
|
||||||
|
hidden = true;
|
||||||
|
drawbox = true;
|
||||||
|
icons = true;
|
||||||
|
ignorecase = true;
|
||||||
|
incsearch = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
previewer.source = "${pkgs.pistol}/bin/pistol";
|
||||||
|
|
||||||
|
extraConfig = let
|
||||||
|
previewer = pkgs.writeShellScriptBin "pv.sh" ''
|
||||||
|
file=$1
|
||||||
|
w=$2
|
||||||
|
h=$3
|
||||||
|
x=$4
|
||||||
|
y=$5
|
||||||
|
|
||||||
|
if [[ "$( ${pkgs.file}/bin/file -Lb --mime-type "$file")" =~ ^image ]]; then
|
||||||
|
${pkgs.kitty}/bin/kitty +kitten icat --silent --stdin no --transfer-mode file --place "''${w}x''${h}@''${x}x''${y}" "$file" < /dev/null > /dev/tty
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
${pkgs.pistol}/bin/pistol "$file"
|
||||||
|
'';
|
||||||
|
cleaner = pkgs.writeShellScriptBin "clean.sh" ''
|
||||||
|
${pkgs.kitty}/bin/kitty +kitten icat --clear --stdin no --silent --transfer-mode file < /dev/null > /dev/tty
|
||||||
|
'';
|
||||||
|
in ''
|
||||||
|
set cleaner ${cleaner}/bin/clean.sh
|
||||||
|
set previewer ${previewer}/bin/pv.sh
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.configFile."lf" = {
|
||||||
|
recursive = true;
|
||||||
|
source = ./config;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,150 @@
|
|||||||
|
{ pkgs, config, ... }: {
|
||||||
|
home.packages = with pkgs; [ neofetch ];
|
||||||
|
|
||||||
|
xdg.configFile."neofetch/ascii.txt".text = ''
|
||||||
|
''${c6}
|
||||||
|
⡏⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠙⠉⠉⠉⢹
|
||||||
|
⡇⢸⣿⡟⠛⢿⣷⠀⢸⣿⡟⠛⢿⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡇⠀⢸⣿⡇⢸
|
||||||
|
⡇⢸⣿⣧⣤⣾⠿⠀⢸⣿⣇⣀⣸⡿⠃⢸⣿⡇⠀⢸⣿⡇⢸⣿⣇⣀⣸⣿⡇⢸
|
||||||
|
⡇⢸⣿⡏⠉⢹⣿⡆⢸⣿⡟⠛⢻⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡏⠉⢹⣿⡇⢸
|
||||||
|
⡇⢸⣿⣧⣤⣼⡿⠃⢸⣿⡇⠀⢸⣿⡇⠸⣿⣧⣤⣼⡿⠁⢸⣿⡇⠀⢸⣿⡇⢸
|
||||||
|
⣇⣀⣀⣀⣀⣀⣀⣄⣀⣀⣀⣀⣀⣀⣀⣠⣀⡈⠉⣁⣀⣄⣀⣀⣀⣠⣀⣀⣀⣸
|
||||||
|
⣇⣿⠘⣿⣿⣿⡿⡿⣟⣟⢟⢟⢝⠵⡝⣿⡿⢂⣼⣿⣷⣌⠩⡫⡻⣝⠹⢿⣿⣷
|
||||||
|
⡆⣿⣆⠱⣝⡵⣝⢅⠙⣿⢕⢕⢕⢕⢝⣥⢒⠅⣿⣿⣿⡿⣳⣌⠪⡪⣡⢑⢝⣇
|
||||||
|
⡆⣿⣿⣦⠹⣳⣳⣕⢅⠈⢗⢕⢕⢕⢕⢕⢈⢆⠟⠋⠉⠁⠉⠉⠁⠈⠼⢐⢕⢽
|
||||||
|
⡗⢰⣶⣶⣦⣝⢝⢕⢕⠅⡆⢕⢕⢕⢕⢕⣴⠏⣠⡶⠛⡉⡉⡛⢶⣦⡀⠐⣕⢕
|
||||||
|
⡝⡄⢻⢟⣿⣿⣷⣕⣕⣅⣿⣔⣕⣵⣵⣿⣿⢠⣿⢠⣮⡈⣌⠨⠅⠹⣷⡀⢱⢕
|
||||||
|
⡝⡵⠟⠈⢀⣀⣀⡀⠉⢿⣿⣿⣿⣿⣿⣿⣿⣼⣿⢈⡋⠴⢿⡟⣡⡇⣿⡇⡀⢕
|
||||||
|
⡝⠁⣠⣾⠟⡉⡉⡉⠻⣦⣻⣿⣿⣿⣿⣿⣿⣿⣿⣧⠸⣿⣦⣥⣿⡇⡿⣰⢗⢄
|
||||||
|
⠁⢰⣿⡏⣴⣌⠈⣌⠡⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣬⣉⣉⣁⣄⢖⢕⢕⢕
|
||||||
|
⡀⢻⣿⡇⢙⠁⠴⢿⡟⣡⡆⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣵⣿
|
||||||
|
⡻⣄⣻⣿⣌⠘⢿⣷⣥⣿⠇⣿⣿⣿⣿⣿⣿⠛⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
|
||||||
|
⣷⢄⠻⣿⣟⠿⠦⠍⠉⣡⣾⣿⣿⣿⣿⣿⣿⢸⣿⣦⠙⣿⣿⣿⣿⣿⣿⣿⣿⠟
|
||||||
|
⡕⡑⣑⣈⣻⢗⢟⢞⢝⣻⣿⣿⣿⣿⣿⣿⣿⠸⣿⠿⠃⣿⣿⣿⣿⣿⣿⡿⠁⣠
|
||||||
|
⡝⡵⡈⢟⢕⢕⢕⢕⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⣀⣈⠙
|
||||||
|
⡝⡵⡕⡀⠑⠳⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⢉⡠⡲⡫⡪⡪⡣
|
||||||
|
'';
|
||||||
|
|
||||||
|
xdg.configFile."neofetch/config.conf".text = ''
|
||||||
|
# From: https://github.com/Chick2D/neofetch-themes/
|
||||||
|
# Made by https://github.com/Dan1jel
|
||||||
|
|
||||||
|
print_info() {
|
||||||
|
prin "\n"
|
||||||
|
info "\n \n OS" distro
|
||||||
|
info "\n \n Host" model
|
||||||
|
info "\n \n Kernel" kernel
|
||||||
|
info "\n \n Uptime" uptime
|
||||||
|
info "\n \n Packages" packages
|
||||||
|
info "\n \n Shell" shell
|
||||||
|
info "\n \n Resolution" resolution
|
||||||
|
info "\n \n DE" de
|
||||||
|
info "\n \n WM" wm
|
||||||
|
info "\n \n WM Theme" wm_theme
|
||||||
|
info "\n \n Theme" theme
|
||||||
|
info "\n \n Icons" icons
|
||||||
|
info "\n \n Terminal" term
|
||||||
|
info "\n \n Terminal Font" term_font
|
||||||
|
info "\n \n CPU" cpu
|
||||||
|
info "\n \n GPU" gpu
|
||||||
|
info "\n \n Memory" memory
|
||||||
|
info "\n \n Disk" disk
|
||||||
|
info "\n \n Battery" battery
|
||||||
|
info "\n \n Font" font
|
||||||
|
info "\n \n Song" song
|
||||||
|
[[ "$player" ]] && prin "\n \n Music Player" "$player"
|
||||||
|
info "\n \n Local IP" local_ip
|
||||||
|
prin "\n"
|
||||||
|
|
||||||
|
# prin "\n \n ''${cl0}──''${cl1}────''${cl2}────''${cl3}────''${cl4}────''${cl5}────''${cl6}────''${cl7}──"
|
||||||
|
prin "\n \n \n \n \n \n ''${cl0}⬤ \n \n ''${cl1}⬤ \n \n ''${cl2}⬤ \n \n ''${cl3}⬤ \n \n ''${cl4}⬤ \n \n ''${cl5}⬤ \n \n ''${cl6}⬤ \n \n ''${cl7}⬤"
|
||||||
|
}
|
||||||
|
|
||||||
|
reset="\033[0m"
|
||||||
|
gray="\033[1;90m"
|
||||||
|
red="\033[1;31m"
|
||||||
|
green="\033[1;32m"
|
||||||
|
yellow="\033[1;33m"
|
||||||
|
blue="\033[1;34m"
|
||||||
|
magenta="\033[1;35m"
|
||||||
|
cyan="\033[1;36m"
|
||||||
|
white="\033[1;37m"
|
||||||
|
|
||||||
|
cl0="''${gray}"
|
||||||
|
cl1="''${red}"
|
||||||
|
cl2="''${green}"
|
||||||
|
cl3="''${yellow}"
|
||||||
|
cl4="''${blue}"
|
||||||
|
cl5="''${magenta}"
|
||||||
|
cl6="''${cyan}"
|
||||||
|
cl7="''${white}"
|
||||||
|
|
||||||
|
title_fqdn="off"
|
||||||
|
kernel_shorthand="on"
|
||||||
|
distro_shorthand="off"
|
||||||
|
os_arch="off"
|
||||||
|
uptime_shorthand="on"
|
||||||
|
memory_percent="off"
|
||||||
|
memory_unit="mib"
|
||||||
|
package_managers="on"
|
||||||
|
shell_path="off"
|
||||||
|
shell_version="on"
|
||||||
|
speed_type="bios_limit"
|
||||||
|
speed_shorthand="off"
|
||||||
|
cpu_brand="on"
|
||||||
|
cpu_speed="on"
|
||||||
|
cpu_cores="logical"
|
||||||
|
cpu_temp="off"
|
||||||
|
gpu_brand="on"
|
||||||
|
gpu_type="all"
|
||||||
|
refresh_rate="off"
|
||||||
|
gtk_shorthand="off"
|
||||||
|
gtk2="on"
|
||||||
|
gtk3="on"
|
||||||
|
de_version="on"
|
||||||
|
disk_show=('/storage/emulated' '/' '/server')
|
||||||
|
disk_subtitle="none"
|
||||||
|
disk_percent="on"
|
||||||
|
music_player="auto"
|
||||||
|
song_format="%artist% - %album% - %title%"
|
||||||
|
song_shorthand="off"
|
||||||
|
mpc_args=()
|
||||||
|
colors=(${toString config.theme.colors.primary-ansi-16-number} 1 ${
|
||||||
|
toString config.theme.colors.primary-ansi-16-number
|
||||||
|
} ${toString config.theme.colors.primary-ansi-16-number} 7)
|
||||||
|
bold="on"
|
||||||
|
underline_enabled="on"
|
||||||
|
underline_char="-"
|
||||||
|
separator=":"
|
||||||
|
block_range=(0 15)
|
||||||
|
color_blocks="on"
|
||||||
|
block_width=3
|
||||||
|
block_height=1
|
||||||
|
col_offset="auto"
|
||||||
|
bar_char_elapsed="-"
|
||||||
|
bar_char_total="="
|
||||||
|
bar_border="on"
|
||||||
|
bar_length=15
|
||||||
|
bar_color_elapsed="distro"
|
||||||
|
bar_color_total="distro"
|
||||||
|
cpu_display="off"
|
||||||
|
memory_display="off"
|
||||||
|
battery_display="off"
|
||||||
|
disk_display="off"
|
||||||
|
image_backend="ascii"
|
||||||
|
image_source="$HOME/.config/neofetch/ascii.txt"
|
||||||
|
ascii_distro="auto"
|
||||||
|
ascii_colors=(distro)
|
||||||
|
ascii_bold="on"
|
||||||
|
image_loop="off"
|
||||||
|
thumbnail_dir="''${XDG_CACHE_HOME:-''${HOME}/.cache}/thumbnails/neofetch"
|
||||||
|
crop_mode="normal"
|
||||||
|
crop_offset="center"
|
||||||
|
image_size="auto"
|
||||||
|
gap=2
|
||||||
|
yoffset=0
|
||||||
|
xoffset=0
|
||||||
|
background_color=
|
||||||
|
stdout="off"
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -0,0 +1,132 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
|
||||||
|
programs.nixvim.highlight = {
|
||||||
|
AlphaHeaderColor.fg = "#${config.theme.colors.primary-bg}";
|
||||||
|
AlphaTextColor.fg = "#${config.theme.colors.fg}";
|
||||||
|
AlphaShortcutColor.fg = "#${config.theme.colors.alt-fg}";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.nixvim.plugins.alpha = {
|
||||||
|
enable = true;
|
||||||
|
layout = [
|
||||||
|
{
|
||||||
|
type = "padding";
|
||||||
|
val = 4;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "text";
|
||||||
|
opts = {
|
||||||
|
position = "center";
|
||||||
|
hl = "AlphaHeaderColor";
|
||||||
|
};
|
||||||
|
val = [
|
||||||
|
" "
|
||||||
|
" ████ ██████ █████ ██ "
|
||||||
|
" ███████████ █████ "
|
||||||
|
" █████████ ███████████████████ ███ ███████████ "
|
||||||
|
" █████████ ███ █████████████ █████ ██████████████ "
|
||||||
|
" █████████ ██████████ █████████ █████ █████ ████ █████ "
|
||||||
|
" ███████████ ███ ███ █████████ █████ █████ ████ █████ "
|
||||||
|
" ██████ █████████████████████ ████ █████ █████ ████ ██████ "
|
||||||
|
" "
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "padding";
|
||||||
|
val = 4;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "group";
|
||||||
|
|
||||||
|
val = [
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " Find file";
|
||||||
|
on_press.__raw = "function() vim.cmd[[Telescope find_files]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nf";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " New file";
|
||||||
|
on_press.__raw = "function() vim.cmd[[ene]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nn";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " NixOs Config";
|
||||||
|
on_press.__raw = "function() vim.cmd[[e ~/.config/nixos]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nc";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " Recently used";
|
||||||
|
on_press.__raw = "function() vim.cmd[[Telescope oldfiles]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "no";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " Find text";
|
||||||
|
on_press.__raw = "function() vim.cmd[[Telescope live_grep]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nt";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
type = "button";
|
||||||
|
val = " Quit Neovim";
|
||||||
|
on_press.__raw = "function() vim.cmd[[qa]] end";
|
||||||
|
opts = {
|
||||||
|
shortcut = "nq";
|
||||||
|
position = "center";
|
||||||
|
cursor = 3;
|
||||||
|
width = 50;
|
||||||
|
align_shortcut = "right";
|
||||||
|
hl_shortcut = "AlphaShortcutColor";
|
||||||
|
hl = "AlphaTextColor";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.comment = { enable = true; }; }
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
./auto-pairs.nix
|
||||||
|
./options.nix
|
||||||
|
./bufferline.nix
|
||||||
|
./lazygit.nix
|
||||||
|
./telescope.nix
|
||||||
|
./nvim-tree.nix
|
||||||
|
./lightline.nix
|
||||||
|
./git.nix
|
||||||
|
./cmp.nix
|
||||||
|
./none-ls.nix
|
||||||
|
./wilder.nix
|
||||||
|
./lsp.nix
|
||||||
|
./treesitter.nix
|
||||||
|
./toggleterm.nix
|
||||||
|
./copilot.nix
|
||||||
|
./obsidian.nix
|
||||||
|
./whichkey.nix
|
||||||
|
./alpha.nix
|
||||||
|
./keymaps.nix
|
||||||
|
./comment.nix
|
||||||
|
./oil.nix
|
||||||
|
./trouble.nix
|
||||||
|
./tmux-navigator.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
colorschemes.catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
settings = { transparent_background = true; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
programs.nixvim.plugins.gitsigns = {
|
programs.nixvim.plugins.gitsigns = {
|
||||||
enable = true;
|
enable = true;
|
||||||
currentLineBlame = false;
|
settings = { current_line_blame = false; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.keymaps = [
|
||||||
|
{
|
||||||
|
key = "<leader>e";
|
||||||
|
action = "<CMD>Neotree toggle<CR>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<space>fm";
|
||||||
|
action = "<CMD>lua vim.lsp.buf.format()<CR>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>ot";
|
||||||
|
action = "<cmd>lua require('obsidian').util.toggle_checkbox()<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>oo";
|
||||||
|
action = "<cmd>ObsidianQuickSwitch<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>on";
|
||||||
|
action = "<cmd>ObsidianNew<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>of";
|
||||||
|
action = "<cmd>ObsidianSearch<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>oi";
|
||||||
|
action = "<cmd>ObsidianPasteImg<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>E";
|
||||||
|
action = "<cmd>Oil<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<leader>t";
|
||||||
|
action = "<cmd>TroubleToggle<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
key = "<C-h>";
|
||||||
|
action = "<cmd>TmuxNavigateLeft<cr>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-j>";
|
||||||
|
action = "<cmd>TmuxNavigateDown<cr>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-k>";
|
||||||
|
action = "<cmd>TmuxNavigateUp<cr>";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
key = "<C-l>";
|
||||||
|
action = "<cmd>TmuxNavigateRight<cr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Terminal Mappings
|
||||||
|
{
|
||||||
|
mode = "t";
|
||||||
|
key = "<esc>";
|
||||||
|
action = "<C-\\><C-n>";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.lazygit = { enable = true; }; }
|
||||||
@@ -9,6 +9,8 @@
|
|||||||
gopls.enable = true;
|
gopls.enable = true;
|
||||||
nixd.enable = true;
|
nixd.enable = true;
|
||||||
tailwindcss.enable = true;
|
tailwindcss.enable = true;
|
||||||
|
html.enable = true;
|
||||||
|
svelte.enable = true;
|
||||||
};
|
};
|
||||||
keymaps.lspBuf = {
|
keymaps.lspBuf = {
|
||||||
"gd" = "definition";
|
"gd" = "definition";
|
||||||
@@ -11,6 +11,7 @@
|
|||||||
goimports.enable = true;
|
goimports.enable = true;
|
||||||
nixfmt.enable = true;
|
nixfmt.enable = true;
|
||||||
markdownlint.enable = true;
|
markdownlint.enable = true;
|
||||||
|
tidy.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
dir = "~/Nextcloud/obsidian";
|
dir = "~/Nextcloud/obsidian";
|
||||||
disableFrontmatter = true;
|
disable_frontmatter = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.oil = {
|
||||||
|
enable = true;
|
||||||
|
settings = { default_file_explorer = false; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
programs.nixvim.globals.mapleader = " ";
|
programs.nixvim.globals.mapleader = " ";
|
||||||
programs.nixvim.options = {
|
programs.nixvim.opts = {
|
||||||
updatetime = 50; # Faster completion
|
updatetime = 50; # Faster completion
|
||||||
|
|
||||||
number = true;
|
number = true;
|
||||||
@@ -3,10 +3,10 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
keymaps = {
|
keymaps = {
|
||||||
"<leader>fg" = "live_grep";
|
"<leader>fg" = "live_grep";
|
||||||
"<C-p>" = {
|
#"<C-p>" = {
|
||||||
action = "git_files";
|
# action = "git_files";
|
||||||
desc = "Telescope Git Files";
|
# desc = "Telescope Git Files";
|
||||||
};
|
#};
|
||||||
};
|
};
|
||||||
extensions.fzf-native = { enable = true; };
|
extensions.fzf-native = { enable = true; };
|
||||||
};
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.tmux-navigator = { enable = true; }; }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.toggleterm = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
open_mapping = "[[<c-t>]]";
|
||||||
|
direction = "horizontal";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -6,6 +6,5 @@
|
|||||||
indent = true;
|
indent = true;
|
||||||
};
|
};
|
||||||
treesitter-context.enable = true;
|
treesitter-context.enable = true;
|
||||||
rainbow-delimiters.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.trouble = { enable = true; }; }
|
||||||
@@ -0,0 +1,261 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
|
||||||
|
imports = [ ./duckduckgo-colorscheme.nix ./homepage/default.nix ];
|
||||||
|
|
||||||
|
programs.qutebrowser = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
searchEngines = {
|
||||||
|
"DEFAULT" = "https://duckduckgo.com/?q={}&ia=web";
|
||||||
|
"d" = "https://duckduckgo.com/?q={}&ia=web";
|
||||||
|
"g" = "https://google.com/search?q={}";
|
||||||
|
"y" = "https://youtube.com/results?search_query={}";
|
||||||
|
"ya" = "https://yandex.com/search/?text={}";
|
||||||
|
"n" = "https://mynixos.com/search?q={}";
|
||||||
|
"nixo" = "https://search.nixos.org/options?channel=unstable&query={}";
|
||||||
|
"nixp" = "https://search.nixos.org/packages?channel=unstable&query={}";
|
||||||
|
"gt" = "https://github.com/search?q={}&type=repositories";
|
||||||
|
};
|
||||||
|
|
||||||
|
quickmarks = {
|
||||||
|
home = "${config.home.homeDirectory}/.config/startpage/index.html";
|
||||||
|
mynixos = "https://mynixos.com";
|
||||||
|
github = "https://github.com";
|
||||||
|
outlook = "https://outlook.office.com/mail/";
|
||||||
|
office = "https://www.office.com/?auth=2";
|
||||||
|
teams = "https://teams.microsoft.com/_";
|
||||||
|
casa = "http://192.168.2.16:8081/#/";
|
||||||
|
proton = "https://mail.proton.me/u/0/inbox";
|
||||||
|
cloudflare-one = "https://one.dash.cloudflare.com/";
|
||||||
|
chatgpt = "https://chat.openai.com/";
|
||||||
|
nixvim = "https://nix-community.github.io/nixvim/";
|
||||||
|
hyprland = "https://wiki.hyprland.org/";
|
||||||
|
nerdfont = "https://www.nerdfonts.com/cheat-sheet";
|
||||||
|
youtube = "https://youtube.com/";
|
||||||
|
cloudflare = "https://dash.cloudflare.com/";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
url = {
|
||||||
|
default_page =
|
||||||
|
"${config.home.homeDirectory}/.config/startpage/index.html";
|
||||||
|
start_pages =
|
||||||
|
[ "${config.home.homeDirectory}/.config/startpage/index.html" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
colors = {
|
||||||
|
tabs = {
|
||||||
|
odd.bg = "#${config.theme.colors.bg}";
|
||||||
|
odd.fg = "#${config.theme.colors.fg}";
|
||||||
|
even.bg = "#${config.theme.colors.bg}";
|
||||||
|
even.fg = "#${config.theme.colors.fg}";
|
||||||
|
selected = {
|
||||||
|
odd = {
|
||||||
|
bg = "#${config.theme.colors.primary-bg}";
|
||||||
|
fg = "#${config.theme.colors.primary-fg}";
|
||||||
|
};
|
||||||
|
even = {
|
||||||
|
bg = "#${config.theme.colors.primary-bg}";
|
||||||
|
fg = "#${config.theme.colors.primary-fg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
indicator = {
|
||||||
|
error = "#${config.theme.colors.color1}";
|
||||||
|
start = "#${config.theme.colors.alt-bg}";
|
||||||
|
stop = "#${config.theme.colors.alt-bg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hints = {
|
||||||
|
bg = "#${config.theme.colors.alt-bg}";
|
||||||
|
fg = "#${config.theme.colors.alt-fg}";
|
||||||
|
match.fg = "#${config.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
|
||||||
|
completion = {
|
||||||
|
category = {
|
||||||
|
bg = "#${config.theme.colors.bg}";
|
||||||
|
fg = "#${config.theme.colors.fg}";
|
||||||
|
border = {
|
||||||
|
top = "#${config.theme.colors.bg}";
|
||||||
|
bottom = "#${config.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
odd.bg = "#${config.theme.colors.bg}";
|
||||||
|
even.bg = "#${config.theme.colors.bg}";
|
||||||
|
|
||||||
|
fg = [ "#FFFFFF" "#FFFFFF" "#FFFFFF" ];
|
||||||
|
|
||||||
|
match.fg = "#${config.theme.colors.primary-bg}";
|
||||||
|
|
||||||
|
item.selected = {
|
||||||
|
bg = "#${config.theme.colors.primary-bg}";
|
||||||
|
border.top = "#${config.theme.colors.primary-bg}";
|
||||||
|
border.bottom = "#${config.theme.colors.primary-bg}";
|
||||||
|
fg = "#${config.theme.colors.primary-fg}";
|
||||||
|
match.fg = "#${config.theme.colors.primary-fg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
statusbar = {
|
||||||
|
normal.bg = "#${config.theme.colors.bg}";
|
||||||
|
normal.fg = "#${config.theme.colors.fg}";
|
||||||
|
private.bg = "#${config.theme.colors.bg}";
|
||||||
|
private.fg = "#${config.theme.colors.fg}";
|
||||||
|
insert.bg = "#${config.theme.colors.primary-bg}";
|
||||||
|
insert.fg = "#${config.theme.colors.primary-fg}";
|
||||||
|
command = {
|
||||||
|
bg = "#${config.theme.colors.alt-bg}";
|
||||||
|
fg = "#${config.theme.colors.alt-fg}";
|
||||||
|
private.bg = "#${config.theme.colors.alt-bg}";
|
||||||
|
private.fg = "#${config.theme.colors.alt-fg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
messages = {
|
||||||
|
info = {
|
||||||
|
bg = "#${config.theme.colors.alt-bg}";
|
||||||
|
fg = "#${config.theme.colors.alt-fg}";
|
||||||
|
border = "#${config.theme.colors.alt-bg}";
|
||||||
|
};
|
||||||
|
|
||||||
|
error = {
|
||||||
|
bg = "#${config.theme.colors.color1}";
|
||||||
|
fg = "#${config.theme.colors.alt-fg}";
|
||||||
|
border = "#${config.theme.colors.color1}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#webpage.darkmode.enabled = true; # Enable dark mode for all websites (Weird on images)
|
||||||
|
webpage.preferred_color_scheme =
|
||||||
|
"dark"; # Enable dark mode for websites that support it
|
||||||
|
};
|
||||||
|
|
||||||
|
fonts = { default_family = "${config.theme.font}"; };
|
||||||
|
|
||||||
|
completion = {
|
||||||
|
height = "30%";
|
||||||
|
open_categories = [ "history" ];
|
||||||
|
scrollbar = {
|
||||||
|
padding = 0;
|
||||||
|
width = 0;
|
||||||
|
};
|
||||||
|
show = "always";
|
||||||
|
shrink = true;
|
||||||
|
timestamp_format = "";
|
||||||
|
web_history.max_items = 7;
|
||||||
|
};
|
||||||
|
|
||||||
|
content = {
|
||||||
|
autoplay = false;
|
||||||
|
javascript.clipboard = "access";
|
||||||
|
javascript.enabled = true;
|
||||||
|
pdfjs = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
downloads = {
|
||||||
|
position = "bottom";
|
||||||
|
remove_finished = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
hints = {
|
||||||
|
border = "none";
|
||||||
|
radius = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
scrolling = {
|
||||||
|
bar = "never";
|
||||||
|
smooth = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
tabs = {
|
||||||
|
show = "multiple";
|
||||||
|
last_close = "close";
|
||||||
|
mode_on_change = "restore";
|
||||||
|
close_mouse_button = "right";
|
||||||
|
};
|
||||||
|
|
||||||
|
zoom.default = "100%";
|
||||||
|
|
||||||
|
qt.force_software_rendering = "chromium";
|
||||||
|
};
|
||||||
|
|
||||||
|
keyBindings = {
|
||||||
|
normal = {
|
||||||
|
"gh" = "open ${config.home.homeDirectory}/.config/startpage/index.html";
|
||||||
|
|
||||||
|
" p" = "tab-move -";
|
||||||
|
" n" = "tab-move +";
|
||||||
|
" w" = "tab-close";
|
||||||
|
|
||||||
|
" 1" = "tab-focus 1";
|
||||||
|
" 2" = "tab-focus 2";
|
||||||
|
" 3" = "tab-focus 3";
|
||||||
|
" 4" = "tab-focus 4";
|
||||||
|
" 5" = "tab-focus 5";
|
||||||
|
" 6" = "tab-focus 6";
|
||||||
|
" 7" = "tab-focus 7";
|
||||||
|
" 8" = "tab-focus 8";
|
||||||
|
" 9" = "tab-focus 9";
|
||||||
|
" 0" = "tab-focus 10";
|
||||||
|
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
|
||||||
|
command = {
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
|
||||||
|
insert = {
|
||||||
|
"<Ctrl-w>" = "tab-close";
|
||||||
|
"<Ctrl-n>" = "open -w";
|
||||||
|
"<Ctrl-1>" = "tab-focus 1";
|
||||||
|
"<Ctrl-2>" = "tab-focus 2";
|
||||||
|
"<Ctrl-3>" = "tab-focus 3";
|
||||||
|
"<Ctrl-4>" = "tab-focus 4";
|
||||||
|
"<Ctrl-5>" = "tab-focus 5";
|
||||||
|
"<Ctrl-6>" = "tab-focus 6";
|
||||||
|
"<Ctrl-7>" = "tab-focus 7";
|
||||||
|
"<Ctrl-8>" = "tab-focus 8";
|
||||||
|
"<Ctrl-9>" = "tab-focus 9";
|
||||||
|
"<Ctrl-0>" = "tab-focus 10";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
config.unbind("gm")
|
||||||
|
config.unbind("gd")
|
||||||
|
config.unbind("gb")
|
||||||
|
config.unbind("tl")
|
||||||
|
config.unbind("gt")
|
||||||
|
|
||||||
|
c.tabs.padding = {"bottom": 6, "left": 7, "right": 7, "top": 6}
|
||||||
|
|
||||||
|
config.load_autoconfig(True)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
|
||||||
xdg.configFile."duckduckgo-colorscheme.js".text = ''
|
xdg.configFile."duckduckgo-colorscheme.js".text = ''
|
||||||
|
// Go to DuckDuckGo settings page, open the console, paste the code and hit enter.
|
||||||
|
// based on https://ddg.codingcodax.dev/
|
||||||
// Cookies string for your theme
|
// Cookies string for your theme
|
||||||
const cookie = '7=${config.theme.colors.bg}; j=${config.theme.colors.bg}; 9=${config.theme.colors.fg}; aa=${config.theme.colors.alt-fg}; 8=${config.theme.colors.color7}; x=${config.theme.colors.primary-bg}; 21=${config.theme.colors.alt-bg};';
|
const cookie = '7=${config.theme.colors.bg}; j=${config.theme.colors.bg}; 9=${config.theme.colors.fg}; aa=${config.theme.colors.alt-fg}; 8=${config.theme.colors.color7}; x=${config.theme.colors.primary-bg}; 21=${config.theme.colors.alt-bg};';
|
||||||
|
|
||||||
@@ -24,7 +26,7 @@
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
alert('The GitHub Dark theme will be applied.');
|
alert('The Nixy theme will be applied.');
|
||||||
|
|
||||||
// Call set cookies, passing in formated cookie data
|
// Call set cookies, passing in formated cookie data
|
||||||
setCookies(cookieToJSON(cookie));
|
setCookies(cookieToJSON(cookie));
|
||||||
@@ -0,0 +1,297 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
bookmarks = ''
|
||||||
|
Bookmarks: [
|
||||||
|
{text: "MyNixOs", url: "https://mynixos.com", icon: ""},
|
||||||
|
{text: "Github", url: "https://github.com", icon: ""},
|
||||||
|
{text: "Proton", url: "https://mail.proton.me/u/0/inbox", icon: ""},
|
||||||
|
{text: "Cloudflare One", url: "https://one.dash.cloudflare.com/", icon: ""},
|
||||||
|
{text: "Chat GPT", url: "https://chat.openai.com/", icon: ""},
|
||||||
|
{text: "Nixvim", url: "https://nix-community.github.io/nixvim/", icon: ""},
|
||||||
|
{text: "Hyprland Wiki", url: "https://wiki.hyprland.org/", icon: ""},
|
||||||
|
{text: "Nerdfont", url: "https://www.nerdfonts.com/cheat-sheet", icon: ""},
|
||||||
|
{text: "Youtube", url: "https://youtube.com", icon: ""},
|
||||||
|
],
|
||||||
|
Home: [
|
||||||
|
{text: "Casa", url: "http://192.168.2.16:8081/#/", icon: ""},
|
||||||
|
{text: "Plex", url: "http://192.168.2.16:32400", icon: ""},
|
||||||
|
{text: "Nextcloud", url: "http://192.168.2.16:10081", icon: ""},
|
||||||
|
],
|
||||||
|
Work: [
|
||||||
|
{text: "Outlook", url: "https://outlook.office.com/mail/", icon: ""},
|
||||||
|
{text: "Office", url: "https://www.office.com/?auth=2", icon: ""},
|
||||||
|
{text: "Teams", url: "https://teams.microsoft.com/_", icon: ""},
|
||||||
|
],
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
|
||||||
|
xdg.configFile."startpage/index.html".text = ''
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Homepage</title>
|
||||||
|
<style>
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: '${config.theme.font}', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
.w-screen {
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overflow-hidden {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.max-w-7xl {
|
||||||
|
max-width: 80rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mx-auto {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.justify-between {
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.items-center {
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.py-12 {
|
||||||
|
padding-top: 3rem;
|
||||||
|
padding-bottom: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.px-2 {
|
||||||
|
padding-left: 0.5rem;
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-5xl {
|
||||||
|
font-size: 3rem;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.font-bold {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mb-4 {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-wrap {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-col {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-grow {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gap-5 {
|
||||||
|
gap: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gap-05 {
|
||||||
|
gap: 0.125rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.justify-start {
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.items-start {
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hover\:opacity-60:hover {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pb-10 {
|
||||||
|
padding-bottom: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.p-10 {
|
||||||
|
padding: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-xl {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
line-height: 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-lg {
|
||||||
|
font-size: 1.125rem;
|
||||||
|
line-height: 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-sm {
|
||||||
|
font-size: 0.875rem;
|
||||||
|
line-height: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-4xl {
|
||||||
|
font-size: 2.25rem;
|
||||||
|
line-height: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.px-5 {
|
||||||
|
padding-left: 1.25rem;
|
||||||
|
padding-right: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.py-2 {
|
||||||
|
padding-top: 0.5rem;
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:visited, a:hover, a:active {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body class="w-screen" style="background-color: #${config.theme.colors.bg}; color: #${config.theme.colors.fg};">
|
||||||
|
<div class="max-w-7xl mx-auto p-10">
|
||||||
|
<div class="w-full flex justify-between" id="date-time">
|
||||||
|
<p class="text-xl"></p>
|
||||||
|
<p class="text-xl"></p>
|
||||||
|
</div>
|
||||||
|
<div class="w-full py-12 px-2" id="greeting">
|
||||||
|
<h1 class="text-5xl font-bold mb-4" style="color: #${config.theme.colors.primary-bg};"></h1>
|
||||||
|
</div>
|
||||||
|
<div id="link-list" class="flex gap-5 flex-col justify-start items-start"></div>
|
||||||
|
</div>
|
||||||
|
<script defer>
|
||||||
|
const linkLists = {
|
||||||
|
${bookmarks}
|
||||||
|
};
|
||||||
|
|
||||||
|
function getDomainFromUrl(url) {
|
||||||
|
let domain = url.replace(/(^\w+:|^)\/\//, "");
|
||||||
|
domain = domain.split('/')[0];
|
||||||
|
return domain;
|
||||||
|
}
|
||||||
|
|
||||||
|
const linkListContainer = document.getElementById('link-list');
|
||||||
|
|
||||||
|
for (const key in linkLists) {
|
||||||
|
if (Object.hasOwnProperty.call(linkLists, key)) {
|
||||||
|
const linkList = linkLists[key];
|
||||||
|
const title = document.createElement('h2');
|
||||||
|
title.textContent = key.charAt(0).toUpperCase() + key.slice(1);
|
||||||
|
title.className = "text-3xl font-bold"
|
||||||
|
linkListContainer.appendChild(title);
|
||||||
|
|
||||||
|
const list = document.createElement('div');
|
||||||
|
list.className = 'flex flex-wrap gap-5 justify-start';
|
||||||
|
linkList.forEach(link => {
|
||||||
|
const anchor = document.createElement('a');
|
||||||
|
anchor.href = link.url;
|
||||||
|
anchor.className = "px-5 py-2 hover:opacity-60 flex-grow"
|
||||||
|
|
||||||
|
const div = document.createElement('div');
|
||||||
|
div.className = 'flex flex-row gap-5 items-center';
|
||||||
|
|
||||||
|
let icon = document.createElement('p');
|
||||||
|
icon.textContent = link.icon || "";
|
||||||
|
icon.className = "text-4xl";
|
||||||
|
div.appendChild(icon);
|
||||||
|
|
||||||
|
const divNameUrl = document.createElement('div');
|
||||||
|
divNameUrl.className = 'flex flex-col gap-05';
|
||||||
|
|
||||||
|
const name = document.createElement('p');
|
||||||
|
name.textContent = link.text;
|
||||||
|
name.className = 'text-lg font-medium';
|
||||||
|
|
||||||
|
const url = document.createElement('p');
|
||||||
|
url.textContent = link.url;
|
||||||
|
url.className = 'text-sm';
|
||||||
|
url.style = "color: #${config.theme.colors.alt-fg};"
|
||||||
|
|
||||||
|
divNameUrl.appendChild(name);
|
||||||
|
divNameUrl.appendChild(url);
|
||||||
|
div.appendChild(divNameUrl);
|
||||||
|
anchor.appendChild(div);
|
||||||
|
list.appendChild(anchor);
|
||||||
|
});
|
||||||
|
|
||||||
|
linkListContainer.appendChild(list);
|
||||||
|
const spacer = document.createElement('div');
|
||||||
|
spacer.className = "pb-10"
|
||||||
|
linkListContainer.appendChild(spacer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateDateTime() {
|
||||||
|
const dateTimeContainer = document.getElementById('date-time');
|
||||||
|
const currentDate = new Date();
|
||||||
|
const dateOptions = {weekday: 'long', year: 'numeric', month: 'long', day: 'numeric'};
|
||||||
|
const timeOptions = {hour: '2-digit', minute: '2-digit'};
|
||||||
|
const formattedDate = currentDate.toLocaleDateString('en-US', dateOptions);
|
||||||
|
const formattedTime = currentDate.toLocaleTimeString('en-US', timeOptions);
|
||||||
|
const dateParagraph = dateTimeContainer.querySelector('p:nth-child(1)');
|
||||||
|
const timeParagraph = dateTimeContainer.querySelector('p:nth-child(2)');
|
||||||
|
dateParagraph.textContent = formattedDate;
|
||||||
|
timeParagraph.textContent = formattedTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
updateDateTime();
|
||||||
|
setInterval(updateDateTime, 60000);
|
||||||
|
|
||||||
|
function updateGreeting() {
|
||||||
|
const greetingContainer = document.getElementById('greeting');
|
||||||
|
const currentDate = new Date();
|
||||||
|
const currentHour = currentDate.getHours();
|
||||||
|
let greetingText;
|
||||||
|
|
||||||
|
if (currentHour < 2) {
|
||||||
|
greetingText = "Good night! ";
|
||||||
|
} else if (currentHour < 5) {
|
||||||
|
greetingText = "Hello, night owl! ";
|
||||||
|
} else if (currentHour < 12) {
|
||||||
|
greetingText = "Good morning! ";
|
||||||
|
} else if (currentHour < 17) {
|
||||||
|
greetingText = "Good afternoon! ️";
|
||||||
|
} else if (currentHour < 20) {
|
||||||
|
greetingText = "Good evening! ";
|
||||||
|
} else {
|
||||||
|
greetingText = "Good night! ";
|
||||||
|
}
|
||||||
|
|
||||||
|
const greetingHeader = greetingContainer.querySelector('h1');
|
||||||
|
greetingHeader.textContent = greetingText;
|
||||||
|
}
|
||||||
|
|
||||||
|
updateGreeting();
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -20,7 +20,7 @@ in {
|
|||||||
player = "${config.theme.colors.bg}";
|
player = "${config.theme.colors.bg}";
|
||||||
card = "${config.theme.colors.bg}";
|
card = "${config.theme.colors.bg}";
|
||||||
shadow = "000000";
|
shadow = "000000";
|
||||||
selected-row = "797979";
|
selected-row = "${config.theme.colors.alt-bg}";
|
||||||
button = "${config.theme.colors.primary-bg}";
|
button = "${config.theme.colors.primary-bg}";
|
||||||
button-active = "${config.theme.colors.primary-bg}";
|
button-active = "${config.theme.colors.primary-bg}";
|
||||||
button-disabled = "${config.theme.colors.alt-bg}";
|
button-disabled = "${config.theme.colors.alt-bg}";
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
mouse = true;
|
||||||
|
shell = "${pkgs.zsh}/bin/zsh";
|
||||||
|
prefix = "C-s";
|
||||||
|
terminal = "kitty";
|
||||||
|
keyMode = "vi";
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
bind-key h select-pane -L
|
||||||
|
bind-key j select-pane -D
|
||||||
|
bind-key k select-pane -U
|
||||||
|
bind-key l select-pane -R
|
||||||
|
'';
|
||||||
|
|
||||||
|
plugins = with pkgs; [
|
||||||
|
tmuxPlugins.vim-tmux-navigator
|
||||||
|
{
|
||||||
|
plugin = tmuxPlugins.catppuccin;
|
||||||
|
extraConfig = ''
|
||||||
|
set-option -g status-position top
|
||||||
|
set -g @catppuccin_window_left_separator ""
|
||||||
|
set -g @catppuccin_window_right_separator " "
|
||||||
|
set -g @catppuccin_window_middle_separator " █"
|
||||||
|
set -g @catppuccin_window_number_position "right"
|
||||||
|
|
||||||
|
set -g @catppuccin_window_default_fill "number"
|
||||||
|
set -g @catppuccin_window_default_text "#W"
|
||||||
|
|
||||||
|
set -g @catppuccin_window_current_fill "number"
|
||||||
|
set -g @catppuccin_window_current_text "#W"
|
||||||
|
|
||||||
|
set -g @catppuccin_status_modules_right "directory session"
|
||||||
|
set -g @catppuccin_status_left_separator " "
|
||||||
|
set -g @catppuccin_status_right_separator ""
|
||||||
|
set -g @catppuccin_status_fill "icon"
|
||||||
|
set -g @catppuccin_status_connect_separator "no"
|
||||||
|
|
||||||
|
set -g @catppuccin_directory_text "#{pane_current_path}"
|
||||||
|
set -g @catppuccin_status_background "default"
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
programs.git = {
|
|
||||||
enable = true;
|
|
||||||
userName = "Hadi"; # CHANGEME
|
|
||||||
userEmail = "112569860+anotherhadi@users.noreply.github.com"; # CHANGEME
|
|
||||||
extraConfig = {
|
|
||||||
init.defaultBranch = "main";
|
|
||||||
# Automatically track remote branch
|
|
||||||
push.autoSetupRemote = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,56 +1,61 @@
|
|||||||
{ config, pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
let variable = import ../variables.nix;
|
||||||
|
in {
|
||||||
|
|
||||||
imports = [
|
imports = [ ./themes ./system ./scripts ./apps ];
|
||||||
./hyprland
|
|
||||||
./nvim
|
|
||||||
./waybar
|
|
||||||
./kitty
|
|
||||||
./dunst
|
|
||||||
./wlogout
|
|
||||||
./wofi
|
|
||||||
./qutebrowser
|
|
||||||
./git
|
|
||||||
./shell
|
|
||||||
./misc
|
|
||||||
./nextcloud
|
|
||||||
./scripts
|
|
||||||
./neofetch
|
|
||||||
./spicetify
|
|
||||||
./variables/theme
|
|
||||||
./wallpaper
|
|
||||||
];
|
|
||||||
|
|
||||||
home.username = "hadi"; # CHANGEME
|
home = {
|
||||||
home.homeDirectory = "/home/hadi"; # CHANGEME
|
username = variable.username;
|
||||||
|
homeDirectory = variable.homeDirectory;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
swappy
|
swappy
|
||||||
imv
|
imv
|
||||||
discord
|
discord
|
||||||
obsidian
|
obsidian
|
||||||
ranger
|
btop
|
||||||
fd
|
xfce.thunar
|
||||||
btop
|
bitwarden
|
||||||
go
|
vlc
|
||||||
cargo
|
|
||||||
nodejs
|
|
||||||
python3
|
|
||||||
unzip
|
|
||||||
blueman
|
|
||||||
gcc
|
|
||||||
peaclock
|
|
||||||
xdg_utils
|
|
||||||
tldr
|
|
||||||
qt5ct
|
|
||||||
libva
|
|
||||||
wget
|
|
||||||
ripgrep
|
|
||||||
|
|
||||||
# Backup
|
# Dev
|
||||||
vscode
|
go
|
||||||
firefox
|
cargo
|
||||||
];
|
nodejs
|
||||||
|
python3
|
||||||
|
jq
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
# Utils
|
||||||
|
sops # Secrets
|
||||||
|
age # Secrets
|
||||||
|
fd
|
||||||
|
bc
|
||||||
|
gcc
|
||||||
|
blueman
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
xdg_utils
|
||||||
|
tldr
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
ripgrep
|
||||||
|
neovide
|
||||||
|
wf-recorder
|
||||||
|
tree # temp
|
||||||
|
|
||||||
|
# Just cool
|
||||||
|
peaclock
|
||||||
|
cbonsai
|
||||||
|
pipes
|
||||||
|
cmatrix
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
vscode
|
||||||
|
firefox
|
||||||
|
tor-browser
|
||||||
|
];
|
||||||
|
|
||||||
|
stateVersion = variable.stateVersion;
|
||||||
|
};
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,149 +0,0 @@
|
|||||||
{ pkgs, config, ... }: {
|
|
||||||
|
|
||||||
imports = [ ./hyprlock.nix ./hypridle.nix ./hyprpaper.nix ];
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
xdg-desktop-portal-hyprland
|
|
||||||
wlr-randr
|
|
||||||
wl-clipboard
|
|
||||||
brightnessctl
|
|
||||||
gnome.gnome-themes-extra
|
|
||||||
adwaita-qt
|
|
||||||
adwaita-qt6
|
|
||||||
gnome.adwaita-icon-theme
|
|
||||||
wlsunset
|
|
||||||
xwayland
|
|
||||||
xdg-desktop-portal-gtk
|
|
||||||
wlroots
|
|
||||||
wayland-utils
|
|
||||||
wayland-protocols
|
|
||||||
meson
|
|
||||||
xfce.thunar
|
|
||||||
];
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
"$mod" = "SUPER";
|
|
||||||
"$menu" = "menu";
|
|
||||||
"$powermenu" = "${pkgs.wlogout}/bin/wlogout";
|
|
||||||
|
|
||||||
exec-once =
|
|
||||||
[ "${pkgs.hypridle}/bin/hypridle" "${pkgs.hyprpaper}/bin/hyprpaper" ];
|
|
||||||
|
|
||||||
monitor = [
|
|
||||||
"eDP-2,highres,0x0,1"
|
|
||||||
"desc:AOC U34G2G1 0x00000E06,highrr,2560x0,1"
|
|
||||||
",prefered,auto,1"
|
|
||||||
];
|
|
||||||
|
|
||||||
bind = [
|
|
||||||
"$mod, RETURN, exec, ${pkgs.kitty}/bin/kitty"
|
|
||||||
"$mod, Q, killactive,"
|
|
||||||
"$mod, E, exec, ${pkgs.xfce.thunar}/bin/thunar"
|
|
||||||
"$mod, T, togglefloating,"
|
|
||||||
"$mod, F, fullscreen"
|
|
||||||
"$mod, B, exec, ${pkgs.qutebrowser}/bin/qutebrowser"
|
|
||||||
"$mod, C, exec, ${pkgs.kitty}/bin/kitty --class floating peaclock"
|
|
||||||
"$mod, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
|
||||||
"$mod, SPACE, exec, $menu"
|
|
||||||
"$mod, X, exec, $powermenu"
|
|
||||||
"$mod, left, movefocus, l"
|
|
||||||
"$mod, right, movefocus, r"
|
|
||||||
"$mod, up, movefocus, u"
|
|
||||||
"$mod, down, movefocus, d"
|
|
||||||
] ++ (builtins.concatLists (builtins.genList (i:
|
|
||||||
let ws = i + 1;
|
|
||||||
in [
|
|
||||||
"$mod, code:1${toString i}, workspace, ${toString ws}"
|
|
||||||
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
|
||||||
]) 9));
|
|
||||||
|
|
||||||
bindm = [ "$mod, mouse:272, movewindow" "$mod, R, resizewindow" ];
|
|
||||||
|
|
||||||
bindl = [
|
|
||||||
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_SINK@ toggle"
|
|
||||||
",switch:Lid Switch, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
|
||||||
];
|
|
||||||
|
|
||||||
bindle = [
|
|
||||||
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
|
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
||||||
", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%+"
|
|
||||||
", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%-"
|
|
||||||
];
|
|
||||||
|
|
||||||
env = [
|
|
||||||
"XCURSOR_SIZE,24"
|
|
||||||
"LIBVA_DRIVER_NAME,nvidia"
|
|
||||||
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
|
||||||
"WLR_NO_HARDWARE_CURSORS,1"
|
|
||||||
"WLR_DRM_DEVICES,/dev/dri/card0:/dev/dri/card1"
|
|
||||||
"XDG_SESSION_TYPE,wayland"
|
|
||||||
"XDG_CURRENT_DESKTOP,Hyprland"
|
|
||||||
"XDG_SESSION_TYPE,wayland"
|
|
||||||
"XDG_SESSION_DESKTOP,Hyprland"
|
|
||||||
"QT_QPA_PLATFORMTHEME,qt5ct"
|
|
||||||
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
|
|
||||||
"QT_QPA_PLATFORM=wayland,xcb"
|
|
||||||
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
|
||||||
"QT_STYLE_OVERRIDE,Adwaita-Dark"
|
|
||||||
"T_QPA_PLATFORMTHEME,qt5ct"
|
|
||||||
"GTK_THEME,Adwaita:dark"
|
|
||||||
"GTK2_RC_FILES,/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc"
|
|
||||||
];
|
|
||||||
|
|
||||||
general = {
|
|
||||||
resize_on_border = true;
|
|
||||||
gaps_in = 10;
|
|
||||||
gaps_out = 20;
|
|
||||||
border_size = 2;
|
|
||||||
"col.active_border" = "rgba(${config.theme.colors.primary-bg}ff)";
|
|
||||||
"col.inactive_border" = "rgba(${config.theme.colors.color0}96)";
|
|
||||||
layout = "master";
|
|
||||||
};
|
|
||||||
|
|
||||||
decoration = {
|
|
||||||
rounding = config.theme.rounding;
|
|
||||||
drop_shadow = true;
|
|
||||||
shadow_range = 15;
|
|
||||||
shadow_render_power = 4;
|
|
||||||
"col.shadow" = "rgba(${config.theme.colors.color0}96)";
|
|
||||||
blur = { enabled = false; };
|
|
||||||
};
|
|
||||||
|
|
||||||
master = {
|
|
||||||
new_is_master = true;
|
|
||||||
new_on_top = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
gestures = { workspace_swipe = true; };
|
|
||||||
|
|
||||||
misc = {
|
|
||||||
disable_hyprland_logo = true;
|
|
||||||
disable_splash_rendering = true;
|
|
||||||
focus_on_activate = true;
|
|
||||||
new_window_takes_over_fullscreen = 2;
|
|
||||||
};
|
|
||||||
|
|
||||||
input = {
|
|
||||||
kb_layout = "fr";
|
|
||||||
|
|
||||||
kb_options = "caps:escape";
|
|
||||||
follow_mouse = 1;
|
|
||||||
sensitivity = 0.5;
|
|
||||||
repeat_delay = 300;
|
|
||||||
repeat_rate = 50;
|
|
||||||
numlock_by_default = true;
|
|
||||||
|
|
||||||
touchpad = {
|
|
||||||
natural_scroll = true;
|
|
||||||
clickfinger_behavior = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{ imports = [ ./sshconfig.nix ]; }
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{
|
|
||||||
home.file = {
|
|
||||||
".ssh/config" = {
|
|
||||||
text = ''
|
|
||||||
Host github.com
|
|
||||||
User git
|
|
||||||
Hostname github.com
|
|
||||||
PreferredAuthentications publickey
|
|
||||||
IdentityFile ~/.ssh/github
|
|
||||||
'';
|
|
||||||
executable = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
${c6}
|
|
||||||
⡏⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠋⠉⠉⠉⠉⠉⠉⠉⠉⠉⠉⠙⠉⠉⠉⠹
|
|
||||||
⡇⢸⣿⡟⠛⢿⣷⠀⢸⣿⡟⠛⢿⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡇⠀⢸⣿⡇⠀
|
|
||||||
⡇⢸⣿⣧⣤⣾⠿⠀⢸⣿⣇⣀⣸⡿⠃⢸⣿⡇⠀⢸⣿⡇⢸⣿⣇⣀⣸⣿⡇⠀
|
|
||||||
⡇⢸⣿⡏⠉⢹⣿⡆⢸⣿⡟⠛⢻⣷⡄⢸⣿⡇⠀⢸⣿⡇⢸⣿⡏⠉⢹⣿⡇⠀
|
|
||||||
⡇⢸⣿⣧⣤⣼⡿⠃⢸⣿⡇⠀⢸⣿⡇⠸⣿⣧⣤⣼⡿⠁⢸⣿⡇⠀⢸⣿⡇⠀
|
|
||||||
⣇⣀⣀⣀⣀⣀⣀⣄⣀⣀⣀⣀⣀⣀⣀⣠⣀⡈⠉⣁⣀⣄⣀⣀⣀⣠⣀⣀⣀⣰
|
|
||||||
⣇⣿⠘⣿⣿⣿⡿⡿⣟⣟⢟⢟⢝⠵⡝⣿⡿⢂⣼⣿⣷⣌⠩⡫⡻⣝⠹⢿⣿⣷
|
|
||||||
⡆⣿⣆⠱⣝⡵⣝⢅⠙⣿⢕⢕⢕⢕⢝⣥⢒⠅⣿⣿⣿⡿⣳⣌⠪⡪⣡⢑⢝⣇
|
|
||||||
⡆⣿⣿⣦⠹⣳⣳⣕⢅⠈⢗⢕⢕⢕⢕⢕⢈⢆⠟⠋⠉⠁⠉⠉⠁⠈⠼⢐⢕⢽
|
|
||||||
⡗⢰⣶⣶⣦⣝⢝⢕⢕⠅⡆⢕⢕⢕⢕⢕⣴⠏⣠⡶⠛⡉⡉⡛⢶⣦⡀⠐⣕⢕
|
|
||||||
⡝⡄⢻⢟⣿⣿⣷⣕⣕⣅⣿⣔⣕⣵⣵⣿⣿⢠⣿⢠⣮⡈⣌⠨⠅⠹⣷⡀⢱⢕
|
|
||||||
⡝⡵⠟⠈⢀⣀⣀⡀⠉⢿⣿⣿⣿⣿⣿⣿⣿⣼⣿⢈⡋⠴⢿⡟⣡⡇⣿⡇⡀⢕
|
|
||||||
⡝⠁⣠⣾⠟⡉⡉⡉⠻⣦⣻⣿⣿⣿⣿⣿⣿⣿⣿⣧⠸⣿⣦⣥⣿⡇⡿⣰⢗⢄
|
|
||||||
⠁⢰⣿⡏⣴⣌⠈⣌⠡⠈⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣬⣉⣉⣁⣄⢖⢕⢕⢕
|
|
||||||
⡀⢻⣿⡇⢙⠁⠴⢿⡟⣡⡆⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣵⣵⣿
|
|
||||||
⡻⣄⣻⣿⣌⠘⢿⣷⣥⣿⠇⣿⣿⣿⣿⣿⣿⠛⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
|
|
||||||
⣷⢄⠻⣿⣟⠿⠦⠍⠉⣡⣾⣿⣿⣿⣿⣿⣿⢸⣿⣦⠙⣿⣿⣿⣿⣿⣿⣿⣿⠟
|
|
||||||
⡕⡑⣑⣈⣻⢗⢟⢞⢝⣻⣿⣿⣿⣿⣿⣿⣿⠸⣿⠿⠃⣿⣿⣿⣿⣿⣿⡿⠁⣠
|
|
||||||
⡝⡵⡈⢟⢕⢕⢕⢕⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣿⣿⠿⠋⣀⣈⠙
|
|
||||||
⡝⡵⡕⡀⠑⠳⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⢉⡠⡲⡫⡪⡪⡣
|
|
||||||
@@ -1,893 +0,0 @@
|
|||||||
# Source: https://github.com/Chick2D/neofetch-themes/
|
|
||||||
# Made by https://github.com/Dan1jel
|
|
||||||
# Customization Wiki https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
|
|
||||||
|
|
||||||
print_info() {
|
|
||||||
# info title
|
|
||||||
# info underline
|
|
||||||
prin "\n"
|
|
||||||
prin "┌──────────────────────────────────────┐"
|
|
||||||
# info underline
|
|
||||||
info "\n \n OS" distro
|
|
||||||
info "\n \n Host" model
|
|
||||||
info "\n \n Kernel" kernel
|
|
||||||
info "\n \n Uptime" uptime
|
|
||||||
info "\n \n Packages" packages
|
|
||||||
info "\n \n Shell" shell
|
|
||||||
info "\n \n Resolution" resolution
|
|
||||||
info "\n \n DE" de
|
|
||||||
info "\n \n WM" wm
|
|
||||||
info "\n \n WM Theme" wm_theme
|
|
||||||
info "\n \n Theme" theme
|
|
||||||
info "\n \n Icons" icons
|
|
||||||
info "\n \n Terminal" term
|
|
||||||
info "\n \n Terminal Font" term_font
|
|
||||||
info "\n \n CPU" cpu
|
|
||||||
info "\n \n GPU" gpu
|
|
||||||
info "\n \n Memory" memory
|
|
||||||
# info "GPU Driver" gpu_driver # Linux/macOS only
|
|
||||||
# info "CPU Usage" cpu_usage
|
|
||||||
info "\n \n Disk" disk
|
|
||||||
info "\n \n Battery" battery
|
|
||||||
info "\n \n Font" font
|
|
||||||
info "\n \n Song" song
|
|
||||||
[[ "$player" ]] && prin "\n \n Music Player" "$player"
|
|
||||||
info "\n \n Local IP" local_ip
|
|
||||||
# info "Public IP" public_ip
|
|
||||||
prin "└──────────────────────────────────────┘"
|
|
||||||
# info "Users" users
|
|
||||||
# info "Locale" locale # This only works on glibc systems.
|
|
||||||
# info cols
|
|
||||||
prin "\n"
|
|
||||||
|
|
||||||
prin "\n \n ${cl0}──${cl1}────${cl2}────${cl3}────${cl4}────${cl5}────${cl6}────${cl7}──"
|
|
||||||
|
|
||||||
|
|
||||||
# prin "\n \n \n \n \n \n ${cl0}⬤ \n \n ${cl1}⬤ \n \n ${cl2}⬤ \n \n ${cl3}⬤ \n \n ${cl4}⬤ \n \n ${cl5}⬤ \n \n ${cl6}⬤ \n \n ${cl7}⬤"
|
|
||||||
}
|
|
||||||
|
|
||||||
reset="\033[0m"
|
|
||||||
gray="\033[1;90m"
|
|
||||||
red="\033[1;31m"
|
|
||||||
green="\033[1;32m"
|
|
||||||
yellow="\033[1;33m"
|
|
||||||
blue="\033[1;34m"
|
|
||||||
magenta="\033[1;35m"
|
|
||||||
cyan="\033[1;36m"
|
|
||||||
white="\033[1;37m"
|
|
||||||
|
|
||||||
cl0="${gray}"
|
|
||||||
cl1="${red}"
|
|
||||||
cl2="${green}"
|
|
||||||
cl3="${yellow}"
|
|
||||||
cl4="${blue}"
|
|
||||||
cl5="${magenta}"
|
|
||||||
cl6="${cyan}"
|
|
||||||
cl7="${white}"
|
|
||||||
|
|
||||||
|
|
||||||
# Title
|
|
||||||
|
|
||||||
|
|
||||||
# Hide/Show Fully qualified domain name.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --title_fqdn
|
|
||||||
title_fqdn="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Kernel
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten the output of the kernel function.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --kernel_shorthand
|
|
||||||
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '4.8.9-1-ARCH'
|
|
||||||
# off: 'Linux 4.8.9-1-ARCH'
|
|
||||||
kernel_shorthand="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Distro
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten the output of the distro function
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'tiny', 'off'
|
|
||||||
# Flag: --distro_shorthand
|
|
||||||
# Supports: Everything except Windows and Haiku
|
|
||||||
distro_shorthand="off"
|
|
||||||
|
|
||||||
# Show/Hide OS Architecture.
|
|
||||||
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --os_arch
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Arch Linux x86_64'
|
|
||||||
# off: 'Arch Linux'
|
|
||||||
os_arch="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Uptime
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten the output of the uptime function
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'tiny', 'off'
|
|
||||||
# Flag: --uptime_shorthand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '2 days, 10 hours, 3 mins'
|
|
||||||
# tiny: '2d 10h 3m'
|
|
||||||
# off: '2 days, 10 hours, 3 minutes'
|
|
||||||
uptime_shorthand="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Memory
|
|
||||||
|
|
||||||
|
|
||||||
# Show memory pecentage in output.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --memory_percent
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '1801MiB / 7881MiB (22%)'
|
|
||||||
# off: '1801MiB / 7881MiB'
|
|
||||||
memory_percent="off"
|
|
||||||
|
|
||||||
# Change memory output unit.
|
|
||||||
#
|
|
||||||
# Default: 'mib'
|
|
||||||
# Values: 'kib', 'mib', 'gib'
|
|
||||||
# Flag: --memory_unit
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# kib '1020928KiB / 7117824KiB'
|
|
||||||
# mib '1042MiB / 6951MiB'
|
|
||||||
# gib: ' 0.98GiB / 6.79GiB'
|
|
||||||
memory_unit="mib"
|
|
||||||
|
|
||||||
|
|
||||||
# Packages
|
|
||||||
|
|
||||||
|
|
||||||
# Show/Hide Package Manager names.
|
|
||||||
#
|
|
||||||
# Default: 'tiny'
|
|
||||||
# Values: 'on', 'tiny' 'off'
|
|
||||||
# Flag: --package_managers
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '998 (pacman), 8 (flatpak), 4 (snap)'
|
|
||||||
# tiny: '908 (pacman, flatpak, snap)'
|
|
||||||
# off: '908'
|
|
||||||
package_managers="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Shell
|
|
||||||
|
|
||||||
|
|
||||||
# Show the path to $SHELL
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --shell_path
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '/bin/bash'
|
|
||||||
# off: 'bash'
|
|
||||||
shell_path="off"
|
|
||||||
|
|
||||||
# Show $SHELL version
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --shell_version
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'bash 4.4.5'
|
|
||||||
# off: 'bash'
|
|
||||||
shell_version="on"
|
|
||||||
|
|
||||||
|
|
||||||
# CPU
|
|
||||||
|
|
||||||
|
|
||||||
# CPU speed type
|
|
||||||
#
|
|
||||||
# Default: 'bios_limit'
|
|
||||||
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
|
|
||||||
# Flag: --speed_type
|
|
||||||
# Supports: Linux with 'cpufreq'
|
|
||||||
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
|
|
||||||
speed_type="bios_limit"
|
|
||||||
|
|
||||||
# CPU speed shorthand
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'.
|
|
||||||
# Flag: --speed_shorthand
|
|
||||||
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'i7-6500U (4) @ 3.1GHz'
|
|
||||||
# off: 'i7-6500U (4) @ 3.100GHz'
|
|
||||||
speed_shorthand="off"
|
|
||||||
|
|
||||||
# Enable/Disable CPU brand in output.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --cpu_brand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Intel i7-6500U'
|
|
||||||
# off: 'i7-6500U (4)'
|
|
||||||
cpu_brand="on"
|
|
||||||
|
|
||||||
# CPU Speed
|
|
||||||
# Hide/Show CPU speed.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --cpu_speed
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Intel i7-6500U (4) @ 3.1GHz'
|
|
||||||
# off: 'Intel i7-6500U (4)'
|
|
||||||
cpu_speed="on"
|
|
||||||
|
|
||||||
# CPU Cores
|
|
||||||
# Display CPU cores in output
|
|
||||||
#
|
|
||||||
# Default: 'logical'
|
|
||||||
# Values: 'logical', 'physical', 'off'
|
|
||||||
# Flag: --cpu_cores
|
|
||||||
# Support: 'physical' doesn't work on BSD.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
|
|
||||||
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
|
|
||||||
# off: 'Intel i7-6500U @ 3.1GHz'
|
|
||||||
cpu_cores="logical"
|
|
||||||
|
|
||||||
# CPU Temperature
|
|
||||||
# Hide/Show CPU temperature.
|
|
||||||
# Note the temperature is added to the regular CPU function.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'C', 'F', 'off'
|
|
||||||
# Flag: --cpu_temp
|
|
||||||
# Supports: Linux, BSD
|
|
||||||
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
|
|
||||||
# coretemp kernel module. This only supports newer Intel processors.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
|
|
||||||
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
|
|
||||||
# off: 'Intel i7-6500U (4) @ 3.1GHz'
|
|
||||||
cpu_temp="off"
|
|
||||||
|
|
||||||
|
|
||||||
# GPU
|
|
||||||
|
|
||||||
|
|
||||||
# Enable/Disable GPU Brand
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gpu_brand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'AMD HD 7950'
|
|
||||||
# off: 'HD 7950'
|
|
||||||
gpu_brand="on"
|
|
||||||
|
|
||||||
# Which GPU to display
|
|
||||||
#
|
|
||||||
# Default: 'all'
|
|
||||||
# Values: 'all', 'dedicated', 'integrated'
|
|
||||||
# Flag: --gpu_type
|
|
||||||
# Supports: Linux
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# all:
|
|
||||||
# GPU1: AMD HD 7950
|
|
||||||
# GPU2: Intel Integrated Graphics
|
|
||||||
#
|
|
||||||
# dedicated:
|
|
||||||
# GPU1: AMD HD 7950
|
|
||||||
#
|
|
||||||
# integrated:
|
|
||||||
# GPU1: Intel Integrated Graphics
|
|
||||||
gpu_type="all"
|
|
||||||
|
|
||||||
|
|
||||||
# Resolution
|
|
||||||
|
|
||||||
|
|
||||||
# Display refresh rate next to each monitor
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --refresh_rate
|
|
||||||
# Supports: Doesn't work on Windows.
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: '1920x1080 @ 60Hz'
|
|
||||||
# off: '1920x1080'
|
|
||||||
refresh_rate="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Gtk Theme / Icons / Font
|
|
||||||
|
|
||||||
|
|
||||||
# Shorten output of GTK Theme / Icons / Font
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gtk_shorthand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Numix, Adwaita'
|
|
||||||
# off: 'Numix [GTK2], Adwaita [GTK3]'
|
|
||||||
gtk_shorthand="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Enable/Disable gtk2 Theme / Icons / Font
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gtk2
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
|
||||||
# off: 'Adwaita [GTK3]'
|
|
||||||
gtk2="on"
|
|
||||||
|
|
||||||
# Enable/Disable gtk3 Theme / Icons / Font
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --gtk3
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
|
||||||
# off: 'Numix [GTK2]'
|
|
||||||
gtk3="on"
|
|
||||||
|
|
||||||
|
|
||||||
# IP Address
|
|
||||||
|
|
||||||
|
|
||||||
# Website to ping for the public IP
|
|
||||||
#
|
|
||||||
# Default: 'http://ident.me'
|
|
||||||
# Values: 'url'
|
|
||||||
# Flag: --ip_host
|
|
||||||
public_ip_host="http://ident.me"
|
|
||||||
|
|
||||||
# Public IP timeout.
|
|
||||||
#
|
|
||||||
# Default: '2'
|
|
||||||
# Values: 'int'
|
|
||||||
# Flag: --ip_timeout
|
|
||||||
public_ip_timeout=2
|
|
||||||
|
|
||||||
|
|
||||||
# Desktop Environment
|
|
||||||
|
|
||||||
|
|
||||||
# Show Desktop Environment version
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --de_version
|
|
||||||
de_version="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Disk
|
|
||||||
|
|
||||||
|
|
||||||
# Which disks to display.
|
|
||||||
# The values can be any /dev/sdXX, mount point or directory.
|
|
||||||
# NOTE: By default we only show the disk info for '/'.
|
|
||||||
#
|
|
||||||
# Default: '/'
|
|
||||||
# Values: '/', '/dev/sdXX', '/path/to/drive'.
|
|
||||||
# Flag: --disk_show
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# disk_show=('/' '/dev/sdb1'):
|
|
||||||
# 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
|
|
||||||
#
|
|
||||||
# disk_show=('/'):
|
|
||||||
# 'Disk (/): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
disk_show=('/storage/emulated' '/' '/server')
|
|
||||||
|
|
||||||
# Disk subtitle.
|
|
||||||
# What to append to the Disk subtitle.
|
|
||||||
#
|
|
||||||
# Default: 'mount'
|
|
||||||
# Values: 'mount', 'name', 'dir', 'none'
|
|
||||||
# Flag: --disk_subtitle
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
# mount: 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
|
|
||||||
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
# dir: 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# 'Disk (Local Disk): 74G / 118G (66%)'
|
|
||||||
# 'Disk (Videos): 74G / 118G (66%)'
|
|
||||||
#
|
|
||||||
# none: 'Disk: 74G / 118G (66%)'
|
|
||||||
# 'Disk: 74G / 118G (66%)'
|
|
||||||
# 'Disk: 74G / 118G (66%)'
|
|
||||||
disk_subtitle="none"
|
|
||||||
|
|
||||||
# Disk percent.
|
|
||||||
# Show/Hide disk percent.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --disk_percent
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Disk (/): 74G / 118G (66%)'
|
|
||||||
# off: 'Disk (/): 74G / 118G'
|
|
||||||
disk_percent="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Song
|
|
||||||
|
|
||||||
|
|
||||||
# Manually specify a music player.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'player-name'
|
|
||||||
# Flag: --music_player
|
|
||||||
#
|
|
||||||
# Available values for 'player-name':
|
|
||||||
#
|
|
||||||
# amarok
|
|
||||||
# audacious
|
|
||||||
# banshee
|
|
||||||
# bluemindo
|
|
||||||
# clementine
|
|
||||||
# cmus
|
|
||||||
# deadbeef
|
|
||||||
# deepin-music
|
|
||||||
# dragon
|
|
||||||
# elisa
|
|
||||||
# exaile
|
|
||||||
# gnome-music
|
|
||||||
# gmusicbrowser
|
|
||||||
# gogglesmm
|
|
||||||
# guayadeque
|
|
||||||
# io.elementary.music
|
|
||||||
# iTunes
|
|
||||||
# juk
|
|
||||||
# lollypop
|
|
||||||
# mocp
|
|
||||||
# mopidy
|
|
||||||
# mpd
|
|
||||||
# muine
|
|
||||||
# netease-cloud-music
|
|
||||||
# olivia
|
|
||||||
# playerctl
|
|
||||||
# pogo
|
|
||||||
# pragha
|
|
||||||
# qmmp
|
|
||||||
# quodlibet
|
|
||||||
# rhythmbox
|
|
||||||
# sayonara
|
|
||||||
# smplayer
|
|
||||||
# spotify
|
|
||||||
# strawberry
|
|
||||||
# tauonmb
|
|
||||||
# tomahawk
|
|
||||||
# vlc
|
|
||||||
# xmms2d
|
|
||||||
# xnoise
|
|
||||||
# yarock
|
|
||||||
music_player="auto"
|
|
||||||
|
|
||||||
# Format to display song information.
|
|
||||||
#
|
|
||||||
# Default: '%artist% - %album% - %title%'
|
|
||||||
# Values: '%artist%', '%album%', '%title%'
|
|
||||||
# Flag: --song_format
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# default: 'Song: Jet - Get Born - Sgt Major'
|
|
||||||
song_format="%artist% - %album% - %title%"
|
|
||||||
|
|
||||||
# Print the Artist, Album and Title on separate lines
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --song_shorthand
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# on: 'Artist: The Fratellis'
|
|
||||||
# 'Album: Costello Music'
|
|
||||||
# 'Song: Chelsea Dagger'
|
|
||||||
#
|
|
||||||
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
|
|
||||||
song_shorthand="off"
|
|
||||||
|
|
||||||
# 'mpc' arguments (specify a host, password etc).
|
|
||||||
#
|
|
||||||
# Default: ''
|
|
||||||
# Example: mpc_args=(-h HOST -P PASSWORD)
|
|
||||||
mpc_args=()
|
|
||||||
|
|
||||||
|
|
||||||
# Text Colors
|
|
||||||
|
|
||||||
|
|
||||||
# Text Colors
|
|
||||||
#
|
|
||||||
# Default: 'distro'
|
|
||||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
|
||||||
# Flag: --colors
|
|
||||||
#
|
|
||||||
# Each number represents a different part of the text in
|
|
||||||
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# colors=(distro) - Text is colored based on Distro colors.
|
|
||||||
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
|
|
||||||
colors=(distro)
|
|
||||||
|
|
||||||
|
|
||||||
# Text Options
|
|
||||||
|
|
||||||
|
|
||||||
# Toggle bold text
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --bold
|
|
||||||
bold="on"
|
|
||||||
|
|
||||||
# Enable/Disable Underline
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --underline
|
|
||||||
underline_enabled="on"
|
|
||||||
|
|
||||||
# Underline character
|
|
||||||
#
|
|
||||||
# Default: '-'
|
|
||||||
# Values: 'string'
|
|
||||||
# Flag: --underline_char
|
|
||||||
underline_char="-"
|
|
||||||
|
|
||||||
|
|
||||||
# Info Separator
|
|
||||||
# Replace the default separator with the specified string.
|
|
||||||
#
|
|
||||||
# Default: ':'
|
|
||||||
# Flag: --separator
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# separator="->": 'Shell-> bash'
|
|
||||||
# separator=" =": 'WM = dwm'
|
|
||||||
separator=":"
|
|
||||||
|
|
||||||
|
|
||||||
# Color Blocks
|
|
||||||
|
|
||||||
|
|
||||||
# Color block range
|
|
||||||
# The range of colors to print.
|
|
||||||
#
|
|
||||||
# Default: '0', '15'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --block_range
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
#
|
|
||||||
# Display colors 0-7 in the blocks. (8 colors)
|
|
||||||
# neofetch --block_range 0 7
|
|
||||||
#
|
|
||||||
# Display colors 0-15 in the blocks. (16 colors)
|
|
||||||
# neofetch --block_range 0 15
|
|
||||||
block_range=(0 15)
|
|
||||||
|
|
||||||
# Toggle color blocks
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --color_blocks
|
|
||||||
color_blocks="on"
|
|
||||||
|
|
||||||
# Color block width in spaces
|
|
||||||
#
|
|
||||||
# Default: '3'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --block_width
|
|
||||||
block_width=3
|
|
||||||
|
|
||||||
# Color block height in lines
|
|
||||||
#
|
|
||||||
# Default: '1'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --block_height
|
|
||||||
block_height=1
|
|
||||||
|
|
||||||
# Color Alignment
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'num'
|
|
||||||
# Flag: --col_offset
|
|
||||||
#
|
|
||||||
# Number specifies how far from the left side of the terminal (in spaces) to
|
|
||||||
# begin printing the columns, in case you want to e.g. center them under your
|
|
||||||
# text.
|
|
||||||
# Example:
|
|
||||||
# col_offset="auto" - Default behavior of neofetch
|
|
||||||
# col_offset=7 - Leave 7 spaces then print the colors
|
|
||||||
col_offset="auto"
|
|
||||||
|
|
||||||
# Progress Bars
|
|
||||||
|
|
||||||
|
|
||||||
# Bar characters
|
|
||||||
#
|
|
||||||
# Default: '-', '='
|
|
||||||
# Values: 'string', 'string'
|
|
||||||
# Flag: --bar_char
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# neofetch --bar_char 'elapsed' 'total'
|
|
||||||
# neofetch --bar_char '-' '='
|
|
||||||
bar_char_elapsed="-"
|
|
||||||
bar_char_total="="
|
|
||||||
|
|
||||||
# Toggle Bar border
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --bar_border
|
|
||||||
bar_border="on"
|
|
||||||
|
|
||||||
# Progress bar length in spaces
|
|
||||||
# Number of chars long to make the progress bars.
|
|
||||||
#
|
|
||||||
# Default: '15'
|
|
||||||
# Values: 'num'
|
|
||||||
# Flag: --bar_length
|
|
||||||
bar_length=15
|
|
||||||
|
|
||||||
# Progress bar colors
|
|
||||||
# When set to distro, uses your distro's logo colors.
|
|
||||||
#
|
|
||||||
# Default: 'distro', 'distro'
|
|
||||||
# Values: 'distro', 'num'
|
|
||||||
# Flag: --bar_colors
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# neofetch --bar_colors 3 4
|
|
||||||
# neofetch --bar_colors distro 5
|
|
||||||
bar_color_elapsed="distro"
|
|
||||||
bar_color_total="distro"
|
|
||||||
|
|
||||||
|
|
||||||
# Info display
|
|
||||||
# Display a bar with the info.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'bar', 'infobar', 'barinfo', 'off'
|
|
||||||
# Flags: --cpu_display
|
|
||||||
# --memory_display
|
|
||||||
# --battery_display
|
|
||||||
# --disk_display
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# bar: '[---=======]'
|
|
||||||
# infobar: 'info [---=======]'
|
|
||||||
# barinfo: '[---=======] info'
|
|
||||||
# off: 'info'
|
|
||||||
cpu_display="off"
|
|
||||||
memory_display="off"
|
|
||||||
battery_display="off"
|
|
||||||
disk_display="off"
|
|
||||||
|
|
||||||
|
|
||||||
# Backend Settings
|
|
||||||
|
|
||||||
|
|
||||||
# Image backend.
|
|
||||||
#
|
|
||||||
# Default: 'ascii'
|
|
||||||
# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
|
|
||||||
# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
|
|
||||||
# Flag: --backend
|
|
||||||
image_backend="ascii"
|
|
||||||
|
|
||||||
# Image Source
|
|
||||||
#
|
|
||||||
# Which image or ascii file to display.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
|
|
||||||
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
|
|
||||||
# Flag: --source
|
|
||||||
#
|
|
||||||
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
|
|
||||||
# In ascii mode, distro ascii art will be used and in an image mode, your
|
|
||||||
# wallpaper will be used.
|
|
||||||
image_source="$HOME/.config/neofetch/ascii.txt"
|
|
||||||
|
|
||||||
|
|
||||||
# Ascii Options
|
|
||||||
|
|
||||||
|
|
||||||
# Ascii distro
|
|
||||||
# Which distro's ascii art to display.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', 'distro_name'
|
|
||||||
# Flag: --ascii_distro
|
|
||||||
# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS",
|
|
||||||
# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs,
|
|
||||||
# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock,
|
|
||||||
# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
|
|
||||||
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
|
|
||||||
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
|
|
||||||
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
|
|
||||||
# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary,
|
|
||||||
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
|
|
||||||
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
|
|
||||||
# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
|
|
||||||
# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
|
|
||||||
# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
|
|
||||||
# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
|
|
||||||
# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
|
|
||||||
# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
|
|
||||||
# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba,
|
|
||||||
# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD,
|
|
||||||
# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint,
|
|
||||||
# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix,
|
|
||||||
# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan,
|
|
||||||
# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific,
|
|
||||||
# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz,
|
|
||||||
# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS,
|
|
||||||
# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails,
|
|
||||||
# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio,
|
|
||||||
# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin,
|
|
||||||
# and IRIX have ascii logos
|
|
||||||
# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
|
|
||||||
# Use '{distro name}_old' to use the old logos.
|
|
||||||
# NOTE: Ubuntu has flavor variants.
|
|
||||||
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
|
|
||||||
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
|
|
||||||
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
|
|
||||||
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
|
|
||||||
# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
|
|
||||||
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
|
|
||||||
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
|
|
||||||
# postmarketOS, and Void have a smaller logo variant.
|
|
||||||
# Use '{distro name}_small' to use the small variants.
|
|
||||||
ascii_distro="auto"
|
|
||||||
|
|
||||||
# Ascii Colors
|
|
||||||
#
|
|
||||||
# Default: 'distro'
|
|
||||||
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
|
||||||
# Flag: --ascii_colors
|
|
||||||
#
|
|
||||||
# Example:
|
|
||||||
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
|
|
||||||
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
|
|
||||||
ascii_colors=(distro)
|
|
||||||
|
|
||||||
# Bold ascii logo
|
|
||||||
# Whether or not to bold the ascii logo.
|
|
||||||
#
|
|
||||||
# Default: 'on'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --ascii_bold
|
|
||||||
ascii_bold="on"
|
|
||||||
|
|
||||||
|
|
||||||
# Image Options
|
|
||||||
|
|
||||||
|
|
||||||
# Image loop
|
|
||||||
# Setting this to on will make neofetch redraw the image constantly until
|
|
||||||
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
|
|
||||||
#
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
# Flag: --loop
|
|
||||||
image_loop="off"
|
|
||||||
|
|
||||||
# Thumbnail directory
|
|
||||||
#
|
|
||||||
# Default: '~/.cache/thumbnails/neofetch'
|
|
||||||
# Values: 'dir'
|
|
||||||
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
|
||||||
|
|
||||||
# Crop mode
|
|
||||||
#
|
|
||||||
# Default: 'normal'
|
|
||||||
# Values: 'normal', 'fit', 'fill'
|
|
||||||
# Flag: --crop_mode
|
|
||||||
#
|
|
||||||
# See this wiki page to learn about the fit and fill options.
|
|
||||||
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
|
|
||||||
crop_mode="normal"
|
|
||||||
|
|
||||||
# Crop offset
|
|
||||||
# Note: Only affects 'normal' crop mode.
|
|
||||||
#
|
|
||||||
# Default: 'center'
|
|
||||||
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
|
|
||||||
# 'east', 'southwest', 'south', 'southeast'
|
|
||||||
# Flag: --crop_offset
|
|
||||||
crop_offset="center"
|
|
||||||
|
|
||||||
# Image size
|
|
||||||
# The image is half the terminal width by default.
|
|
||||||
#
|
|
||||||
# Default: 'auto'
|
|
||||||
# Values: 'auto', '00px', '00%', 'none'
|
|
||||||
# Flags: --image_size
|
|
||||||
# --size
|
|
||||||
image_size="auto"
|
|
||||||
|
|
||||||
# Gap between image and text
|
|
||||||
#
|
|
||||||
# Default: '3'
|
|
||||||
# Values: 'num', '-num'
|
|
||||||
# Flag: --gap
|
|
||||||
gap=2
|
|
||||||
|
|
||||||
# Image offsets
|
|
||||||
# Only works with the w3m backend.
|
|
||||||
#
|
|
||||||
# Default: '0'
|
|
||||||
# Values: 'px'
|
|
||||||
# Flags: --xoffset
|
|
||||||
# --yoffset
|
|
||||||
yoffset=0
|
|
||||||
xoffset=0
|
|
||||||
|
|
||||||
# Image background color
|
|
||||||
# Only works with the w3m backend.
|
|
||||||
#
|
|
||||||
# Default: ''
|
|
||||||
# Values: 'color', 'blue'
|
|
||||||
# Flag: --bg_color
|
|
||||||
background_color=
|
|
||||||
|
|
||||||
|
|
||||||
# Misc Options
|
|
||||||
|
|
||||||
# Stdout mode
|
|
||||||
# Turn off all colors and disables image backend (ASCII/Image).
|
|
||||||
# Useful for piping into another command.
|
|
||||||
# Default: 'off'
|
|
||||||
# Values: 'on', 'off'
|
|
||||||
stdout="off"
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{ pkgs, ... }: {
|
|
||||||
home.packages = with pkgs; [ neofetch ];
|
|
||||||
|
|
||||||
xdg.configFile."neofetch" = {
|
|
||||||
recursive = false;
|
|
||||||
source = ./config;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
services.nextcloud-client = {
|
|
||||||
enable = true;
|
|
||||||
startInBackground = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,148 +0,0 @@
|
|||||||
{ pkgs, inputs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
|
||||||
./auto-pairs.nix
|
|
||||||
./options.nix
|
|
||||||
./bufferline.nix
|
|
||||||
./telescope.nix
|
|
||||||
./nvim-tree.nix
|
|
||||||
./lightline.nix
|
|
||||||
./git.nix
|
|
||||||
./cmp.nix
|
|
||||||
./none-ls.nix
|
|
||||||
./wilder.nix
|
|
||||||
./lsp.nix
|
|
||||||
./treesitter.nix
|
|
||||||
./toggleterm.nix
|
|
||||||
./copilot.nix
|
|
||||||
./obsidian.nix
|
|
||||||
./whichkey.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.nixvim = {
|
|
||||||
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
colorschemes.catppuccin.enable = true;
|
|
||||||
colorschemes.catppuccin.transparentBackground = true;
|
|
||||||
|
|
||||||
plugins.alpha = {
|
|
||||||
enable = true;
|
|
||||||
layout = [
|
|
||||||
{
|
|
||||||
type = "padding";
|
|
||||||
val = 4;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "text";
|
|
||||||
opts = { position = "center"; };
|
|
||||||
val = [
|
|
||||||
" "
|
|
||||||
" ████ ██████ █████ ██ "
|
|
||||||
" ███████████ █████ "
|
|
||||||
" █████████ ███████████████████ ███ ███████████ "
|
|
||||||
" █████████ ███ █████████████ █████ ██████████████ "
|
|
||||||
" █████████ ██████████ █████████ █████ █████ ████ █████ "
|
|
||||||
" ███████████ ███ ███ █████████ █████ █████ ████ █████ "
|
|
||||||
" ██████ █████████████████████ ████ █████ █████ ████ ██████ "
|
|
||||||
" "
|
|
||||||
];
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "padding";
|
|
||||||
val = 4;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "group";
|
|
||||||
val = [
|
|
||||||
{
|
|
||||||
type = "button";
|
|
||||||
val = " New file";
|
|
||||||
on_press.__raw = "function() vim.cmd[[ene]] end";
|
|
||||||
opts = {
|
|
||||||
shortcut = "n";
|
|
||||||
position = "center";
|
|
||||||
cursor = 3;
|
|
||||||
width = 50;
|
|
||||||
align_shortcut = "right";
|
|
||||||
hl_shortcut = "Keyword";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "button";
|
|
||||||
val = " NixOs Config";
|
|
||||||
on_press.__raw = "function() vim.cmd[[e ~/.config/nixos]] end";
|
|
||||||
opts = {
|
|
||||||
shortcut = "c";
|
|
||||||
position = "center";
|
|
||||||
cursor = 3;
|
|
||||||
width = 50;
|
|
||||||
align_shortcut = "right";
|
|
||||||
hl_shortcut = "Keyword";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
type = "button";
|
|
||||||
val = " Quit Neovim";
|
|
||||||
on_press.__raw = "function() vim.cmd[[qa]] end";
|
|
||||||
opts = {
|
|
||||||
shortcut = "q";
|
|
||||||
position = "center";
|
|
||||||
cursor = 3;
|
|
||||||
width = 50;
|
|
||||||
align_shortcut = "right";
|
|
||||||
hl_shortcut = "Keyword";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
keymaps = [
|
|
||||||
{
|
|
||||||
key = "<leader>e";
|
|
||||||
action = "<CMD>Neotree toggle<CR>";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<space>fm";
|
|
||||||
action = "<CMD>lua vim.lsp.buf.format()<CR>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>ot";
|
|
||||||
action = "<cmd>lua require('obsidian').util.toggle_checkbox()<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>oo";
|
|
||||||
action = "<cmd>ObsidianQuickSwitch<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>on";
|
|
||||||
action = "<cmd>ObsidianNew<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>of";
|
|
||||||
action = "<cmd>ObsidianSearch<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
key = "<leader>oi";
|
|
||||||
action = "<cmd>ObsidianPasteImg<cr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Terminal Mappings
|
|
||||||
{
|
|
||||||
mode = "t";
|
|
||||||
key = "<esc>";
|
|
||||||
action = "<C-\\><C-n>";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.toggleterm = {
|
|
||||||
enable = true;
|
|
||||||
openMapping = "<C-t>";
|
|
||||||
direction = "horizontal";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,278 +0,0 @@
|
|||||||
{ config, ... }: {
|
|
||||||
|
|
||||||
imports = [ ./duckduckgo-colorscheme.nix ];
|
|
||||||
|
|
||||||
programs.qutebrowser = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
searchEngines = {
|
|
||||||
"DEFAULT" = "https://duckduckgo.com/?q={}&ia=web";
|
|
||||||
"d" = "https://duckduckgo.com/?q={}&ia=web";
|
|
||||||
"g" = "https://google.com/search?q={}";
|
|
||||||
"y" = "https://youtube.com/results?search_query={}";
|
|
||||||
"n" = "https://mynixos.com/search?q={}";
|
|
||||||
"nixo" = "https://search.nixos.org/options?channel=unstable&query={}";
|
|
||||||
"nixp" = "https://search.nixos.org/packages?channel=unstable&query={}";
|
|
||||||
};
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
|
|
||||||
url = {
|
|
||||||
default_page = "https://duckduckgo.com";
|
|
||||||
start_pages = [ "https://duckduckgo.com" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
colors = {
|
|
||||||
tabs = {
|
|
||||||
odd.bg = "#${config.theme.colors.bg}";
|
|
||||||
odd.fg = "#${config.theme.colors.fg}";
|
|
||||||
even.bg = "#${config.theme.colors.bg}";
|
|
||||||
even.fg = "#${config.theme.colors.fg}";
|
|
||||||
selected.odd.bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
selected.odd.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
selected.even.bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
selected.even.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
indicator.error = "#${config.theme.colors.color1}";
|
|
||||||
indicator.start = "#${config.theme.colors.alt-bg}";
|
|
||||||
indicator.stop = "#${config.theme.colors.alt-bg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
hints = {
|
|
||||||
bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
match.fg = "#${config.theme.colors.bg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
completion = {
|
|
||||||
category.bg = "#${config.theme.colors.bg}";
|
|
||||||
category.fg = "#${config.theme.colors.fg}";
|
|
||||||
category.border.top = "#${config.theme.colors.bg}";
|
|
||||||
category.border.bottom = "#${config.theme.colors.bg}";
|
|
||||||
|
|
||||||
odd.bg = "#${config.theme.colors.bg}";
|
|
||||||
even.bg = "#${config.theme.colors.bg}";
|
|
||||||
|
|
||||||
fg = [ "#FFFFFF" "#FFFFFF" "#FFFFFF" ];
|
|
||||||
|
|
||||||
match.fg = "#${config.theme.colors.primary-bg}";
|
|
||||||
|
|
||||||
item.selected.bg = "#${config.theme.colors.primary-bg}";
|
|
||||||
item.selected.border.top = "#${config.theme.colors.primary-bg}";
|
|
||||||
item.selected.border.bottom = "#${config.theme.colors.primary-bg}";
|
|
||||||
item.selected.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
item.selected.match.fg = "#${config.theme.colors.primary-fg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
statusbar = {
|
|
||||||
normal.bg = "#${config.theme.colors.bg}";
|
|
||||||
normal.fg = "#${config.theme.colors.fg}";
|
|
||||||
private.bg = "#${config.theme.colors.bg}";
|
|
||||||
private.fg = "#${config.theme.colors.fg}";
|
|
||||||
command = {
|
|
||||||
bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
private.bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
private.fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
messages = {
|
|
||||||
info = {
|
|
||||||
bg = "#${config.theme.colors.alt-bg}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
border = "#${config.theme.colors.alt-bg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
error = {
|
|
||||||
bg = "#${config.theme.colors.color1}";
|
|
||||||
fg = "#${config.theme.colors.alt-fg}";
|
|
||||||
border = "#${config.theme.colors.color1}";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts = { default_family = "#${config.theme.font}"; };
|
|
||||||
|
|
||||||
completion = {
|
|
||||||
height = "30%";
|
|
||||||
open_categories = [ "history" ];
|
|
||||||
scrollbar = {
|
|
||||||
padding = 0;
|
|
||||||
width = 0;
|
|
||||||
};
|
|
||||||
show = "always";
|
|
||||||
shrink = true;
|
|
||||||
timestamp_format = "";
|
|
||||||
web_history.max_items = 7;
|
|
||||||
};
|
|
||||||
|
|
||||||
content = {
|
|
||||||
autoplay = false;
|
|
||||||
javascript.clipboard = "access";
|
|
||||||
pdfjs = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
downloads = {
|
|
||||||
position = "bottom";
|
|
||||||
remove_finished = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
fileselect = {
|
|
||||||
handler = "external";
|
|
||||||
multiple_files.command = [
|
|
||||||
"alacritty"
|
|
||||||
"--embed"
|
|
||||||
"$(xdotool getactivewindow)"
|
|
||||||
"-e"
|
|
||||||
"lf"
|
|
||||||
"-selection-path"
|
|
||||||
"{}"
|
|
||||||
];
|
|
||||||
single_file.command = [
|
|
||||||
"alacritty"
|
|
||||||
"--embed"
|
|
||||||
"$(xdotool getactivewindow)"
|
|
||||||
"-e"
|
|
||||||
"lf"
|
|
||||||
"-selection-path"
|
|
||||||
"{}"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
hints = {
|
|
||||||
border = "none";
|
|
||||||
radius = 1;
|
|
||||||
};
|
|
||||||
|
|
||||||
scrolling = {
|
|
||||||
bar = "never";
|
|
||||||
smooth = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
statusbar = {
|
|
||||||
show = "never";
|
|
||||||
widgets = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
tabs = {
|
|
||||||
show = "multiple";
|
|
||||||
last_close = "close";
|
|
||||||
mode_on_change = "restore";
|
|
||||||
close_mouse_button = "right";
|
|
||||||
};
|
|
||||||
|
|
||||||
zoom.default = "100%";
|
|
||||||
};
|
|
||||||
|
|
||||||
keyMappings = {
|
|
||||||
"<Super-l>" = "o";
|
|
||||||
"<Super-t>" = "O";
|
|
||||||
};
|
|
||||||
|
|
||||||
keyBindings = {
|
|
||||||
normal = {
|
|
||||||
",p" = "tab-move -";
|
|
||||||
",n" = "tab-move +";
|
|
||||||
|
|
||||||
"<Super-r>" = "config-source";
|
|
||||||
|
|
||||||
"<Super-c>" = "fake-key <Ctrl-c>";
|
|
||||||
|
|
||||||
"<Super-Up>" = "scroll-to-perc 0";
|
|
||||||
"<Super-Down>" = "scroll-to-perc";
|
|
||||||
"<Super-Left>" = "back";
|
|
||||||
"<Super-Right>" = "forward";
|
|
||||||
|
|
||||||
"<Super-n>" = "open -w";
|
|
||||||
"<Super-Shift-p>" = "open -p";
|
|
||||||
|
|
||||||
"<Super-w>" = "tab-close";
|
|
||||||
"<Super-1>" = "tab-focus 1";
|
|
||||||
"<Super-2>" = "tab-focus 2";
|
|
||||||
"<Super-3>" = "tab-focus 3";
|
|
||||||
"<Super-4>" = "tab-focus 4";
|
|
||||||
"<Super-5>" = "tab-focus 5";
|
|
||||||
"<Super-6>" = "tab-focus 6";
|
|
||||||
"<Super-7>" = "tab-focus 7";
|
|
||||||
"<Super-8>" = "tab-focus 8";
|
|
||||||
"<Super-9>" = "tab-focus 9";
|
|
||||||
"<Super-0>" = "tab-focus 10";
|
|
||||||
|
|
||||||
"gtb" = "open https://github.com/noib3";
|
|
||||||
"ttb" = "open -t https://github.com/noib3";
|
|
||||||
|
|
||||||
"gma" = "open https://mail.protonmail.com/inbox";
|
|
||||||
"tma" = "open -t https://mail.protonmail.com/inbox";
|
|
||||||
|
|
||||||
"gkp" = "open https://keep.google.com";
|
|
||||||
"tkp" = "open -t https://keep.google.com";
|
|
||||||
|
|
||||||
"grhm" =
|
|
||||||
"open https://github.com/nix-community/home-manager/find/master";
|
|
||||||
"trhm" =
|
|
||||||
"open -t https://github.com/nix-community/home-manager/find/master";
|
|
||||||
|
|
||||||
"gnv" = "open https://github.com/neovim/neovim/tree/master/src/nvim";
|
|
||||||
"tnv" = "open -t https://github.com/neovim/neovim/tree/master/src/nvim";
|
|
||||||
|
|
||||||
"gbg" = "open https://rarbgunblocked.org/torrents.php";
|
|
||||||
"tbg" = "open -t https://rarbgunblocked.org/torrents.php";
|
|
||||||
|
|
||||||
"g12ft" = "open https://12ft.io/";
|
|
||||||
"t12ft" = "open -t https://12ft.io/";
|
|
||||||
|
|
||||||
"gtra" = "open http://localhost:9091/transmission/web/";
|
|
||||||
"ttra" = "open -t http://localhost:9091/transmission/web/";
|
|
||||||
};
|
|
||||||
|
|
||||||
command = {
|
|
||||||
"<Super-w>" = "tab-close";
|
|
||||||
|
|
||||||
"<Super-c>" = "completion-item-yank";
|
|
||||||
"<Super-v>" = "fake-key --global <Ctrl-v>";
|
|
||||||
|
|
||||||
"<Super-Left>" = "rl-beginning-of-line";
|
|
||||||
"<Super-Right>" = "rl-end-of-line";
|
|
||||||
"<Alt-Backspace>" = "rl-backward-kill-word";
|
|
||||||
"<Super-Backspace>" = "rl-unix-line-discard";
|
|
||||||
};
|
|
||||||
|
|
||||||
insert = {
|
|
||||||
"<Super-w>" = "tab-close";
|
|
||||||
|
|
||||||
"<Super-c>" = "fake-key <Ctrl-c>";
|
|
||||||
"<Super-v>" = "fake-key <Ctrl-v>";
|
|
||||||
"<Super-x>" = "fake-key <Ctrl-x>";
|
|
||||||
"<Super-z>" = "fake-key <Ctrl-z>";
|
|
||||||
|
|
||||||
"<Super-Left>" = "fake-key <Home>";
|
|
||||||
"<Super-Right>" = "fake-key <End>";
|
|
||||||
"<Alt-Backspace>" = "fake-key <Ctrl-Backspace>";
|
|
||||||
"<Super-Backspace>" = "fake-key <Shift-Home><Delete>";
|
|
||||||
|
|
||||||
"<Super-1>" = "tab-focus 1";
|
|
||||||
"<Super-2>" = "tab-focus 2";
|
|
||||||
"<Super-3>" = "tab-focus 3";
|
|
||||||
"<Super-4>" = "tab-focus 4";
|
|
||||||
"<Super-5>" = "tab-focus 5";
|
|
||||||
"<Super-6>" = "tab-focus 6";
|
|
||||||
"<Super-7>" = "tab-focus 7";
|
|
||||||
"<Super-8>" = "tab-focus 8";
|
|
||||||
"<Super-9>" = "tab-focus 9";
|
|
||||||
"<Super-0>" = "tab-focus 10";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = ''
|
|
||||||
config.unbind("gm")
|
|
||||||
config.unbind("gd")
|
|
||||||
config.unbind("gb")
|
|
||||||
config.unbind("tl")
|
|
||||||
config.unbind("gt")
|
|
||||||
|
|
||||||
c.tabs.padding = {"bottom": 0, "left": 7, "right": 7, "top": 0}
|
|
||||||
|
|
||||||
config.load_autoconfig(True)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
increments = "5";
|
||||||
|
|
||||||
|
brightness-change = pkgs.writeShellScriptBin "brightness-change" ''
|
||||||
|
sleep 0.05
|
||||||
|
|
||||||
|
[[ $1 == "up" ]] && ${pkgs.brightnessctl}/bin/brightnessctl set ${increments}%+
|
||||||
|
[[ $1 == "down" ]] && ${pkgs.brightnessctl}/bin/brightnessctl set ${increments}%-
|
||||||
|
|
||||||
|
brightness_level=$(${pkgs.brightnessctl}/bin/brightnessctl get)
|
||||||
|
|
||||||
|
message=" Brightness: $brightness_level%"
|
||||||
|
|
||||||
|
${pkgs.libnotify}/bin/notify-send "$message" \
|
||||||
|
-h int:value:"$brightness_level" \
|
||||||
|
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
||||||
|
'';
|
||||||
|
|
||||||
|
brightness-up = pkgs.writeShellScriptBin "brightness-up" ''
|
||||||
|
brightness-change up ${increments}
|
||||||
|
'';
|
||||||
|
|
||||||
|
brightness-down = pkgs.writeShellScriptBin "brightness-down" ''
|
||||||
|
brightness-change down ${increments}
|
||||||
|
'';
|
||||||
|
|
||||||
|
in {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
brightness-change
|
||||||
|
brightness-up
|
||||||
|
brightness-down
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
homedir = config.home.homeDirectory;
|
||||||
|
|
||||||
|
caffeine-status = pkgs.writeShellScriptBin "caffeine-status" ''
|
||||||
|
[[ -f /tmp/caffeine ]] && echo "active" || echo "inactive"
|
||||||
|
'';
|
||||||
|
|
||||||
|
caffeine = pkgs.writeShellScriptBin "caffeine" ''
|
||||||
|
if [[ -f /tmp/caffeine ]]; then
|
||||||
|
rm /tmp/caffeine
|
||||||
|
${pkgs.hyprland}/bin/hyprctl dispatch exec ${pkgs.hypridle}/bin/hypridle
|
||||||
|
message=" Caffeine Deactivated"
|
||||||
|
else
|
||||||
|
touch /tmp/caffeine
|
||||||
|
pkill hypridle
|
||||||
|
message=" Caffeine Activated"
|
||||||
|
fi
|
||||||
|
${pkgs.libnotify}/bin/notify-send "$message" \
|
||||||
|
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = with pkgs; [ caffeine-status caffeine ]; }
|
||||||
@@ -1 +1,17 @@
|
|||||||
{ imports = [ ./scripts.nix ./nerdfetch.nix ]; }
|
{
|
||||||
|
imports = [
|
||||||
|
./nixy
|
||||||
|
./nerdfetch
|
||||||
|
./sounds
|
||||||
|
./brightness
|
||||||
|
./caffeine
|
||||||
|
./night-shift
|
||||||
|
./screenshot
|
||||||
|
./startup
|
||||||
|
./nerdfont_fzf
|
||||||
|
./system
|
||||||
|
./zip
|
||||||
|
|
||||||
|
./misc.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
homedir = config.home.homeDirectory;
|
||||||
|
|
||||||
|
menu = pkgs.writeShellScriptBin "menu" ''
|
||||||
|
if pgrep wofi; then
|
||||||
|
pkill wofi
|
||||||
|
else
|
||||||
|
wofi --show drun
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
powermenu = pkgs.writeShellScriptBin "powermenu" ''
|
||||||
|
if pgrep wlogout; then
|
||||||
|
pkill wlogout
|
||||||
|
else
|
||||||
|
${pkgs.wlogout}/bin/wlogout
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
wireguard-import = pkgs.writeShellScriptBin "wireguard-import" ''
|
||||||
|
nmcli connection import type wireguard file "$1"
|
||||||
|
'';
|
||||||
|
|
||||||
|
vault = pkgs.writeShellScriptBin "vault" ''
|
||||||
|
nvim $HOME/Nextcloud/obsidian
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = with pkgs; [ menu wireguard-import powermenu vault ]; }
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
|
# Nerdfetch: https://github.com/ThatOneCalculator/NerdFetch
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
homedir = config.home.homeDirectory;
|
|
||||||
|
|
||||||
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
|
nerdfetch = pkgs.writeShellScriptBin "nerdfetch" ''
|
||||||
ostype="$(uname)"
|
ostype="$(uname)"
|
||||||
|
|
||||||
@@ -348,9 +346,9 @@ let
|
|||||||
|
|
||||||
## USER VARIABLES -- YOU CAN CHANGE THESE
|
## USER VARIABLES -- YOU CAN CHANGE THESE
|
||||||
|
|
||||||
lc="$reset$bold$magenta" # labels
|
lc="$reset$bold''$${config.theme.colors.primary-ansi-16}" # labels
|
||||||
nc="$reset$bold$magenta" # user
|
nc="$reset$bold''$${config.theme.colors.primary-ansi-16}" # labels
|
||||||
hn="$reset$bold$magenta" # hostname
|
hn="$reset$bold''$${config.theme.colors.primary-ansi-16}" # labels
|
||||||
ic="$reset$white" # info
|
ic="$reset$white" # info
|
||||||
c0="$reset$grey" # first color
|
c0="$reset$grey" # first color
|
||||||
c1="$reset$white" # second color
|
c1="$reset$white" # second color
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
homedir = config.home.homeDirectory;
|
||||||
|
|
||||||
|
nerdfont-fzf = pkgs.writeShellScriptBin "nerdfont-fzf" ''
|
||||||
|
# Dependencies: jq, fzf, wl-copy, wget
|
||||||
|
icons=$(jq -r 'to_entries[] | "\(.key):\(.value.char)"' "${homedir}/.config/nerdfont_glyphnames.json" | awk -F: '{print "\033[95m "$2" \033[0m "$1}')
|
||||||
|
fzf_result=$(echo "$icons" | fzf --ansi --border none | awk '{print $1}')
|
||||||
|
if [ -z "$fzf_result" ]; then
|
||||||
|
echo "No icon selected"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Copied to clipboard: $fzf_result"
|
||||||
|
echo "Paste it to close the window"
|
||||||
|
${pkgs.wl-clipboard}/bin/wl-copy -o "$fzf_result" # wait for paste before exiting.. not cool
|
||||||
|
'';
|
||||||
|
|
||||||
|
nerdfont-fzf-fetch = pkgs.writeShellScriptBin "nerdfont-fzf-fetch" ''
|
||||||
|
wget "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/glyphnames.json" -O "glyphnames.json" || exit 1
|
||||||
|
jq 'del(.METADATA)' "glyphnames.json"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nerdfont-popup = pkgs.writeShellScriptBin "nerdfont-popup" ''
|
||||||
|
${pkgs.kitty}/bin/kitty --class floating -o font_size=18 zsh -c nerdfont-fzf 2>/dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
|
in {
|
||||||
|
home.packages = with pkgs; [ nerdfont-fzf nerdfont-fzf-fetch nerdfont-popup ];
|
||||||
|
|
||||||
|
xdg.configFile."nerdfont_glyphnames.json" = {
|
||||||
|
source = ./nerdfont_glyphnames.json;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
homedir = config.home.homeDirectory;
|
||||||
|
default = "4000";
|
||||||
|
|
||||||
|
night-shift-on = pkgs.writeShellScriptBin "night-shift-on" ''
|
||||||
|
${pkgs.hyprland}/bin/hyprctl dispatch exec "${pkgs.wlsunset}/bin/wlsunset -t ${default}"
|
||||||
|
message=" Night-Shift Activated"
|
||||||
|
${pkgs.libnotify}/bin/notify-send "$message" \
|
||||||
|
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
||||||
|
'';
|
||||||
|
night-shift-off = pkgs.writeShellScriptBin "night-shift-off" ''
|
||||||
|
pkill wlsunset
|
||||||
|
message=" Night-Shift Deactivated"
|
||||||
|
${pkgs.libnotify}/bin/notify-send "$message" \
|
||||||
|
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = with pkgs; [ night-shift-on night-shift-off ]; }
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
homedir = config.home.homeDirectory;
|
||||||
|
|
||||||
|
nixy-rebuild = pkgs.writeShellScriptBin "nixy-rebuild" ''
|
||||||
|
sudo nixos-rebuild switch --flake ${homedir}/.config/nixos#nixy
|
||||||
|
'';
|
||||||
|
|
||||||
|
nixy-edit = pkgs.writeShellScriptBin "nixy-edit" ''
|
||||||
|
$EDITOR ${homedir}/.config/nixos/
|
||||||
|
'';
|
||||||
|
|
||||||
|
nixy-upgrade = pkgs.writeShellScriptBin "nixy-upgrade" ''
|
||||||
|
sudo nixos-rebuild switch --upgrade --flake ${homedir}/.config/nixos#nixy
|
||||||
|
'';
|
||||||
|
|
||||||
|
nixy-update = pkgs.writeShellScriptBin "nixy-update" ''
|
||||||
|
cd ${homedir}/.config/nixos && sudo nix flake update
|
||||||
|
'';
|
||||||
|
|
||||||
|
nixy-gc = pkgs.writeShellScriptBin "nixy-gc" ''
|
||||||
|
cd ${homedir}/.config/nixos && sudo nix-collect-garbage -d
|
||||||
|
'';
|
||||||
|
|
||||||
|
nixy-cb = pkgs.writeShellScriptBin "nixy-cb" ''
|
||||||
|
sudo /run/current-system/bin/switch-to-configuration boot
|
||||||
|
'';
|
||||||
|
|
||||||
|
in {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
nixy-rebuild
|
||||||
|
nixy-edit
|
||||||
|
nixy-upgrade
|
||||||
|
nixy-update
|
||||||
|
nixy-gc
|
||||||
|
nixy-cb
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
homedir = config.home.homeDirectory;
|
||||||
|
|
||||||
|
screenshot = pkgs.writeShellScriptBin "screenshot" ''
|
||||||
|
if [[ $2 == "swappy" ]];then
|
||||||
|
folder="/tmp"
|
||||||
|
else
|
||||||
|
folder="$HOME/Pictures/screenshots"
|
||||||
|
fi
|
||||||
|
filename="$(date +%Y-%m-%d_%H:%M:%S).png"
|
||||||
|
mode="region" # Default to region
|
||||||
|
|
||||||
|
if [[ $1 == "window" ]];then
|
||||||
|
mode="window"
|
||||||
|
elif [[ $1 == "monitor" ]];then
|
||||||
|
mode="output"
|
||||||
|
fi
|
||||||
|
|
||||||
|
${pkgs.hyprshot}/bin/hyprshot -m $mode -o $folder -f $filename -s || exit 1
|
||||||
|
|
||||||
|
if [[ $2 == "swappy" ]];then
|
||||||
|
${pkgs.swappy}/bin/swappy -f "$folder/$filename" -o "$HOME/Pictures/screenshots/$filename"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
message=" Screenshot saved"
|
||||||
|
|
||||||
|
${pkgs.libnotify}/bin/notify-send "$message" \
|
||||||
|
--icon="$folder/$filename" \
|
||||||
|
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
||||||
|
'';
|
||||||
|
in { home.packages = with pkgs; [ hyprshot screenshot ]; }
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
{ pkgs, config, ... }:
|
|
||||||
|
|
||||||
let
|
|
||||||
homedir = config.home.homeDirectory;
|
|
||||||
|
|
||||||
wallpaper = pkgs.writeShellScriptBin "wallpaper" ''
|
|
||||||
WALLPAPER_FOLDER="${homedir}/Nextcloud/wallpaper"
|
|
||||||
|
|
||||||
cd $WALLPAPER_FOLDER
|
|
||||||
|
|
||||||
choosed_wallpaper=$(fd . |
|
|
||||||
fzf \
|
|
||||||
--preview='kitty icat --clear --transfer-mode=memory --stdin=no --place=''${FZF_PREVIEW_COLUMNS}x''${FZF_PREVIEW_LINES}@0x0 {}' \
|
|
||||||
--preview-window=bottom,border-top \
|
|
||||||
--border-label "Wallpaper" ) || exit 1
|
|
||||||
|
|
||||||
swww img $choosed_wallpaper
|
|
||||||
cp $choosed_wallpaper $HOME/.config/wallpaper/default.png
|
|
||||||
'';
|
|
||||||
|
|
||||||
menu = pkgs.writeShellScriptBin "menu" ''
|
|
||||||
if pgrep wofi; then
|
|
||||||
pkill wofi
|
|
||||||
else
|
|
||||||
wofi --show drun
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
|
|
||||||
powermenu = pkgs.writeShellScriptBin "powermenu" ''
|
|
||||||
${pkgs.wlogout}/bin/wlogout
|
|
||||||
'';
|
|
||||||
|
|
||||||
wireguard-import = pkgs.writeShellScriptBin "wireguard-import" ''
|
|
||||||
nmcli connection import type wireguard file "$0"
|
|
||||||
'';
|
|
||||||
|
|
||||||
choose-output = pkgs.writeShellScriptBin "choose-output" ''
|
|
||||||
function parse_sinks(){
|
|
||||||
output=$(wpctl status)
|
|
||||||
sinks=($(echo "$output" | sed 's/ │ //' | awk '/Sinks:/ {flag=1; next} /^$/ {flag=0} flag' | sed 's/ /-/g'))
|
|
||||||
|
|
||||||
for sink in "''${sinks[@]}"; do
|
|
||||||
|
|
||||||
id=""
|
|
||||||
default=false
|
|
||||||
sink=$(echo "$sink" | sed 's/-/ /g')
|
|
||||||
sink_name=$(echo "$sink" | sed 's/\[vol:.*$//')
|
|
||||||
|
|
||||||
if [[ $sink_name == "*"* ]]; then
|
|
||||||
sink_name=$(echo "$sink_name" | sed 's/*//')
|
|
||||||
default=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
id=$(echo "$sink_name" | cut -d'.' -f1)
|
|
||||||
sink_name=$(echo "$sink_name" | sed 's/^[ ]*//;s/[ ]*$//' )
|
|
||||||
sink_name=$(echo "$sink_name" | cut -d'.' -f2 )
|
|
||||||
|
|
||||||
if [[ $default == true ]];then
|
|
||||||
printf "*%s (%d)" "$sink_name" "$id"
|
|
||||||
else
|
|
||||||
printf " %s (%d)" "$sink_name" "$id"
|
|
||||||
fi
|
|
||||||
printf "\n"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
choosed_sink=$(echo "$(parse_sinks)" | fzf \
|
|
||||||
--border-label "Choose sound output" ) || exit 1
|
|
||||||
|
|
||||||
choosed_sink_id=$(echo "$choosed_sink" | sed 's/.*(\(.*\))/\1/')
|
|
||||||
|
|
||||||
wpctl set-default $choosed_sink_id
|
|
||||||
'';
|
|
||||||
|
|
||||||
in {
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
wallpaper
|
|
||||||
menu
|
|
||||||
wireguard-import
|
|
||||||
choose-output
|
|
||||||
powermenu
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
homedir = config.home.homeDirectory;
|
||||||
|
increments = "5";
|
||||||
|
|
||||||
|
sound-change = pkgs.writeShellScriptBin "sound-change" ''
|
||||||
|
sleep 0.05
|
||||||
|
|
||||||
|
[[ $1 == "mute" ]] && wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
|
[[ $1 == "up" ]] && wpctl set-volume @DEFAULT_AUDIO_SINK@ "$2%+"
|
||||||
|
[[ $1 == "down" ]] && wpctl set-volume @DEFAULT_AUDIO_SINK@ "$2%-"
|
||||||
|
|
||||||
|
sink_info=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
|
||||||
|
|
||||||
|
volume=$(echo "$(echo "$sink_info" | awk '{print $2}' | sed 's/%//')*100" | bc -l | xargs printf "%.0f")
|
||||||
|
muted=false
|
||||||
|
if [[ $sink_info == *"MUTED"* ]]; then
|
||||||
|
muted=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
message=""
|
||||||
|
if [ $muted = true ]; then
|
||||||
|
message=" Muted"
|
||||||
|
else
|
||||||
|
message=" Volume: $volume%"
|
||||||
|
fi
|
||||||
|
|
||||||
|
${pkgs.libnotify}/bin/notify-send "$message" \
|
||||||
|
-h int:value:"$volume" \
|
||||||
|
--replace-id="$(cat "/tmp/nixy-notification" 2>/dev/null || echo 0)" --print-id > "/tmp/nixy-notification"
|
||||||
|
'';
|
||||||
|
|
||||||
|
sound-up = pkgs.writeShellScriptBin "sound-up" ''
|
||||||
|
sound-change up ${increments}
|
||||||
|
'';
|
||||||
|
|
||||||
|
sound-down = pkgs.writeShellScriptBin "sound-down" ''
|
||||||
|
sound-change down ${increments}
|
||||||
|
'';
|
||||||
|
|
||||||
|
sound-toggle = pkgs.writeShellScriptBin "sound-toggle" ''
|
||||||
|
sound-change mute
|
||||||
|
'';
|
||||||
|
|
||||||
|
sound-output = pkgs.writeShellScriptBin "sound-output" ''
|
||||||
|
function parse_sinks(){
|
||||||
|
output=$(wpctl status)
|
||||||
|
sinks=($(echo "$output" | sed 's/ │ //' | awk '/Sinks:/ {flag=1; next} /^$/ {flag=0} flag' | sed 's/ /-/g'))
|
||||||
|
|
||||||
|
for sink in "''${sinks[@]}"; do
|
||||||
|
|
||||||
|
id=""
|
||||||
|
default=false
|
||||||
|
sink=$(echo "$sink" | sed 's/-/ /g')
|
||||||
|
sink_name=$(echo "$sink" | sed 's/\[vol:.*$//')
|
||||||
|
|
||||||
|
if [[ $sink_name == "*"* ]]; then
|
||||||
|
sink_name=$(echo "$sink_name" | sed 's/*//')
|
||||||
|
default=true
|
||||||
|
fi
|
||||||
|
|
||||||
|
id=$(echo "$sink_name" | cut -d'.' -f1)
|
||||||
|
sink_name=$(echo "$sink_name" | sed 's/^[ ]*//;s/[ ]*$//' )
|
||||||
|
sink_name=$(echo "$sink_name" | cut -d'.' -f2 )
|
||||||
|
|
||||||
|
if [[ $default == true ]];then
|
||||||
|
printf "*%s (%d)" "$sink_name" "$id"
|
||||||
|
else
|
||||||
|
printf " %s (%d)" "$sink_name" "$id"
|
||||||
|
fi
|
||||||
|
printf "\n"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
choosed_sink=$(echo "$(parse_sinks)" | ${pkgs.fzf}/bin/fzf \
|
||||||
|
--border-label "Choose sound output" ) || exit 1
|
||||||
|
|
||||||
|
choosed_sink_id=$(echo "$choosed_sink" | sed 's/.*(\(.*\))/\1/')
|
||||||
|
|
||||||
|
wpctl set-default $choosed_sink_id
|
||||||
|
'';
|
||||||
|
|
||||||
|
in {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
sound-output
|
||||||
|
sound-change
|
||||||
|
sound-up
|
||||||
|
sound-down
|
||||||
|
sound-toggle
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
# File runned at startup by Hyprland
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
variable = import ../../../variables.nix;
|
||||||
|
|
||||||
|
nextcloud-watch = pkgs.writeShellScriptBin "nextcloud-watch" ''
|
||||||
|
# Start nextcloud if I'm on my networks
|
||||||
|
while true;do
|
||||||
|
ssid=$(nmcli -t -f name connection show --active | head -n1)
|
||||||
|
status=$(pgrep -n nextcloud)
|
||||||
|
if [[ -z $status ]]; then
|
||||||
|
service_status="inactive"
|
||||||
|
else
|
||||||
|
service_status="active"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $ssid == "inthecloud" || $ssid == "Wired connection 2" ]]; then
|
||||||
|
if [[ $service_status == "inactive" ]]; then
|
||||||
|
${pkgs.nextcloud-client}/bin/nextcloud --background
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [[ $service_status == "active" ]]; then
|
||||||
|
pkill nextcloud
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
sleep 120
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
startup = pkgs.writeShellScriptBin "startup" ''
|
||||||
|
# Because HM enabling services suck.
|
||||||
|
|
||||||
|
[[ ${
|
||||||
|
toString variable.enableSops
|
||||||
|
} == "1" ]] && systemctl --user start sops-nix
|
||||||
|
|
||||||
|
[[ ${toString variable.enableNextcloud} == "1" ]] && nextcloud-watch &
|
||||||
|
|
||||||
|
system-notif &
|
||||||
|
${pkgs.waybar}/bin/waybar &
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = with pkgs; [ startup nextcloud-watch nextcloud-client ]; }
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
notify-system = pkgs.writeShellScriptBin "notify-system" ''
|
||||||
|
function minute() {
|
||||||
|
while true;do
|
||||||
|
battery-plugged &
|
||||||
|
battery-level &
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
minute &
|
||||||
|
'';
|
||||||
|
|
||||||
|
battery-plugged = pkgs.writeShellScriptBin "battery-plugged" ''
|
||||||
|
BATTERY_STATUS=$(cat /sys/class/power_supply/BAT*/status | head -n1)
|
||||||
|
OLD_BATTERY_STATUS=$(cat /tmp/old_battery_status 2>/dev/null || echo "Unknown")
|
||||||
|
if [[ $BATTERY_STATUS != $OLD_BATTERY_STATUS ]]; then
|
||||||
|
if [[ $BATTERY_STATUS == "Discharging" ]]; then
|
||||||
|
${pkgs.libnotify}/bin/notify-send " " "Battery is unplugged"
|
||||||
|
else
|
||||||
|
${pkgs.libnotify}/bin/notify-send " " "Battery is plugged in"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo $BATTERY_STATUS > /tmp/old_battery_status
|
||||||
|
'';
|
||||||
|
|
||||||
|
battery-level = pkgs.writeShellScriptBin "battery-level" ''
|
||||||
|
BATTERY_LEVEL=$(cat /sys/class/power_supply/BAT*/capacity | head -n1)
|
||||||
|
BATTERY_STATUS=$(cat /sys/class/power_supply/BAT*/status | head -n1)
|
||||||
|
if [[ $BATTERY_LEVEL -le 20 ]] && [[ $BATTERY_STATUS == "Discharging" ]]; then
|
||||||
|
${pkgs.libnotify}/bin/notify-send " Low battery" "Battery level is $BATTERY_LEVEL%"
|
||||||
|
elif [[ $BATTERY_LEVEL -le 10 ]] && [[ $BATTERY_STATUS == "Discharging" ]]; then
|
||||||
|
${pkgs.libnotify}/bin/notify-send --urgency=critical " Very low battery" "Battery level is $BATTERY_LEVEL%"
|
||||||
|
elif [[ $BATTERY_LEVEL -eq 100 ]] && [[ $BATTERY_STATUS -ne "Discharging" ]]; then
|
||||||
|
${pkgs.libnotify}/bin/notify-send " Fully charged"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
in {
|
||||||
|
home.packages = with pkgs; [ notify-system battery-plugged battery-level ];
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# From https://github.com/Frost-Phoenix/nixos-config
|
||||||
|
{ pkgs, ... }:
|
||||||
|
let
|
||||||
|
compress = pkgs.writeShellScriptBin "compress" ''
|
||||||
|
if (( $# == 1 )) then
|
||||||
|
# echo -ne "Archive name: "
|
||||||
|
# read name
|
||||||
|
# tar -cvzf "$name.tar.gz" $1
|
||||||
|
tar -cvzf "$1.tar.gz" $1
|
||||||
|
else
|
||||||
|
echo "Wrong number of arguments..."
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
extract = pkgs.writeShellScriptBin "extract" ''
|
||||||
|
for i in "$@" ; do
|
||||||
|
tar -xvzf $i
|
||||||
|
break
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
in { home.packages = with pkgs; [ compress extract ]; }
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ ./git ./dunst ./hyprland ./shell ./sops ./waybar ./wlogout ./sops ];
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
{ config, lib, pkgs, ... }: {
|
{ config, pkgs, ... }: {
|
||||||
|
|
||||||
home.packages = with pkgs; [ libnotify ];
|
home.packages = with pkgs; [ libnotify ];
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
rounded = "yes";
|
rounded = "yes";
|
||||||
origin = "top-center";
|
origin = "top-center";
|
||||||
monitor = "0";
|
monitor = "0";
|
||||||
alignment = "left";
|
alignment = "center";
|
||||||
vertical_alignment = "center";
|
vertical_alignment = "center";
|
||||||
width = "400";
|
width = "400";
|
||||||
height = "400";
|
height = "400";
|
||||||
@@ -37,9 +37,14 @@
|
|||||||
corner_radius = config.theme.rounding;
|
corner_radius = config.theme.rounding;
|
||||||
follow = "mouse";
|
follow = "mouse";
|
||||||
font = config.theme.font;
|
font = config.theme.font;
|
||||||
format =
|
format = "<b>%s</b>\\n%b";
|
||||||
"<b>%s</b>\\n%b"; # format = "<span foreground='#f3f4f5'><b>%s %p</b></span>\n%b"
|
progress_bar_corner_radius = config.theme.rounding - 10;
|
||||||
|
#format = ''
|
||||||
|
# <span foreground='#${config.theme.colors.primary-bg}'><b>%s %p</b></span>
|
||||||
|
# %b'';
|
||||||
frame_color = "#" + config.theme.colors.bg;
|
frame_color = "#" + config.theme.colors.bg;
|
||||||
|
highlight = "#" + config.theme.colors.primary-bg;
|
||||||
|
foreground = "#" + config.theme.colors.fg;
|
||||||
frame_width = 1;
|
frame_width = 1;
|
||||||
offset = "0x10";
|
offset = "0x10";
|
||||||
horizontal_padding = 10;
|
horizontal_padding = 10;
|
||||||
@@ -66,8 +71,8 @@
|
|||||||
foreground = "#" + config.theme.colors.color0;
|
foreground = "#" + config.theme.colors.color0;
|
||||||
};
|
};
|
||||||
urgency_low = {
|
urgency_low = {
|
||||||
background = "#" + config.theme.colors.color3;
|
background = "#" + config.theme.colors.alt-bg;
|
||||||
foreground = "#" + config.theme.colors.color0;
|
foreground = "#" + config.theme.colors.alt-fg;
|
||||||
};
|
};
|
||||||
urgency_normal = {
|
urgency_normal = {
|
||||||
background = "#" + config.theme.colors.alt-bg;
|
background = "#" + config.theme.colors.alt-bg;
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
let variable = import ../../../variables.nix;
|
||||||
|
in {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = variable.git.username;
|
||||||
|
userEmail = variable.git.email;
|
||||||
|
extraConfig = {
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,268 @@
|
|||||||
|
{ pkgs, config, hyprland, ... }:
|
||||||
|
let variable = import ../../../variables.nix;
|
||||||
|
in {
|
||||||
|
|
||||||
|
imports = [ ./hyprlock.nix ./hypridle.nix ./hyprpaper.nix ];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
hyprshot
|
||||||
|
hyprpicker
|
||||||
|
hyprcursor
|
||||||
|
xdg-desktop-portal-hyprland
|
||||||
|
wlr-randr
|
||||||
|
wl-clipboard
|
||||||
|
brightnessctl
|
||||||
|
gnome.gnome-themes-extra
|
||||||
|
wlsunset
|
||||||
|
xwayland
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
wlroots
|
||||||
|
qt5ct
|
||||||
|
libva
|
||||||
|
dconf
|
||||||
|
wayland-utils
|
||||||
|
wayland-protocols
|
||||||
|
meson
|
||||||
|
];
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
package = hyprland.packages."${pkgs.system}".hyprland;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
"$mod" = "SUPER";
|
||||||
|
"$shiftMod" = "SUPER_SHIFT";
|
||||||
|
|
||||||
|
exec-once = [
|
||||||
|
"startup"
|
||||||
|
"${pkgs.hypridle}/bin/hypridle"
|
||||||
|
"${pkgs.hyprpaper}/bin/hyprpaper"
|
||||||
|
"${pkgs.bitwarden}/bin/bitwarden"
|
||||||
|
];
|
||||||
|
|
||||||
|
monitor =
|
||||||
|
[ "eDP-2,highres,0x0,1" "DP-8,highrr,2560x0,1" ",prefered,auto,1" ];
|
||||||
|
|
||||||
|
bind = [
|
||||||
|
"$mod, RETURN, exec, ${pkgs.kitty}/bin/kitty"
|
||||||
|
"$mod, E, exec, ${pkgs.xfce.thunar}/bin/thunar"
|
||||||
|
"$mod, B, exec, ${pkgs.qutebrowser}/bin/qutebrowser"
|
||||||
|
"$mod, K, exec, ${pkgs.bitwarden}/bin/bitwarden"
|
||||||
|
"$mod, C, exec, ${pkgs.kitty}/bin/kitty --class peaclock peaclock"
|
||||||
|
"$mod, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
||||||
|
"$mod, X, exec, powermenu"
|
||||||
|
"$mod, SPACE, exec, menu"
|
||||||
|
# Windows control
|
||||||
|
"$mod, Q, killactive,"
|
||||||
|
"$mod, T, togglefloating,"
|
||||||
|
"$mod, F, fullscreen"
|
||||||
|
"$mod, left, movefocus, l"
|
||||||
|
"$mod, right, movefocus, r"
|
||||||
|
"$mod, up, movefocus, u"
|
||||||
|
"$mod, down, movefocus, d"
|
||||||
|
# Screenshots
|
||||||
|
"$mod, PRINT, exec, screenshot window"
|
||||||
|
", PRINT, exec, screenshot monitor"
|
||||||
|
"$shiftMod, PRINT, exec, screenshot region"
|
||||||
|
"ALT, PRINT, exec, screenshot region swappy"
|
||||||
|
# Night Shift
|
||||||
|
"$mod, F2, exec, night-shift-off"
|
||||||
|
"$mod, F3, exec, night-shift-on"
|
||||||
|
# Sound output
|
||||||
|
"$mod, F5, exec, ${pkgs.kitty}/bin/kitty --class floating zsh -c sound-output"
|
||||||
|
"$mod, F6, exec, ${pkgs.kitty}/bin/kitty --class floating zsh -c sound-output"
|
||||||
|
"$mod, F7, exec, ${pkgs.kitty}/bin/kitty --class floating zsh -c sound-output"
|
||||||
|
] ++ (builtins.concatLists (builtins.genList (i:
|
||||||
|
let ws = i + 1;
|
||||||
|
in [
|
||||||
|
"$mod, code:1${toString i}, workspace, ${toString ws}"
|
||||||
|
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
||||||
|
]) 9));
|
||||||
|
|
||||||
|
bindm = [ "$mod, mouse:272, movewindow" "$mod, R, resizewindow" ];
|
||||||
|
|
||||||
|
bindl = [
|
||||||
|
",XF86AudioMute, exec, sound-toggle"
|
||||||
|
",switch:Lid Switch, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
||||||
|
];
|
||||||
|
|
||||||
|
bindle = [
|
||||||
|
", XF86AudioRaiseVolume, exec, sound-up"
|
||||||
|
", XF86AudioLowerVolume, exec, sound-down"
|
||||||
|
", XF86MonBrightnessUp, exec, brightness-up"
|
||||||
|
", XF86MonBrightnessDown, exec, brightness-down"
|
||||||
|
];
|
||||||
|
|
||||||
|
env = [
|
||||||
|
"LIBVA_DRIVER_NAME,nvidia"
|
||||||
|
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||||
|
"WLR_NO_HARDWARE_CURSORS,1"
|
||||||
|
"XDG_SESSION_TYPE,wayland"
|
||||||
|
"XDG_CURRENT_DESKTOP,Hyprland"
|
||||||
|
"XDG_SESSION_TYPE,wayland"
|
||||||
|
"XDG_SESSION_DESKTOP,Hyprland"
|
||||||
|
"QT_AUTO_SCREEN_SCALE_FACTOR,1"
|
||||||
|
"QT_QPA_PLATFORM=wayland,xcb"
|
||||||
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||||
|
"GTK_THEME,Flat-Remix-GTK-Violet-Darkest-Solid:dark"
|
||||||
|
# "GTK_THEME,Nixy-GTK"
|
||||||
|
# "HYPRCURSOR_THEME,rose-pine-hyprcursor"
|
||||||
|
# "HYPRCURSOR_SIZE,16"
|
||||||
|
];
|
||||||
|
|
||||||
|
general = {
|
||||||
|
resize_on_border = true;
|
||||||
|
gaps_in = config.theme.gaps-in;
|
||||||
|
gaps_out = config.theme.gaps-out;
|
||||||
|
border_size = config.theme.border-size;
|
||||||
|
"col.active_border" = "rgba(${config.theme.colors.primary-bg}ff)";
|
||||||
|
"col.inactive_border" = "rgba(00000055)";
|
||||||
|
border_part_of_window = true;
|
||||||
|
layout = "master";
|
||||||
|
};
|
||||||
|
|
||||||
|
decoration = {
|
||||||
|
rounding = config.theme.rounding;
|
||||||
|
drop_shadow = true;
|
||||||
|
shadow_range = 20;
|
||||||
|
shadow_render_power = 3;
|
||||||
|
"col.shadow" = "rgba(00000055)";
|
||||||
|
blur = { enabled = false; };
|
||||||
|
};
|
||||||
|
|
||||||
|
master = {
|
||||||
|
new_is_master = true;
|
||||||
|
new_on_top = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
gestures = { workspace_swipe = true; };
|
||||||
|
|
||||||
|
misc = {
|
||||||
|
disable_hyprland_logo = true;
|
||||||
|
disable_splash_rendering = true;
|
||||||
|
focus_on_activate = true;
|
||||||
|
new_window_takes_over_fullscreen = 2;
|
||||||
|
};
|
||||||
|
|
||||||
|
input = {
|
||||||
|
kb_layout = variable.keyboardLayout;
|
||||||
|
|
||||||
|
kb_options = "caps:escape";
|
||||||
|
follow_mouse = 1;
|
||||||
|
sensitivity = 0.5;
|
||||||
|
repeat_delay = 300;
|
||||||
|
repeat_rate = 50;
|
||||||
|
numlock_by_default = true;
|
||||||
|
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = true;
|
||||||
|
clickfinger_behavior = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
windowrulev2 = [
|
||||||
|
"float, class:peaclock"
|
||||||
|
"move 2% 78%, class:peaclock"
|
||||||
|
"size 30% 20%, class:peaclock"
|
||||||
|
|
||||||
|
"float, class:floating"
|
||||||
|
"size 40% 40%, class:floating"
|
||||||
|
"move 30% 30%, class:floating"
|
||||||
|
|
||||||
|
"float, title:Bluetooth Devices"
|
||||||
|
"move 20% 20%, title:Bluetooth Devices"
|
||||||
|
"size 60% 60%, title:Bluetooth Devices"
|
||||||
|
];
|
||||||
|
|
||||||
|
animations = {
|
||||||
|
enabled = true;
|
||||||
|
# animations from end-4 dotfiles
|
||||||
|
bezier = [
|
||||||
|
"linear, 0, 0, 1, 1"
|
||||||
|
"md3_standard, 0.2, 0, 0, 1"
|
||||||
|
"md3_decel, 0.05, 0.7, 0.1, 1"
|
||||||
|
"md3_accel, 0.3, 0, 0.8, 0.15"
|
||||||
|
"overshot, 0.05, 0.9, 0.1, 1.1"
|
||||||
|
"crazyshot, 0.1, 1.5, 0.76, 0.92 "
|
||||||
|
"hyprnostretch, 0.05, 0.9, 0.1, 1.0"
|
||||||
|
"menu_decel, 0.1, 1, 0, 1"
|
||||||
|
"menu_accel, 0.38, 0.04, 1, 0.07"
|
||||||
|
"easeInOutCirc, 0.85, 0, 0.15, 1"
|
||||||
|
"easeOutCirc, 0, 0.55, 0.45, 1"
|
||||||
|
"easeOutExpo, 0.16, 1, 0.3, 1"
|
||||||
|
"softAcDecel, 0.26, 0.26, 0.15, 1"
|
||||||
|
"md2, 0.4, 0, 0.2, 1"
|
||||||
|
# old
|
||||||
|
# "linear, 0, 0, 1, 1"
|
||||||
|
# "md3_standard, 0.2, 0, 0, 1"
|
||||||
|
# "md3_decel, 0.05, 0.7, 0.1, 1"
|
||||||
|
# "md3_accel, 0.3, 0, 0.8, 0.15"
|
||||||
|
# "overshot, 0.05, 0.9, 0.1, 1.1"
|
||||||
|
# "crazyshot, 0.1, 1.5, 0.76, 0.92 "
|
||||||
|
# "hyprnostretch, 0.05, 0.9, 0.1, 1.0"
|
||||||
|
# "fluent_decel, 0.1, 1, 0, 1"
|
||||||
|
# "easeInOutCirc, 0.85, 0, 0.15, 1"
|
||||||
|
# "easeOutCirc, 0, 0.55, 0.45, 1"
|
||||||
|
# "easeOutExpo, 0.16, 1, 0.3, 1"
|
||||||
|
];
|
||||||
|
|
||||||
|
animation = [
|
||||||
|
"windows, 1, 3, md3_decel, popin 60%"
|
||||||
|
"windowsIn, 1, 3, md3_decel, popin 60%"
|
||||||
|
"windowsOut, 1, 3, md3_accel, popin 60%"
|
||||||
|
"border, 1, 10, default"
|
||||||
|
"fade, 1, 3, md3_decel"
|
||||||
|
# animation = layers, 1, 2, md3_decel, slide
|
||||||
|
"layersIn, 1, 3, menu_decel, slide"
|
||||||
|
"layersOut, 1, 1.6, menu_accel"
|
||||||
|
"fadeLayersIn, 1, 2, menu_decel"
|
||||||
|
"fadeLayersOut, 1, 4.5, menu_accel"
|
||||||
|
"workspaces, 1, 7, menu_decel, slide"
|
||||||
|
# animation = workspaces, 1, 2.5, softAcDecel, slide
|
||||||
|
# animation = workspaces, 1, 7, menu_decel, slidefade 15%
|
||||||
|
# animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
|
||||||
|
"specialWorkspace, 1, 3, md3_decel, slidevert"
|
||||||
|
# old
|
||||||
|
# "windows, 1, 3, md3_decel, popin 60%"
|
||||||
|
# "border, 1, 10, default"
|
||||||
|
# "fade, 1, 2.5, md3_decel"
|
||||||
|
# "workspaces, 1, 3.5, easeOutExpo, slide"
|
||||||
|
# "specialWorkspace, 1, 3, md3_decel, slidevert"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
qt = {
|
||||||
|
enable = true;
|
||||||
|
platformTheme.name = "gtk";
|
||||||
|
style.name = "gtk2";
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
theme = {
|
||||||
|
package = pkgs.flat-remix-gtk;
|
||||||
|
name = "Flat-Remix-GTK-Violet-Darkest-Solid";
|
||||||
|
};
|
||||||
|
|
||||||
|
iconTheme = {
|
||||||
|
package = pkgs.flat-remix-icon-theme;
|
||||||
|
name = "Flat-Remix-Grey-Darkest";
|
||||||
|
};
|
||||||
|
|
||||||
|
font = {
|
||||||
|
name = config.theme.font;
|
||||||
|
size = 11;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.pointerCursor = {
|
||||||
|
gtk.enable = true;
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
name = "Bibata-Modern-Classic";
|
||||||
|
size = 14;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -13,11 +13,11 @@
|
|||||||
on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back ${config.home.username}!"
|
on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back ${config.home.username}!"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Suspend
|
# Suspend (not working on my laptop)
|
||||||
listener {
|
#listener {
|
||||||
timeout = 660
|
# timeout = 660
|
||||||
on-timeout = systemctl suspend
|
# on-timeout = systemctl suspend
|
||||||
# on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back to your desktop!"
|
# on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back to your desktop!"
|
||||||
}
|
#}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
xdg.configFile."hypr/hyprlock.conf".text = ''
|
xdg.configFile."hypr/hyprlock.conf".text = ''
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
path = $HOME/.config/wallpaper/${config.theme.wallpaper}
|
path = $HOME/.config/wallpapers/${config.theme.wallpaper}
|
||||||
color = rgb(${config.theme.colors.bg})
|
color = rgb(${config.theme.colors.bg})
|
||||||
|
|
||||||
blur_size = 4
|
blur_size = 4
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
fade_on_empty = true
|
fade_on_empty = true
|
||||||
placeholder_text = <i>Password...</i> # Text rendered in the input box when it's empty.
|
placeholder_text = <i>Password...</i> # Text rendered in the input box when it's empty.
|
||||||
hide_input = false
|
hide_input = false
|
||||||
position = 0, 50
|
position = 0, 80
|
||||||
halign = center
|
halign = center
|
||||||
valign = bottom
|
valign = bottom
|
||||||
}
|
}
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
home.packages = with pkgs; [ hyprpaper ];
|
home.packages = with pkgs; [ hyprpaper ];
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
||||||
preload = ~/.config/wallpaper/${config.theme.wallpaper}
|
preload = ~/.config/wallpapers/${config.theme.wallpaper}
|
||||||
wallpaper = ,~/.config/wallpaper/${config.theme.wallpaper}
|
wallpaper = ,~/.config/wallpapers/${config.theme.wallpaper}
|
||||||
ipc=true
|
ipc=true
|
||||||
splash=false
|
splash=false
|
||||||
'';
|
'';
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
{
|
{ config, ... }: {
|
||||||
programs.fzf = {
|
programs.fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
colors = {
|
colors = {
|
||||||
"fg+" = "magenta";
|
"fg+" = config.theme.colors.primary-ansi-16;
|
||||||
"bg+" = "-1";
|
"bg+" = "-1";
|
||||||
"fg" = "white";
|
"fg" = "white";
|
||||||
"bg" = "-1";
|
"bg" = "-1";
|
||||||
"prompt" = "grey";
|
"prompt" = "grey";
|
||||||
"pointer" = "magenta";
|
"pointer" = config.theme.colors.primary-ansi-16;
|
||||||
};
|
};
|
||||||
defaultOptions = [
|
defaultOptions = [
|
||||||
"--margin=1"
|
"--margin=1"
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
{ config, lib, ... }: {
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
add_newline = true;
|
||||||
|
format = lib.concatStrings [
|
||||||
|
"$directory"
|
||||||
|
"$git_branch"
|
||||||
|
"$git_state"
|
||||||
|
"$git_status"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
directory = { style = "#${config.theme.colors.primary-bg}"; };
|
||||||
|
|
||||||
|
character = {
|
||||||
|
success_symbol = "[❯](#${config.theme.colors.primary-bg})";
|
||||||
|
error_symbol = "[❯](red)";
|
||||||
|
vimcmd_symbol = "[❮](cyan)";
|
||||||
|
};
|
||||||
|
|
||||||
|
git_branch = {
|
||||||
|
format = "[$branch]($style)";
|
||||||
|
style = "bright-black";
|
||||||
|
};
|
||||||
|
|
||||||
|
git_status = {
|
||||||
|
format =
|
||||||
|
"[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218) ($ahead_behind$stashed)]($style)";
|
||||||
|
style = "cyan";
|
||||||
|
conflicted = "";
|
||||||
|
renamed = "";
|
||||||
|
deleted = "";
|
||||||
|
stashed = "≡";
|
||||||
|
};
|
||||||
|
|
||||||
|
git_state = {
|
||||||
|
format = "([$state( $progress_current/$progress_total)]($style)) ";
|
||||||
|
style = "bright-black";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -4,14 +4,19 @@
|
|||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAutosuggestions = true;
|
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
autosuggestion.enable = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
historySubstringSearch.enable = true;
|
historySubstringSearch.enable = true;
|
||||||
|
|
||||||
initExtraFirst = ''
|
initExtraFirst = ''
|
||||||
bindkey -e
|
bindkey -e
|
||||||
${pkgs.neofetch}/bin/neofetch
|
${if config.theme.neofetch == "neofetch" then
|
||||||
|
pkgs.neofetch + "/bin/neofetch"
|
||||||
|
else if config.theme.neofetch == "nerdfetch" then
|
||||||
|
"nerdfetch"
|
||||||
|
else
|
||||||
|
""}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
history = {
|
history = {
|
||||||
@@ -38,6 +43,8 @@
|
|||||||
sl = "ls";
|
sl = "ls";
|
||||||
open = "${pkgs.xdg_utils}/bin/xdg-open";
|
open = "${pkgs.xdg_utils}/bin/xdg-open";
|
||||||
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
|
icat = "${pkgs.kitty}/bin/kitty +kitten icat";
|
||||||
|
note = "vim ~/Nextcloud/obsidian";
|
||||||
|
obs = "vim ~/Nextcloud/obsidian";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{ sops-nix, ... }: {
|
||||||
|
imports = [ sops-nix.homeManagerModules.sops ];
|
||||||
|
|
||||||
|
sops = {
|
||||||
|
age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
|
||||||
|
defaultSopsFile = ../../../secrets/secrets.yaml;
|
||||||
|
secrets = {
|
||||||
|
sshconfig = { path = "/home/hadi/.ssh/config"; };
|
||||||
|
oxk = { path = "/home/hadi/.ssh/oxserver"; };
|
||||||
|
gk = { path = "/home/hadi/.ssh/github"; };
|
||||||
|
glk = { path = "/home/hadi/.ssh/gitlab"; };
|
||||||
|
silicon = { path = "/home/hadi/.ssh/silicon"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
|
||||||
|
}
|
||||||
@@ -0,0 +1,272 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
services = {
|
||||||
|
blueman-applet.enable = true;
|
||||||
|
network-manager-applet.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.waybar = {
|
||||||
|
enable = true;
|
||||||
|
# package = inputs.waybar.packages."${pkgs.system}".waybar;
|
||||||
|
settings = {
|
||||||
|
mainBar = {
|
||||||
|
layer = "top";
|
||||||
|
position = "top";
|
||||||
|
spacing = 0;
|
||||||
|
"margin-top" =
|
||||||
|
if config.theme.waybar.float then config.theme.gaps-out else 0;
|
||||||
|
"margin-left" =
|
||||||
|
if config.theme.waybar.float then config.theme.gaps-out else 0;
|
||||||
|
"margin-right" =
|
||||||
|
if config.theme.waybar.float then config.theme.gaps-out else 0;
|
||||||
|
height = 44;
|
||||||
|
modules-left = [ "custom/logo" "hyprland/window" ];
|
||||||
|
modules-center = [ "hyprland/workspaces" ];
|
||||||
|
modules-right =
|
||||||
|
[ "tray" "backlight" "pulseaudio" "battery" "clock" "custom/power" ];
|
||||||
|
|
||||||
|
"wlr/taskbar" = {
|
||||||
|
format = "{icon}";
|
||||||
|
"on-click" = "activate";
|
||||||
|
"on-click-right" = "fullscreen";
|
||||||
|
|
||||||
|
"icon-size" = 25;
|
||||||
|
"tooltip-format" = "{title}";
|
||||||
|
};
|
||||||
|
"hyprland/window" = {
|
||||||
|
"format" = "{title:30}";
|
||||||
|
"max-length" = 30;
|
||||||
|
"separate-outputs" = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
"hyprland/workspaces" = {
|
||||||
|
"on-click" = "activate";
|
||||||
|
format = "{icon}";
|
||||||
|
"format-icons" = {
|
||||||
|
"default" = "";
|
||||||
|
"1" = "1";
|
||||||
|
"2" = "2";
|
||||||
|
"3" = "3";
|
||||||
|
"4" = "4";
|
||||||
|
"5" = "5";
|
||||||
|
"6" = "6";
|
||||||
|
"7" = "7";
|
||||||
|
"8" = "8";
|
||||||
|
"9" = "9";
|
||||||
|
"active" = "";
|
||||||
|
"urgent" = "";
|
||||||
|
};
|
||||||
|
"persistent-workspaces" = {
|
||||||
|
"1" = [ ];
|
||||||
|
"2" = [ ];
|
||||||
|
"3" = [ ];
|
||||||
|
"4" = [ ];
|
||||||
|
"5" = [ ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
tray = { spacing = 16; };
|
||||||
|
|
||||||
|
clock = {
|
||||||
|
"tooltip-format" = "<tt>{calendar}</tt>";
|
||||||
|
"format-alt" = " {:%a, %d %b %Y}";
|
||||||
|
format = " {:%I:%M %p}";
|
||||||
|
};
|
||||||
|
|
||||||
|
pulseaudio = {
|
||||||
|
format = "{icon}";
|
||||||
|
"format-bluetooth" = "";
|
||||||
|
nospacing = 1;
|
||||||
|
"tooltip-format" = "Volume : {volume}%";
|
||||||
|
"format-muted" = "";
|
||||||
|
"format-icons" = {
|
||||||
|
"headphone" = "";
|
||||||
|
"default" = [ "" "" "" ];
|
||||||
|
};
|
||||||
|
"on-click" = "pamixer -t";
|
||||||
|
"scroll-step" = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/logo" = {
|
||||||
|
format = " ";
|
||||||
|
tooltip = false;
|
||||||
|
on-click = "menu";
|
||||||
|
};
|
||||||
|
|
||||||
|
battery = {
|
||||||
|
format = "{capacity}% {icon}";
|
||||||
|
"format-icons" = {
|
||||||
|
"charging" = [ "" "" "" "" "" "" "" "" "" "" ];
|
||||||
|
"default" = [ "" "" "" "" "" "" "" "" "" "" ];
|
||||||
|
};
|
||||||
|
"format-full" = " ";
|
||||||
|
interval = 10;
|
||||||
|
states = {
|
||||||
|
warning = 20;
|
||||||
|
critical = 10;
|
||||||
|
};
|
||||||
|
tooltip = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
"custom/power" = {
|
||||||
|
format = "";
|
||||||
|
tooltip = false;
|
||||||
|
on-click = "powermenu";
|
||||||
|
};
|
||||||
|
|
||||||
|
backlight = {
|
||||||
|
device = "nvidia_0";
|
||||||
|
format = "{icon}";
|
||||||
|
"format-icons" = [ " " " " "" "" "" "" "" "" "" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
style = ''
|
||||||
|
* {
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
min-height: 0;
|
||||||
|
font-family: "${config.theme.font}";
|
||||||
|
color: #${config.theme.colors.fg};
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background-color: ${
|
||||||
|
if config.theme.waybar.transparent then
|
||||||
|
"rgba(0, 0, 0, 0)"
|
||||||
|
else
|
||||||
|
"#${config.theme.colors.bg}"
|
||||||
|
};
|
||||||
|
transition-property: background-color;
|
||||||
|
transition-duration: 0.5s;
|
||||||
|
border-radius: ${
|
||||||
|
if config.theme.waybar.float then
|
||||||
|
toString config.theme.rounding
|
||||||
|
else
|
||||||
|
"0"
|
||||||
|
}px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modules-left, .modules-center, .modules-right {
|
||||||
|
border-radius: ${
|
||||||
|
if config.theme.waybar.float then
|
||||||
|
toString config.theme.rounding
|
||||||
|
else
|
||||||
|
"0"
|
||||||
|
}px;
|
||||||
|
background-color: #${config.theme.colors.bg};
|
||||||
|
padding: 2px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar.hidden {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
all: initial; /* Remove GTK theme values (waybar #1351) */
|
||||||
|
min-width: 0; /* Fix weird spacing in materia (waybar #450) */
|
||||||
|
box-shadow: inset 0 -3px transparent; /* Use box-shadow instead of border so the text isn't offset */
|
||||||
|
padding: 6px 18px;
|
||||||
|
margin: 6px 3px;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #${config.theme.colors.alt-bg};
|
||||||
|
color: #${config.theme.colors.alt-fg};
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
color: #${config.theme.colors.primary-fg};
|
||||||
|
background-color: #${config.theme.colors.primary-bg};
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
box-shadow: inherit;
|
||||||
|
text-shadow: inherit;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.urgent {
|
||||||
|
background-color: #${config.theme.colors.color1};
|
||||||
|
}
|
||||||
|
|
||||||
|
#window > * {
|
||||||
|
font-family: "${config.theme.font-mono}";
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory,
|
||||||
|
#custom-power,
|
||||||
|
#battery,
|
||||||
|
#backlight,
|
||||||
|
#pulseaudio,
|
||||||
|
#network,
|
||||||
|
#clock,
|
||||||
|
#tray,
|
||||||
|
#backlight{
|
||||||
|
border-radius: 9px;
|
||||||
|
margin: 6px 3px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
background-color: #${config.theme.colors.alt-bg};
|
||||||
|
color: #${config.theme.colors.alt-fg};
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray menu {
|
||||||
|
background-color: #${config.theme.colors.alt-bg};
|
||||||
|
color: #${config.theme.colors.alt-fg};
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-logo {
|
||||||
|
padding-right: 7px;
|
||||||
|
font-size: 15px;
|
||||||
|
color: #${config.theme.colors.primary-bg};
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
to {
|
||||||
|
background-color: #f38ba8;
|
||||||
|
color: #181825;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.warning,
|
||||||
|
#battery.critical,
|
||||||
|
#battery.urgent {
|
||||||
|
background-color: #ff0048;
|
||||||
|
color: #181825;
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.charging {
|
||||||
|
background-color: #${config.theme.colors.alt-bg};
|
||||||
|
color: #${config.theme.colors.alt-fg};
|
||||||
|
animation: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-power {
|
||||||
|
background-color: #${config.theme.colors.primary-bg};
|
||||||
|
color: #${config.theme.colors.primary-fg};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 15px;
|
||||||
|
background-color: #${config.theme.colors.alt-bg};
|
||||||
|
color: #${config.theme.colors.alt-fg};
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip label {
|
||||||
|
padding: 5px;
|
||||||
|
background-color: #${config.theme.colors.alt-bg};
|
||||||
|
color: #${config.theme.colors.alt-fg};
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -60,11 +60,8 @@
|
|||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: 25%;
|
background-size: 25%;
|
||||||
|
|
||||||
border-style: solid;
|
border: 3px solid #${config.theme.colors.bg};
|
||||||
background-color: #${config.theme.colors.bg};
|
background-color: #${config.theme.colors.bg};
|
||||||
border: ${
|
|
||||||
toString config.theme.border-size
|
|
||||||
}px solid #${config.theme.colors.fg};
|
|
||||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -0,0 +1,38 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
config.theme.colors.primary-ansi-16-number =
|
||||||
|
if config.theme.colors.primary-ansi-16 == "black" then
|
||||||
|
0
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "red" then
|
||||||
|
1
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "green" then
|
||||||
|
2
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "yellow" then
|
||||||
|
3
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "blue" then
|
||||||
|
4
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "magenta" then
|
||||||
|
5
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "cyan" then
|
||||||
|
6
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "white" then
|
||||||
|
7
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "bright-white" then
|
||||||
|
8
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "bright-black" then
|
||||||
|
9
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "bright-red" then
|
||||||
|
10
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "bright-green" then
|
||||||
|
11
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "bright-yellow" then
|
||||||
|
12
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "bright-blue" then
|
||||||
|
13
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "bright-magenta" then
|
||||||
|
14
|
||||||
|
else if config.theme.colors.primary-ansi-16 == "bright-cyan" then
|
||||||
|
15
|
||||||
|
else
|
||||||
|
0;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,18 +1,32 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
with lib; {
|
||||||
with lib;
|
|
||||||
|
|
||||||
{
|
|
||||||
options.theme = {
|
options.theme = {
|
||||||
|
|
||||||
waybar-transparent = mkOption {
|
waybar = {
|
||||||
type = types.bool;
|
transparent = mkOption {
|
||||||
description = "Does waybar have a transparent background?";
|
type = types.bool;
|
||||||
|
description = "Does waybar have a transparent background?";
|
||||||
|
};
|
||||||
|
|
||||||
|
float = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
description = "Floating mode for waybar (gap)";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
animation-speed = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "Options: slow/medium/fast";
|
||||||
|
};
|
||||||
|
|
||||||
|
neofetch = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description = "Options: neofetch/nerdfetch/none";
|
||||||
};
|
};
|
||||||
|
|
||||||
wallpaper = mkOption {
|
wallpaper = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "Name of the wallpaper (in the wallpaper directory)";
|
description = "Name of the wallpaper (from the wallpapers directory)";
|
||||||
};
|
};
|
||||||
|
|
||||||
font = mkOption {
|
font = mkOption {
|
||||||
@@ -78,6 +92,18 @@ with lib;
|
|||||||
"color13"
|
"color13"
|
||||||
"color14"
|
"color14"
|
||||||
"color15"
|
"color15"
|
||||||
]);
|
]) // {
|
||||||
|
primary-ansi-16 = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
description =
|
||||||
|
"Name of the primary color - ansi 16 colors (black, red, green, yellow, blue, magenta, cyan, white, bright-black, bright-red, bright-green, bright-yellow, bright-blue, bright-magenta, bright-cyan, bright-white)";
|
||||||
|
};
|
||||||
|
|
||||||
|
primary-ansi-16-number = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
description = "Set the primary color - ansi 16 colors (0-15)";
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ ... }: { imports = [ ./wip.nix ./wallpapers ./config/load_colors.nix ]; }
|
||||||
@@ -3,31 +3,53 @@
|
|||||||
|
|
||||||
theme = {
|
theme = {
|
||||||
wallpaper = "default.png";
|
wallpaper = "default.png";
|
||||||
waybar-transparent = true;
|
|
||||||
font-mono = "FiraCode Nerd Font Mono";
|
font-mono = "FiraCode Nerd Font Mono";
|
||||||
font = "SFProDisplay Nerd Font";
|
font = "SFProDisplay Nerd Font";
|
||||||
|
|
||||||
rounding = 12;
|
rounding = 12;
|
||||||
gaps-in = 10;
|
gaps-in = 10;
|
||||||
gaps-out = 20;
|
gaps-out = 20;
|
||||||
border-size = 3;
|
border-size = 3;
|
||||||
|
|
||||||
|
neofetch = "nerdfetch";
|
||||||
|
|
||||||
|
waybar = {
|
||||||
|
transparent = true;
|
||||||
|
float = true;
|
||||||
|
};
|
||||||
|
|
||||||
colors = {
|
colors = {
|
||||||
bg = "040409";
|
bg = "040409";
|
||||||
fg = "FCFCFC";
|
fg = "FCFCFC";
|
||||||
alt-bg = "101012";
|
alt-bg = "101012";
|
||||||
alt-fg = "ECECEC";
|
alt-fg = "ECECEC";
|
||||||
|
|
||||||
|
primary-ansi-16 = "magenta";
|
||||||
primary-bg = "a158ff";
|
primary-bg = "a158ff";
|
||||||
primary-fg = "000000";
|
primary-fg = "000000";
|
||||||
|
|
||||||
secondary-bg = "4928B8";
|
secondary-bg = "4928B8";
|
||||||
secondary-fg = "000000";
|
secondary-fg = "000000";
|
||||||
|
|
||||||
|
# Black
|
||||||
color0 = "000000";
|
color0 = "000000";
|
||||||
|
# Red
|
||||||
color1 = "f7768e";
|
color1 = "f7768e";
|
||||||
|
# Green
|
||||||
color2 = "73daca";
|
color2 = "73daca";
|
||||||
|
# Yellow
|
||||||
color3 = "e0af68";
|
color3 = "e0af68";
|
||||||
|
# Blue
|
||||||
color4 = "7aa2f7";
|
color4 = "7aa2f7";
|
||||||
color5 = "9978F8";
|
# Magenta
|
||||||
|
color5 = "a158ff";
|
||||||
|
# Cyan
|
||||||
color6 = "7dcfff";
|
color6 = "7dcfff";
|
||||||
|
# White
|
||||||
color7 = "E4E5E7";
|
color7 = "E4E5E7";
|
||||||
|
|
||||||
|
# Bright
|
||||||
color8 = "515878";
|
color8 = "515878";
|
||||||
color9 = "f7869e";
|
color9 = "f7869e";
|
||||||
color10 = "83eada";
|
color10 = "83eada";
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
xdg.configFile."wallpapers" = {
|
||||||
|
recursive = true;
|
||||||
|
source = ./wallpapers;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
ace8c2c23a7b91dfda17eaf4c81fd9996edc8f12
|
||||||
|
After Width: | Height: | Size: 95 KiB |