Add wallpapers

This commit is contained in:
2023-02-14 22:15:28 +09:00
parent de9074c19c
commit 9f953d20eb
22 changed files with 92 additions and 27 deletions

18
flake.lock generated
View File

@@ -81,11 +81,27 @@
"type": "github"
}
},
"nur": {
"locked": {
"lastModified": 1676375128,
"narHash": "sha256-rNEF0UWJQhL18V82Y1SGDqH21wSykDy3KxvlzRGB+2w=",
"owner": "nix-community",
"repo": "NUR",
"rev": "89f9ed0f4a56f14bd64260e252c6ded255d596bc",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"hyprland": "hyprland",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nur": "nur"
}
},
"utils": {

View File

@@ -11,28 +11,38 @@
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/NUR";
};
outputs = {
self,
nixpkgs,
home-manager,
hyprland,
nur,
...
} @ inputs: let
} @ rawInput: let
user = "zoriya";
# TODO: mode this to a lib folder
mkSystem = system: hostname: {
nixModules,
homeModules,
}:
nixpkgs.lib.nixosSystem {
}: let
nixpkgs = import rawInput.nixpkgs {
inherit system;
overlays = [
(import ./pkgs)
];
};
inputs = rawInput // {inherit nixpkgs;};
in
rawInput.nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = inputs;
modules = [
./modules/nixos
nixModules
nur.nixosModules.nur
({pkgs, ...}: {
networking.hostName = hostname;
@@ -51,7 +61,7 @@
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit user;};
extraSpecialArgs = inputs;
users.${user} = {
imports = [
./modules/home
@@ -60,6 +70,9 @@
config.modules = homeModules;
};
};
nixpkgs.overlays = [
nur.overlay
];
}
# TODO: use a module instead of this.

View File

@@ -1,29 +1,30 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/e8f1fdc5-c5fc-4468-b92a-63b7b4093345";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/e8f1fdc5-c5fc-4468-b92a-63b7b4093345";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D229-F68F";
fsType = "vfat";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/D229-F68F";
fsType = "vfat";
};
swapDevices = [ ];
swapDevices = [];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View File

@@ -1,4 +1,5 @@
{
pkgs,
lib,
config,
...
@@ -9,6 +10,7 @@ in {
config =
lib.mkIf cfg.enable
{
home.packages = with pkgs; [nur.repos.ocfox.swww];
wayland.windowManager.hyprland = {
enable = true;
systemdIntegration = true;
@@ -19,5 +21,13 @@ in {
nvidiaPatches = false;
extraConfig = builtins.readFile ./hyprland.conf;
};
home.file."wallpapers".source = ../../../wallpapers;
home.file.".config/hypr/wallpaper.sh" = {
source = ./wallpaper.sh;
executable = true;
};
# TODO: zsh alias for wp
};
}

View File

@@ -1,4 +1,6 @@
exec-once=eww open bar
exec-once=swww init
exec-once=~/.config/hypr/wallpaper.sh
autogenerated = 0
@@ -82,6 +84,14 @@ gestures {
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrulev2=workspace 5,class:^(discord)$
windowrulev2=float,title:^(Discord Updater)$
windowrulev2=workspace 5,title:^(Discord Updater)$
windowrulev2=nofullscreenrequest,class:^(zoom)$
windowrulev2=float,class:^(zoom)$
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
@@ -142,3 +152,10 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
bind=,XF86MonBrightnessUp,exec,brightnessctl set 10%+
bind=,XF86MonBrightnessDown,exec,brightnessctl set 10%-
bind=,XF86AudioRaiseVolume,exec,pactl set-sink-volume @DEFAULT_SINK@ +10%
bind=,XF86AudioLowerVolume,exec,pactl set-sink-volume @DEFAULT_SINK@ -10%
bind=,XF86AudioMute,exec,pactl set-sink-mute @DEFAULT_SINK@ toggle
bind=,XF86AudioMicMute,exec,pactl set-source-mute @DEFAULT_SOURCE@ toggle

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
WALLPAPERS=~/wallpapers/
export SWWW_TRANSITION_FPS=60
export SWWW_TRANSITION_STEP=2
export SWWW_TRANSITION=grow
swww img "$(find $WALLPAPERS -type f | shuf -n 1)"

Binary file not shown.

After

Width:  |  Height:  |  Size: 981 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
wallpapers/MadeInAbyss.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 KiB

BIN
wallpapers/Shelter.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
wallpapers/Shrine.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 KiB

BIN
wallpapers/blue-period.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 MiB

BIN
wallpapers/celeste.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

BIN
wallpapers/fish-city.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

BIN
wallpapers/fox.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 KiB

BIN
wallpapers/freya.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
wallpapers/rocket.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

BIN
wallpapers/sea1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

BIN
wallpapers/viktor.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

BIN
wallpapers/whale.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB