mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-02-18 12:11:54 +00:00
feat: add custom alacritty package and update desktop entry configuration
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -11,3 +11,5 @@ result-*
|
||||
# Hardware configuration (may contain sensitive info)
|
||||
# Uncomment if you don't want to commit hardware configs
|
||||
# hosts/*/hardware-configuration.nix
|
||||
|
||||
node_modules
|
||||
@@ -2,7 +2,7 @@ import { Astal, Gtk } from "ags/gtk4";
|
||||
import { Tray } from "./widgets/Tray";
|
||||
import { Workspaces } from "./widgets/Workspaces";
|
||||
import { FocusedClient } from "./widgets/FocusedClient";
|
||||
import { Apps } from "./widgets/Apps";
|
||||
// import { Apps } from "./widgets/Apps";
|
||||
import { Clock } from "./widgets/Clock";
|
||||
import { Status } from "./widgets/Status";
|
||||
import { Media } from "./widgets/Media";
|
||||
@@ -21,7 +21,6 @@ export const Bar = (mon: number) => {
|
||||
halign={Gtk.Align.START} spacing={widgetSpacing}
|
||||
$type="start">
|
||||
|
||||
<Apps />
|
||||
<Workspaces />
|
||||
<FocusedClient />
|
||||
</Gtk.Box>
|
||||
|
||||
@@ -31,7 +31,29 @@
|
||||
# chromium
|
||||
|
||||
# Terminal emulators
|
||||
alacritty
|
||||
(pkgs.runCommand "alacritty-no-desktop" {
|
||||
buildInputs = [ pkgs.alacritty ];
|
||||
} ''
|
||||
mkdir -p $out/bin
|
||||
ln -s ${pkgs.alacritty}/bin/* $out/bin/
|
||||
|
||||
# Copy all other directories except share/applications
|
||||
for dir in ${pkgs.alacritty}/*; do
|
||||
if [[ "$dir" != "${pkgs.alacritty}/bin" && "$dir" != "${pkgs.alacritty}/share" ]]; then
|
||||
ln -s "$dir" $out/$(basename "$dir")
|
||||
fi
|
||||
done
|
||||
|
||||
# Copy share but exclude applications
|
||||
if [ -d ${pkgs.alacritty}/share ]; then
|
||||
mkdir -p $out/share
|
||||
for item in ${pkgs.alacritty}/share/*; do
|
||||
if [[ "$(basename $item)" != "applications" ]]; then
|
||||
ln -s "$item" $out/share/$(basename "$item")
|
||||
fi
|
||||
done
|
||||
fi
|
||||
'')
|
||||
# kitty
|
||||
# wezterm
|
||||
|
||||
@@ -135,7 +157,7 @@
|
||||
|
||||
# Alacritty terminal emulator
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
enable = false; # Disabled to avoid duplicate desktop file, using custom package in home.packages instead
|
||||
settings = {
|
||||
window = {
|
||||
opacity = 0.9;
|
||||
@@ -206,8 +228,18 @@
|
||||
x11.enable = true;
|
||||
};
|
||||
|
||||
# Override desktop entries to use Wayland flags for Electron apps
|
||||
# Override desktop entries
|
||||
xdg.desktopEntries = {
|
||||
# Add "cmd" to alacritty's comment so it shows up when searching "cmd"
|
||||
alacritty = {
|
||||
name = "Alacritty";
|
||||
genericName = "Terminal cmd";
|
||||
comment = "A fast, cross-platform, OpenGL terminal emulator";
|
||||
exec = "alacritty";
|
||||
icon = "Alacritty";
|
||||
type = "Application";
|
||||
categories = [ "System" "TerminalEmulator" ];
|
||||
};
|
||||
legcord = {
|
||||
name = "Discord";
|
||||
exec = "${pkgs.legcord}/bin/legcord --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform=wayland %U";
|
||||
|
||||
29
package-lock.json
generated
Normal file
29
package-lock.json
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "nix-flake",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "24.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.0.tgz",
|
||||
"integrity": "sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~7.16.0"
|
||||
}
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",
|
||||
"integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",
|
||||
"dev": true,
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
}
|
||||
5
package.json
Normal file
5
package.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.10.0"
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,9 @@
|
||||
# Enable X11 for XWayland support
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Exclude xterm (we use alacritty instead)
|
||||
services.xserver.excludePackages = [ pkgs.xterm ];
|
||||
|
||||
# Display manager - SDDM with Wayland support
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
|
||||
Reference in New Issue
Block a user