modules: move flameshot to the programs

This commit is contained in:
Dmitriy Pleshevskiy 2024-04-23 13:54:45 +03:00
parent b6de4f350b
commit e1888c72a8
Signed by: pleshevskiy
GPG Key ID: 17041163DA10A9A2
6 changed files with 40 additions and 24 deletions

View File

@ -111,7 +111,6 @@ in
"$terminal" = "wezterm start";
"$browser" = "librewolf";
"$fileManager" = "vifm";
"$menu" = "dmenu-wl_run";
"$m1" = "ALT_L";
@ -121,7 +120,8 @@ in
# programs
"$m1 SHIFT, Return, exec, $terminal"
"$m1 SHIFT, B, exec, $browser"
"$m1, p, exec, $menu"
"$m1 SHIFT, S, exec, flameshot gui"
"$m1, P, exec, $menu"
# focus
(lib.flip lib.mapAttrsToList { k = "prev"; j = "next"; } (k: d: [
@ -129,7 +129,7 @@ in
"$m1 SHIFT, ${k}, layoutmsg, swap${d}"
]))
"$m1, Return, layoutmsg, swapwithmaster, master"
"$m1, s, exec, ${easyfocus}/bin/easyfocus-hyprland"
"$m1, S, exec, ${easyfocus}/bin/easyfocus-hyprland"
# comma (,)
"$m1, code:44, layoutmsg, addmaster"
# period (.)

View File

@ -93,19 +93,5 @@ in
${pkgs.nitrogen}/bin/nitrogen --restore &
'';
};
services.flameshot = {
enable = true;
# See: https://github.com/flameshot-org/flameshot/blob/master/flameshot.example.ini
settings = {
General = {
disabledTrayIcon = true;
savePathFixed = true;
showDesktopNotification = false;
showSidePanelButton = true;
};
};
};
};
}

View File

@ -5,6 +5,7 @@
./aerc.nix
./communication.nix
./dev-tools.nix
./flameshot.nix
./libreoffice.nix
./share-files.nix
./editors

View File

@ -0,0 +1,25 @@
{ config, lib, ... }:
let cfg = config.local.programs.flameshot; in
{
options.local.programs.flameshot = with lib; {
enable = mkEnableOption "flameshot";
};
config = lib.mkIf cfg.enable {
services.flameshot = {
enable = true;
# See: https://github.com/flameshot-org/flameshot/blob/master/flameshot.example.ini
settings = {
General = {
disabledTrayIcon = true;
savePathFixed = true;
showDesktopNotification = false;
showSidePanelButton = true;
};
};
};
};
}

View File

@ -105,6 +105,8 @@
local.programs.share-files.croc.enable = lib.mkDefault true;
local.programs.flameshot.enable = lib.mkDefault true;
################################################################################
# Services
################################################################################

View File

@ -23,16 +23,16 @@
# Configs
################################################################################
local.keyboard.enable = true;
local.keyboard.enable = lib.mkDefault true;
local.window-manager = {
xmonad.enable = true;
polybar.enable = true;
xmonad.enable = lib.mkDefault true;
polybar.enable = lib.mkDefault true;
};
xdg.enable = true;
xdg.enable = lib.mkDefault true;
local.shell.enable = true;
local.shell.enable = lib.mkDefault true;
################################################################################
# Programs
@ -49,10 +49,12 @@
skype.enable = lib.mkDefault true;
};
local.programs.share-files.croc.enable = true;
local.programs.share-files.croc.enable = lib.mkDefault true;
local.programs.flameshot.enable = lib.mkDefault true;
local.programs.libreoffice = {
enable = true;
enable = lib.mkDefault true;
spellCheckDicts = with pkgs.hunspellDicts; [
ru_RU