diff --git a/profiles/personal/home.nix b/profiles/personal/home.nix index 22060c6..4d7abe7 100644 --- a/profiles/personal/home.nix +++ b/profiles/personal/home.nix @@ -20,8 +20,6 @@ alacritty librewolf brave - dmenu - rofi git syncthing diff --git a/profiles/work/home.nix b/profiles/work/home.nix index 375e13d..28a2085 100644 --- a/profiles/work/home.nix +++ b/profiles/work/home.nix @@ -35,8 +35,6 @@ librewolf brave qutebrowser - dmenu - rofi git syncthing @@ -83,8 +81,28 @@ exec = "flstudio %U"; terminal = false; type = "Application"; + icon = "flstudio"; mimeTypes = ["application/octet-stream"]; }) + (stdenv.mkDerivation { + name = "flstudio-icon"; + # icon from https://www.reddit.com/r/MacOS/comments/jtmp7z/i_made_icons_for_discord_spotify_and_fl_studio_in/ + src = [ ../../user/pkgs/flstudio.png ]; + + unpackPhase = '' + for srcFile in $src; do + # Copy file into build dir + cp $srcFile ./ + done + ''; + + installPhase = '' + mkdir -p $out $out/share $out/share/pixmaps + ls $src + ls + cp $src $out/share/pixmaps/flstudio.png + ''; + }) # Media gimp diff --git a/system/wm/hyprland.nix b/system/wm/hyprland.nix index f88875d..0719a23 100644 --- a/system/wm/hyprland.nix +++ b/system/wm/hyprland.nix @@ -25,5 +25,9 @@ in portalPackage = pkgs-hyprland.xdg-desktop-portal-hyprland; }; }; - + environment = { + plasma5.excludePackages = [ pkgs.kdePackages.systemsettings ]; + plasma6.excludePackages = [ pkgs.kdePackages.systemsettings ]; + }; + services.xserver.excludePackages = [ pkgs.xterm ]; } diff --git a/user/app/games/games.nix b/user/app/games/games.nix index 8d95c91..441c61c 100644 --- a/user/app/games/games.nix +++ b/user/app/games/games.nix @@ -31,23 +31,7 @@ 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"; - }) - (pkgs.makeDesktopItem { - name = "eontimer"; - desktopName = "EonTimer"; - exec = "/home/emmet/.local/bin/eontimer"; - terminal = false; - type = "Application"; - }) + #pokefinder ]; nixpkgs.config = { diff --git a/user/pkgs/flstudio.png b/user/pkgs/flstudio.png new file mode 100644 index 0000000..4398b02 Binary files /dev/null and b/user/pkgs/flstudio.png differ diff --git a/user/pkgs/ranger.nix b/user/pkgs/ranger.nix index 4a56abb..feade74 100644 --- a/user/pkgs/ranger.nix +++ b/user/pkgs/ranger.nix @@ -19,6 +19,8 @@ --replace "self.image_id -= 1" "self.image_id = max(0, self.image_id - 1)" # fixes the .desktop file + substituteInPlace doc/ranger.desktop \ + --replace "Icon=utilities-terminal" "Icon=user-desktop" substituteInPlace doc/ranger.desktop \ --replace "Terminal=true" "Terminal=false" substituteInPlace doc/ranger.desktop \ diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index b1f7c28..b016e6a 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -112,10 +112,11 @@ in long_press_delay = 260 hyprgrass-bind = , edge:r:l, exec, hyprnome hyprgrass-bind = , edge:l:r, exec, hyprnome --previous - hyprgrass-bind = , swipe:3:d, exec, nwggrid -g adw-gtk3 -o 0.55 -b '' + config.lib.stylix.colors.base00 + '' + hyprgrass-bind = , swipe:3:d, exec, nwggrid-wrapper hyprgrass-bind = , swipe:3:u, hycov:toggleoverview - hyprgrass-bind = , swipe:3:d, exec, nwggrid + hyprgrass-bind = , swipe:3:d, exec, nwggrid-wrapper + hyprgrass-bind = , swipe:3:l, exec, hyprnome --previous hyprgrass-bind = , swipe:3:r, exec, hyprnome @@ -134,6 +135,7 @@ in } } + bind=SUPER,SUPER_L,exec,nwggrid-wrapper bind=SUPER,SPACE,fullscreen,1 bind=SUPERSHIFT,F,fullscreen,0 bind=SUPER,Y,workspaceopt,allfloat @@ -298,7 +300,8 @@ in layerrule = xray,gtk-layer-shell blurls = gtk-layer-shell layerrule = blur,~nwggrid - layerrule = xray,~nwggrid + layerrule = xray 1,~nwggrid + layerrule = animation fade,~nwggrid blurls = ~nwggrid bind=SUPER,code:21,exec,pypr zoom @@ -370,9 +373,28 @@ in patches = ./patches/noactiveclients.patch; })) nwg-launchers + papirus-icon-theme + (pkgs.writeScriptBin "nwggrid-wrapper" '' + #!/bin/sh + if pgrep -x "nwggrid-server" > /dev/null + then + nwggrid -client + else + GDK_PIXBUF_MODULE_FILE=${pkgs.librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache nwggrid-server -layer-shell-exclusive-zone -1 -g adw-gtk3 -o 0.55 -b ${config.lib.stylix.colors.base00} + fi + '') libva-utils libinput-gestures gsettings-desktop-schemas + (pkgs.makeDesktopItem { + name = "nwggrid"; + desktopName = "Application Launcher"; + exec = "nwggrid-wrapper"; + terminal = false; + type = "Application"; + noDisplay = true; + icon = "application-x-executable"; # TODO make custom icon for dock + }) (pyprland.overrideAttrs (oldAttrs: { src = fetchFromGitHub { owner = "hyprland-community"; @@ -533,6 +555,7 @@ in ''; home.file.".config/nwg-dock-pinned".text = '' + nwggrid Alacritty emacsclientnewframe qutebrowser @@ -547,6 +570,7 @@ in xournalpp obs kdenlive + flstudio blender openscad Cura @@ -710,7 +734,7 @@ in "format" = " {} "; "exec" = ''echo "" ''; "interval" = "once"; - "on-click" = "nwggrid -g adw-gtk3 -o 0.55 -b " + config.lib.stylix.colors.base00; + "on-click" = "nwggrid-wrapper"; }; "custom/hyprprofile" = { "format" = "  {}"; @@ -1127,7 +1151,7 @@ in ''; home.file.".config/libinput-gestures.conf".text = '' gesture swipe up 3 hyprctl dispatch hycov:toggleoverview - gesture swipe down 3 nwggrid -g adw-gtk3 -o 0.55 -b '' + config.lib.stylix.colors.base00 + '' + gesture swipe down 3 nwggrid-wrapper gesture swipe right 3 hyprnome gesture swipe left 3 hyprnome --previous