Compare commits
164 Commits
v5.0.0
...
a3ec52058e
| Author | SHA1 | Date | |
|---|---|---|---|
| a3ec52058e | |||
| d78f213006 | |||
| 73b2015d02 | |||
| cedad9a7a6 | |||
| 65d6c2f28f | |||
| 18c7618ebf | |||
| e29a5c2517 | |||
| 6f3c922010 | |||
| 2b902ef731 | |||
| 7cb070b6b1 | |||
| e788f5954e | |||
| bfb370d8fe | |||
| 0332b6c56b | |||
| e5bdab5a24 | |||
| a42ef3ff84 | |||
| da33cf1fd3 | |||
| 4290a5e814 | |||
| 8e425d5d87 | |||
| 8aeff4bb9a | |||
| 6d23ca208e | |||
| 41ccb74258 | |||
| 5f1b047221 | |||
| a5b26b92de | |||
| 5e71ef48dd | |||
| 2fc51aa02e | |||
| 7dc90af1c8 | |||
| 7a564110a5 | |||
| bb08cd494a | |||
| 3b5885e2c9 | |||
| d9810c3c1f | |||
| 13f060d100 | |||
| 40164e8cbd | |||
| f9187d3252 | |||
| b86fe8b3c7 | |||
| 9cdddb99c5 | |||
| 35bb470eb1 | |||
| 1a1597ba49 | |||
| 8c55eb48af | |||
| cd3dfb985c | |||
| 19bf7838c4 | |||
| 05da8fd990 | |||
| d28ad77974 | |||
| 379424e228 | |||
| 355336c9ff | |||
| 46b213bbfa | |||
| 4fda4eda9e | |||
| 3bffc0142c | |||
| 21f5d55569 | |||
| 12d7254c83 | |||
| 35dd9bb964 | |||
| e104aec12d | |||
| e11dcecace | |||
| 84d2f689ed | |||
| 52c060c8be | |||
| 28dc3d1a94 | |||
| ef2ee20495 | |||
| f4f253a218 | |||
| 2f0f3c74f3 | |||
| 2809615f7b | |||
| a617044695 | |||
| 379cd9e98d | |||
| 60d880aac2 | |||
| 89d736c311 | |||
| 96faa74cf0 | |||
| 0f6a8af649 | |||
| 80b3607bc1 | |||
| 9c1c2a21a4 | |||
| ab13ead2a8 | |||
| dea3f4f4fd | |||
| 4bf7d41ff1 | |||
| 54bb1e2064 | |||
| 3e818073e0 | |||
| 9c8d27e687 | |||
| ca138aa8af | |||
| 784df1e08f | |||
| a12846fddc | |||
| 820268a2a1 | |||
| 7e19f9ee0d | |||
| 6558683822 | |||
| 8401688019 | |||
| cfd999b373 | |||
| 70b156b828 | |||
| 6e056afe67 | |||
| caa93f691c | |||
| 34776f0af1 | |||
| 7f30239b2a | |||
| 6d744fab45 | |||
| cf6ed4a265 | |||
| 62e0472698 | |||
| d477340177 | |||
| f9c910f5ac | |||
| 41a225ec83 | |||
| 35c98d1b97 | |||
| 1a477e26bc | |||
| 8166950e74 | |||
| ea0d1cee92 | |||
| 8df0278272 | |||
| 6c471c33f7 | |||
| 5182276d1e | |||
| d18e69ee75 | |||
| f363249e41 | |||
| 342fbc2fcc | |||
| 150617ca7a | |||
| 7196117da7 | |||
| ba1feb92ec | |||
| 7452406a00 | |||
| 2c910092c8 | |||
| c3d9df2cb0 | |||
| b573560024 | |||
| 1633e21d9b | |||
| 406d7ae6e9 | |||
| 2055d2da9a | |||
| ec4fc1864c | |||
| fa0aa29974 | |||
| 8e4d046365 | |||
| aec2c05778 | |||
| 5cd78b81d1 | |||
| d906e2675d | |||
| ac5949e2a0 | |||
| 72111e6c3a | |||
| dad7e92a41 | |||
| 8cf07d7418 | |||
| 3ae887ef0e | |||
| ac34c94aad | |||
| dd54fa49f0 | |||
| 4f1920ac35 | |||
| 7693435eab | |||
| 5451b4cfb4 | |||
| 3677d8f6a1 | |||
| 8f3fd2e2a5 | |||
| d7a1249a3f | |||
| 290cfca8b3 | |||
| 5717331eb6 | |||
| 0bf5355641 | |||
| b4c0b61815 | |||
| 011c084203 | |||
| 10215a086f | |||
| 882c3f0c76 | |||
| c3151cc1f5 | |||
| cb1b2c04c7 | |||
| 8ab6e708f6 | |||
| 06805d8d27 | |||
| 557b1d375e | |||
| b9cf6573bd | |||
| 2cd17956fa | |||
| 435d82cfba | |||
| c1b7e8d56c | |||
| 2956e1599a | |||
| 4545f906ef | |||
| ae7d092e1a | |||
| 7252a96939 | |||
| b24abc3831 | |||
| 22395725a3 | |||
| 9beb7bc157 | |||
| f0d8a6b811 | |||
| 202ac3ca3b | |||
| 1f6075cae7 | |||
| 0ab8844d04 | |||
| 1bb1112db2 | |||
| 61804bcbe7 | |||
| 31ace98f68 | |||
| e9480830d8 | |||
| 7490f1ef84 | |||
| f7e41e3653 |
@@ -0,0 +1 @@
|
|||||||
|
todolist.md
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
keys:
|
||||||
|
- &primary age12yvtj49pfh3fqzqflscm0ek4yzrjhr6cqhn7x89gdxnlykq0xudq5c7334
|
||||||
|
creation_rules:
|
||||||
|
- path_regex: secrets/laptop.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *primary
|
||||||
@@ -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,87 @@
|
|||||||
# Nixy
|
[//]: # (Title: Nixy)
|
||||||
|
[//]: # (Description: Nixy is a NixOS configuration with home-manager, secrets and custom theming all in one place. It's a simple way to manage your system configuration and dotfiles.)
|
||||||
This is my dotfiles repo. It's a work in progress, and I'm still learning how to use nix.
|
[//]: # (Author: Hadi)
|
||||||
|
[//]: # (Date: 06/17/24)
|
||||||
Every things that you *must* change got a "CHANGEME" comment.
|
|
||||||
You can search for it with ripgrep: `rg "CHANGEME"`
|
<div align="center">
|
||||||
|
<img src="https://image.nostr.build/70ebe2b5183879d8c0ffa682cd0089e030ad01909678b242ed86449517eac3a5.png" width="100px" />
|
||||||
# TODOLIST
|
</div>
|
||||||
|
|
||||||
- [ ] Variable user & homeDir
|
<br><br>
|
||||||
- [ ] Settings fzf
|
|
||||||
- [ ] Nixvim Alpha config
|
<div align="center">
|
||||||
- [ ] Scripts:
|
<a href="https://github.com/anotherhadi/nixy">
|
||||||
- [ ] Edit
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=Version&message=2.0.0&colorA=040409&colorB=a158ff&logo=githubactions&logoColor=a158ff&"/>
|
||||||
- [ ] Rebuild
|
</a>
|
||||||
- [ ] Update
|
<a href="https://github.com/anotherhadi/nixy/stargazers">
|
||||||
- [ ] Garbage collector
|
<img src="https://img.shields.io/github/stars/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=starship&logoColor=a158ff">
|
||||||
- [ ] Ricing things
|
</a>
|
||||||
- [ ] Peaclock
|
<a href="https://github.com/anotherhadi/nixy/">
|
||||||
- [ ] Find a tui app for white noises (does that exist ? If not, I'll build my own)
|
<img src="https://img.shields.io/github/repo-size/anotherhadi/nixy?color=a158ff&labelColor=040409&style=for-the-badge&logo=github&logoColor=a158ff">
|
||||||
- [ ] Custom GTK & Qt Theme based on the colorscheme
|
</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><br>
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://image.nostr.build/aaf8cf0f3b9784c817f8cf328f19222db2e1886dfb89ae97de83ffa101d437b4.png" width="600px" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
# Nixy
|
||||||
|
|
||||||
|
**Nixy** is a NixOS configuration with home-manager, secrets and custom theming all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
|
||||||
|
## Table of Content
|
||||||
|
|
||||||
|
- [Nixy](#nixy)
|
||||||
|
- [Table of Content](#table-of-content)
|
||||||
|
- [Gallery](#gallery)
|
||||||
|
- [Architecture](#architecture)
|
||||||
|
- [Installation](#installation)
|
||||||
|
- [Documentation](#documentation)
|
||||||
|
|
||||||
|
## Gallery
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
- 🏠 `home` are the dotfiles and configuration files for the user
|
||||||
|
- 💻 `hosts` are the system configuration files
|
||||||
|
- `laptop` is mine
|
||||||
|
- `guest` is a template that you can copy and modify for your own system
|
||||||
|
- `themes` contains all the themes available (see [THEMES.md](docs/THEMES.md))
|
||||||
|
- `shared` are some nix files that you can import (nvidia, prime, fonts, ...)
|
||||||
|
- 🤫 `secrets` are the secrets files encrypted with sops
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
|
```
|
||||||
|
|
||||||
|
- Change the username in the flake.nix file
|
||||||
|
- import the guest configuration instead of the `hosts/laptop` one
|
||||||
|
- import your hardware-configuration.nix into the `hosts/guest` folder
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- [THEMES.md](docs/THEMES.md): How themes work and how to create your own
|
||||||
|
- [APPS.md](docs/APPS.md): Which apps are installed
|
||||||
|
- [SCRIPTS.md](docs/SCRIPTS.md): Scripts that are available
|
||||||
|
- [TODO.md](docs/TODO.md): What's next (feel free to contribute)
|
||||||
|
- [CONTRIBUTING.md](docs/CONTRIBUTING.md): How to contribute
|
||||||
|
- [LICENSE](LICENSE): MIT License
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# APPS
|
||||||
|
|
||||||
|
*non-exhaustive list*
|
||||||
|
|
||||||
|
| Category | Software |
|
||||||
|
|----------------|---------------|
|
||||||
|
| WM | Hyprland |
|
||||||
|
| | hyprlock |
|
||||||
|
| | hyprpaper |
|
||||||
|
| | hypridle |
|
||||||
|
| | wlogout |
|
||||||
|
| Bar | waybar |
|
||||||
|
| Terminal | kitty |
|
||||||
|
| Shell | zsh |
|
||||||
|
| | tmux |
|
||||||
|
| | starship |
|
||||||
|
| | bat |
|
||||||
|
| | eza |
|
||||||
|
| | zoxide |
|
||||||
|
| | fzf |
|
||||||
|
| Editor | neovim(nixvim)|
|
||||||
|
| File manager | lf |
|
||||||
|
| | thunar |
|
||||||
|
| Browser | qutebrowser |
|
||||||
|
| Music | spicetify |
|
||||||
|
| Notifications | dunst |
|
||||||
|
| Launcher | wofi |
|
||||||
|
| DM | tuigreet |
|
||||||
|
| Secrets | sops-nix |
|
||||||
|
| Misc | lazygit |
|
||||||
|
| | neofetch |
|
||||||
|
| | cava |
|
||||||
|
| | ... |
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# Contributing to Nixy
|
||||||
|
|
||||||
|
Everybody is invited and welcome to contribute to Nixy. There is a lot to do... Check the `docs/TODO.md` file!
|
||||||
|
|
||||||
|
The process is straight-forward.
|
||||||
|
|
||||||
|
- Read [How to get faster PR reviews](https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#best-practices-for-faster-reviews) by Kubernetes (but skip step 0 and 1)
|
||||||
|
- Fork Nixy [git repository](https://github.com/anotherhadi/nixy).
|
||||||
|
- Write your changes (new theme, bug fixes, ...).
|
||||||
|
- Create a Pull Request against the main branch of Nixy.
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# Scripts
|
||||||
|
|
||||||
|
## Nix/NixOs shortcuts
|
||||||
|
|
||||||
|
- `nixy-edit`
|
||||||
|
- `nixy-rebuild`
|
||||||
|
- `nixy-update`
|
||||||
|
- `nixy-gc` # garbage collection
|
||||||
|
- `nixy-cb` # clean boot menu
|
||||||
|
|
||||||
|
## Brightness control
|
||||||
|
|
||||||
|
- `brightness-up`
|
||||||
|
- `brightness-down`
|
||||||
|
- `brightness-change <up/down> <increment>`
|
||||||
|
|
||||||
|
## Sound control
|
||||||
|
|
||||||
|
- `sound-up`
|
||||||
|
- `sound-down`
|
||||||
|
- `sound-toggle`
|
||||||
|
- `sound-output`
|
||||||
|
- `sound-change <up/down/mute> <increment>`
|
||||||
|
|
||||||
|
## Caffeine
|
||||||
|
|
||||||
|
Caffeine is a simple script that toggles hypridle (disable suspend & screenlock).
|
||||||
|
|
||||||
|
- `caffeine` # Toggle caffeine
|
||||||
|
- `caffeine-status` # Return active/inactive
|
||||||
|
|
||||||
|
## Night-Shift
|
||||||
|
|
||||||
|
Blue light filter, using wlsunset
|
||||||
|
|
||||||
|
- `night-shift-on`
|
||||||
|
- `night-shift-off`
|
||||||
|
|
||||||
|
## Nerdfont FZF
|
||||||
|
|
||||||
|
Nerdfont fzf is a quick way to search for nerdfont icons locally.
|
||||||
|
It will copy the selected icon to the clipboard.
|
||||||
|
|
||||||
|
- `nerdfont-fzf`
|
||||||
|
|
||||||
|
## Compress/Extract
|
||||||
|
|
||||||
|
Some shortcut to compress and extract files.
|
||||||
|
|
||||||
|
- `compress` ...
|
||||||
|
- `extract` ...
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
# Themes
|
||||||
|
|
||||||
|
Themes are defined in `hosts/themes`. Those themes define the colors, fonts, icons, etc, used by Hyprland and the apps installed.
|
||||||
|
You can change the selected theme by changing the import statement at the top of your host's variables file.
|
||||||
|
|
||||||
|
*To apply the theme to duckduckgo, follow the instructions in `$HOME/.duckduckgo-colorscheme.js`.*
|
||||||
|
|
||||||
|
## Create your own theme
|
||||||
|
|
||||||
|
Create a copy of one of the existing theme and change the variables.
|
||||||
|
Wallpapers are loaded from the `home/wallpapers` folder.
|
||||||
|
|
||||||
|
## Gallery
|
||||||
|
|
||||||
|
### Nixy
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
### Catppuccin
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
### Windows
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# Todolist
|
||||||
|
|
||||||
|
- [ ] Installation script
|
||||||
|
- [ ] Themes
|
||||||
|
- [ ] MacOS theme
|
||||||
|
- [ ] Make hyprcursor work
|
||||||
|
- [ ] Nixvim
|
||||||
|
- [ ] Telescope shortcut for file content
|
||||||
|
- [ ] Markdown snippets
|
||||||
|
- [ ] Make whichkey better
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Compress png files in ./docs/src
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
for file in ./docs/src/*/*.png; do
|
||||||
|
optipng "$file"
|
||||||
|
done
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# This script is used to copy my own configuration to the `./hosts/guest` one, and changing some settings
|
||||||
|
|
||||||
|
[[ -d "./hosts" ]] || (
|
||||||
|
echo "Folder ./hosts not found"
|
||||||
|
exit 1
|
||||||
|
)
|
||||||
|
|
||||||
|
LAPTOP_CONFIG="./hosts/laptop"
|
||||||
|
GUEST_CONFIG="./hosts/guest"
|
||||||
|
|
||||||
|
cp "$LAPTOP_CONFIG/configuration.nix" "$GUEST_CONFIG/configuration.nix"
|
||||||
|
cp "$LAPTOP_CONFIG/variables.nix" "$GUEST_CONFIG/variables.nix"
|
||||||
|
|
||||||
|
# Remove the NVIDIA driver import
|
||||||
|
config=$(cat "$LAPTOP_CONFIG/configuration.nix")
|
||||||
|
config=$(echo "$config" | sed 's/..\/shared\/nvidia/# ..\/shared\/nvidia/')
|
||||||
|
config=$(echo "$config" | sed 's/..\/shared\/prime/# ..\/shared\/prime/')
|
||||||
|
echo "$config" >"$GUEST_CONFIG/configuration.nix"
|
||||||
|
|
||||||
|
variables=$(cat "$LAPTOP_CONFIG/variables.nix")
|
||||||
|
variables=$(echo "$variables" | sed 's/112569860+anotherhadi@users.noreply.github.com/your_email/')
|
||||||
|
variables=$(echo "$variables" | sed 's/hadi/your_username/')
|
||||||
|
variables=$(echo "$variables" | sed 's/Hadi/your_username/')
|
||||||
|
variables=$(echo "$variables" | sed 's/sops = true/sops = false/')
|
||||||
|
variables=$(echo "$variables" | sed 's/nextcloud = true/nextcloud = false/')
|
||||||
|
variables=$(echo "$variables" | sed 's/obsidian = true/obsidian = false/')
|
||||||
|
echo "$variables" >"$GUEST_CONFIG/variables.nix"
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Create the README.md file from the docs/src/README_template.md file
|
||||||
|
|
||||||
|
[[ -d "./docs" ]] || (echo "Folder ./docs not found" && exit 1)
|
||||||
|
|
||||||
|
README_FILE="./README.md"
|
||||||
|
|
||||||
|
header=$(cat "./docs/src/header.md")
|
||||||
|
table_of_content=$(~/go/bin/md-table-of-contents ./docs/src/README_template.md)
|
||||||
|
readme_content=$(cat "./docs/src/README_template.md")
|
||||||
|
|
||||||
|
echo "${header//\{date\}/$(date '+%D')}" >"$README_FILE"
|
||||||
|
echo "${readme_content//\{md_table_of_content\}/$table_of_content}" >>"$README_FILE"
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
# installation script...
|
||||||
|
|
||||||
|
# check if on nixos
|
||||||
|
# check if ./hosts exist
|
||||||
|
# check if gum is installed (dependencie)
|
||||||
|
# save path
|
||||||
|
# remove .git
|
||||||
|
# git init and initial commit
|
||||||
|
# create custom configuration
|
||||||
|
# save it to ./hosts
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[ "$1" = "" ] && echo "Usage: $0 <theme_name>" && exit 1
|
||||||
|
theme_name=$1
|
||||||
|
|
||||||
|
# Switch to workspace 1
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
# Step 1
|
||||||
|
kitty --class peaclock peaclock &
|
||||||
|
sleep 1
|
||||||
|
menu &
|
||||||
|
sleep 1
|
||||||
|
hyprshot -m "output" -m "active" -o "$HOME/.config/nixos/docs/src/$theme_name" -f "1.png" -d
|
||||||
|
sleep 2
|
||||||
|
pkill peaclock
|
||||||
|
menu
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
# Step 2
|
||||||
|
kitty cmatrix &
|
||||||
|
sleep 1
|
||||||
|
kitty &
|
||||||
|
sleep 1
|
||||||
|
qutebrowser &
|
||||||
|
sleep 3
|
||||||
|
hyprshot -m "output" -m "active" -o "$HOME/.config/nixos/docs/src/$theme_name" -f "2.png" -d
|
||||||
|
sleep 2
|
||||||
|
pkill cmatrix
|
||||||
|
pkill --newest qutebrowser ""
|
||||||
|
pkill --newest kitty
|
||||||
|
sleep 2
|
||||||
|
|
||||||
|
# Step 3
|
||||||
|
kitty cava &
|
||||||
|
sleep 1
|
||||||
|
spotify &
|
||||||
|
sleep 10
|
||||||
|
brightness-down
|
||||||
|
sleep 1
|
||||||
|
hyprshot -m "output" -m "active" -o "$HOME/.config/nixos/docs/src/$theme_name" -f "3.png" -d
|
||||||
|
sleep 2
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
|
||||||
|
# Nixy
|
||||||
|
|
||||||
|
**Nixy** is a NixOS configuration with home-manager, secrets and custom theming all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
|
||||||
|
## Table of Content
|
||||||
|
|
||||||
|
{md_table_of_content}
|
||||||
|
|
||||||
|
## Gallery
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
- 🏠 `home` are the dotfiles and configuration files for the user
|
||||||
|
- 💻 `hosts` are the system configuration files
|
||||||
|
- `laptop` is mine
|
||||||
|
- `guest` is a template that you can copy and modify for your own system
|
||||||
|
- `themes` contains all the themes available (see [THEMES.md](docs/THEMES.md))
|
||||||
|
- `shared` are some nix files that you can import (nvidia, prime, fonts, ...)
|
||||||
|
- 🤫 `secrets` are the secrets files encrypted with sops
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git clone https://github.com/anotherhadi/nixy ~/.config/nixos
|
||||||
|
```
|
||||||
|
|
||||||
|
- Change the username in the flake.nix file
|
||||||
|
- import the guest configuration instead of the `hosts/laptop` one
|
||||||
|
- import your hardware-configuration.nix into the `hosts/guest` folder
|
||||||
|
|
||||||
|
```sh
|
||||||
|
sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
- [THEMES.md](docs/THEMES.md): How themes work and how to create your own
|
||||||
|
- [APPS.md](docs/APPS.md): Which apps are installed
|
||||||
|
- [SCRIPTS.md](docs/SCRIPTS.md): Scripts that are available
|
||||||
|
- [TODO.md](docs/TODO.md): What's next (feel free to contribute)
|
||||||
|
- [CONTRIBUTING.md](docs/CONTRIBUTING.md): How to contribute
|
||||||
|
- [LICENSE](LICENSE): MIT License
|
||||||
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 225 KiB |
|
After Width: | Height: | Size: 617 KiB |
@@ -0,0 +1,34 @@
|
|||||||
|
[//]: # (Title: Nixy)
|
||||||
|
[//]: # (Description: Nixy is a NixOS configuration with home-manager, secrets and custom theming all in one place. It's a simple way to manage your system configuration and dotfiles.)
|
||||||
|
[//]: # (Author: Hadi)
|
||||||
|
[//]: # (Date: {date})
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://image.nostr.build/70ebe2b5183879d8c0ffa682cd0089e030ad01909678b242ed86449517eac3a5.png" width="100px" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<a href="https://github.com/anotherhadi/nixy">
|
||||||
|
<img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=Version&message=2.0.0&colorA=040409&colorB=a158ff&logo=githubactions&logoColor=a158ff&"/>
|
||||||
|
</a>
|
||||||
|
<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><br>
|
||||||
|
|
||||||
|
<div align="center">
|
||||||
|
<img src="https://image.nostr.build/aaf8cf0f3b9784c817f8cf328f19222db2e1886dfb89ae97de83ffa101d437b4.png" width="600px" />
|
||||||
|
</div>
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
8c00e379ddd7f89e4bbf9f381a5721d980c8026f
|
||||||
|
After Width: | Height: | Size: 566 KiB |
|
After Width: | Height: | Size: 811 KiB |
@@ -0,0 +1 @@
|
|||||||
|
62b52ad02a886c19a8cfe1ea17e8aaad50f23632
|
||||||
|
After Width: | Height: | Size: 411 KiB |
|
After Width: | Height: | Size: 990 KiB |
@@ -11,11 +11,11 @@
|
|||||||
"sf-pro": "sf-pro"
|
"sf-pro": "sf-pro"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705496891,
|
"lastModified": 1718062482,
|
||||||
"narHash": "sha256-lLX87aJ9oUT3u0Iaf60xKIJ2RQNt3v4Ne2cvSWyaS7U=",
|
"narHash": "sha256-bGWs6XRVgzm1Uagx/EAnz9wnMQVImR1ZlVpAy+SDXCw=",
|
||||||
"owner": "Lyndeno",
|
"owner": "Lyndeno",
|
||||||
"repo": "apple-fonts.nix",
|
"repo": "apple-fonts.nix",
|
||||||
"rev": "e6ffbc887752ba0fe035fbcc8b282555804dd3f6",
|
"rev": "eeb3521706bfe21206b1301ff8e0876defa1b6dd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -33,11 +33,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710156081,
|
"lastModified": 1717408969,
|
||||||
"narHash": "sha256-4PMY6aumJi5dLFjBzF5O4flKXmadMNq3AGUHKYfchh0=",
|
"narHash": "sha256-Q0OEFqe35fZbbRPPRdrjTUUChKVhhWXz3T9ZSKmaoVY=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "devshell",
|
"repo": "devshell",
|
||||||
"rev": "bc68b058dc7e6d4d6befc4ec6c60082b6e844b7d",
|
"rev": "1ebbe68d57457c8cae98145410b164b5477761f4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -84,11 +84,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709336216,
|
"lastModified": 1717285511,
|
||||||
"narHash": "sha256-Dt/wOWeW6Sqm11Yh+2+t0dfEWxoMxGBvv3JpIocFl9E=",
|
"narHash": "sha256-iKzJcpdXih14qYVcZ9QC9XuZYnPc6T8YImb6dX166kw=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "f7b3c975cf067e56e7cda6cb098ebe3fb4d74ca2",
|
"rev": "2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -102,11 +102,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1705309234,
|
"lastModified": 1710146030,
|
||||||
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -116,24 +116,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_2": {
|
"flake-utils_2": {
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1701680307,
|
|
||||||
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils_3": {
|
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_3"
|
"systems": "systems_3"
|
||||||
},
|
},
|
||||||
@@ -151,7 +133,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils_4": {
|
"flake-utils_3": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"systems": "systems_4"
|
"systems": "systems_4"
|
||||||
},
|
},
|
||||||
@@ -169,20 +151,47 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gitignore": {
|
"git-hooks": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"flake-compat": "flake-compat_2",
|
||||||
|
"gitignore": "gitignore",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixvim",
|
"nixvim",
|
||||||
"pre-commit-hooks",
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"nixpkgs-stable": [
|
||||||
|
"nixvim",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1703887061,
|
"lastModified": 1717664902,
|
||||||
"narHash": "sha256-gGPa9qWNc6eCXT/+Z5/zMkyYOuRZqeFZBDbopNZQkuY=",
|
"narHash": "sha256-7XfBuLULizXjXfBYy/VV+SpYMHreNRHk9nKMsm1bgb4=",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"rev": "cc4d466cb1254af050ff7bdf47f6d404a7c646d1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "git-hooks.nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"gitignore": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"git-hooks",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1709087332,
|
||||||
|
"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 +207,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710281778,
|
"lastModified": 1718243258,
|
||||||
"narHash": "sha256-bvWr9vvBrAxb44kHM3H3cY/uQg+4pYP1BM/Nu3e/7V8=",
|
"narHash": "sha256-abBpj2VU8p6qlRzTU8o22q68MmOaZ4v8zZ4UlYl5YRU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "49a266d2ca59df8a03249550e73a54626181b65d",
|
"rev": "8d5e27b4807d25308dfe369d5a923d87e7dbfda3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -219,11 +228,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710062421,
|
"lastModified": 1718141734,
|
||||||
"narHash": "sha256-FiCNRfyUgJOLYIokLiFsfI7B+Zn9HDnOzFR3uVr5qsQ=",
|
"narHash": "sha256-cA+6l8ZCZ7MXGijVuY/1f55+wF/RT4PlTR9+g4bx86w=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "36f873dfc8e2b6b89936ff3e2b74803d50447e0a",
|
"rev": "892f76bd0aa09a0f7f73eb41834b8a904b6d0fad",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -232,6 +241,167 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"hyprcursor": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprlang": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprlang"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717181720,
|
||||||
|
"narHash": "sha256-yv+QZWsusu/NWjydkxixHC2g+tIJ9v+xkE2EiVpJj6g=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprcursor",
|
||||||
|
"rev": "9e27a2c2ceb1e0b85bd55b0afefad196056fe87c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprcursor",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprland": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprcursor": "hyprcursor",
|
||||||
|
"hyprlang": "hyprlang",
|
||||||
|
"hyprutils": "hyprutils",
|
||||||
|
"hyprwayland-scanner": "hyprwayland-scanner",
|
||||||
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"systems": "systems_2",
|
||||||
|
"xdph": "xdph"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718359900,
|
||||||
|
"narHash": "sha256-eVf70Ps7O8R3DEEfSMW54V07kxkRv5IaWMxSa77hMu4=",
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"rev": "b2590b58c51094424a9651d8df37dfab838b5bbb",
|
||||||
|
"revCount": 4824,
|
||||||
|
"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": 1691753796,
|
||||||
|
"narHash": "sha256-zOEwiWoXk3j3+EoF3ySUJmberFewWlagvewDRuWYAso=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprland-protocols",
|
||||||
|
"rev": "0c2ce70625cb30aef199cb388f99e19a61a6ce03",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprland-protocols",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprlang": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprutils": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprutils"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717881852,
|
||||||
|
"narHash": "sha256-XeeVoKHQgfKuXoP6q90sUqKyl7EYy3ol2dVZGM+Jj94=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprlang",
|
||||||
|
"rev": "ec6938c66253429192274d612912649a0cfe4d28",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprlang",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprutils": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717881334,
|
||||||
|
"narHash": "sha256-a0inRgJhPL6v9v7RPM/rx1kbXdfe3xJA1c9z0ZkYnh4=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprutils",
|
||||||
|
"rev": "0693f9398ab693d89c9a0aa3b3d062dd61b7a60e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprutils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"hyprwayland-scanner": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717784906,
|
||||||
|
"narHash": "sha256-YxmfxHfWed1fosaa7fC1u7XoKp1anEZU+7Lh/ojRKoM=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprwayland-scanner",
|
||||||
|
"rev": "0f30f9eca6e404130988554accbb64d1c9ec877d",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "hyprwayland-scanner",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nix-darwin": {
|
"nix-darwin": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -240,11 +410,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1709771483,
|
"lastModified": 1717976995,
|
||||||
"narHash": "sha256-Hjzu9nCknHLQvhdaRFfCEprH0o15KcaNu1QDr3J88DI=",
|
"narHash": "sha256-u3HBinyIyUvL1+N816bODpJmSQdgn0Mbb8BprFw7kqo=",
|
||||||
"owner": "lnl7",
|
"owner": "lnl7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "550340062c16d7ef8c2cc20a3d2b97bcd3c6b6f6",
|
"rev": "315aa649ba307704db0b16c92f097a08a65ec955",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -253,13 +423,29 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixos-hardware": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718349360,
|
||||||
|
"narHash": "sha256-SuPne4BMqh9/IkKIAG47Cu5qfmntAaqlHdX1yuFoDO0=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"rev": "ae5c8dcc4d0182d07d75df2dc97112de822cb9d6",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "master",
|
||||||
|
"repo": "nixos-hardware",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1696375444,
|
"lastModified": 1717786204,
|
||||||
"narHash": "sha256-Sv0ICt/pXfpnFhTGYTsX6lUr1SljnuXWejYTI2ZqHa4=",
|
"narHash": "sha256-4q0s6m0GUcN7q+Y2DqD27iLvbcd1G50T2lv08kKxkSI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "81e8f48ebdecf07aab321182011b067aafc78896",
|
"rev": "051f920625ab5aabe37c920346e3e69d7d34400e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -269,13 +455,45 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-stable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717880976,
|
||||||
|
"narHash": "sha256-BRvSCsKtDUr83NEtbGfHLUOdDK0Cgbezj2PtcHnz+sQ=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "4913a7c3d8b8d00cb9476a6bd730ff57777f740c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "release-23.11",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710272261,
|
"lastModified": 1717974879,
|
||||||
"narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=",
|
"narHash": "sha256-GTO3C88+5DX171F/gVS3Qga/hOs/eRMxPFpiHq2t+D8=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c7b821ba2e1e635ba5a76d299af62821cbcb09f3",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs_3": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718160348,
|
||||||
|
"narHash": "sha256-9YrUjdztqi4Gz8n3mBuqvCkMo4ojrA6nASwyIKWMpus=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2",
|
"rev": "57d6973abba7ea108bac64ae7629e7431e0199b6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -285,7 +503,7 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1686020360,
|
"lastModified": 1686020360,
|
||||||
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
|
"narHash": "sha256-Wee7lIlZ6DIZHHLiNxU5KdYZQl0iprENXa/czzI6Cj4=",
|
||||||
@@ -306,19 +524,20 @@
|
|||||||
"devshell": "devshell",
|
"devshell": "devshell",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
|
"git-hooks": "git-hooks",
|
||||||
"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"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710283972,
|
"lastModified": 1718358971,
|
||||||
"narHash": "sha256-kkN0CJwykU4XoTDLHG68eEBXyp+GLTp7eJGDVrI7QIU=",
|
"narHash": "sha256-8REGUp3RB2/3Q3Ibu00onhj1HyLh/Z8oRU6D3/EQ08w=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "c2cd3cb7a13c0677c49f46d55a8c65b50b7d9431",
|
"rev": "e51b8b9b5c91aa49981d78c4aa1ac08a50150103",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -327,10 +546,39 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nur": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718354773,
|
||||||
|
"narHash": "sha256-p0pjm5l6LOYoEzSMLZv0QSE4vgGwfhkCz7VN58IUjzc=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"rev": "2fe75ecfd4dd1d2063fcc31ccb5db6d9f2b6b33c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"id": "nur",
|
||||||
|
"type": "indirect"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nurpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718354773,
|
||||||
|
"narHash": "sha256-p0pjm5l6LOYoEzSMLZv0QSE4vgGwfhkCz7VN58IUjzc=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"rev": "2fe75ecfd4dd1d2063fcc31ccb5db6d9f2b6b33c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "NUR",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"ny": {
|
"ny": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-phACDdjI8RX6yD77PSmFcsriagt+2UuySD7+WEzdzGo=",
|
"narHash": "sha256-FkV8Z2fdUTwvcKeltFJVCisvAarcdnmlj/33exdyxnQ=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
||||||
},
|
},
|
||||||
@@ -339,47 +587,24 @@
|
|||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/NY.dmg"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pre-commit-hooks": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": "flake-compat_2",
|
|
||||||
"flake-utils": "flake-utils_3",
|
|
||||||
"gitignore": "gitignore",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"nixpkgs-stable": [
|
|
||||||
"nixvim",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1708018599,
|
|
||||||
"narHash": "sha256-M+Ng6+SePmA8g06CmUZWi1AjG2tFBX9WCXElBHEKnyM=",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"rev": "5df5a70ad7575f6601d91f0efec95dd9bc619431",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "pre-commit-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"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",
|
||||||
|
"nur": "nur",
|
||||||
|
"nurpkgs": "nurpkgs",
|
||||||
|
"sops-nix": "sops-nix",
|
||||||
"spicetify-nix": "spicetify-nix"
|
"spicetify-nix": "spicetify-nix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sf-arabic": {
|
"sf-arabic": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-CPewXMGI78xHsjdRU8ZJIBSYjh5UY6UW21ihE4B+Bkk=",
|
"narHash": "sha256-u+Q2Hd+JCiKhIQtbQqawg1lIEgGhjmdGye2cNdWlBG0=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Arabic.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Arabic.dmg"
|
||||||
},
|
},
|
||||||
@@ -391,7 +616,7 @@
|
|||||||
"sf-compact": {
|
"sf-compact": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-nJkPlddKF2dIwj+6jiVvS60hDcGAMasEOWemUwBS2mQ=",
|
"narHash": "sha256-9kXXWmu2zg0LSE7SihItXmBltLvNwyG1Ba6QehvMh04=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg"
|
||||||
},
|
},
|
||||||
@@ -403,7 +628,7 @@
|
|||||||
"sf-mono": {
|
"sf-mono": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-KT1RXz3NcWPetyxVlgMfh/dsoznpI3lMnplz6V7PCUU=",
|
"narHash": "sha256-BVmYmgqq79ezgyqNClyHkj2L4N3/PRisPm8YFBQZQ98=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Mono.dmg"
|
||||||
},
|
},
|
||||||
@@ -415,7 +640,7 @@
|
|||||||
"sf-pro": {
|
"sf-pro": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-cn8ae2UddF8Pru6i3fSG2Wki5sf1DmWKD2FmKMsoeAA=",
|
"narHash": "sha256-yQhtaEPTuYOIOaC6eSPdka/Jv5Ydw3Mnd8Prlcgjs90=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
"url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg"
|
||||||
},
|
},
|
||||||
@@ -424,10 +649,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": 1718137936,
|
||||||
|
"narHash": "sha256-psA+1Q5fPaK6yI3vzlLINNtb6EeXj111zQWnZYyJS9c=",
|
||||||
|
"owner": "Mic92",
|
||||||
|
"repo": "sops-nix",
|
||||||
|
"rev": "c279dec105dd53df13a5e57525da97905cc0f0d6",
|
||||||
|
"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_3",
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1704167711,
|
"lastModified": 1704167711,
|
||||||
@@ -460,16 +706,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 +748,57 @@
|
|||||||
"repo": "default",
|
"repo": "default",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"treefmt-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixvim",
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718139168,
|
||||||
|
"narHash": "sha256-1TZQcdETNdJMcfwwoshVeCjwWfrPtkSQ8y8wFX3it7k=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"rev": "1cb529bffa880746a1d0ec4e0f5076876af931f1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "treefmt-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"xdph": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprland-protocols": "hyprland-protocols",
|
||||||
|
"hyprlang": [
|
||||||
|
"hyprland",
|
||||||
|
"hyprlang"
|
||||||
|
],
|
||||||
|
"nixpkgs": [
|
||||||
|
"hyprland",
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"systems": [
|
||||||
|
"hyprland",
|
||||||
|
"systems"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1717918856,
|
||||||
|
"narHash": "sha256-I38bmPLqamvOfVSArd1hhZtkVRAYBK38fOHZCU1P9Qg=",
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
|
"rev": "72907822c19afc0983c69d59d299204381623725",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hyprwm",
|
||||||
|
"repo": "xdg-desktop-portal-hyprland",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
description = "NixOS configuration";
|
# https://github.com/anotherhadi/nixy
|
||||||
|
description = ''
|
||||||
|
Nixy is a NixOS configuration with home-manager, secrets and custom theming all in one place.
|
||||||
|
It's a simple way to manage your system configuration and dotfiles.
|
||||||
|
'';
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
@@ -13,30 +17,37 @@
|
|||||||
};
|
};
|
||||||
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";
|
||||||
|
};
|
||||||
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
|
nurpkgs.url = "github:nix-community/NUR";
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, home-manager, nixvim, spicetify-nix, ... }: {
|
outputs = inputs@{ nixpkgs, nur, ... }: {
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
nixy = nixpkgs.lib.nixosSystem {
|
nixy = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./nixos/configuration.nix
|
./hosts/laptop/configuration.nix
|
||||||
./hosts
|
inputs.nixos-hardware.nixosModules.omen-16-n0005ne
|
||||||
{ _module.args = { inherit inputs; }; }
|
inputs.home-manager.nixosModules.home-manager
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
{
|
{
|
||||||
|
nixpkgs.overlays = [ nur.overlay ];
|
||||||
|
_module.args = { inherit inputs; };
|
||||||
home-manager = {
|
home-manager = {
|
||||||
useGlobalPkgs = true;
|
useGlobalPkgs = true;
|
||||||
useUserPackages = true;
|
useUserPackages = true;
|
||||||
users.hadi = import ./home/home.nix; # CHANGEME - replace "hadi"
|
users."hadi" = import ./home/laptop.nix; # CHANGE ME
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = { inherit inputs; };
|
||||||
inherit inputs;
|
|
||||||
inherit spicetify-nix;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 +0,0 @@
|
|||||||
{ config, pkgs, ... }: {
|
|
||||||
|
|
||||||
imports = [
|
|
||||||
./hyprland
|
|
||||||
./nvim
|
|
||||||
./waybar
|
|
||||||
./kitty
|
|
||||||
./dunst
|
|
||||||
./wlogout
|
|
||||||
./wofi
|
|
||||||
./qutebrowser
|
|
||||||
./git
|
|
||||||
./shell
|
|
||||||
./misc
|
|
||||||
./nextcloud
|
|
||||||
./scripts
|
|
||||||
./neofetch
|
|
||||||
./spicetify
|
|
||||||
./variables/theme
|
|
||||||
./wallpaper
|
|
||||||
];
|
|
||||||
|
|
||||||
home.username = "hadi"; # CHANGEME
|
|
||||||
home.homeDirectory = "/home/hadi"; # CHANGEME
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
swappy
|
|
||||||
imv
|
|
||||||
discord
|
|
||||||
obsidian
|
|
||||||
ranger
|
|
||||||
fd
|
|
||||||
btop
|
|
||||||
go
|
|
||||||
cargo
|
|
||||||
nodejs
|
|
||||||
python3
|
|
||||||
unzip
|
|
||||||
blueman
|
|
||||||
gcc
|
|
||||||
peaclock
|
|
||||||
xdg_utils
|
|
||||||
tldr
|
|
||||||
qt5ct
|
|
||||||
libva
|
|
||||||
wget
|
|
||||||
ripgrep
|
|
||||||
|
|
||||||
# Backup
|
|
||||||
vscode
|
|
||||||
firefox
|
|
||||||
];
|
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
|
||||||
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,23 +0,0 @@
|
|||||||
{ config, pkgs, ... }: {
|
|
||||||
home.packages = with pkgs; [ hypridle ];
|
|
||||||
|
|
||||||
xdg.configFile."hypr/hypridle.conf".text = ''
|
|
||||||
general {
|
|
||||||
ignore_dbus_inhibit = false
|
|
||||||
}
|
|
||||||
|
|
||||||
# Screenlock
|
|
||||||
listener {
|
|
||||||
timeout = 600
|
|
||||||
on-timeout = ${pkgs.hyprlock}/bin/hyprlock
|
|
||||||
on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back ${config.home.username}!"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Suspend
|
|
||||||
listener {
|
|
||||||
timeout = 660
|
|
||||||
on-timeout = systemctl suspend
|
|
||||||
# on-resume = ${pkgs.libnotify}/bin/notify-send "Welcome back to your desktop!"
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
{ pkgs, config, ... }: {
|
|
||||||
|
|
||||||
home.packages = with pkgs; [ hyprlock ];
|
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprlock.conf".text = ''
|
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
path = $HOME/.config/wallpaper/${config.theme.wallpaper}
|
|
||||||
color = rgb(${config.theme.colors.bg})
|
|
||||||
|
|
||||||
blur_size = 4
|
|
||||||
blur_passes = 3
|
|
||||||
noise = 0.0117
|
|
||||||
contrast = 1.3000
|
|
||||||
brightness = 0.8000
|
|
||||||
vibrancy = 0.2100
|
|
||||||
vibrancy_darkness = 0.0
|
|
||||||
}
|
|
||||||
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
size = 250, 50
|
|
||||||
outline_thickness = 3
|
|
||||||
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
|
||||||
dots_spacing = 0.64 # Scale of dots' absolute size, 0.0 - 1.0
|
|
||||||
dots_center = true
|
|
||||||
outer_color = rgb(${config.theme.colors.primary-bg})
|
|
||||||
inner_color = rgb(${config.theme.colors.bg})
|
|
||||||
font_color = rgb(${config.theme.colors.fg})
|
|
||||||
fade_on_empty = true
|
|
||||||
placeholder_text = <i>Password...</i> # Text rendered in the input box when it's empty.
|
|
||||||
hide_input = false
|
|
||||||
position = 0, 50
|
|
||||||
halign = center
|
|
||||||
valign = bottom
|
|
||||||
}
|
|
||||||
|
|
||||||
# Current time
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "<b><big> $(date +"%H:%M:%S") </big></b>"
|
|
||||||
color = rgb(${config.theme.colors.fg})
|
|
||||||
font_size = 64
|
|
||||||
font_family = ${config.theme.font}
|
|
||||||
position = 0, 16
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# User label
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = Hey <span text_transform="capitalize" size="larger">$USER</span>
|
|
||||||
color = rgb(${config.theme.colors.fg})
|
|
||||||
font_size = 20
|
|
||||||
font_family = ${config.theme.font}
|
|
||||||
position = 0, 0
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Type to unlock
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = Type to unlock!
|
|
||||||
color = rgb(${config.theme.colors.fg})
|
|
||||||
font_size = 16
|
|
||||||
font_family = ${config.theme.font}
|
|
||||||
position = 0, 30
|
|
||||||
halign = center
|
|
||||||
valign = bottom
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{ pkgs, config, ... }: {
|
|
||||||
home.packages = with pkgs; [ hyprpaper ];
|
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
|
||||||
preload = ~/.config/wallpaper/${config.theme.wallpaper}
|
|
||||||
wallpaper = ,~/.config/wallpaper/${config.theme.wallpaper}
|
|
||||||
ipc=true
|
|
||||||
splash=false
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
{ config, ... }: {
|
|
||||||
|
|
||||||
programs.kitty = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
|
|
||||||
scrollback_lines = 10000;
|
|
||||||
enable_audio_bell = false;
|
|
||||||
update_check_interval = 0;
|
|
||||||
font_family = config.theme.font-mono;
|
|
||||||
font_size = 13;
|
|
||||||
cursor_shape = "Underline";
|
|
||||||
cursor_underline_thickness = 1;
|
|
||||||
window_padding_width = 10;
|
|
||||||
url_style = "curly";
|
|
||||||
confirm_os_window_close = "0";
|
|
||||||
remember_window_size = "no";
|
|
||||||
disable_ligatures = "never";
|
|
||||||
shell = "zsh";
|
|
||||||
initial_window_width = 1000;
|
|
||||||
initial_window_height = 600;
|
|
||||||
|
|
||||||
background = "#" + config.theme.colors.bg;
|
|
||||||
url_color = "#" + config.theme.colors.primary-fg;
|
|
||||||
|
|
||||||
color0 = "#" + config.theme.colors.color0;
|
|
||||||
color8 = "#" + config.theme.colors.color8;
|
|
||||||
color1 = "#" + config.theme.colors.color1;
|
|
||||||
color9 = "#" + config.theme.colors.color9;
|
|
||||||
color2 = "#" + config.theme.colors.color2;
|
|
||||||
color10 = "#" + config.theme.colors.color10;
|
|
||||||
color3 = "#" + config.theme.colors.color3;
|
|
||||||
color11 = "#" + config.theme.colors.color11;
|
|
||||||
color4 = "#" + config.theme.colors.color4;
|
|
||||||
color12 = "#" + config.theme.colors.color12;
|
|
||||||
color5 = "#" + config.theme.colors.color5;
|
|
||||||
color13 = "#" + config.theme.colors.color13;
|
|
||||||
color6 = "#" + config.theme.colors.color6;
|
|
||||||
color14 = "#" + config.theme.colors.color14;
|
|
||||||
color7 = "#" + config.theme.colors.color7;
|
|
||||||
color15 = "#" + config.theme.colors.color15;
|
|
||||||
|
|
||||||
cursor = "#" + config.theme.colors.fg;
|
|
||||||
cursor_text_color = "#" + config.theme.colors.bg;
|
|
||||||
|
|
||||||
selection_foreground = "#" + config.theme.colors.primary-fg;
|
|
||||||
selection_background = "#" + config.theme.colors.primary-bg;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
{ pkgs, config, ... }: {
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
../hosts/laptop/variables.nix
|
||||||
|
|
||||||
|
# Programs
|
||||||
|
./programs/btop
|
||||||
|
./programs/cava
|
||||||
|
./programs/kitty
|
||||||
|
./programs/nvim
|
||||||
|
./programs/qutebrowser
|
||||||
|
./programs/spicetify
|
||||||
|
|
||||||
|
# Scripts
|
||||||
|
./scripts # All scripts
|
||||||
|
|
||||||
|
# System
|
||||||
|
./system/dunst
|
||||||
|
./system/git
|
||||||
|
./system/gtk
|
||||||
|
./system/hyprland
|
||||||
|
./system/shell
|
||||||
|
./system/sops/laptop.nix
|
||||||
|
./system/waybar
|
||||||
|
./system/wlogout
|
||||||
|
./system/wofi
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
inherit (config.var) username;
|
||||||
|
inherit (config.var) homeDirectory;
|
||||||
|
|
||||||
|
packages = with pkgs; [
|
||||||
|
swappy
|
||||||
|
imv
|
||||||
|
discord
|
||||||
|
obsidian
|
||||||
|
xfce.thunar
|
||||||
|
bitwarden
|
||||||
|
vlc
|
||||||
|
|
||||||
|
# Dev
|
||||||
|
go
|
||||||
|
cargo
|
||||||
|
nodejs
|
||||||
|
python3
|
||||||
|
jq
|
||||||
|
|
||||||
|
# Utils
|
||||||
|
fd
|
||||||
|
bc
|
||||||
|
gcc
|
||||||
|
blueman
|
||||||
|
zip
|
||||||
|
unzip
|
||||||
|
xdg_utils
|
||||||
|
wget
|
||||||
|
curl
|
||||||
|
wf-recorder
|
||||||
|
glow
|
||||||
|
nwg-displays
|
||||||
|
wireguard-tools
|
||||||
|
bitwarden-cli
|
||||||
|
optipng
|
||||||
|
|
||||||
|
# Just cool
|
||||||
|
peaclock
|
||||||
|
cbonsai
|
||||||
|
pipes
|
||||||
|
cmatrix
|
||||||
|
|
||||||
|
# Backup
|
||||||
|
vscode
|
||||||
|
tor-browser
|
||||||
|
firefox
|
||||||
|
neovide
|
||||||
|
];
|
||||||
|
|
||||||
|
# Import wallpapers into $HOME/wallpapers
|
||||||
|
file."wallpapers" = {
|
||||||
|
recursive = true;
|
||||||
|
source = ./wallpapers;
|
||||||
|
};
|
||||||
|
|
||||||
|
stateVersion = "24.05";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.home-manager.enable = 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,9 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.obsidian = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
dir = "~/Nextcloud/obsidian";
|
|
||||||
disableFrontmatter = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
programs.nixvim.plugins.toggleterm = {
|
|
||||||
enable = true;
|
|
||||||
openMapping = "<C-t>";
|
|
||||||
direction = "horizontal";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
programs.btop = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
color_theme = "Default";
|
||||||
|
theme_background = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.cava = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general.framerate = 60;
|
||||||
|
smoothing.noise_reduction = 88;
|
||||||
|
color = {
|
||||||
|
background = "'#${config.var.theme.colors.bg}'";
|
||||||
|
foreground = "'#${config.var.theme.colors.accent}'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
{ config, pkgs, ... }: {
|
||||||
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
scrollback_lines = 10000;
|
||||||
|
initial_window_width = 1200;
|
||||||
|
initial_window_height = 600;
|
||||||
|
update_check_interval = 0;
|
||||||
|
enable_audio_bell = false;
|
||||||
|
confirm_os_window_close = "0";
|
||||||
|
remember_window_size = "no";
|
||||||
|
disable_ligatures = "never";
|
||||||
|
shell = "${pkgs.tmux}/bin/tmux";
|
||||||
|
url_style = "curly";
|
||||||
|
cursor_shape = "Underline";
|
||||||
|
cursor_underline_thickness = config.var.theme.border-size;
|
||||||
|
window_padding_width = config.var.theme.gaps-in;
|
||||||
|
|
||||||
|
# Font
|
||||||
|
font_family = config.var.theme.font-mono;
|
||||||
|
font_size = config.var.theme.font-size;
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
background = "#" + config.var.theme.colors.bg;
|
||||||
|
url_color = "#" + config.var.theme.colors.accent;
|
||||||
|
color0 = "#" + config.var.theme.colors.c0;
|
||||||
|
color8 = "#" + config.var.theme.colors.c8;
|
||||||
|
color1 = "#" + config.var.theme.colors.c1;
|
||||||
|
color9 = "#" + config.var.theme.colors.c9;
|
||||||
|
color2 = "#" + config.var.theme.colors.c2;
|
||||||
|
color10 = "#" + config.var.theme.colors.c10;
|
||||||
|
color3 = "#" + config.var.theme.colors.c3;
|
||||||
|
color11 = "#" + config.var.theme.colors.c11;
|
||||||
|
color4 = "#" + config.var.theme.colors.c4;
|
||||||
|
color12 = "#" + config.var.theme.colors.c12;
|
||||||
|
color5 = "#" + config.var.theme.colors.c5;
|
||||||
|
color13 = "#" + config.var.theme.colors.c13;
|
||||||
|
color6 = "#" + config.var.theme.colors.c6;
|
||||||
|
color14 = "#" + config.var.theme.colors.c14;
|
||||||
|
color7 = "#" + config.var.theme.colors.c7;
|
||||||
|
color15 = "#" + config.var.theme.colors.c15;
|
||||||
|
cursor = "#" + config.var.theme.colors.fg;
|
||||||
|
cursor_text_color = "#" + config.var.theme.colors.bg;
|
||||||
|
selection_foreground = "#" + config.var.theme.colors.accentFg;
|
||||||
|
selection_background = "#" + config.var.theme.colors.accent;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
colorschemes.catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
settings = { transparent_background = true; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{ inputs, ... }: {
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
./plugins/auto-pairs.nix
|
||||||
|
./plugins/bufferline.nix
|
||||||
|
./plugins/lazygit.nix
|
||||||
|
./plugins/telescope.nix
|
||||||
|
./plugins/nvim-tree.nix
|
||||||
|
./plugins/lightline.nix
|
||||||
|
./plugins/git.nix
|
||||||
|
./plugins/cmp.nix
|
||||||
|
./plugins/none-ls.nix
|
||||||
|
./plugins/wilder.nix
|
||||||
|
./plugins/lsp.nix
|
||||||
|
./plugins/treesitter.nix
|
||||||
|
./plugins/toggleterm.nix
|
||||||
|
./plugins/copilot.nix
|
||||||
|
./plugins/whichkey.nix
|
||||||
|
./plugins/alpha.nix
|
||||||
|
./plugins/keymaps.nix
|
||||||
|
./plugins/comment.nix
|
||||||
|
./plugins/oil.nix
|
||||||
|
./plugins/trouble.nix
|
||||||
|
./plugins/tmux-navigator.nix
|
||||||
|
./plugins/noice.nix
|
||||||
|
./plugins/obsidian.nix
|
||||||
|
./options.nix
|
||||||
|
./colorscheme.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
@@ -0,0 +1,133 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
|
||||||
|
programs.nixvim.highlight = {
|
||||||
|
AlphaHeaderColor.fg = "#${config.var.theme.colors.accent}";
|
||||||
|
AlphaTextColor.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
AlphaShortcutColor.fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
};
|
||||||
|
|
||||||
|
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.var.configDirectory}]] 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; }; }
|
||||||
@@ -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";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{ programs.nixvim.plugins.noice = { enable = true; }; }
|
||||||
@@ -11,6 +11,9 @@
|
|||||||
goimports.enable = true;
|
goimports.enable = true;
|
||||||
nixfmt.enable = true;
|
nixfmt.enable = true;
|
||||||
markdownlint.enable = true;
|
markdownlint.enable = true;
|
||||||
|
tidy.enable = true;
|
||||||
|
shellharden.enable = true;
|
||||||
|
shfmt.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.nixvim.plugins.obsidian = {
|
||||||
|
enable = config.var.obsidian;
|
||||||
|
settings = {
|
||||||
|
dir = "~/nextcloud/Notes";
|
||||||
|
disable_frontmatter = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
programs.nixvim.plugins.oil = {
|
||||||
|
enable = true;
|
||||||
|
settings = { default_file_explorer = false; };
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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,263 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
|
||||||
|
imports = [ ./duckduckgo-colorscheme.nix ./homepage ];
|
||||||
|
|
||||||
|
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.var.homeDirectory}/.config/startpage/index.html";
|
||||||
|
server = "${config.var.homeDirectory}/.config/serverpage/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.var.homeDirectory}/.config/startpage/index.html";
|
||||||
|
start_pages =
|
||||||
|
[ "${config.var.homeDirectory}/.config/startpage/index.html" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
colors = {
|
||||||
|
tabs = {
|
||||||
|
odd.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
odd.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
even.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
even.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
selected = {
|
||||||
|
odd = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
even = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
indicator = {
|
||||||
|
error = "#${config.var.theme.colors.c1}";
|
||||||
|
start = "#${config.var.theme.colors.bgalt}";
|
||||||
|
stop = "#${config.var.theme.colors.bgalt}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
hints = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
match.fg = "#${config.var.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
|
||||||
|
completion = {
|
||||||
|
category = {
|
||||||
|
bg = "#${config.var.theme.colors.bg}";
|
||||||
|
fg = "#${config.var.theme.colors.fg}";
|
||||||
|
border = {
|
||||||
|
top = "#${config.var.theme.colors.bg}";
|
||||||
|
bottom = "#${config.var.theme.colors.bg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
odd.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
even.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
|
||||||
|
fg = [ "#FFFFFF" "#FFFFFF" "#FFFFFF" ];
|
||||||
|
|
||||||
|
match.fg = "#${config.var.theme.colors.accent}";
|
||||||
|
|
||||||
|
item.selected = {
|
||||||
|
bg = "#${config.var.theme.colors.accent}";
|
||||||
|
border.top = "#${config.var.theme.colors.accent}";
|
||||||
|
border.bottom = "#${config.var.theme.colors.accent}";
|
||||||
|
fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
match.fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
statusbar = {
|
||||||
|
normal.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
normal.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
private.bg = "#${config.var.theme.colors.bg}";
|
||||||
|
private.fg = "#${config.var.theme.colors.fg}";
|
||||||
|
insert.bg = "#${config.var.theme.colors.accent}";
|
||||||
|
insert.fg = "#${config.var.theme.colors.accentFg}";
|
||||||
|
command = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
private.bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
private.fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
messages = {
|
||||||
|
info = {
|
||||||
|
bg = "#${config.var.theme.colors.bgalt}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
border = "#${config.var.theme.colors.bgalt}";
|
||||||
|
};
|
||||||
|
|
||||||
|
error = {
|
||||||
|
bg = "#${config.var.theme.colors.c1}";
|
||||||
|
fg = "#${config.var.theme.colors.fgalt}";
|
||||||
|
border = "#${config.var.theme.colors.c1}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
#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.var.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.var.homeDirectory}/.config/startpage/index.html";
|
||||||
|
"gs" = "open ${config.var.homeDirectory}/.config/serverpage/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,8 +1,9 @@
|
|||||||
{ config, ... }: {
|
{ config, ... }: {
|
||||||
|
home.file.".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.var.theme.colors.bg}; j=${config.var.theme.colors.bg}; 9=${config.var.theme.colors.fg}; aa=${config.var.theme.colors.fgalt}; 8=${config.var.theme.colors.c7}; x=${config.var.theme.colors.accent}; 21=${config.var.theme.colors.bgalt};';
|
||||||
|
|
||||||
// Converts cookie string into formatted JSON
|
// Converts cookie string into formatted JSON
|
||||||
const cookieToJSON = (cookieRaw) => {
|
const cookieToJSON = (cookieRaw) => {
|
||||||
@@ -24,7 +25,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.var.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.var.theme.colors.bg}; color: #${config.var.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.var.theme.colors.accent};"></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.var.theme.colors.fgalt};"
|
||||||
|
|
||||||
|
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>
|
||||||
|
'';
|
||||||
|
}
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{ pkgs, config, lib, inputs, ... }:
|
||||||
|
let spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
|
||||||
|
in {
|
||||||
|
|
||||||
|
imports = [ inputs.spicetify-nix.homeManagerModules.default ];
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
||||||
|
builtins.elem (lib.getName pkg) [ "spotify" ];
|
||||||
|
programs.spicetify = {
|
||||||
|
enable = true;
|
||||||
|
theme = spicePkgs.themes.text;
|
||||||
|
colorScheme = "custom";
|
||||||
|
|
||||||
|
customColorScheme = {
|
||||||
|
text = "${config.var.theme.colors.fg}";
|
||||||
|
subtext = "${config.var.theme.colors.fgalt}";
|
||||||
|
sidebar-text = "${config.var.theme.colors.fgalt}";
|
||||||
|
main = "${config.var.theme.colors.bg}";
|
||||||
|
sidebar = "${config.var.theme.colors.bg}";
|
||||||
|
background = "${config.var.theme.colors.bg}";
|
||||||
|
player = "${config.var.theme.colors.bg}";
|
||||||
|
card = "${config.var.theme.colors.bg}";
|
||||||
|
shadow = "000000";
|
||||||
|
selected-row = "${config.var.theme.colors.bgalt}";
|
||||||
|
button = "${config.var.theme.colors.accent}";
|
||||||
|
button-active = "${config.var.theme.colors.accent}";
|
||||||
|
button-disabled = "${config.var.theme.colors.bgalt}";
|
||||||
|
tab-active = "${config.var.theme.colors.accent}";
|
||||||
|
misc = "${config.var.theme.colors.fgalt}";
|
||||||
|
};
|
||||||
|
|
||||||
|
enabledExtensions = with spicePkgs.extensions; [
|
||||||
|
playlistIcons
|
||||||
|
lastfm
|
||||||
|
historyShortcut
|
||||||
|
hidePodcasts
|
||||||
|
fullAppDisplay
|
||||||
|
shuffle
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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, ... }:
|
||||||
|
|
||||||
|
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 ]; }
|
||||||
@@ -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 +1,15 @@
|
|||||||
{ imports = [ ./scripts.nix ./nerdfetch.nix ]; }
|
{
|
||||||
|
imports = [
|
||||||
|
./nixy
|
||||||
|
./sounds
|
||||||
|
./brightness
|
||||||
|
./caffeine
|
||||||
|
./night-shift
|
||||||
|
./screenshot
|
||||||
|
./startup
|
||||||
|
./nerdfont_fzf
|
||||||
|
./system
|
||||||
|
./compress
|
||||||
|
./misc
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|||||||
@@ -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 ]; }
|
||||||
@@ -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,32 @@
|
|||||||
|
{ pkgs, config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
nixy-rebuild = pkgs.writeShellScriptBin "nixy-rebuild" ''
|
||||||
|
sudo nixos-rebuild switch --flake ${config.var.configDirectory}#nixy
|
||||||
|
'';
|
||||||
|
|
||||||
|
nixy-upgrade = pkgs.writeShellScriptBin "nixy-upgrade" ''
|
||||||
|
sudo nixos-rebuild switch --upgrade --flake ${config.var.configDirectory}#nixy
|
||||||
|
'';
|
||||||
|
|
||||||
|
nixy-update = pkgs.writeShellScriptBin "nixy-update" ''
|
||||||
|
cd ${config.var.configDirectory} && sudo nix flake update
|
||||||
|
'';
|
||||||
|
|
||||||
|
nixy-gc = pkgs.writeShellScriptBin "nixy-gc" ''
|
||||||
|
cd ${config.var.configDirectory} && 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-upgrade
|
||||||
|
nixy-update
|
||||||
|
nixy-gc
|
||||||
|
nixy-cb
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
# TODO: Broken - hypshot not working (jq error)
|
||||||
|
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, config, ... }:
|
||||||
|
let
|
||||||
|
nextcloud-watch = pkgs.writeShellScriptBin "nextcloud-watch" ''
|
||||||
|
# Start nextcloud if I'm on my local network
|
||||||
|
while true;do
|
||||||
|
sleep 120
|
||||||
|
ssid=$(nmcli -t -f name connection show --active | head -n1)
|
||||||
|
nextcloud_status=$(ps -aux | grep -E "/bin/nextcloud --background$")
|
||||||
|
if [[ $nextcloud_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
|
||||||
|
nextcloud_pid=$(pgrep -n nextcloud)
|
||||||
|
kill $nextcloud_pid
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
startup = pkgs.writeShellScriptBin "startup" ''
|
||||||
|
# Because HM enabling services suck.
|
||||||
|
|
||||||
|
[[ ${toString config.var.sops} == "1" ]] && systemctl --user start sops-nix
|
||||||
|
|
||||||
|
[[ ${toString config.var.nextcloud} == "1" ]] && nextcloud-watch &
|
||||||
|
|
||||||
|
notify-system &
|
||||||
|
${pkgs.waybar}/bin/waybar &
|
||||||
|
|
||||||
|
|
||||||
|
wlr-randr --output "Unknown-1" --off # REMOVE WEIRD GHOST MONITOR
|
||||||
|
'';
|
||||||
|
|
||||||
|
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 && $OLD_BATTERY_STATUS != "Unknown" ]]; 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 ];
|
||||||
|
}
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
programs.starship = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
{ pkgs, config, lib, spicetify-nix, ... }:
|
|
||||||
let spicePkgs = spicetify-nix.packages.${pkgs.system}.default;
|
|
||||||
in {
|
|
||||||
|
|
||||||
imports = [ spicetify-nix.homeManagerModules.default ];
|
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
||||||
builtins.elem (lib.getName pkg) [ "spotify" ];
|
|
||||||
programs.spicetify = {
|
|
||||||
enable = true;
|
|
||||||
theme = spicePkgs.themes.text;
|
|
||||||
colorScheme = "custom";
|
|
||||||
|
|
||||||
customColorScheme = {
|
|
||||||
text = "${config.theme.colors.fg}";
|
|
||||||
subtext = "${config.theme.colors.alt-fg}";
|
|
||||||
sidebar-text = "${config.theme.colors.alt-fg}";
|
|
||||||
main = "${config.theme.colors.bg}";
|
|
||||||
sidebar = "${config.theme.colors.bg}";
|
|
||||||
background = "${config.theme.colors.bg}";
|
|
||||||
player = "${config.theme.colors.bg}";
|
|
||||||
card = "${config.theme.colors.bg}";
|
|
||||||
shadow = "000000";
|
|
||||||
selected-row = "797979";
|
|
||||||
button = "${config.theme.colors.primary-bg}";
|
|
||||||
button-active = "${config.theme.colors.primary-bg}";
|
|
||||||
button-disabled = "${config.theme.colors.alt-bg}";
|
|
||||||
tab-active = "${config.theme.colors.primary-bg}";
|
|
||||||
misc = "${config.theme.colors.alt-fg}";
|
|
||||||
};
|
|
||||||
|
|
||||||
enabledExtensions = with spicePkgs.extensions; [
|
|
||||||
playlistIcons
|
|
||||||
lastfm
|
|
||||||
historyShortcut
|
|
||||||
hidePodcasts
|
|
||||||
fullAppDisplay
|
|
||||||
shuffle
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -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";
|
||||||
@@ -34,12 +34,17 @@
|
|||||||
sticky_history = "yes";
|
sticky_history = "yes";
|
||||||
history_length = 20;
|
history_length = 20;
|
||||||
always_run_script = true;
|
always_run_script = true;
|
||||||
corner_radius = config.theme.rounding;
|
corner_radius = config.var.theme.rounding;
|
||||||
follow = "mouse";
|
follow = "mouse";
|
||||||
font = config.theme.font;
|
font = config.var.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.var.theme.rounding - 10;
|
||||||
frame_color = "#" + config.theme.colors.bg;
|
#format = ''
|
||||||
|
# <span foreground='#${config.var.theme.colors.accent}'><b>%s %p</b></span>
|
||||||
|
# %b'';
|
||||||
|
frame_color = "#" + config.var.theme.colors.bg;
|
||||||
|
highlight = "#" + config.var.theme.colors.accent;
|
||||||
|
foreground = "#" + config.var.theme.colors.fg;
|
||||||
frame_width = 1;
|
frame_width = 1;
|
||||||
offset = "0x10";
|
offset = "0x10";
|
||||||
horizontal_padding = 10;
|
horizontal_padding = 10;
|
||||||
@@ -62,16 +67,16 @@
|
|||||||
fullscreen_delay_everything = { fullscreen = "delay"; };
|
fullscreen_delay_everything = { fullscreen = "delay"; };
|
||||||
|
|
||||||
urgency_critical = {
|
urgency_critical = {
|
||||||
background = "#" + config.theme.colors.color1;
|
background = "#" + config.var.theme.colors.c1;
|
||||||
foreground = "#" + config.theme.colors.color0;
|
foreground = "#" + config.var.theme.colors.c0;
|
||||||
};
|
};
|
||||||
urgency_low = {
|
urgency_low = {
|
||||||
background = "#" + config.theme.colors.color3;
|
background = "#" + config.var.theme.colors.bgalt;
|
||||||
foreground = "#" + config.theme.colors.color0;
|
foreground = "#" + config.var.theme.colors.fgalt;
|
||||||
};
|
};
|
||||||
urgency_normal = {
|
urgency_normal = {
|
||||||
background = "#" + config.theme.colors.alt-bg;
|
background = "#" + config.var.theme.colors.bgalt;
|
||||||
foreground = "#" + config.theme.colors.alt-fg;
|
foreground = "#" + config.var.theme.colors.fgalt;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
userName = config.var.git.username;
|
||||||
|
userEmail = config.var.git.email;
|
||||||
|
ignores = [
|
||||||
|
".cache/"
|
||||||
|
".DS_Store"
|
||||||
|
".idea/"
|
||||||
|
"*.swp"
|
||||||
|
"*.elc"
|
||||||
|
"auto-save-list"
|
||||||
|
".direnv/"
|
||||||
|
"node_modules"
|
||||||
|
"result"
|
||||||
|
"result-*"
|
||||||
|
];
|
||||||
|
extraConfig = {
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
push.autoSetupRemote = true;
|
||||||
|
};
|
||||||
|
aliases = {
|
||||||
|
essa = "push --force";
|
||||||
|
co = "checkout";
|
||||||
|
fuck = "commit --amend -m";
|
||||||
|
c = "commit -m";
|
||||||
|
ca = "commit -am";
|
||||||
|
forgor = "commit --amend --no-edit";
|
||||||
|
graph = "log --all --decorate --graph --oneline";
|
||||||
|
oops = "checkout --";
|
||||||
|
l = "log";
|
||||||
|
r = "rebase";
|
||||||
|
s = "status --short";
|
||||||
|
ss = "status";
|
||||||
|
d = "diff";
|
||||||
|
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)";
|
||||||
|
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)";
|
||||||
|
af = "!git add $(git ls-files -m -o --exclude-standard | sk -m)";
|
||||||
|
st = "status";
|
||||||
|
br = "branch";
|
||||||
|
df = "!git hist | peco | awk '{print $2}' | xargs -I {} git diff {}^ {}";
|
||||||
|
hist = ''
|
||||||
|
log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all'';
|
||||||
|
llog = ''
|
||||||
|
log --graph --name-status --pretty=format:"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset" --date=relative'';
|
||||||
|
edit-unmerged =
|
||||||
|
"!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
{ config, pkgs, ... }: {
|
||||||
|
|
||||||
|
qt = {
|
||||||
|
enable = true;
|
||||||
|
platformTheme.name = "gtk2";
|
||||||
|
style.name = "gtk2";
|
||||||
|
};
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
theme = { name = "FlatColor"; };
|
||||||
|
|
||||||
|
iconTheme = {
|
||||||
|
package = pkgs.moka-icon-theme;
|
||||||
|
name = "Moka";
|
||||||
|
};
|
||||||
|
|
||||||
|
font = {
|
||||||
|
name = config.var.theme.font;
|
||||||
|
size = config.var.theme.font-size;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.pointerCursor = {
|
||||||
|
gtk.enable = true;
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
name = "Bibata-Modern-Classic";
|
||||||
|
size = 14;
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file = {
|
||||||
|
".local/share/themes/FlatColor" = {
|
||||||
|
recursive = true;
|
||||||
|
source = ./gtk;
|
||||||
|
};
|
||||||
|
|
||||||
|
".local/share/themes/FlatColor/colors2".text = ''
|
||||||
|
bg_color:#${config.var.theme.colors.bg}
|
||||||
|
color0:#${config.var.theme.colors.c0}
|
||||||
|
color1:#${config.var.theme.colors.c1}
|
||||||
|
color2:#${config.var.theme.colors.c2}
|
||||||
|
color3:#${config.var.theme.colors.c3}
|
||||||
|
color4:#${config.var.theme.colors.c4}
|
||||||
|
color5:#${config.var.theme.colors.c5}
|
||||||
|
color6:#${config.var.theme.colors.c6}
|
||||||
|
color7:#${config.var.theme.colors.c7}
|
||||||
|
color8:#${config.var.theme.colors.c8}
|
||||||
|
color9:#${config.var.theme.colors.c9}
|
||||||
|
color10:#${config.var.theme.colors.c10}
|
||||||
|
color11:#${config.var.theme.colors.c11}
|
||||||
|
color12:#${config.var.theme.colors.c12}
|
||||||
|
color13:#${config.var.theme.colors.c13}
|
||||||
|
color14:#${config.var.theme.colors.c14}
|
||||||
|
color15:#${config.var.theme.colors.c15}
|
||||||
|
text_color:#${config.var.theme.colors.fg}
|
||||||
|
selected_bg_color:#${config.var.theme.colors.accent}
|
||||||
|
selected_fg_color:#${config.var.theme.colors.accentFg}
|
||||||
|
tooltip_bg_color:#${config.var.theme.colors.bgalt}
|
||||||
|
tooltip_fg_color:#${config.var.theme.colors.fgalt}
|
||||||
|
titlebar_bg_color:#${config.var.theme.colors.bgalt}
|
||||||
|
titlebar_fg_color:#${config.var.theme.colors.fgalt}
|
||||||
|
menu_bg_color:#${config.var.theme.colors.bgalt}
|
||||||
|
menu_fg_color:#${config.var.theme.colors.fgalt}
|
||||||
|
link_color:#${config.var.theme.colors.accent}
|
||||||
|
'';
|
||||||
|
|
||||||
|
".local/share/themes/FlatColor/colors3".text = ''
|
||||||
|
@define-color color0 #${config.var.theme.colors.c0};
|
||||||
|
@define-color color1 #${config.var.theme.colors.c1};
|
||||||
|
@define-color color2 #${config.var.theme.colors.c2};
|
||||||
|
@define-color color3 #${config.var.theme.colors.c3};
|
||||||
|
@define-color color4 #${config.var.theme.colors.c4};
|
||||||
|
@define-color color5 #${config.var.theme.colors.c5};
|
||||||
|
@define-color color6 #${config.var.theme.colors.c6};
|
||||||
|
@define-color color7 #${config.var.theme.colors.c7};
|
||||||
|
@define-color color8 #${config.var.theme.colors.c8};
|
||||||
|
@define-color color9 #${config.var.theme.colors.c9};
|
||||||
|
@define-color color10 #${config.var.theme.colors.c10};
|
||||||
|
@define-color color11 #${config.var.theme.colors.c11};
|
||||||
|
@define-color color12 #${config.var.theme.colors.c12};
|
||||||
|
@define-color color13 #${config.var.theme.colors.c13};
|
||||||
|
@define-color color14 #${config.var.theme.colors.c14};
|
||||||
|
@define-color color15 #${config.var.theme.colors.c15};
|
||||||
|
@define-color selected_bg_color #${config.var.theme.colors.accent};
|
||||||
|
@define-color selected_fg_color #${config.var.theme.colors.accentFg};
|
||||||
|
|
||||||
|
@define-color bg_color #${config.var.theme.colors.bg};
|
||||||
|
@define-color fg_color #${config.var.theme.colors.fg};
|
||||||
|
@define-color base_color @bg_color;
|
||||||
|
@define-color text_color @fg_color;
|
||||||
|
@define-color text_color_disabled mix(@text_color, @base_color, 0.4);
|
||||||
|
@define-color tooltip_bg_color #${config.var.theme.colors.bgalt};
|
||||||
|
@define-color tooltip_fg_color #${config.var.theme.colors.fgalt};
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,771 @@
|
|||||||
|
#modded Numix gtkrc
|
||||||
|
|
||||||
|
gtk-color-scheme = "include ../colors2"
|
||||||
|
gtk-auto-mnemonics = 1
|
||||||
|
|
||||||
|
# Default Style
|
||||||
|
# DO --NOT-- CHANGE ACTIVE
|
||||||
|
# IT's THE COLOR THAT WPGTK REPLACES
|
||||||
|
# FEEL FREE TO MODIFY EVERYTHING ELSE IN gtkrc.base
|
||||||
|
|
||||||
|
style "murrine-default" {
|
||||||
|
GtkArrow::arrow-scaling= 0.6
|
||||||
|
|
||||||
|
GtkButton::child-displacement-x = 0
|
||||||
|
GtkButton::child-displacement-y = 0
|
||||||
|
|
||||||
|
GtkButton::default-border = { 0, 0, 0, 0 }
|
||||||
|
|
||||||
|
GtkButtonBox::child-min-height = 26
|
||||||
|
|
||||||
|
GtkCheckButton::indicator-size = 16
|
||||||
|
|
||||||
|
# The following line hints to gecko (and possibly other appliations)
|
||||||
|
# that the entry should be drawn transparently on the canvas.
|
||||||
|
# Without this, gecko will fill in the background of the entry.
|
||||||
|
GtkEntry::honors-transparent-bg-hint = 1
|
||||||
|
GtkEntry::state-hint = 0
|
||||||
|
|
||||||
|
GtkExpander::expander-size = 16
|
||||||
|
|
||||||
|
GtkImage::x-ayatana-indicator-dynamic = 1
|
||||||
|
|
||||||
|
GtkMenu::horizontal-padding = 0
|
||||||
|
GtkMenu::vertical-padding = 0
|
||||||
|
|
||||||
|
GtkMenuBar::internal-padding = 0
|
||||||
|
GtkMenuBar::window-dragging = 1
|
||||||
|
|
||||||
|
GtkMenuItem::arrow-scaling= 0.5
|
||||||
|
|
||||||
|
GtkPaned::handle-size = 1
|
||||||
|
|
||||||
|
GtkProgressBar::min-horizontal-bar-height = 12
|
||||||
|
GtkProgressBar::min-vertical-bar-width = 12
|
||||||
|
|
||||||
|
GtkRange::trough-border = 0
|
||||||
|
GtkRange::slider-width = 8
|
||||||
|
GtkRange::stepper-size = 12
|
||||||
|
GtkRange::stepper_spacing = 0
|
||||||
|
GtkRange::trough-under-steppers = 1
|
||||||
|
|
||||||
|
GtkScale::slider-length = 16
|
||||||
|
GtkScale::slider-width = 16
|
||||||
|
GtkScale::trough-side-details = 1
|
||||||
|
|
||||||
|
GtkScrollbar::activate-slider = 1
|
||||||
|
GtkScrollbar::has-backward-stepper = 0
|
||||||
|
GtkScrollbar::has-forward-stepper = 0
|
||||||
|
GtkScrollbar::has-secondary-backward-stepper = 0
|
||||||
|
GtkScrollbar::has-secondary-forward-stepper = 0
|
||||||
|
GtkScrollbar::min-slider-length = 80
|
||||||
|
GtkScrollbar::slider-width = 8
|
||||||
|
GtkScrollbar::trough-border = 0
|
||||||
|
|
||||||
|
GtkScrolledWindow::scrollbar-spacing = 0
|
||||||
|
GtkScrolledWindow::scrollbars-within-bevel = 1
|
||||||
|
|
||||||
|
GtkSeparatorMenuItem::horizontal-padding = 0
|
||||||
|
|
||||||
|
GtkToolbar::internal-padding = 0
|
||||||
|
|
||||||
|
GtkTreeView::expander-size = 11
|
||||||
|
GtkTreeView::vertical-separator = 0
|
||||||
|
|
||||||
|
GtkWidget::focus-line-width = 1
|
||||||
|
# The following line prevents the Firefox tabs
|
||||||
|
# from jumping a few pixels when you create a new tab
|
||||||
|
GtkWidget::focus-padding = 0
|
||||||
|
|
||||||
|
GtkWidget::wide-separators = 1
|
||||||
|
GtkWidget::separator-width = 1
|
||||||
|
GtkWidget::separator-height = 1
|
||||||
|
|
||||||
|
GtkWindow::resize-grip-height = 0
|
||||||
|
GtkWindow::resize-grip-width = 0
|
||||||
|
|
||||||
|
WnckTasklist::fade-overlay-rect = 0
|
||||||
|
|
||||||
|
GnomeHRef::link_color = @link_color
|
||||||
|
GtkHTML::link-color = @link_color
|
||||||
|
GtkIMHtmlr::hyperlink-color = @link_color
|
||||||
|
GtkIMHtml::hyperlink-color = @link_color
|
||||||
|
GtkWidget::link-color = @link_color
|
||||||
|
GtkWidget::visited-link-color = @text_color
|
||||||
|
|
||||||
|
GtkToolbar::shadow-type = GTK_SHADOW_NONE # Makes toolbars flat and unified
|
||||||
|
GtkMenuBar::shadow-type = GTK_SHADOW_NONE # Makes menubars flat and unified
|
||||||
|
|
||||||
|
xthickness = 1
|
||||||
|
ythickness = 1
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = shade (1.02, @bg_color)
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = @bg_color
|
||||||
|
bg[INSENSITIVE] = @bg_color
|
||||||
|
|
||||||
|
base[NORMAL] = shade(0.85, @color0)
|
||||||
|
base[PRELIGHT] = shade (0.85, @color0)
|
||||||
|
base[SELECTED] = @selected_bg_color
|
||||||
|
base[ACTIVE] = @selected_bg_color
|
||||||
|
base[INSENSITIVE] = shade (0.85, @bg_color)
|
||||||
|
|
||||||
|
text[NORMAL] = @text_color
|
||||||
|
text[PRELIGHT] = @text_color
|
||||||
|
text[SELECTED] = @selected_fg_color
|
||||||
|
text[ACTIVE] = @selected_fg_color
|
||||||
|
text[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
animation = FALSE
|
||||||
|
arrowstyle = 1 # 0 = normal arrows, 1 = filled arrows
|
||||||
|
border_shades = { 1.0, 1.0 } # gradient to draw on border
|
||||||
|
colorize_scrollbar = TRUE
|
||||||
|
comboboxstyle = 0 # 0 = normal combobox, 1 = colorized combobox below arrow
|
||||||
|
contrast = 0.0 # overal contrast with borders
|
||||||
|
focusstyle = 1 # 0 = none, 1 = grey dotted, 2 = colored with fill, 3 = colored glow
|
||||||
|
glazestyle = 0 # 0 = flat highlight, 1 = curved highlight, 2 = concave, 3 = top curved highlight, 4 = beryl highlight
|
||||||
|
glowstyle = 0 # 0 = glow on top, 1 = glow on bottom, 2 = glow on top and bottom, 3 = glow on middle vertically, 4 = glow on middle horizontally, 5 = glow on all sides
|
||||||
|
glow_shade = 1.0 # amount of glow
|
||||||
|
gradient_shades = { 1.0, 1.0, 1.0, 1.0 } # gradient to draw on widgets
|
||||||
|
highlight_shade = 1.0 # amount of highlight
|
||||||
|
lightborder_shade = 1.0 # amount of inset light border
|
||||||
|
lightborderstyle = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
|
||||||
|
listviewheaderstyle = 0 # 0 = flat, 1 = glassy, 2 = raised
|
||||||
|
listviewstyle = 0 # 0 = none, 1 = dotted, 2 = line
|
||||||
|
menubaritemstyle = 0 # 0 = menuitem look, 1 = button look
|
||||||
|
menubarstyle = 0 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
|
||||||
|
menuitemstyle = 0 # 0 = flat, 1 = glassy, 2 = striped
|
||||||
|
menustyle = 0 # 0 = none, 1 = vertical striped
|
||||||
|
progressbarstyle = 0 # 0 = none, 1 = diagonal striped, 2 = vertical striped
|
||||||
|
reliefstyle = 0 # 0 = flat, 1 = inset, 2 = shadow, 3 = shadow with gradient, 4 = stronger shadow with gradient
|
||||||
|
roundness = 0 # roundness of widgets
|
||||||
|
scrollbarstyle = 0 # 0 = none, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
|
||||||
|
sliderstyle = 0 # 0 = none, 1 = handles
|
||||||
|
stepperstyle = 1 # 0 = standard, 1 = integrated stepper handles
|
||||||
|
toolbarstyle = 0 # 0 = flat, 1 = glassy, 2 = gradient
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-wide" {
|
||||||
|
xthickness = 2
|
||||||
|
ythickness = 2
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-wider" {
|
||||||
|
xthickness = 3
|
||||||
|
ythickness = 3
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-thin" {
|
||||||
|
xthickness = 0
|
||||||
|
ythickness = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# Notebook
|
||||||
|
|
||||||
|
style "murrine-notebook-bg" {
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[ACTIVE] = shade (0.70, @bg_color)
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-notebook" = "murrine-notebook-bg" {
|
||||||
|
xthickness = 2
|
||||||
|
ythickness = 2
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Various Standard Widgets
|
||||||
|
|
||||||
|
style "murrine-button" = "murrine-wider" {
|
||||||
|
bg[NORMAL] = shade (1.3, @bg_color)
|
||||||
|
bg[PRELIGHT] = shade (0.80, @selected_bg_color)
|
||||||
|
bg[ACTIVE] = shade (1.00, @selected_bg_color)
|
||||||
|
bg[INSENSITIVE] = shade (0.85, @bg_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-scrollbar" {
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = mix (0.31, @text_color, @bg_color)
|
||||||
|
bg[ACTIVE] = @selected_bg_color
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
contrast = 0.0
|
||||||
|
border_shades = { 0.9, 0.9 }
|
||||||
|
trough_shades = { 0.97, 0.97 }
|
||||||
|
trough_border_shades = { 1.0, 1.0 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-overlay-scrollbar" {
|
||||||
|
bg[ACTIVE] = shade (0.8, @bg_color)
|
||||||
|
bg[INSENSITIVE] = shade (0.97, @bg_color)
|
||||||
|
|
||||||
|
base[SELECTED] = shade (0.6, @bg_color)
|
||||||
|
base[INSENSITIVE] = shade (0.85, @bg_color)
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-scale" = "murrine-thin" {
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[ACTIVE] = @bg_color
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[INSENSITIVE] = shade (0.95, @bg_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 8
|
||||||
|
gradient_shades = { 1.08, 1.08, 1.08, 1.08 }
|
||||||
|
border_shades = { 1.0, 1.0 }
|
||||||
|
trough_shades = { 1.08, 1.08 }
|
||||||
|
trough_border_shades = { 0.8, 0.8 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-progressbar" = "murrine-thin" {
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[ACTIVE] = shade(0.60, @bg_color)
|
||||||
|
|
||||||
|
fg[PRELIGHT] = @selected_fg_color
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
border_shades = { 1.2, 1.2 }
|
||||||
|
trough_border_shades = { 0.8, 0.8 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-treeview-header" = "murrine-button" {
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-treeview" {
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-frame-title" {
|
||||||
|
fg[NORMAL] = lighter (@text_color)
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-tooltips" {
|
||||||
|
xthickness = 5
|
||||||
|
ythickness = 5
|
||||||
|
|
||||||
|
bg[NORMAL] = @tooltip_bg_color
|
||||||
|
bg[SELECTED] = @tooltip_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
textstyle = 0
|
||||||
|
roundness = 0
|
||||||
|
rgba = FALSE
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-spinbutton" = "murrine-button" {
|
||||||
|
engine "murrine" {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-radiocheck" = "murrine-default" {
|
||||||
|
bg[SELECTED] = @bg_color
|
||||||
|
|
||||||
|
text[NORMAL] = @selected_bg_color
|
||||||
|
text[PRELIGHT] = @selected_bg_color
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-entry" = "murrine-wider" {
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
border_shades = { 1.15, 1.15 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "metacity-frame" = "murrine-default" {
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-statusbar" {
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
}
|
||||||
|
style "murrine-comboboxentry" = "murrine-entry" { }
|
||||||
|
style "murrine-hscale" = "murrine-scale" { }
|
||||||
|
style "murrine-vscale" = "murrine-scale" { }
|
||||||
|
style "murrine-hscrollbar" = "murrine-scrollbar" { }
|
||||||
|
style "murrine-vscrollbar" = "murrine-scrollbar" { }
|
||||||
|
|
||||||
|
# Menus
|
||||||
|
|
||||||
|
style "murrine-menu" = "murrine-thin" {
|
||||||
|
bg[NORMAL] = shade(0.8, @menu_bg_color)
|
||||||
|
bg[PRELIGHT] = @selected_bg_color
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = @menu_bg_color
|
||||||
|
bg[INSENSITIVE] = @menu_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @menu_fg_color
|
||||||
|
fg[PRELIGHT] = @selected_fg_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @selected_fg_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @menu_bg_color, @menu_fg_color)
|
||||||
|
|
||||||
|
text[NORMAL] = @menu_fg_color
|
||||||
|
text[PRELIGHT] = @selected_fg_color
|
||||||
|
text[SELECTED] = @selected_fg_color
|
||||||
|
text[ACTIVE] = @selected_fg_color
|
||||||
|
text[INSENSITIVE] = mix (0.5, @menu_bg_color, @menu_fg_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-menu-item" = "murrine-wider" {
|
||||||
|
bg[PRELIGHT] = @selected_bg_color
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = @selected_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @menu_fg_color # Fix for XFCE menu text
|
||||||
|
fg[PRELIGHT] = @selected_fg_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @selected_fg_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @menu_bg_color, @menu_fg_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
textstyle = 0
|
||||||
|
border_shades = { 1.2, 1.2 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-separator-menu-item" = "murrine-thin" { }
|
||||||
|
|
||||||
|
style "murrine-menubar" {
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = mix (0.21, @text_color, @bg_color)
|
||||||
|
bg[SELECTED] = mix (0.21, @text_color, @bg_color)
|
||||||
|
bg[ACTIVE] = shade (0.9, @bg_color)
|
||||||
|
bg[INSENSITIVE] = @bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = shade (1.08, @text_color)
|
||||||
|
fg[SELECTED] = shade (1.08, @text_color)
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-menubaritem" {
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = @selected_bg_color
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = shade (0.9, @bg_color)
|
||||||
|
bg[INSENSITIVE] = @bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = shade (1.08, @text_color)
|
||||||
|
fg[SELECTED] = shade (1.08, @text_color)
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Toolbars
|
||||||
|
|
||||||
|
style "murrine-toolbar" = "murrine-thin" {
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = shade (1.02, @bg_color)
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = shade (0.9, @bg_color)
|
||||||
|
bg[INSENSITIVE] = @bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "murrine-toolbutton" = "murrine-button" {
|
||||||
|
bg[NORMAL] = shade (1.08, @bg_color)
|
||||||
|
bg[PRELIGHT] = shade (1.10, @bg_color)
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = shade (0.95, @bg_color)
|
||||||
|
bg[INSENSITIVE] = shade (0.85, @bg_color)
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class "GtkToolbar" style "murrine-toolbar"
|
||||||
|
class "GtkHandleBox" style "murrine-toolbar"
|
||||||
|
widget_class "*Toolbar*.*Separator*" style "murrine-toolbar"
|
||||||
|
|
||||||
|
# Panels
|
||||||
|
|
||||||
|
style "murrine-panel" = "murrine-thin" {
|
||||||
|
xthickness = 2
|
||||||
|
|
||||||
|
bg[NORMAL] = @menu_bg_color
|
||||||
|
bg[PRELIGHT] = shade(0.8, @selected_bg_color)
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = @selected_bg_color
|
||||||
|
bg[INSENSITIVE] = @menu_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[SELECTED] = @text_color
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = shade(0.8, @text_color)
|
||||||
|
|
||||||
|
base[NORMAL] = @menu_bg_color
|
||||||
|
base[PRELIGHT] = mix (0.21, @text_color, @menu_bg_color)
|
||||||
|
base[SELECTED] = @selected_bg_color
|
||||||
|
base[ACTIVE] = @selected_bg_color
|
||||||
|
base[INSENSITIVE] = @menu_bg_color
|
||||||
|
|
||||||
|
text[NORMAL] = @text_color
|
||||||
|
text[PRELIGHT] = shade (1.08, @text_color)
|
||||||
|
text[SELECTED] = shade (1.08, @text_color)
|
||||||
|
text[ACTIVE] = @text_color
|
||||||
|
text[INSENSITIVE] = mix (0.5, @menu_bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
contrast = 0.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
widget "*PanelWidget*" style "murrine-panel"
|
||||||
|
widget "*PanelApplet*" style "murrine-panel"
|
||||||
|
widget "*fast-user-switch*" style "murrine-panel"
|
||||||
|
widget "*CPUFreq*Applet*" style "murrine-panel"
|
||||||
|
widget "*indicator-applet*" style "murrine-panel"
|
||||||
|
class "PanelApp*" style "murrine-panel"
|
||||||
|
class "PanelToplevel*" style "murrine-panel"
|
||||||
|
widget_class "*PanelToplevel*" style "murrine-panel"
|
||||||
|
widget_class "*notif*" style "murrine-panel"
|
||||||
|
widget_class "*Notif*" style "murrine-panel"
|
||||||
|
widget_class "*Tray*" style "murrine-panel"
|
||||||
|
widget_class "*tray*" style "murrine-panel"
|
||||||
|
widget_class "*computertemp*" style "murrine-panel"
|
||||||
|
widget_class "*Applet*Tomboy*" style "murrine-panel"
|
||||||
|
widget_class "*Applet*Netstatus*" style "murrine-panel"
|
||||||
|
widget "*gdm-user-switch-menubar*" style "murrine-panel"
|
||||||
|
|
||||||
|
style "bold-panel-item" {
|
||||||
|
font_name = "Bold"
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
widget "*Panel*MenuBar*" style "bold-panel-item"
|
||||||
|
widget "*gimmie*" style "bold-panel-item"
|
||||||
|
|
||||||
|
# widget_class "*Mail*" style "murrine-panel" # Disabled to fix Evolution bug
|
||||||
|
# class "*Panel*" style "murrine-panel" # Disabled to fix bug
|
||||||
|
|
||||||
|
# XFCE Styles
|
||||||
|
|
||||||
|
style "workspace-switcher" = "murrine-panel" {
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
}
|
||||||
|
|
||||||
|
style "xfce-header" {
|
||||||
|
bg[NORMAL] = shade (0.9, @bg_color)
|
||||||
|
base[NORMAL] = shade (1.18, @bg_color)
|
||||||
|
}
|
||||||
|
|
||||||
|
style "xfdesktop-windowlist" {
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
fg[INSENSITIVE] = shade (0.95, @bg_color)
|
||||||
|
text[INSENSITIVE] = shade (0.95, @bg_color)
|
||||||
|
}
|
||||||
|
|
||||||
|
style "xfdesktop-icon-view" {
|
||||||
|
XfdesktopIconView::label-alpha = 0
|
||||||
|
XfdesktopIconView::selected-label-alpha = 60
|
||||||
|
XfdesktopIconVIew::ellipsize-icon-labels = 1
|
||||||
|
|
||||||
|
base[NORMAL] = @selected_bg_color
|
||||||
|
base[SELECTED] = @selected_bg_color
|
||||||
|
base[ACTIVE] = @selected_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @selected_fg_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @selected_fg_color
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
textstyle = 5
|
||||||
|
text_shade = 0.05
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "xfwm-tabwin" {
|
||||||
|
Xfwm4TabwinWidget::border-width = 0
|
||||||
|
Xfwm4TabwinWidget::icon-size = 64
|
||||||
|
|
||||||
|
bg[NORMAL] = @menu_bg_color
|
||||||
|
fg[NORMAL] = @menu_fg_color
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
focusstyle = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "xfsm-logout" {
|
||||||
|
bg[NORMAL] = @menu_bg_color
|
||||||
|
bg[ACTIVE] = @menu_bg_color
|
||||||
|
bg[PRELIGHT] = shade (1.1, @menu_bg_color)
|
||||||
|
bg[SELECTED] = shade (0.5, @menu_bg_color)
|
||||||
|
bg[INSENSITIVE] = shade (1.3, @menu_bg_color)
|
||||||
|
|
||||||
|
fg[NORMAL] = @menu_fg_color
|
||||||
|
fg[PRELIGHT] = @menu_fg_color
|
||||||
|
|
||||||
|
text[NORMAL] = @menu_fg_color
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "xfsm-logout-button" {
|
||||||
|
bg[NORMAL] = shade (1.2, @menu_bg_color)
|
||||||
|
bg[PRELIGHT] = shade (1.4, @menu_bg_color)
|
||||||
|
|
||||||
|
engine "murrine" {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
widget "*WnckPager*" style "workspace-switcher"
|
||||||
|
|
||||||
|
widget "*Xfce*Panel*" style "murrine-panel"
|
||||||
|
class "*Xfce*Panel*" style "murrine-panel"
|
||||||
|
|
||||||
|
# Thunar Styles
|
||||||
|
|
||||||
|
style "sidepane" {
|
||||||
|
base[NORMAL] = @bg_color
|
||||||
|
base[INSENSITIVE] = shade(0.90, @bg_color)
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
text[NORMAL] = @text_color
|
||||||
|
}
|
||||||
|
|
||||||
|
widget_class "*ThunarShortcutsView*" style "sidepane"
|
||||||
|
widget_class "*ThunarTreeView*" style "sidepane"
|
||||||
|
widget_class "*ThunarLocationEntry*" style "murrine-entry"
|
||||||
|
|
||||||
|
# Gtk2 Open-File Dialog
|
||||||
|
|
||||||
|
widget_class "*GtkFileChooserWidget.GtkFileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow.GtkTreeView*" style "sidepane"
|
||||||
|
widget_class "*GtkFileChooserWidget.GtkFileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow.<GtkTreeView>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
|
||||||
|
# Google Chrome/Chromium Styles (requires 9.0.597 or newer)
|
||||||
|
|
||||||
|
style "chromium-toolbar-button" {
|
||||||
|
engine "murrine" {
|
||||||
|
roundness = 2
|
||||||
|
textstyle = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
style "chrome-gtk-frame" {
|
||||||
|
ChromeGtkFrame::frame-color = @titlebar_bg_color
|
||||||
|
ChromeGtkFrame::inactive-frame-color = @titlebar_bg_color
|
||||||
|
|
||||||
|
ChromeGtkFrame::frame-gradient-size = 0
|
||||||
|
ChromeGtkFrame::frame-gradient-color = @titlebar_bg_color
|
||||||
|
|
||||||
|
ChromeGtkFrame::incognito-frame-color = @titlebar_bg_color
|
||||||
|
ChromeGtkFrame::incognito-inactive-frame-color = @titlebar_bg_color
|
||||||
|
|
||||||
|
ChromeGtkFrame::incognito-frame-gradient-size = 0
|
||||||
|
ChromeGtkFrame::incognito-frame-gradient-color = @titlebar_bg_color
|
||||||
|
|
||||||
|
ChromeGtkFrame::scrollbar-trough-color = @bg_color
|
||||||
|
ChromeGtkFrame::scrollbar-slider-normal-color = mix (0.21, @text_color, @bg_color)
|
||||||
|
ChromeGtkFrame::scrollbar-slider-prelight-color = mix (0.31, @text_color, @bg_color)
|
||||||
|
}
|
||||||
|
|
||||||
|
class "ChromeGtkFrame" style "chrome-gtk-frame"
|
||||||
|
|
||||||
|
widget_class "*Chrom*Button*" style "chromium-toolbar-button"
|
||||||
|
|
||||||
|
# General Styles
|
||||||
|
|
||||||
|
class "GtkWidget" style "murrine-default"
|
||||||
|
|
||||||
|
class "GtkFrame" style "murrine-wide"
|
||||||
|
class "MetaFrames" style "metacity-frame"
|
||||||
|
class "GtkWindow" style "metacity-frame"
|
||||||
|
|
||||||
|
class "GtkSeparator" style "murrine-wide"
|
||||||
|
class "GtkCalendar" style "murrine-wide"
|
||||||
|
|
||||||
|
class "GtkSpinButton" style "murrine-spinbutton"
|
||||||
|
|
||||||
|
class "GtkScale" style "murrine-scale"
|
||||||
|
class "GtkVScale" style "murrine-vscale"
|
||||||
|
class "GtkHScale" style "murrine-hscale"
|
||||||
|
class "GtkScrollbar" style "murrine-scrollbar"
|
||||||
|
class "GtkVScrollbar" style "murrine-vscrollbar"
|
||||||
|
class "GtkHScrollbar" style "murrine-hscrollbar"
|
||||||
|
|
||||||
|
class "GtkRadio*" style "murrine-radiocheck"
|
||||||
|
class "GtkCheck*" style "murrine-radiocheck"
|
||||||
|
|
||||||
|
class "GtkEntry" style "murrine-entry"
|
||||||
|
|
||||||
|
widget_class "*<GtkNotebook>" style "murrine-notebook"
|
||||||
|
widget_class "*<GtkNotebook>*<GtkEventBox>" style "murrine-notebook-bg"
|
||||||
|
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "murrine-notebook-bg"
|
||||||
|
widget_class "*<GtkNotebook>*<GtkLayout>" style "murrine-notebook-bg"
|
||||||
|
widget_class "*.GtkNotebook.*.GtkViewport" style "murrine-notebook"
|
||||||
|
|
||||||
|
widget_class "*<GtkButton>" style "murrine-button"
|
||||||
|
widget_class "*<GtkStatusbar>*" style "murrine-statusbar"
|
||||||
|
widget_class "*<GtkProgress>" style "murrine-progressbar"
|
||||||
|
widget_class "*<GtkProgressBar>" style "murrine-progressbar"
|
||||||
|
|
||||||
|
widget_class "*<GtkComboBoxEntry>*" style "murrine-comboboxentry"
|
||||||
|
widget_class "*<GtkCombo>*" style "murrine-comboboxentry"
|
||||||
|
|
||||||
|
widget_class "*<GtkMenu>*" style "murrine-menu"
|
||||||
|
widget_class "*<GtkMenuItem>*" style "murrine-menu-item"
|
||||||
|
widget_class "*<GtkSeparatorMenuItem>*" style "murrine-separator-menu-item"
|
||||||
|
widget_class "*Menu*.*Sepa*" style "murrine-separator-menu-item"
|
||||||
|
widget_class "*<GtkMenuBar>*" style "murrine-menubar"
|
||||||
|
widget_class "*<GtkMenuBar>*<GtkMenuItem>*" style "murrine-menubaritem"
|
||||||
|
|
||||||
|
widget_class "*GtkToolButton*" style "murrine-toolbutton"
|
||||||
|
widget_class "*GtkToggleToolButton*" style "murrine-toolbutton"
|
||||||
|
widget_class "*GtkMenuToolButton*" style "murrine-toolbutton"
|
||||||
|
widget_class "*GtkToolbar*Button" style "murrine-toolbutton"
|
||||||
|
|
||||||
|
widget_class "*.<GtkFrame>.<GtkLabel>" style "murrine-frame-title"
|
||||||
|
|
||||||
|
widget_class "*.<GtkTreeView>*" style "murrine-treeview"
|
||||||
|
widget_class "*.<GtkTreeView>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
widget_class "*.<GtkCTree>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
widget_class "*.<GtkList>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
widget_class "*.<GtkCList>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
|
||||||
|
widget "gtk-tooltip*" style "murrine-tooltips"
|
||||||
|
|
||||||
|
widget_class "*<GtkScrolledWindow>*<OsScrollbar>" style "murrine-overlay-scrollbar"
|
||||||
|
|
||||||
|
# Workarounds and Non-Standard Styling
|
||||||
|
|
||||||
|
style "text-is-fg-color-workaround" {
|
||||||
|
text[NORMAL] = @text_color
|
||||||
|
text[PRELIGHT] = @text_color
|
||||||
|
text[SELECTED] = @selected_fg_color
|
||||||
|
text[ACTIVE] = @text_color
|
||||||
|
text[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
}
|
||||||
|
|
||||||
|
widget_class "*.<GtkComboBox>.<GtkCellView>" style "text-is-fg-color-workaround"
|
||||||
|
|
||||||
|
style "fg-is-text-color-workaround" {
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[ACTIVE] = @selected_fg_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[INSENSITIVE] = darker (@text_color)
|
||||||
|
}
|
||||||
|
|
||||||
|
widget_class "*<GtkListItem>*" style "fg-is-text-color-workaround"
|
||||||
|
widget_class "*<GtkCList>" style "fg-is-text-color-workaround"
|
||||||
|
widget_class "*<EelEditableLabel>" style "fg-is-text-color-workaround"
|
||||||
|
|
||||||
|
style "murrine-evo-new-button-workaround" {
|
||||||
|
engine "murrine" {
|
||||||
|
toolbarstyle = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "murrine-evo-new-button-workaround"
|
||||||
|
|
||||||
|
style "inkscape-toolbar-fix" {
|
||||||
|
engine "murrine" {
|
||||||
|
gradient_shades = { 1.0, 1.0, 1.0, 1.0 }
|
||||||
|
highlight_shade = 1.0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#widget "*GtkHandleBox*" style "inkscape-toolbar-fix"
|
||||||
|
#widget "*HandleBox*CommandsToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
#widget "*HandleBox*SnapToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*SelectToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*NodeToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*TweakToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*ZoomToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*StarToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*RectToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*3DBoxToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*ArcToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*SpiralToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*PencilToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*PenToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*CalligraphyToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*EraserToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*LPEToolToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*DropperToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*ConnectorToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*PaintbucketToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
|
||||||
|
# Performance Fixes
|
||||||
|
|
||||||
|
style "performance-fix" {
|
||||||
|
engine "murrine" {
|
||||||
|
textstyle = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
widget_class "*gtkmm__GtkWindow*" style "performance-fix" # Inkscape
|
||||||
|
widget_class "*GimpDisplayShell*" style "performance-fix" # Gimp
|
||||||
|
widget_class "*GimpToolbox*" style "performance-fix"
|
||||||
|
widget_class "*GimpMenuDock*" style "performance-fix"
|
||||||
|
widget "*OOoFixed*" style "performance-fix" # Openoffice/Libreoffice
|
||||||
|
widget_class "*MozContainer*" style "performance-fix" # Firefox (Not sure if this one does anything though.)
|
||||||
|
|
||||||
|
widget_class "*XfceHeading*" style "xfce-header"
|
||||||
|
widget_class "*XfceDesktop*" style "xfdesktop-windowlist"
|
||||||
|
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
|
||||||
|
widget "xfwm4-tabwin*" style "xfwm-tabwin"
|
||||||
|
widget_class "*XfsmLogoutDialog*" style "xfsm-logout"
|
||||||
|
widget_class "*XfsmLogoutDialog*GtkButton" style "xfsm-logout-button"
|
||||||
@@ -0,0 +1,797 @@
|
|||||||
|
#modded Numix gtkrc
|
||||||
|
|
||||||
|
gtk-color-scheme = "bg_color:{color0}
|
||||||
|
color0:{color0}
|
||||||
|
color1:{color1}
|
||||||
|
color2:{color2}
|
||||||
|
color3:{color3}
|
||||||
|
color4:{color4}
|
||||||
|
color5:{color5}
|
||||||
|
color6:{color6}
|
||||||
|
color7:{color7}
|
||||||
|
color8:{color8}
|
||||||
|
color9:{color9}
|
||||||
|
color10:{color10}
|
||||||
|
color11:{color11}
|
||||||
|
color12:{color12}
|
||||||
|
color13:{color13}
|
||||||
|
color14:{color14}
|
||||||
|
color15:{color15}
|
||||||
|
text_color:{color15}
|
||||||
|
selected_bg_color:{active}
|
||||||
|
selected_fg_color:{color15}
|
||||||
|
tooltip_bg_color:{color0}
|
||||||
|
tooltip_fg_color:{color15}
|
||||||
|
titlebar_bg_color:{color0}
|
||||||
|
titlebar_fg_color:{color15}
|
||||||
|
menu_bg_color:{color0}
|
||||||
|
menu_fg_color:{color15}
|
||||||
|
link_color:{active}"
|
||||||
|
gtk-auto-mnemonics = 1
|
||||||
|
|
||||||
|
# Default Style
|
||||||
|
# DO --NOT-- CHANGE ACTIVE
|
||||||
|
# IT's THE COLOR THAT WPGTK REPLACES
|
||||||
|
# FEEL FREE TO MODIFY EVERYTHING ELSE IN gtkrc.base
|
||||||
|
|
||||||
|
style "murrine-default" {{
|
||||||
|
GtkArrow::arrow-scaling= 0.6
|
||||||
|
|
||||||
|
GtkButton::child-displacement-x = 0
|
||||||
|
GtkButton::child-displacement-y = 0
|
||||||
|
|
||||||
|
GtkButton::default-border = {{ 0, 0, 0, 0 }}
|
||||||
|
|
||||||
|
GtkButtonBox::child-min-height = 26
|
||||||
|
|
||||||
|
GtkCheckButton::indicator-size = 16
|
||||||
|
|
||||||
|
# The following line hints to gecko (and possibly other appliations)
|
||||||
|
# that the entry should be drawn transparently on the canvas.
|
||||||
|
# Without this, gecko will fill in the background of the entry.
|
||||||
|
GtkEntry::honors-transparent-bg-hint = 1
|
||||||
|
GtkEntry::state-hint = 0
|
||||||
|
|
||||||
|
GtkExpander::expander-size = 16
|
||||||
|
|
||||||
|
GtkImage::x-ayatana-indicator-dynamic = 1
|
||||||
|
|
||||||
|
GtkMenu::horizontal-padding = 0
|
||||||
|
GtkMenu::vertical-padding = 0
|
||||||
|
|
||||||
|
GtkMenuBar::internal-padding = 0
|
||||||
|
GtkMenuBar::window-dragging = 1
|
||||||
|
|
||||||
|
GtkMenuItem::arrow-scaling= 0.5
|
||||||
|
|
||||||
|
GtkPaned::handle-size = 1
|
||||||
|
|
||||||
|
GtkProgressBar::min-horizontal-bar-height = 12
|
||||||
|
GtkProgressBar::min-vertical-bar-width = 12
|
||||||
|
|
||||||
|
GtkRange::trough-border = 0
|
||||||
|
GtkRange::slider-width = 8
|
||||||
|
GtkRange::stepper-size = 12
|
||||||
|
GtkRange::stepper_spacing = 0
|
||||||
|
GtkRange::trough-under-steppers = 1
|
||||||
|
|
||||||
|
GtkScale::slider-length = 16
|
||||||
|
GtkScale::slider-width = 16
|
||||||
|
GtkScale::trough-side-details = 1
|
||||||
|
|
||||||
|
GtkScrollbar::activate-slider = 1
|
||||||
|
GtkScrollbar::has-backward-stepper = 0
|
||||||
|
GtkScrollbar::has-forward-stepper = 0
|
||||||
|
GtkScrollbar::has-secondary-backward-stepper = 0
|
||||||
|
GtkScrollbar::has-secondary-forward-stepper = 0
|
||||||
|
GtkScrollbar::min-slider-length = 80
|
||||||
|
GtkScrollbar::slider-width = 8
|
||||||
|
GtkScrollbar::trough-border = 0
|
||||||
|
|
||||||
|
GtkScrolledWindow::scrollbar-spacing = 0
|
||||||
|
GtkScrolledWindow::scrollbars-within-bevel = 1
|
||||||
|
|
||||||
|
GtkSeparatorMenuItem::horizontal-padding = 0
|
||||||
|
|
||||||
|
GtkToolbar::internal-padding = 0
|
||||||
|
|
||||||
|
GtkTreeView::expander-size = 11
|
||||||
|
GtkTreeView::vertical-separator = 0
|
||||||
|
|
||||||
|
GtkWidget::focus-line-width = 1
|
||||||
|
# The following line prevents the Firefox tabs
|
||||||
|
# from jumping a few pixels when you create a new tab
|
||||||
|
GtkWidget::focus-padding = 0
|
||||||
|
|
||||||
|
GtkWidget::wide-separators = 1
|
||||||
|
GtkWidget::separator-width = 1
|
||||||
|
GtkWidget::separator-height = 1
|
||||||
|
|
||||||
|
GtkWindow::resize-grip-height = 0
|
||||||
|
GtkWindow::resize-grip-width = 0
|
||||||
|
|
||||||
|
WnckTasklist::fade-overlay-rect = 0
|
||||||
|
|
||||||
|
GnomeHRef::link_color = @link_color
|
||||||
|
GtkHTML::link-color = @link_color
|
||||||
|
GtkIMHtmlr::hyperlink-color = @link_color
|
||||||
|
GtkIMHtml::hyperlink-color = @link_color
|
||||||
|
GtkWidget::link-color = @link_color
|
||||||
|
GtkWidget::visited-link-color = @text_color
|
||||||
|
|
||||||
|
GtkToolbar::shadow-type = GTK_SHADOW_NONE # Makes toolbars flat and unified
|
||||||
|
GtkMenuBar::shadow-type = GTK_SHADOW_NONE # Makes menubars flat and unified
|
||||||
|
|
||||||
|
xthickness = 1
|
||||||
|
ythickness = 1
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = shade (1.02, @bg_color)
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = @bg_color
|
||||||
|
bg[INSENSITIVE] = @bg_color
|
||||||
|
|
||||||
|
base[NORMAL] = shade(0.85, @color0)
|
||||||
|
base[PRELIGHT] = shade (0.85, @color0)
|
||||||
|
base[SELECTED] = @selected_bg_color
|
||||||
|
base[ACTIVE] = @selected_bg_color
|
||||||
|
base[INSENSITIVE] = shade (0.85, @bg_color)
|
||||||
|
|
||||||
|
text[NORMAL] = @text_color
|
||||||
|
text[PRELIGHT] = @text_color
|
||||||
|
text[SELECTED] = @selected_fg_color
|
||||||
|
text[ACTIVE] = @selected_fg_color
|
||||||
|
text[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
animation = FALSE
|
||||||
|
arrowstyle = 1 # 0 = normal arrows, 1 = filled arrows
|
||||||
|
border_shades = {{ 1.0, 1.0 }} # gradient to draw on border
|
||||||
|
colorize_scrollbar = TRUE
|
||||||
|
comboboxstyle = 0 # 0 = normal combobox, 1 = colorized combobox below arrow
|
||||||
|
contrast = 0.0 # overal contrast with borders
|
||||||
|
focusstyle = 1 # 0 = none, 1 = grey dotted, 2 = colored with fill, 3 = colored glow
|
||||||
|
glazestyle = 0 # 0 = flat highlight, 1 = curved highlight, 2 = concave, 3 = top curved highlight, 4 = beryl highlight
|
||||||
|
glowstyle = 0 # 0 = glow on top, 1 = glow on bottom, 2 = glow on top and bottom, 3 = glow on middle vertically, 4 = glow on middle horizontally, 5 = glow on all sides
|
||||||
|
glow_shade = 1.0 # amount of glow
|
||||||
|
gradient_shades = {{ 1.0, 1.0, 1.0, 1.0 }} # gradient to draw on widgets
|
||||||
|
highlight_shade = 1.0 # amount of highlight
|
||||||
|
lightborder_shade = 1.0 # amount of inset light border
|
||||||
|
lightborderstyle = 1 # 0 = lightborder on top side, 1 = lightborder on all sides
|
||||||
|
listviewheaderstyle = 0 # 0 = flat, 1 = glassy, 2 = raised
|
||||||
|
listviewstyle = 0 # 0 = none, 1 = dotted, 2 = line
|
||||||
|
menubaritemstyle = 0 # 0 = menuitem look, 1 = button look
|
||||||
|
menubarstyle = 0 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
|
||||||
|
menuitemstyle = 0 # 0 = flat, 1 = glassy, 2 = striped
|
||||||
|
menustyle = 0 # 0 = none, 1 = vertical striped
|
||||||
|
progressbarstyle = 0 # 0 = none, 1 = diagonal striped, 2 = vertical striped
|
||||||
|
reliefstyle = 0 # 0 = flat, 1 = inset, 2 = shadow, 3 = shadow with gradient, 4 = stronger shadow with gradient
|
||||||
|
roundness = 0 # roundness of widgets
|
||||||
|
scrollbarstyle = 0 # 0 = none, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
|
||||||
|
sliderstyle = 0 # 0 = none, 1 = handles
|
||||||
|
stepperstyle = 1 # 0 = standard, 1 = integrated stepper handles
|
||||||
|
toolbarstyle = 0 # 0 = flat, 1 = glassy, 2 = gradient
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-wide" {{
|
||||||
|
xthickness = 2
|
||||||
|
ythickness = 2
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-wider" {{
|
||||||
|
xthickness = 3
|
||||||
|
ythickness = 3
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-thin" {{
|
||||||
|
xthickness = 0
|
||||||
|
ythickness = 0
|
||||||
|
}}
|
||||||
|
|
||||||
|
# Notebook
|
||||||
|
|
||||||
|
style "murrine-notebook-bg" {{
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[ACTIVE] = shade (0.70, @bg_color)
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-notebook" = "murrine-notebook-bg" {{
|
||||||
|
xthickness = 2
|
||||||
|
ythickness = 2
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
# Various Standard Widgets
|
||||||
|
|
||||||
|
style "murrine-button" = "murrine-wider" {{
|
||||||
|
bg[NORMAL] = shade (1.3, @bg_color)
|
||||||
|
bg[PRELIGHT] = shade (0.80, @selected_bg_color)
|
||||||
|
bg[ACTIVE] = shade (1.00, @selected_bg_color)
|
||||||
|
bg[INSENSITIVE] = shade (0.85, @bg_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-scrollbar" {{
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = mix (0.31, @text_color, @bg_color)
|
||||||
|
bg[ACTIVE] = @selected_bg_color
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
contrast = 0.0
|
||||||
|
border_shades = {{ 0.9, 0.9 }}
|
||||||
|
trough_shades = {{ 0.97, 0.97 }}
|
||||||
|
trough_border_shades = {{ 1.0, 1.0 }}
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-overlay-scrollbar" {{
|
||||||
|
bg[ACTIVE] = shade (0.8, @bg_color)
|
||||||
|
bg[INSENSITIVE] = shade (0.97, @bg_color)
|
||||||
|
|
||||||
|
base[SELECTED] = shade (0.6, @bg_color)
|
||||||
|
base[INSENSITIVE] = shade (0.85, @bg_color)
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-scale" = "murrine-thin" {{
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[ACTIVE] = @bg_color
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[INSENSITIVE] = shade (0.95, @bg_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 8
|
||||||
|
gradient_shades = {{ 1.08, 1.08, 1.08, 1.08 }}
|
||||||
|
border_shades = {{ 1.0, 1.0 }}
|
||||||
|
trough_shades = {{ 1.08, 1.08 }}
|
||||||
|
trough_border_shades = {{ 0.8, 0.8 }}
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-progressbar" = "murrine-thin" {{
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[ACTIVE] = shade(0.60, @bg_color)
|
||||||
|
|
||||||
|
fg[PRELIGHT] = @selected_fg_color
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
border_shades = {{ 1.2, 1.2 }}
|
||||||
|
trough_border_shades = {{ 0.8, 0.8 }}
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-treeview-header" = "murrine-button" {{
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-treeview" {{
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-frame-title" {{
|
||||||
|
fg[NORMAL] = lighter (@text_color)
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-tooltips" {{
|
||||||
|
xthickness = 5
|
||||||
|
ythickness = 5
|
||||||
|
|
||||||
|
bg[NORMAL] = @tooltip_bg_color
|
||||||
|
bg[SELECTED] = @tooltip_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
textstyle = 0
|
||||||
|
roundness = 0
|
||||||
|
rgba = FALSE
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-spinbutton" = "murrine-button" {{
|
||||||
|
engine "murrine" {{
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-radiocheck" = "murrine-default" {{
|
||||||
|
bg[SELECTED] = @bg_color
|
||||||
|
|
||||||
|
text[NORMAL] = @selected_bg_color
|
||||||
|
text[PRELIGHT] = @selected_bg_color
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-entry" = "murrine-wider" {{
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
border_shades = {{ 1.15, 1.15 }}
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "metacity-frame" = "murrine-default" {{
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-statusbar" {{
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
}}
|
||||||
|
style "murrine-comboboxentry" = "murrine-entry" {{ }}
|
||||||
|
style "murrine-hscale" = "murrine-scale" {{ }}
|
||||||
|
style "murrine-vscale" = "murrine-scale" {{ }}
|
||||||
|
style "murrine-hscrollbar" = "murrine-scrollbar" {{ }}
|
||||||
|
style "murrine-vscrollbar" = "murrine-scrollbar" {{ }}
|
||||||
|
|
||||||
|
# Menus
|
||||||
|
|
||||||
|
style "murrine-menu" = "murrine-thin" {{
|
||||||
|
bg[NORMAL] = shade(0.8, @menu_bg_color)
|
||||||
|
bg[PRELIGHT] = @selected_bg_color
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = @menu_bg_color
|
||||||
|
bg[INSENSITIVE] = @menu_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @menu_fg_color
|
||||||
|
fg[PRELIGHT] = @selected_fg_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @selected_fg_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @menu_bg_color, @menu_fg_color)
|
||||||
|
|
||||||
|
text[NORMAL] = @menu_fg_color
|
||||||
|
text[PRELIGHT] = @selected_fg_color
|
||||||
|
text[SELECTED] = @selected_fg_color
|
||||||
|
text[ACTIVE] = @selected_fg_color
|
||||||
|
text[INSENSITIVE] = mix (0.5, @menu_bg_color, @menu_fg_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-menu-item" = "murrine-wider" {{
|
||||||
|
bg[PRELIGHT] = @selected_bg_color
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = @selected_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @menu_fg_color # Fix for XFCE menu text
|
||||||
|
fg[PRELIGHT] = @selected_fg_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @selected_fg_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @menu_bg_color, @menu_fg_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
textstyle = 0
|
||||||
|
border_shades = {{ 1.2, 1.2 }}
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-separator-menu-item" = "murrine-thin" {{ }}
|
||||||
|
|
||||||
|
style "murrine-menubar" {{
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = mix (0.21, @text_color, @bg_color)
|
||||||
|
bg[SELECTED] = mix (0.21, @text_color, @bg_color)
|
||||||
|
bg[ACTIVE] = shade (0.9, @bg_color)
|
||||||
|
bg[INSENSITIVE] = @bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = shade (1.08, @text_color)
|
||||||
|
fg[SELECTED] = shade (1.08, @text_color)
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-menubaritem" {{
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = @selected_bg_color
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = shade (0.9, @bg_color)
|
||||||
|
bg[INSENSITIVE] = @bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = shade (1.08, @text_color)
|
||||||
|
fg[SELECTED] = shade (1.08, @text_color)
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
# Toolbars
|
||||||
|
|
||||||
|
style "murrine-toolbar" = "murrine-thin" {{
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
bg[PRELIGHT] = shade (1.02, @bg_color)
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = shade (0.9, @bg_color)
|
||||||
|
bg[INSENSITIVE] = @bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "murrine-toolbutton" = "murrine-button" {{
|
||||||
|
bg[NORMAL] = shade (1.08, @bg_color)
|
||||||
|
bg[PRELIGHT] = shade (1.10, @bg_color)
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = shade (0.95, @bg_color)
|
||||||
|
bg[INSENSITIVE] = shade (0.85, @bg_color)
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
class "GtkToolbar" style "murrine-toolbar"
|
||||||
|
class "GtkHandleBox" style "murrine-toolbar"
|
||||||
|
widget_class "*Toolbar*.*Separator*" style "murrine-toolbar"
|
||||||
|
|
||||||
|
# Panels
|
||||||
|
|
||||||
|
style "murrine-panel" = "murrine-thin" {{
|
||||||
|
xthickness = 2
|
||||||
|
|
||||||
|
bg[NORMAL] = @menu_bg_color
|
||||||
|
bg[PRELIGHT] = shade(0.8, @selected_bg_color)
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
bg[ACTIVE] = @selected_bg_color
|
||||||
|
bg[INSENSITIVE] = @menu_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[SELECTED] = @text_color
|
||||||
|
fg[ACTIVE] = @text_color
|
||||||
|
fg[INSENSITIVE] = shade(0.8, @text_color)
|
||||||
|
|
||||||
|
base[NORMAL] = @menu_bg_color
|
||||||
|
base[PRELIGHT] = mix (0.21, @text_color, @menu_bg_color)
|
||||||
|
base[SELECTED] = @selected_bg_color
|
||||||
|
base[ACTIVE] = @selected_bg_color
|
||||||
|
base[INSENSITIVE] = @menu_bg_color
|
||||||
|
|
||||||
|
text[NORMAL] = @text_color
|
||||||
|
text[PRELIGHT] = shade (1.08, @text_color)
|
||||||
|
text[SELECTED] = shade (1.08, @text_color)
|
||||||
|
text[ACTIVE] = @text_color
|
||||||
|
text[INSENSITIVE] = mix (0.5, @menu_bg_color, @text_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
contrast = 0.0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
widget "*PanelWidget*" style "murrine-panel"
|
||||||
|
widget "*PanelApplet*" style "murrine-panel"
|
||||||
|
widget "*fast-user-switch*" style "murrine-panel"
|
||||||
|
widget "*CPUFreq*Applet*" style "murrine-panel"
|
||||||
|
widget "*indicator-applet*" style "murrine-panel"
|
||||||
|
class "PanelApp*" style "murrine-panel"
|
||||||
|
class "PanelToplevel*" style "murrine-panel"
|
||||||
|
widget_class "*PanelToplevel*" style "murrine-panel"
|
||||||
|
widget_class "*notif*" style "murrine-panel"
|
||||||
|
widget_class "*Notif*" style "murrine-panel"
|
||||||
|
widget_class "*Tray*" style "murrine-panel"
|
||||||
|
widget_class "*tray*" style "murrine-panel"
|
||||||
|
widget_class "*computertemp*" style "murrine-panel"
|
||||||
|
widget_class "*Applet*Tomboy*" style "murrine-panel"
|
||||||
|
widget_class "*Applet*Netstatus*" style "murrine-panel"
|
||||||
|
widget "*gdm-user-switch-menubar*" style "murrine-panel"
|
||||||
|
|
||||||
|
style "bold-panel-item" {{
|
||||||
|
font_name = "Bold"
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
widget "*Panel*MenuBar*" style "bold-panel-item"
|
||||||
|
widget "*gimmie*" style "bold-panel-item"
|
||||||
|
|
||||||
|
# widget_class "*Mail*" style "murrine-panel" # Disabled to fix Evolution bug
|
||||||
|
# class "*Panel*" style "murrine-panel" # Disabled to fix bug
|
||||||
|
|
||||||
|
# XFCE Styles
|
||||||
|
|
||||||
|
style "workspace-switcher" = "murrine-panel" {{
|
||||||
|
bg[SELECTED] = @selected_bg_color
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "xfce-header" {{
|
||||||
|
bg[NORMAL] = shade (0.9, @bg_color)
|
||||||
|
base[NORMAL] = shade (1.18, @bg_color)
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "xfdesktop-windowlist" {{
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
fg[INSENSITIVE] = shade (0.95, @bg_color)
|
||||||
|
text[INSENSITIVE] = shade (0.95, @bg_color)
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "xfdesktop-icon-view" {{
|
||||||
|
XfdesktopIconView::label-alpha = 0
|
||||||
|
XfdesktopIconView::selected-label-alpha = 60
|
||||||
|
XfdesktopIconVIew::ellipsize-icon-labels = 1
|
||||||
|
|
||||||
|
base[NORMAL] = @selected_bg_color
|
||||||
|
base[SELECTED] = @selected_bg_color
|
||||||
|
base[ACTIVE] = @selected_bg_color
|
||||||
|
|
||||||
|
fg[NORMAL] = @selected_fg_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[ACTIVE] = @selected_fg_color
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
textstyle = 5
|
||||||
|
text_shade = 0.05
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "xfwm-tabwin" {{
|
||||||
|
Xfwm4TabwinWidget::border-width = 0
|
||||||
|
Xfwm4TabwinWidget::icon-size = 64
|
||||||
|
|
||||||
|
bg[NORMAL] = @menu_bg_color
|
||||||
|
fg[NORMAL] = @menu_fg_color
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
focusstyle = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "xfsm-logout" {{
|
||||||
|
bg[NORMAL] = @menu_bg_color
|
||||||
|
bg[ACTIVE] = @menu_bg_color
|
||||||
|
bg[PRELIGHT] = shade (1.1, @menu_bg_color)
|
||||||
|
bg[SELECTED] = shade (0.5, @menu_bg_color)
|
||||||
|
bg[INSENSITIVE] = shade (1.3, @menu_bg_color)
|
||||||
|
|
||||||
|
fg[NORMAL] = @menu_fg_color
|
||||||
|
fg[PRELIGHT] = @menu_fg_color
|
||||||
|
|
||||||
|
text[NORMAL] = @menu_fg_color
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "xfsm-logout-button" {{
|
||||||
|
bg[NORMAL] = shade (1.2, @menu_bg_color)
|
||||||
|
bg[PRELIGHT] = shade (1.4, @menu_bg_color)
|
||||||
|
|
||||||
|
engine "murrine" {{
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
widget "*WnckPager*" style "workspace-switcher"
|
||||||
|
|
||||||
|
widget "*Xfce*Panel*" style "murrine-panel"
|
||||||
|
class "*Xfce*Panel*" style "murrine-panel"
|
||||||
|
|
||||||
|
# Thunar Styles
|
||||||
|
|
||||||
|
style "sidepane" {{
|
||||||
|
base[NORMAL] = @bg_color
|
||||||
|
base[INSENSITIVE] = shade(0.90, @bg_color)
|
||||||
|
bg[NORMAL] = @bg_color
|
||||||
|
text[NORMAL] = @text_color
|
||||||
|
}}
|
||||||
|
|
||||||
|
widget_class "*ThunarShortcutsView*" style "sidepane"
|
||||||
|
widget_class "*ThunarTreeView*" style "sidepane"
|
||||||
|
widget_class "*ThunarLocationEntry*" style "murrine-entry"
|
||||||
|
|
||||||
|
# Gtk2 Open-File Dialog
|
||||||
|
|
||||||
|
widget_class "*GtkFileChooserWidget.GtkFileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow.GtkTreeView*" style "sidepane"
|
||||||
|
widget_class "*GtkFileChooserWidget.GtkFileChooserDefault.GtkVBox.GtkHPaned.GtkVBox.GtkScrolledWindow.<GtkTreeView>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
|
||||||
|
# Google Chrome/Chromium Styles (requires 9.0.597 or newer)
|
||||||
|
|
||||||
|
style "chromium-toolbar-button" {{
|
||||||
|
engine "murrine" {{
|
||||||
|
roundness = 2
|
||||||
|
textstyle = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
style "chrome-gtk-frame" {{
|
||||||
|
ChromeGtkFrame::frame-color = @titlebar_bg_color
|
||||||
|
ChromeGtkFrame::inactive-frame-color = @titlebar_bg_color
|
||||||
|
|
||||||
|
ChromeGtkFrame::frame-gradient-size = 0
|
||||||
|
ChromeGtkFrame::frame-gradient-color = @titlebar_bg_color
|
||||||
|
|
||||||
|
ChromeGtkFrame::incognito-frame-color = @titlebar_bg_color
|
||||||
|
ChromeGtkFrame::incognito-inactive-frame-color = @titlebar_bg_color
|
||||||
|
|
||||||
|
ChromeGtkFrame::incognito-frame-gradient-size = 0
|
||||||
|
ChromeGtkFrame::incognito-frame-gradient-color = @titlebar_bg_color
|
||||||
|
|
||||||
|
ChromeGtkFrame::scrollbar-trough-color = @bg_color
|
||||||
|
ChromeGtkFrame::scrollbar-slider-normal-color = mix (0.21, @text_color, @bg_color)
|
||||||
|
ChromeGtkFrame::scrollbar-slider-prelight-color = mix (0.31, @text_color, @bg_color)
|
||||||
|
}}
|
||||||
|
|
||||||
|
class "ChromeGtkFrame" style "chrome-gtk-frame"
|
||||||
|
|
||||||
|
widget_class "*Chrom*Button*" style "chromium-toolbar-button"
|
||||||
|
|
||||||
|
# General Styles
|
||||||
|
|
||||||
|
class "GtkWidget" style "murrine-default"
|
||||||
|
|
||||||
|
class "GtkFrame" style "murrine-wide"
|
||||||
|
class "MetaFrames" style "metacity-frame"
|
||||||
|
class "GtkWindow" style "metacity-frame"
|
||||||
|
|
||||||
|
class "GtkSeparator" style "murrine-wide"
|
||||||
|
class "GtkCalendar" style "murrine-wide"
|
||||||
|
|
||||||
|
class "GtkSpinButton" style "murrine-spinbutton"
|
||||||
|
|
||||||
|
class "GtkScale" style "murrine-scale"
|
||||||
|
class "GtkVScale" style "murrine-vscale"
|
||||||
|
class "GtkHScale" style "murrine-hscale"
|
||||||
|
class "GtkScrollbar" style "murrine-scrollbar"
|
||||||
|
class "GtkVScrollbar" style "murrine-vscrollbar"
|
||||||
|
class "GtkHScrollbar" style "murrine-hscrollbar"
|
||||||
|
|
||||||
|
class "GtkRadio*" style "murrine-radiocheck"
|
||||||
|
class "GtkCheck*" style "murrine-radiocheck"
|
||||||
|
|
||||||
|
class "GtkEntry" style "murrine-entry"
|
||||||
|
|
||||||
|
widget_class "*<GtkNotebook>" style "murrine-notebook"
|
||||||
|
widget_class "*<GtkNotebook>*<GtkEventBox>" style "murrine-notebook-bg"
|
||||||
|
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "murrine-notebook-bg"
|
||||||
|
widget_class "*<GtkNotebook>*<GtkLayout>" style "murrine-notebook-bg"
|
||||||
|
widget_class "*.GtkNotebook.*.GtkViewport" style "murrine-notebook"
|
||||||
|
|
||||||
|
widget_class "*<GtkButton>" style "murrine-button"
|
||||||
|
widget_class "*<GtkStatusbar>*" style "murrine-statusbar"
|
||||||
|
widget_class "*<GtkProgress>" style "murrine-progressbar"
|
||||||
|
widget_class "*<GtkProgressBar>" style "murrine-progressbar"
|
||||||
|
|
||||||
|
widget_class "*<GtkComboBoxEntry>*" style "murrine-comboboxentry"
|
||||||
|
widget_class "*<GtkCombo>*" style "murrine-comboboxentry"
|
||||||
|
|
||||||
|
widget_class "*<GtkMenu>*" style "murrine-menu"
|
||||||
|
widget_class "*<GtkMenuItem>*" style "murrine-menu-item"
|
||||||
|
widget_class "*<GtkSeparatorMenuItem>*" style "murrine-separator-menu-item"
|
||||||
|
widget_class "*Menu*.*Sepa*" style "murrine-separator-menu-item"
|
||||||
|
widget_class "*<GtkMenuBar>*" style "murrine-menubar"
|
||||||
|
widget_class "*<GtkMenuBar>*<GtkMenuItem>*" style "murrine-menubaritem"
|
||||||
|
|
||||||
|
widget_class "*GtkToolButton*" style "murrine-toolbutton"
|
||||||
|
widget_class "*GtkToggleToolButton*" style "murrine-toolbutton"
|
||||||
|
widget_class "*GtkMenuToolButton*" style "murrine-toolbutton"
|
||||||
|
widget_class "*GtkToolbar*Button" style "murrine-toolbutton"
|
||||||
|
|
||||||
|
widget_class "*.<GtkFrame>.<GtkLabel>" style "murrine-frame-title"
|
||||||
|
|
||||||
|
widget_class "*.<GtkTreeView>*" style "murrine-treeview"
|
||||||
|
widget_class "*.<GtkTreeView>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
widget_class "*.<GtkCTree>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
widget_class "*.<GtkList>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
widget_class "*.<GtkCList>.<GtkButton>" style "murrine-treeview-header"
|
||||||
|
|
||||||
|
widget "gtk-tooltip*" style "murrine-tooltips"
|
||||||
|
|
||||||
|
widget_class "*<GtkScrolledWindow>*<OsScrollbar>" style "murrine-overlay-scrollbar"
|
||||||
|
|
||||||
|
# Workarounds and Non-Standard Styling
|
||||||
|
|
||||||
|
style "text-is-fg-color-workaround" {{
|
||||||
|
text[NORMAL] = @text_color
|
||||||
|
text[PRELIGHT] = @text_color
|
||||||
|
text[SELECTED] = @selected_fg_color
|
||||||
|
text[ACTIVE] = @text_color
|
||||||
|
text[INSENSITIVE] = mix (0.5, @bg_color, @text_color)
|
||||||
|
}}
|
||||||
|
|
||||||
|
widget_class "*.<GtkComboBox>.<GtkCellView>" style "text-is-fg-color-workaround"
|
||||||
|
|
||||||
|
style "fg-is-text-color-workaround" {{
|
||||||
|
fg[NORMAL] = @text_color
|
||||||
|
fg[PRELIGHT] = @text_color
|
||||||
|
fg[ACTIVE] = @selected_fg_color
|
||||||
|
fg[SELECTED] = @selected_fg_color
|
||||||
|
fg[INSENSITIVE] = darker (@text_color)
|
||||||
|
}}
|
||||||
|
|
||||||
|
widget_class "*<GtkListItem>*" style "fg-is-text-color-workaround"
|
||||||
|
widget_class "*<GtkCList>" style "fg-is-text-color-workaround"
|
||||||
|
widget_class "*<EelEditableLabel>" style "fg-is-text-color-workaround"
|
||||||
|
|
||||||
|
style "murrine-evo-new-button-workaround" {{
|
||||||
|
engine "murrine" {{
|
||||||
|
toolbarstyle = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "murrine-evo-new-button-workaround"
|
||||||
|
|
||||||
|
style "inkscape-toolbar-fix" {{
|
||||||
|
engine "murrine" {{
|
||||||
|
gradient_shades = {{ 1.0, 1.0, 1.0, 1.0 }}
|
||||||
|
highlight_shade = 1.0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
#widget "*GtkHandleBox*" style "inkscape-toolbar-fix"
|
||||||
|
#widget "*HandleBox*CommandsToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
#widget "*HandleBox*SnapToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*SelectToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*NodeToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*TweakToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*ZoomToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*StarToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*RectToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*3DBoxToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*ArcToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*SpiralToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*PencilToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*PenToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*CalligraphyToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*EraserToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*LPEToolToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*DropperToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*ConnectorToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
widget "*HandleBox*PaintbucketToolbar*" style "inkscape-toolbar-fix"
|
||||||
|
|
||||||
|
# Performance Fixes
|
||||||
|
|
||||||
|
style "performance-fix" {{
|
||||||
|
engine "murrine" {{
|
||||||
|
textstyle = 0
|
||||||
|
}}
|
||||||
|
}}
|
||||||
|
|
||||||
|
widget_class "*gtkmm__GtkWindow*" style "performance-fix" # Inkscape
|
||||||
|
widget_class "*GimpDisplayShell*" style "performance-fix" # Gimp
|
||||||
|
widget_class "*GimpToolbox*" style "performance-fix"
|
||||||
|
widget_class "*GimpMenuDock*" style "performance-fix"
|
||||||
|
widget "*OOoFixed*" style "performance-fix" # Openoffice/Libreoffice
|
||||||
|
widget_class "*MozContainer*" style "performance-fix" # Firefox (Not sure if this one does anything though.)
|
||||||
|
|
||||||
|
widget_class "*XfceHeading*" style "xfce-header"
|
||||||
|
widget_class "*XfceDesktop*" style "xfdesktop-windowlist"
|
||||||
|
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
|
||||||
|
widget "xfwm4-tabwin*" style "xfwm-tabwin"
|
||||||
|
widget_class "*XfsmLogoutDialog*" style "xfsm-logout"
|
||||||
|
widget_class "*XfsmLogoutDialog*GtkButton" style "xfsm-logout-button"
|
||||||