modules: move flameshot to the programs
This commit is contained in:
parent
b6de4f350b
commit
e1888c72a8
6 changed files with 40 additions and 24 deletions
|
@ -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 (.)
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
./aerc.nix
|
||||
./communication.nix
|
||||
./dev-tools.nix
|
||||
./flameshot.nix
|
||||
./libreoffice.nix
|
||||
./share-files.nix
|
||||
./editors
|
||||
|
|
25
modules/home-manager/programs/flameshot.nix
Normal file
25
modules/home-manager/programs/flameshot.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -105,6 +105,8 @@
|
|||
|
||||
local.programs.share-files.croc.enable = lib.mkDefault true;
|
||||
|
||||
local.programs.flameshot.enable = lib.mkDefault true;
|
||||
|
||||
################################################################################
|
||||
# Services
|
||||
################################################################################
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue