rework services & alacritty

move back to alacritty and install various services
This commit is contained in:
2026-03-18 15:39:27 +01:00
parent e0fb822650
commit e5347f74f8
21 changed files with 194 additions and 86 deletions

View File

@@ -0,0 +1,18 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
fira-code
];
programs.alacritty = {
enable = true;
settings.font = {
size = 8;
normal.family = "Fira Code";
bold.family = "Fira Code";
italic.family = "Fira Code";
};
};
}

View File

@@ -1,20 +1,18 @@
{
imports = [
./3dprint.nix
./alacritty.nix
./anki.nix
./calibre.nix
./digikam.nix
./dunst.nix
./eww
./filebrowser.nix
./git.nix
./hyprlock.nix
./imv.nix
./inkscape.nix
./kitty.nix
./libreoffice.nix
./messenger.nix
./nextcloud.nix
./nixvim
./picard.nix
./prismlauncher.nix
@@ -30,5 +28,6 @@
./zathura.nix
./zoom.nix
./zsh.nix
./zk.nix
];
}

View File

@@ -1,49 +0,0 @@
{ ... }:
{
services.dunst = {
enable = true;
# settings = {
# global = {
# # Your exact styling - unchanged
# monitor = 1;
# origin = "top-right";
# offset = "15x25";
# width = 300;
# height = 100;
# gap_size = 5;
# notification_limit = 5;
# # font removed as requested
# frame_width = 1;
# separator_color = "frame";
# corner_radius = 12;
# corners = "top-left,bottom";
# progress_bar_corner_radius = 8;
# progress_bar_corners = "top-left,bottom-right";
# timeout = 5;
# idle_threshold = 120;
# max_icon_size = 64;
# enable_recursive_icon_lookup = true;
# show_indicators = true;
# sticky_history = true;
# history_length = 20;
# mouse_left_click = "close_current";
# mouse_right_click = "close_all";
# mouse_middle_click = "context_all";
# format = "<b>%a</b>\\n%s\\n<i>%b</i>";
# };
#
# urgency_low = {
# timeout = 3;
# };
#
# urgency_normal = {
# timeout = 5;
# };
#
# urgency_critical = {
# timeout = 0;
# };
# };
};
}

View File

@@ -11,11 +11,6 @@
programs.kitty = {
enable = true;
font = {
size = 3;
name = "Fira Code";
package = pkgs.fira-code;
};
settings = {
clear_all_shortcuts = true;
enabled_layouts = "splits:slit_axis=horizontal,stack";

View File

@@ -1,5 +0,0 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ nextcloud-client ];
}

View File

@@ -8,7 +8,6 @@
{
home.packages = with pkgs; [
wlr-randr
grim
rivercarro
ristate
slurp
@@ -44,7 +43,6 @@
settings = {
spawn = [
"/home/${config.home.username}/.config/helperscripts/startEww.sh"
"nextcloud"
];
spawn-tagmask = "${all_but_scratch_tag}";
keyboard-layout = "de";
@@ -68,25 +66,14 @@
};
map = {
normal = {
"Super+Shift Return" = "spawn kitty";
"Super+Shift Return" = "spawn alacritty";
# Messages
"Control+Super W" = "spawn 'printf \"Hello from Wayland!\" | dunstify -'";
# System
"Super P" = "spawn 'rofi -show drun'";
"Super+Shift C" = "close";
# Screenshots
"None Print" =
"spawn 'grim ~/Pictures/screenhot_$(date +%F_%H-%M-%S).png;/home/${config.home.username}/.config/helperscripts/screenshot-whole-file.sh'"; # Whole Screen to File
"Super Print" =
"spawn 'grim -g \"$(slurp)\" ~/Pictures/screenshot_$(date +%F_%H-%M-%S).png;/home/${config.home.username}/.config/helperscripts/screenshot-selection-file.sh'"; # Selection to File
"Shift Print" =
"spawn 'grim -g \"$(riverctl windows --focused | awk '{print $3,$4,$5,$6}')\" ~/Pictures/active_window_$(date +%F_%H-%M-%S).png;/home/${config.home.username}/.config/helperscripts/screenshot-active-window.sh'"; # Active Window to File
"Control Print" =
"spawn 'grim -g \"$(slurp)\" - | wl-copy --type image/png;/home/${config.home.username}/.config/helperscripts/screenshot-whole-clipboard.sh'"; # Whole Screen to Clipboard
"Control+Super Print" =
"spawn 'grim -g \"$(slurp)\" - | wl-copy --type image/png;/home/${config.home.username}/.config/helperscripts/screenshot-selection-clipboard.sh'"; # Selection to Clipboard
"Control+Shift Print" =
"spawn 'grim -g \"$(riverctl windows --focused | awk '{print $3,$4,$5,$6}')\" - | wl-copy --type image/png;/home/${config.home.username}/.config/helperscripts/screenshot-active-clipboard.sh'"; # Active Window to Clipboard
"None Print" = "spawn 'flameshot gui'";
# Window Control
"Super J" = "focus-view next";
"Super K" = "focus-view previous";

View File

@@ -1 +0,0 @@
dunstify "Screenshot" "Active Window Screen to Clipboard"

View File

@@ -1 +0,0 @@
dunstify "Screenshot" "Active Window to File (/home/$USER/Pictures/screenshot-$(date -u +%Y-%m-%d-%H:%M:%S))"

View File

@@ -1 +0,0 @@
dunstify "Screenshot" "Selection to Clipboard"

View File

@@ -1 +0,0 @@
dunstify "Screenshot" "Selection to File (/home/$USER/Pictures/screenshot-$(date -u +%Y-%m-%d-%H:%M:%S))"

View File

@@ -1 +0,0 @@
dunstify "Screenshot" "Whole Screen to Clipboard"

View File

@@ -1 +0,0 @@
dunstify "Screenshot" "Whole Screen to File (/home/$USER/Pictures/screenshot-$(date -u +%Y-%m-%d-%H:%M:%S))"

43
home/programs/zk.nix Normal file
View File

@@ -0,0 +1,43 @@
{ ... }:
{
programs.zk = {
enable = true;
settings = {
note.template = "default.md";
format.markdow = {
hashtags = true;
colon-tags = false;
multiword-tags = false;
};
tool.fzf-preview = "bat -p --color always {-1}";
notebook = {
dir = "~/zettelkasten"; # TODO: change location to Nextcloud
};
alias = {
n = "zk new inbox/$@";
i = "zk edit -x inbox,journals -i";
ls = "zk list -x inbox,journals $@";
ed = "zk edit -x inbox,journals $@";
rm = ''zk list --interactive --quiet --format "{{abs-path}}" --delimiter0 $@ | xargs -0 rm -vf --'';
recent = "zk edit --sort created- --created-after 'last two weeks' --interactive";
inbox = "zk edit -t inbox --interactive";
};
};
};
home.file = {
"zettelkasten/.zk/templates/default.md" = {
text = ''
---
title: {{ title }}
date: {{format-date now "long"}}
tags: [inbox]
---
# {{ title }}
{{ content }}
'';
};
};
}