foot, zellij, hyprland

This commit is contained in:
xunuwu 2024-04-07 23:40:45 +02:00
parent 4e5f0a6e0b
commit c522dcbb3f
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
6 changed files with 108 additions and 4 deletions

1
flake.lock generated
View file

@ -718,3 +718,4 @@
"root": "root",
"version": 7
}

View file

@ -2,11 +2,13 @@
imports = [
./kanshi.nix
../../terminal
../../terminal/programs/zellij.nix
../../editors/nvim.nix
../../editors/emacs.nix
../../editors/vscode.nix
../../programs/browsers/firefox.nix
../../terminal/emulator/wezterm.nix
../../terminal/emulator/foot.nix
# desktop
../../programs/desktop

View file

@ -10,12 +10,12 @@
gtk = {
enable = true;
theme = {
package = pkgs.flat-remix-gtk;
name = "Flat-Remix-GTK-Grey-Darkest";
package = pkgs.gnome.gnome-themes-extra;
name = "Adwaita-dark";
};
iconTheme = {
package = pkgs.gnome.adwaita-icon-theme;
name = "Adwaita";
name = "Adwaita-dark";
};
font = {
name = "Sans";
@ -27,7 +27,7 @@
enable = true;
platformTheme = "gtk3";
style = {
name = "adwaita-dark";
name = "Adwaita-dark";
package = pkgs.adwaita-qt;
};
};

View file

@ -5,6 +5,86 @@
config,
...
}: {
home.packages = with pkgs; [
wl-clipboard
];
services.cliphist = {
enable = true;
systemdTarget = "hyprland-session.target";
};
#systemd.user.services.cliphist = {
# Unit = {
# Description = "Wayland clipboard manager";
# PartOf = ["hyprland-session.target"];
# After = ["hyprland-session.target"];
# };
# Service = {
# ExecStartPre = "${pkgs.wl-clipboard}/wl-paste --type text --watch ${lib.getExe pkgs.cliphist} store #Stores only text data";
# ExecStart = "${pkgs.wl-clipboard}/wl-paste --type image --watch ${lib.getExe pkgs.cliphist} store #Stores only image data";
# ExecReload = "${pkgs.coreutils}/bin/kill -SIGUSR2 $MAINPID";
# Restart = "on-failure";
# };
# Install = {
# WantedBy = ["hyprland-session.target"];
# };
#};
programs.waybar = {
enable = true;
settings = [
{
"height" = 30;
"spacing" = 4;
"modules-left" = [
"hyprland/workspaces"
#"hyprland/mode"
#"hyprland/scratchpad"
];
"modules-center" = [
"hyprland/window"
];
"modules-right" = [
"pulseaudio"
"clock"
"tray"
];
"tray" = {
"spacing" = 10;
};
"clock" = {
"tooltim-format" = "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
"format-alt" = "{:%Y-%m-%d}";
};
"pulseaudio" = {
"format" = "{volume}% {icon} {format_source}";
"format-bluetooth" = "{volume}% {icon} {format_source}";
"format-bluetooth-muted" = " {icon} {format_source}";
"format-muted" = " {format_source}";
"format-source" = "{volume}% ";
"format-source-muted" = "";
"format-icons" = {
"headphone" = "";
"hands-free" = "";
"headset" = "";
"phone" = "";
"portable" = "";
"car" = "";
"default" = ["" "" ""];
};
"on-click" = "${lib.getExe pkgs.pavucontrol}";
};
}
];
systemd = {
enable = true;
target = "hyprland-session.target";
};
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
@ -37,6 +117,7 @@
"$mainMod, M, fullscreen, 1"
"$mainMod SHIFT, F, fakefullscreen"
"$mainMod, P, exec, ${pkgs.bemenu}/bin/bemenu-run"
"$mainMod, V, exec, ${lib.getExe pkgs.cliphist} list | ${lib.getExe pkgs.wofi} --dmenu | ${lib.getExe pkgs.cliphist} decode | ${pkgs.wl-clipboard}/bin/wl-copy"
"$mainMod SHIFT, E, exec, ${lib.getExe pkgs.wlogout}"
# focus with vim keys

View file

@ -0,0 +1,15 @@
{
pkgs,
lib,
...
}: {
programs.foot = {
enable = true;
settings = {
main = {
include = "${pkgs.foot.themes}/share/foot/themes/moonfly";
font = "monospace:size=9";
};
};
};
}

View file

@ -0,0 +1,5 @@
{
programs.zellij = {
enable = true;
};
}