This commit is contained in:
Hadi 2024-03-17 17:11:49 +01:00
parent bb869d6897
commit 381b3228dc
55 changed files with 67 additions and 72 deletions

View File

@ -4,32 +4,37 @@ This is my dotfiles repo. It's a work in progress, and I'm still learning how to
# Images
![1](img/1.png)
![2](img/2.png)
![3](img/3.png)
![neofetch](https://image.nostr.build/c208c164ae04e4c58e01adb9fab584b163a565155865833851275f89c9270b7a.jpg)
![qutebrowser](https://image.nostr.build/8cc32d981e6be256bdc37a2571c31bb76d7c3335ce7c76fa6eca89a03019bfc9.jpg)
![spotify](https://image.nostr.build/76b18bcbcdf1d911a2dbdff7bfac6652044d45602a3dce9d9c53feb295d13245.jpg)
![wofi](https://image.nostr.build/90d69ffe6251c17e25b0fb44abadaeb0dfe6db8210d935fca14bf8b00be49fa6.jpg)
# Apps
- WM: *Hyprland*
- hyprlock
- hyprpaper
- hypridle
- wlogout
- File manager:
- lf
- thunar
- Terminal: kitty
- Shell: zsh
- Prompt: starship
- Bat, eza, zoxide, fzf, ripgrep
- Editor: nixvim
- Browser: qutebrowser
- Music: spictify
- Bar: waybar
- Notifications: dunst
- Launcher: wofi
- DM: Tuigreet
- Secrets: sops-nix
| Category | Software |
|----------------|---------------|
| WM | Hyprland |
| | - hyprlock |
| | - hyprpaper |
| | - hypridle |
| | - wlogout |
| File manager | - lf |
| | - thunar |
| Terminal | kitty |
| Shell | zsh |
| | - starship |
| | - bat |
| | - eza |
| | - zoxide |
| | - fzf |
| Editor | nixvim |
| Browser | qutebrowser |
| Music | spicetify |
| Bar | waybar |
| Notifications | dunst |
| Launcher | wofi |
| DM | tuigreet |
| Secrets | sops-nix |
# Themes & Colors
@ -93,5 +98,5 @@ sudo nixos-rebuild switch --flake ~/.config/nixos#nixy
- [ ] Variable user & homeDir
- [ ] Custom GTK based on the colorscheme
- [ ] Obsidian.nvim on every markdown file
- [ ] Nextcloud services (Only on my personnal network)
- [ ] Caffeine & Night-Shift replace notif
- [ ] Make hyprcursor working

View File

@ -1,6 +1,6 @@
{ pkgs, config, ... }: {
{ self, pkgs, config, ... }: {
imports = [ ./hyprlock.nix ./hypridle.nix ./hyprpaper.nix ];
imports = [ ./hyprlock.nix ./hypridle.nix ./hyprpaper.nix ./hyprcursor.nix ];
home.packages = with pkgs; [
hyprshot
@ -29,11 +29,12 @@
settings = {
"$mod" = "SUPER";
"$shiftMod" = "SUPER_SHIFT";
"$menu" = "menu";
"$powermenu" = "${pkgs.wlogout}/bin/wlogout";
exec-once =
[ "${pkgs.hypridle}/bin/hypridle" "${pkgs.hyprpaper}/bin/hyprpaper" "${pkgs.bitwarden}/bin/bitwarden" ];
exec-once = [
"${pkgs.hypridle}/bin/hypridle"
"${pkgs.hyprpaper}/bin/hyprpaper"
"${pkgs.bitwarden}/bin/bitwarden"
];
monitor = [
"eDP-2,highres,0x0,1"
@ -43,22 +44,25 @@
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 peaclock peaclock"
"$mod, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
"$mod, SPACE, exec, $menu"
"$mod, X, exec, $powermenu"
"$mod, X, exec, ${pkgs.wlogout}/bin/wlogout"
"$mod, SPACE, exec, menu"
# Windows control
"$mod, Q, killactive,"
"$mod, T, togglefloating,"
"$mod, F, fullscreen"
"$mod, left, movefocus, l"
"$mod, right, movefocus, r"
"$mod, up, movefocus, u"
"$mod, down, movefocus, d"
# Screenshots
"$mod, PRINT, exec, ${pkgs.hyprshot}/bin/hyprshot -m window -o ~/Pictures/screenshots"
", PRINT, exec, ${pkgs.hyprshot}/bin/hyprshot -m output -o ~/Pictures/screenshots"
"$shiftMod, PRINT, exec, ${pkgs.hyprshot}/bin/hyprshot -m region -o ~/Pictures/screenshots"
# Night Shift
"$mod, F2, exec, night-shift-off"
"$mod, F3, exec, night-shift-on"
] ++ (builtins.concatLists (builtins.genList (i:
@ -96,6 +100,8 @@
"QT_QPA_PLATFORM=wayland,xcb"
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
"GTK_THEME,Flat-Remix-GTK-White-Darkest-Solid:dark"
"HYPRCURSOR_THEME,rose-pine-hyprcursor"
"HYPRCURSOR_SIZE,10"
];
general = {

View File

@ -0,0 +1,9 @@
{ config, pkgs, ... }: {
home.packages = with pkgs; [ hyprcursor ];
home.file.".local/share/icons/rose-pine-hyprcursor" = {
recursive = true;
source = ./rose-pine;
};
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,4 @@
name = rose-pine-hyprcursor
description = BreezeX remixed with Rose Pine remixed to Hyprcursor format
version = 0.2
cursors_directory = hyprcursors

View File

@ -1,6 +1 @@
{
imports = [
./cava/default.nix
./nextcloud.nix # REMOVE
];
}
{ imports = [ ./cava/default.nix ]; }

View File

@ -1,27 +0,0 @@
{ pkgs, ... }: {
systemd.user.services.watch-nextcloud = {
Unit = { Description = "Start Nextcloud if I'm on one of my network"; };
Install = { WantedBy = [ "default.target" ]; };
Service = {
ExecStart = "${pkgs.writeShellScript "watch-nextcloud" ''
while 1;do
ssid=$(nmcli -t -f name connection show --active | head -n1)
if [[ $ssid == "inthecloud" || $ssid == "Wired connection 2" ]]; then
status=$(systemctl --user status nextcloud-client)
service_status=$(echo "$status" | awk '/Active:/ {print $2}')
if [[ $service_status == "inactive" ]]; then
systemctl --user start nextcloud-client
fi
else
status=$(systemctl --user status nextcloud-client)
service_status=$(echo "$status" | awk '/Active:/ {print $2}')
if [[ $service_status == "active" ]]; then
systemctl --user stop nextcloud-client
fi
fi
sleep 120
done
''}";
};
};
}

View File

@ -4,8 +4,8 @@
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
historySubstringSearch.enable = true;

View File

@ -9,7 +9,8 @@
systemd.user.services.mbsync.Unit.After = [ "sops-nix.service" ];
home.activation.setupEtc = config.lib.dag.entryAfter [ "writeBoundary" ] ''
/run/current-system/sw/bin/systemctl start --user sops-nix
'';
# Make home-manager crash on boot, dafuk ?
# home.activation.setupEtc = config.lib.dag.entryAfter [ "writeBoundary" ] ''
# /run/current-system/sw/bin/systemctl start --user sops-nix
# '';
}

BIN
img/1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

BIN
img/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 906 KiB

BIN
img/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 MiB

View File

@ -108,5 +108,7 @@
};
};
services.dbus.enable = true;
system.stateVersion = "23.11";
}