diff --git a/system/app/virtualization.nix b/system/app/virtualization.nix index 87099d1..1135888 100644 --- a/system/app/virtualization.nix +++ b/system/app/virtualization.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: { - environment.systemPackages = with pkgs; [ virt-manager virtualbox ]; + environment.systemPackages = with pkgs; [ virt-manager virtualbox distrobox ]; virtualisation.libvirtd = { allowedBridges = [ "nm-bridge" diff --git a/user/app/games/games.nix b/user/app/games/games.nix index e86218f..414f666 100644 --- a/user/app/games/games.nix +++ b/user/app/games/games.nix @@ -20,6 +20,16 @@ in qjoypad superTux superTuxKart + + # I installed these in distrobox + # and exported using distrobox-export + (pkgs.makeDesktopItem { + name = "pokefinder"; + desktopName = "PokeFinder"; + exec = "/home/emmet/.local/bin/pokefinder"; + terminal = false; + type = "Application"; + }) ]; nixpkgs.config = { diff --git a/user/pkgs/pokefinder.nix b/user/pkgs/pokefinder.nix new file mode 100644 index 0000000..5fb86ef --- /dev/null +++ b/user/pkgs/pokefinder.nix @@ -0,0 +1,32 @@ +# THIS DOESN'T WORK YET!!! +# I'M NOT SMART ENOUGH TO FIGURE THIS OUT XD +{ lib, stdenv, fetchgit, pkgs, ... }: + +let name = "pokefinder"; + version = "4.1.2"; +in + stdenv.mkDerivation { + inherit name version; + + src = fetchgit { + url = "https://github.com/Admiral-Fish/${name}"; + fetchSubmodules = true; + rev = "v${version}"; + sha256 = "sha256-ps8F6IcbCNybrZ02tbLNyB3YEvKlcYgCpv5Em7Riv+Q="; + }; + + buildInputs = with pkgs; [ qt6.full qt6.qttools ]; + nativeBuildInputs = with pkgs; [ python3 pkgs.cmake qt6.wrapQtAppsHook ]; + + cmakeFlags = [ + "-DCMAKE_BUILD_TYPE=RELEASE" + "-DCMAKE_PREFIX_PATH=${pkgs.qt6.full}" + ]; + + meta = { + homepage = "https://github.com/Admiral-Fish/PokeFinder"; + description = "Cross platform Pokémon RNG tool"; + license = lib.licenses.gpl3; + maintainers = []; + }; + } diff --git a/user/pkgs/pokemon-colorscripts.nix b/user/pkgs/pokemon-colorscripts.nix index f6b6b1d..ed6f4c3 100644 --- a/user/pkgs/pokemon-colorscripts.nix +++ b/user/pkgs/pokemon-colorscripts.nix @@ -8,13 +8,11 @@ in src = fetchFromGitLab { owner = "phoneybadger"; - repo = "pokemon-colorscripts"; + repo = name; rev = "0483c85b93362637bdd0632056ff986c07f30868"; sha256 = "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A="; }; - phases = "installPhase"; - installPhase = '' mkdir -p $out $out/bin $out/opt cp -rf $src/colorscripts $out/opt @@ -24,7 +22,7 @@ in ''; meta = { - homepage = "https://gitlab.com/phoneybadger/pokemon-colorscripts"; + homepage = "https://github.com/Admiral-Fish/PokeFinder"; description = "CLI utility to print out images of pokemon to terminal"; license = lib.licenses.mit; maintainers = []; diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index faab936..a768352 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -188,6 +188,10 @@ windowrulev2 = workspace special silent,$pavucontrol windowrulev2 = opacity 0.80,$pavucontrol + windowrulev2 = float,title:^(Kdenlive)$ + + windowrulev2 = float,class:^(pokefinder)$ + windowrulev2 = opacity 0.85,$gearyscratchpad windowrulev2 = opacity 0.80,title:ORUI windowrulev2 = opacity 0.80,title:Heimdall diff --git a/user/wm/hyprland/hyprprofiles/profiles/Gaming/start-hook.sh b/user/wm/hyprland/hyprprofiles/profiles/Gaming/start-hook.sh new file mode 100755 index 0000000..8eeb220 --- /dev/null +++ b/user/wm/hyprland/hyprprofiles/profiles/Gaming/start-hook.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +hyprctl keyword unbind SUPER,S; +hyprctl keyword bind SUPER,S,exec,container-open Gaming; +emacsclient --eval '(org-roam-switch-db "Producer.p\/Rinias.p" t)' diff --git a/user/wm/hyprland/hyprprofiles/profiles/Youtube/start-hook.sh b/user/wm/hyprland/hyprprofiles/profiles/Tech/start-hook.sh similarity index 100% rename from user/wm/hyprland/hyprprofiles/profiles/Youtube/start-hook.sh rename to user/wm/hyprland/hyprprofiles/profiles/Tech/start-hook.sh