rework services & alacritty
move back to alacritty and install various services
This commit is contained in:
18
home/programs/alacritty.nix
Normal file
18
home/programs/alacritty.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,20 +1,18 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./3dprint.nix
|
./3dprint.nix
|
||||||
|
./alacritty.nix
|
||||||
./anki.nix
|
./anki.nix
|
||||||
./calibre.nix
|
./calibre.nix
|
||||||
./digikam.nix
|
./digikam.nix
|
||||||
./dunst.nix
|
|
||||||
./eww
|
./eww
|
||||||
./filebrowser.nix
|
./filebrowser.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./hyprlock.nix
|
./hyprlock.nix
|
||||||
./imv.nix
|
./imv.nix
|
||||||
./inkscape.nix
|
./inkscape.nix
|
||||||
./kitty.nix
|
|
||||||
./libreoffice.nix
|
./libreoffice.nix
|
||||||
./messenger.nix
|
./messenger.nix
|
||||||
./nextcloud.nix
|
|
||||||
./nixvim
|
./nixvim
|
||||||
./picard.nix
|
./picard.nix
|
||||||
./prismlauncher.nix
|
./prismlauncher.nix
|
||||||
@@ -30,5 +28,6 @@
|
|||||||
./zathura.nix
|
./zathura.nix
|
||||||
./zoom.nix
|
./zoom.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
|
./zk.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -11,11 +11,6 @@
|
|||||||
|
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
font = {
|
|
||||||
size = 3;
|
|
||||||
name = "Fira Code";
|
|
||||||
package = pkgs.fira-code;
|
|
||||||
};
|
|
||||||
settings = {
|
settings = {
|
||||||
clear_all_shortcuts = true;
|
clear_all_shortcuts = true;
|
||||||
enabled_layouts = "splits:slit_axis=horizontal,stack";
|
enabled_layouts = "splits:slit_axis=horizontal,stack";
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [ nextcloud-client ];
|
|
||||||
}
|
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
wlr-randr
|
wlr-randr
|
||||||
grim
|
|
||||||
rivercarro
|
rivercarro
|
||||||
ristate
|
ristate
|
||||||
slurp
|
slurp
|
||||||
@@ -44,7 +43,6 @@
|
|||||||
settings = {
|
settings = {
|
||||||
spawn = [
|
spawn = [
|
||||||
"/home/${config.home.username}/.config/helperscripts/startEww.sh"
|
"/home/${config.home.username}/.config/helperscripts/startEww.sh"
|
||||||
"nextcloud"
|
|
||||||
];
|
];
|
||||||
spawn-tagmask = "${all_but_scratch_tag}";
|
spawn-tagmask = "${all_but_scratch_tag}";
|
||||||
keyboard-layout = "de";
|
keyboard-layout = "de";
|
||||||
@@ -68,25 +66,14 @@
|
|||||||
};
|
};
|
||||||
map = {
|
map = {
|
||||||
normal = {
|
normal = {
|
||||||
"Super+Shift Return" = "spawn kitty";
|
"Super+Shift Return" = "spawn alacritty";
|
||||||
# Messages
|
# Messages
|
||||||
"Control+Super W" = "spawn 'printf \"Hello from Wayland!\" | dunstify -'";
|
"Control+Super W" = "spawn 'printf \"Hello from Wayland!\" | dunstify -'";
|
||||||
# System
|
# System
|
||||||
"Super P" = "spawn 'rofi -show drun'";
|
"Super P" = "spawn 'rofi -show drun'";
|
||||||
"Super+Shift C" = "close";
|
"Super+Shift C" = "close";
|
||||||
# Screenshots
|
# Screenshots
|
||||||
"None Print" =
|
"None Print" = "spawn 'flameshot gui'";
|
||||||
"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
|
|
||||||
# Window Control
|
# Window Control
|
||||||
"Super J" = "focus-view next";
|
"Super J" = "focus-view next";
|
||||||
"Super K" = "focus-view previous";
|
"Super K" = "focus-view previous";
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
dunstify "Screenshot" "Active Window Screen to Clipboard"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
dunstify "Screenshot" "Active Window to File (/home/$USER/Pictures/screenshot-$(date -u +%Y-%m-%d-%H:%M:%S))"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
dunstify "Screenshot" "Selection to Clipboard"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
dunstify "Screenshot" "Selection to File (/home/$USER/Pictures/screenshot-$(date -u +%Y-%m-%d-%H:%M:%S))"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
dunstify "Screenshot" "Whole Screen to Clipboard"
|
|
||||||
@@ -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
43
home/programs/zk.nix
Normal 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 }}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -2,9 +2,14 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./ssh-agent.nix
|
./emanote.nix
|
||||||
|
./flameshot.nix
|
||||||
|
./fnott.nix
|
||||||
./gpg-agent.nix
|
./gpg-agent.nix
|
||||||
./hypridle.nix
|
./hypridle.nix
|
||||||
|
./kanshi.nix
|
||||||
|
./kdeconnect.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
|
./ssh-agent.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
23
home/services/emanote.nix
Normal file
23
home/services/emanote.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
emanote = import (
|
||||||
|
builtins.fetchTarball {
|
||||||
|
url = "https://github.com/srid/emanote/archive/master.tar.gz";
|
||||||
|
sha256 = "0kr8bbq1awg2c2ra1mwjxqa9m7is9b6cdksvh48g4w354h5pqbnv";
|
||||||
|
}
|
||||||
|
);
|
||||||
|
in
|
||||||
|
{
|
||||||
|
imports = [ emanote.homeManagerModule ];
|
||||||
|
services.emanote = {
|
||||||
|
enable = true;
|
||||||
|
# host = "127.0.0.1"; # default listen address is 127.0.0.1
|
||||||
|
# port = 7000; # default http port is 7000
|
||||||
|
notes = [
|
||||||
|
"/home/elias/zettelkasten"
|
||||||
|
];
|
||||||
|
# TODO: currentSystem
|
||||||
|
package = emanote.packages."x86_64-linux".default;
|
||||||
|
};
|
||||||
|
}
|
||||||
17
home/services/flameshot.nix
Normal file
17
home/services/flameshot.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [ grim ];
|
||||||
|
services.flameshot = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
General = {
|
||||||
|
disabledTrayIcon = true;
|
||||||
|
showDesktopNotification = false;
|
||||||
|
showHelp = false;
|
||||||
|
showStartupLaunchMessage = false;
|
||||||
|
useGrimAdapter = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
home/services/fnott.nix
Normal file
5
home/services/fnott.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.fnott.enable = true;
|
||||||
|
}
|
||||||
54
home/services/kanshi.nix
Normal file
54
home/services/kanshi.nix
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [ kanshi ];
|
||||||
|
|
||||||
|
services.kanshi = {
|
||||||
|
enable = true;
|
||||||
|
systemdTarget = "graphical-session.target";
|
||||||
|
settings = [
|
||||||
|
{
|
||||||
|
profile.name = "laptop undocked";
|
||||||
|
profile.outputs = [ { criteria = "eDP-1"; } ];
|
||||||
|
profile.exec = [
|
||||||
|
"systemctl --user start hypridle.service"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
profile.name = "laptop docked";
|
||||||
|
profile.exec = [
|
||||||
|
"systemctl --user start hypridle.service"
|
||||||
|
];
|
||||||
|
profile.outputs = [
|
||||||
|
{
|
||||||
|
criteria = "eDP-1";
|
||||||
|
mode = "1920x1080@60Hz";
|
||||||
|
position = "1920,0";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
criteria = "HDMI-A-1";
|
||||||
|
mode = "1920x1080@60Hz";
|
||||||
|
position = "0,0";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
# {
|
||||||
|
# profile.name = "desktop";
|
||||||
|
# profile.exec = [
|
||||||
|
# "systemctl --user start hypridle.service"
|
||||||
|
# ];
|
||||||
|
# profile.outputs = [
|
||||||
|
# {
|
||||||
|
# criteria = "eDP-1";
|
||||||
|
# mode = "1920x1080@60Hz";
|
||||||
|
# position = "1920,0";
|
||||||
|
# }
|
||||||
|
# {
|
||||||
|
# criteria = "HDMI-A-1";
|
||||||
|
# mode = "1920x1080@60Hz";
|
||||||
|
# position = "0,0";
|
||||||
|
# }
|
||||||
|
# ];
|
||||||
|
# }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
5
home/services/kdeconnect.nix
Normal file
5
home/services/kdeconnect.nix
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.kdeconnect.enable = true;
|
||||||
|
}
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./cursor.nix
|
./cursor.nix
|
||||||
|
./fnott.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./hyprlock.nix
|
./hyprlock.nix
|
||||||
./nvim.nix
|
./nvim.nix
|
||||||
@@ -17,18 +18,18 @@
|
|||||||
flavor = "mocha";
|
flavor = "mocha";
|
||||||
accent = "pink";
|
accent = "pink";
|
||||||
|
|
||||||
|
alacritty.enable = true;
|
||||||
anki.enable = true;
|
anki.enable = true;
|
||||||
dunst.enable = true;
|
|
||||||
element-desktop.enable = true;
|
element-desktop.enable = true;
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
fzf.enable = true;
|
fzf.enable = true;
|
||||||
imv.enable = true;
|
imv.enable = true;
|
||||||
kitty.enable = true;
|
|
||||||
lazygit.enable = true;
|
lazygit.enable = true;
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
spotify-player.enable = true;
|
spotify-player.enable = true;
|
||||||
thunderbird.enable = true;
|
thunderbird.enable = true;
|
||||||
vscode.profiles.default.enable = true;
|
vscode.profiles.default.enable = true;
|
||||||
|
yazi.enable = true;
|
||||||
zathura.enable = true;
|
zathura.enable = true;
|
||||||
zsh-syntax-highlighting.enable = true;
|
zsh-syntax-highlighting.enable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
16
home/themes/catppuccin/fnott.nix
Normal file
16
home/themes/catppuccin/fnott.nix
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.fnott.settings = {
|
||||||
|
main = {
|
||||||
|
notification-margin = 5;
|
||||||
|
title-color = "a6adc8ff";
|
||||||
|
summary-color = "cdd6f4ff";
|
||||||
|
body-color = "cdd6f4ff";
|
||||||
|
background = "1e1e2eff";
|
||||||
|
border-color = "89b4faff";
|
||||||
|
progress-bar-color = "6c7086ff";
|
||||||
|
};
|
||||||
|
critical.border-color = "fab387ff";
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user