diff --git a/README.md b/README.md index 3ffecba..c946d6e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,13 @@ -#How to instal#\n -git clone https://github.com/Totorile1/nixos.git\n -cd ./nixos\n -sudo nixos-rebuild switch --flake ~/nixos/#laptop\n +# NixOS configuration +![NixOS configuraton](/assets/example.png) +### Installation guide +You need to have `git` installed before installing the config. +```shell +cd +git clone https://github.com/Totorile1/nixos.git +cd ./nixos +sudo nixos-rebuild switch --flake ~/nixos/#laptop +``` + + + diff --git a/assets/example.png b/assets/example.png new file mode 100644 index 0000000..704a594 Binary files /dev/null and b/assets/example.png differ diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index b392201..f8704d5 100755 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -59,6 +59,7 @@ home.packages = [ (pkgs.callPackage ../../modules/scripts/weatherwaybar.nix {}) (pkgs.callPackage ../../modules/scripts/colorpicker.nix {}) (pkgs.callPackage ../../modules/scripts/killall.nix {}) +(pkgs.callPackage ../../modules/scripts/launch.nix {}) # necessary for the apps i launch with hyprland at every start #pkgs pkgs.gruvbox-gtk-theme # # Adds the 'hello' command to your environment. It prints a friendly diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index d4d98c5..b2c7216 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -145,8 +145,8 @@ in "Ctrl+$mod, 6, exec, custom-killall" # reloads the autostart programs "Ctrl+$mod, 4, exec, sleep 3 && kitty -o font_size=16 -e sh -c 'custom-weather'" - "Ctrl+$mod, 4, exec, sleep 2 && kitty -o font_size=8 -e sh -c 'custom-cowsay'" - "Ctrl+$mod, 4, exec, kitty -e 'sleep 2 & clear & fastfetch'" + "Ctrl+$mod, 4, exec, sleep 2 && kitty -o font_size=11 -e sh -c 'custom-cowsay'" + "Ctrl+$mod, 4, exec, kitty -e 'custom-launch'" "Ctrl+$mod, 4, exec, sleep 1 && kitty -o font_size=5 -e btm --theme gruvbox --disable-click --disable_advanced_kill --enable_cache_memory -g -R -T " "Ctrl+$mod, 4, exec, sleep 3 && kitty -o font_size=1 -e sh -c 'cmatrix -br'" #plugins keybindings @@ -203,9 +203,9 @@ in ####################### "[workspace 1 silent] sleep 3 && kitty -o font_size=16 -e sh -c 'custom-weather'" # will launch weather (Third) with a reduced font size - "[workspace 1 silent] sleep 2 && kitty -o font_size=8 -e sh -c 'custom-cowsay'" + "[workspace 1 silent] sleep 2 && kitty -o font_size=11ยง -e sh -c 'custom-cowsay'" # will launch quotes (fourth) - "[workspace 1 silent] kitty - e 'sleep 2 & clear & fastfetch'" + "[workspace 1 silent] kitty -e 'custom-launch'" # the terminal will exec .zshrc so FastFetch will be launched (First) "[workspace 1 silent] sleep 1 && kitty -o font_size=5 -e btm --theme gruvbox --disable-click --disable_advanced_kill --enable_cache_memory -g -R -T " # will launch bottom (second) diff --git a/modules/scripts/launch.nix b/modules/scripts/launch.nix new file mode 100644 index 0000000..15268ea --- /dev/null +++ b/modules/scripts/launch.nix @@ -0,0 +1,15 @@ +# used for the terminal autostart. Needs to get cleared and recall fastfetch so that the bar from oh-my-zsh get resized + +{ writeShellApplication, zsh, ... }: + +writeShellApplication { + name = "custom-launch"; + runtimeInputs = [ + zsh + ]; + text = '' +sleep 2 +clear +zsh +''; +} diff --git a/modules/scripts/weather.nix b/modules/scripts/weather.nix index 41edbce..bcc53fb 100644 --- a/modules/scripts/weather.nix +++ b/modules/scripts/weather.nix @@ -6,6 +6,9 @@ writeShellApplication { curl ]; text = '' - while true; do curl "https://wttr.in/Prangins?0&d&q&F&lang=fr"; sleep 7200; done +while true; do + curl "https://wttr.in/?0&d&q&F&lang=fr" + sleep 7200 +done ''; }