mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Added app icons, cleaned apps, nwggrid and nwg-dock fixes
This commit is contained in:
parent
94f65ad0fd
commit
415bf194d4
|
@ -20,8 +20,6 @@
|
||||||
alacritty
|
alacritty
|
||||||
librewolf
|
librewolf
|
||||||
brave
|
brave
|
||||||
dmenu
|
|
||||||
rofi
|
|
||||||
git
|
git
|
||||||
syncthing
|
syncthing
|
||||||
|
|
||||||
|
|
|
@ -35,8 +35,6 @@
|
||||||
librewolf
|
librewolf
|
||||||
brave
|
brave
|
||||||
qutebrowser
|
qutebrowser
|
||||||
dmenu
|
|
||||||
rofi
|
|
||||||
git
|
git
|
||||||
syncthing
|
syncthing
|
||||||
|
|
||||||
|
@ -83,8 +81,28 @@
|
||||||
exec = "flstudio %U";
|
exec = "flstudio %U";
|
||||||
terminal = false;
|
terminal = false;
|
||||||
type = "Application";
|
type = "Application";
|
||||||
|
icon = "flstudio";
|
||||||
mimeTypes = ["application/octet-stream"];
|
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
|
# Media
|
||||||
gimp
|
gimp
|
||||||
|
|
|
@ -25,5 +25,9 @@ in
|
||||||
portalPackage = pkgs-hyprland.xdg-desktop-portal-hyprland;
|
portalPackage = pkgs-hyprland.xdg-desktop-portal-hyprland;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
environment = {
|
||||||
|
plasma5.excludePackages = [ pkgs.kdePackages.systemsettings ];
|
||||||
|
plasma6.excludePackages = [ pkgs.kdePackages.systemsettings ];
|
||||||
|
};
|
||||||
|
services.xserver.excludePackages = [ pkgs.xterm ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,23 +31,7 @@ in
|
||||||
qjoypad
|
qjoypad
|
||||||
superTux
|
superTux
|
||||||
superTuxKart
|
superTuxKart
|
||||||
|
#pokefinder
|
||||||
# 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";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
|
|
BIN
user/pkgs/flstudio.png
Normal file
BIN
user/pkgs/flstudio.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 175 KiB |
|
@ -19,6 +19,8 @@
|
||||||
--replace "self.image_id -= 1" "self.image_id = max(0, self.image_id - 1)"
|
--replace "self.image_id -= 1" "self.image_id = max(0, self.image_id - 1)"
|
||||||
|
|
||||||
# fixes the .desktop file
|
# fixes the .desktop file
|
||||||
|
substituteInPlace doc/ranger.desktop \
|
||||||
|
--replace "Icon=utilities-terminal" "Icon=user-desktop"
|
||||||
substituteInPlace doc/ranger.desktop \
|
substituteInPlace doc/ranger.desktop \
|
||||||
--replace "Terminal=true" "Terminal=false"
|
--replace "Terminal=true" "Terminal=false"
|
||||||
substituteInPlace doc/ranger.desktop \
|
substituteInPlace doc/ranger.desktop \
|
||||||
|
|
|
@ -112,10 +112,11 @@ in
|
||||||
long_press_delay = 260
|
long_press_delay = 260
|
||||||
hyprgrass-bind = , edge:r:l, exec, hyprnome
|
hyprgrass-bind = , edge:r:l, exec, hyprnome
|
||||||
hyprgrass-bind = , edge:l:r, exec, hyprnome --previous
|
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: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:l, exec, hyprnome --previous
|
||||||
hyprgrass-bind = , swipe:3:r, exec, hyprnome
|
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=SUPER,SPACE,fullscreen,1
|
||||||
bind=SUPERSHIFT,F,fullscreen,0
|
bind=SUPERSHIFT,F,fullscreen,0
|
||||||
bind=SUPER,Y,workspaceopt,allfloat
|
bind=SUPER,Y,workspaceopt,allfloat
|
||||||
|
@ -298,7 +300,8 @@ in
|
||||||
layerrule = xray,gtk-layer-shell
|
layerrule = xray,gtk-layer-shell
|
||||||
blurls = gtk-layer-shell
|
blurls = gtk-layer-shell
|
||||||
layerrule = blur,~nwggrid
|
layerrule = blur,~nwggrid
|
||||||
layerrule = xray,~nwggrid
|
layerrule = xray 1,~nwggrid
|
||||||
|
layerrule = animation fade,~nwggrid
|
||||||
blurls = ~nwggrid
|
blurls = ~nwggrid
|
||||||
|
|
||||||
bind=SUPER,code:21,exec,pypr zoom
|
bind=SUPER,code:21,exec,pypr zoom
|
||||||
|
@ -370,9 +373,28 @@ in
|
||||||
patches = ./patches/noactiveclients.patch;
|
patches = ./patches/noactiveclients.patch;
|
||||||
}))
|
}))
|
||||||
nwg-launchers
|
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
|
libva-utils
|
||||||
libinput-gestures
|
libinput-gestures
|
||||||
gsettings-desktop-schemas
|
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: {
|
(pyprland.overrideAttrs (oldAttrs: {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hyprland-community";
|
owner = "hyprland-community";
|
||||||
|
@ -533,6 +555,7 @@ in
|
||||||
|
|
||||||
'';
|
'';
|
||||||
home.file.".config/nwg-dock-pinned".text = ''
|
home.file.".config/nwg-dock-pinned".text = ''
|
||||||
|
nwggrid
|
||||||
Alacritty
|
Alacritty
|
||||||
emacsclientnewframe
|
emacsclientnewframe
|
||||||
qutebrowser
|
qutebrowser
|
||||||
|
@ -547,6 +570,7 @@ in
|
||||||
xournalpp
|
xournalpp
|
||||||
obs
|
obs
|
||||||
kdenlive
|
kdenlive
|
||||||
|
flstudio
|
||||||
blender
|
blender
|
||||||
openscad
|
openscad
|
||||||
Cura
|
Cura
|
||||||
|
@ -710,7 +734,7 @@ in
|
||||||
"format" = " {} ";
|
"format" = " {} ";
|
||||||
"exec" = ''echo "" '';
|
"exec" = ''echo "" '';
|
||||||
"interval" = "once";
|
"interval" = "once";
|
||||||
"on-click" = "nwggrid -g adw-gtk3 -o 0.55 -b " + config.lib.stylix.colors.base00;
|
"on-click" = "nwggrid-wrapper";
|
||||||
};
|
};
|
||||||
"custom/hyprprofile" = {
|
"custom/hyprprofile" = {
|
||||||
"format" = " {}";
|
"format" = " {}";
|
||||||
|
@ -1127,7 +1151,7 @@ in
|
||||||
'';
|
'';
|
||||||
home.file.".config/libinput-gestures.conf".text = ''
|
home.file.".config/libinput-gestures.conf".text = ''
|
||||||
gesture swipe up 3 hyprctl dispatch hycov:toggleoverview
|
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 right 3 hyprnome
|
||||||
gesture swipe left 3 hyprnome --previous
|
gesture swipe left 3 hyprnome --previous
|
||||||
|
|
Loading…
Reference in a new issue