dotfiles

My PC Dotfiles & Website
commit 10cdea28602f8fa305f7cb57b30e1f67a62cd9b7
parent 2e2e5d42216449a695ca68e6ef3b489b6ada9d76
Author: maydayv7 <maydayv7@gmail.com>
Date:   Sat, 24 Feb 2024 10:29:33 +0530

feat: Wayland Desktop Icons

And gammashift

Diffstat:

Mmodules/gui/desktop/hyprland/apps/default.nix | 11+++++++++++
Apackages/desktop-icons.nix | 41+++++++++++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 0 deletions(-)

diff --git a/modules/gui/desktop/hyprland/apps/default.nix b/modules/gui/desktop/hyprland/apps/default.nix @@ -33,6 +33,7 @@ in { # Apps apostrophe celluloid + custom.desktop-icons font-manager geany gnome.file-roller @@ -114,6 +115,9 @@ in { # Application Drawer "nwg-drawer -r" + # Desktop Icons + "dicons" + # Clipboard "wl-paste --type text --watch cliphist store" "wl-paste --type image --watch cliphist store" @@ -211,6 +215,13 @@ in { }); }; + # Display Temperature + services.gammastep = { + enable = true; + provider = "geoclue2"; + tray = true; + }; + systemd.user.services = { # Wallpaper Daemon hyprpaper = { diff --git a/packages/desktop-icons.nix b/packages/desktop-icons.nix @@ -0,0 +1,41 @@ +{ + lib, + pkgs, + ... +}: +with pkgs; + stdenv.mkDerivation rec { + pname = "desktop-icons"; + version = "2023-10-16"; + + src = fetchFromGitHub { + owner = "Geronymos"; + repo = pname; + rev = "71998254e3e304b8cdc2b168a54bb7c79376fbcc"; + sha256 = "sha256-22L1WFSQRVq7c7IZbdZ4hYVpxccSnxKfpLMLASwXD+Y="; + }; + + patches = [ + (fetchpatch { + url = "https://github.com/maydayv7/desktop-icons/commit/a70833a88d52aeb3a6c4d044b124b012fd607b9b.patch"; + sha256 = "sha256-8RlUKyXNt1xfiiBsYKuZYljYSzzsNJSQXBPfmi+DGcY="; + }) + ]; + + buildInputs = [gtk3 pkg-config]; + propagatedBuildInputs = [glib gtk-layer-shell]; + NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; + + installPhase = '' + mkdir -p $out/bin + cp -r dicons $out/bin/dicons + ''; + + meta = with lib; { + mainProgram = "dicons"; + description = "Show Files from a Directory on Wayland Desktop"; + homepage = "https://github.com/Geronymos/desktop-icons"; + license = licenses.gpl3Only; + maintainers = ["maydayv7"]; + }; + }