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";
|
"$terminal" = "wezterm start";
|
||||||
"$browser" = "librewolf";
|
"$browser" = "librewolf";
|
||||||
"$fileManager" = "vifm";
|
|
||||||
"$menu" = "dmenu-wl_run";
|
"$menu" = "dmenu-wl_run";
|
||||||
|
|
||||||
"$m1" = "ALT_L";
|
"$m1" = "ALT_L";
|
||||||
|
@ -121,7 +120,8 @@ in
|
||||||
# programs
|
# programs
|
||||||
"$m1 SHIFT, Return, exec, $terminal"
|
"$m1 SHIFT, Return, exec, $terminal"
|
||||||
"$m1 SHIFT, B, exec, $browser"
|
"$m1 SHIFT, B, exec, $browser"
|
||||||
"$m1, p, exec, $menu"
|
"$m1 SHIFT, S, exec, flameshot gui"
|
||||||
|
"$m1, P, exec, $menu"
|
||||||
|
|
||||||
# focus
|
# focus
|
||||||
(lib.flip lib.mapAttrsToList { k = "prev"; j = "next"; } (k: d: [
|
(lib.flip lib.mapAttrsToList { k = "prev"; j = "next"; } (k: d: [
|
||||||
|
@ -129,7 +129,7 @@ in
|
||||||
"$m1 SHIFT, ${k}, layoutmsg, swap${d}"
|
"$m1 SHIFT, ${k}, layoutmsg, swap${d}"
|
||||||
]))
|
]))
|
||||||
"$m1, Return, layoutmsg, swapwithmaster, master"
|
"$m1, Return, layoutmsg, swapwithmaster, master"
|
||||||
"$m1, s, exec, ${easyfocus}/bin/easyfocus-hyprland"
|
"$m1, S, exec, ${easyfocus}/bin/easyfocus-hyprland"
|
||||||
# comma (,)
|
# comma (,)
|
||||||
"$m1, code:44, layoutmsg, addmaster"
|
"$m1, code:44, layoutmsg, addmaster"
|
||||||
# period (.)
|
# period (.)
|
||||||
|
|
|
@ -93,19 +93,5 @@ in
|
||||||
${pkgs.nitrogen}/bin/nitrogen --restore &
|
${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
|
./aerc.nix
|
||||||
./communication.nix
|
./communication.nix
|
||||||
./dev-tools.nix
|
./dev-tools.nix
|
||||||
|
./flameshot.nix
|
||||||
./libreoffice.nix
|
./libreoffice.nix
|
||||||
./share-files.nix
|
./share-files.nix
|
||||||
./editors
|
./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.share-files.croc.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
local.programs.flameshot.enable = lib.mkDefault true;
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Services
|
# Services
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
@ -23,16 +23,16 @@
|
||||||
# Configs
|
# Configs
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
local.keyboard.enable = true;
|
local.keyboard.enable = lib.mkDefault true;
|
||||||
|
|
||||||
local.window-manager = {
|
local.window-manager = {
|
||||||
xmonad.enable = true;
|
xmonad.enable = lib.mkDefault true;
|
||||||
polybar.enable = 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
|
# Programs
|
||||||
|
@ -49,10 +49,12 @@
|
||||||
skype.enable = lib.mkDefault true;
|
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 = {
|
local.programs.libreoffice = {
|
||||||
enable = true;
|
enable = lib.mkDefault true;
|
||||||
|
|
||||||
spellCheckDicts = with pkgs.hunspellDicts; [
|
spellCheckDicts = with pkgs.hunspellDicts; [
|
||||||
ru_RU
|
ru_RU
|
||||||
|
|
Loading…
Reference in a new issue