Compare commits
2 commits
93d55c8c5c
...
8909b2bfa3
Author | SHA1 | Date | |
---|---|---|---|
Geoffrey Frogeye | 8909b2bfa3 | ||
Geoffrey Frogeye | ac43ef6548 |
|
@ -6,10 +6,11 @@ let
|
||||||
{ command = "crepuscule"; specialisation = "dark"; }
|
{ command = "crepuscule"; specialisation = "dark"; }
|
||||||
{ command = "nuit"; specialisation = "dark"; }
|
{ command = "nuit"; specialisation = "dark"; }
|
||||||
];
|
];
|
||||||
|
mod = config.xsession.windowManager.i3.config.modifier;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
home.packages = map
|
home.packages = (map
|
||||||
(phase: (pkgs.writeShellScriptBin phase.command ''
|
(phase: (pkgs.writeShellScriptBin phase.command ''
|
||||||
switch="/nix/var/nix/profiles/system${lib.strings.optionalString (phase.specialisation != null) "/specialisation/${phase.specialisation}"}/bin/switch-to-configuration"
|
switch="/nix/var/nix/profiles/system${lib.strings.optionalString (phase.specialisation != null) "/specialisation/${phase.specialisation}"}/bin/switch-to-configuration"
|
||||||
if [ -x "$switch" ]
|
if [ -x "$switch" ]
|
||||||
|
@ -19,10 +20,14 @@ in
|
||||||
fi
|
fi
|
||||||
${builtins.getAttr phase.command config.frogeye.desktop.phasesCommands}
|
${builtins.getAttr phase.command config.frogeye.desktop.phasesCommands}
|
||||||
''))
|
''))
|
||||||
phases;
|
phases) ++ (with pkgs; [
|
||||||
|
brightnessctl
|
||||||
|
]);
|
||||||
xsession.windowManager.i3.config.keybindings = {
|
xsession.windowManager.i3.config.keybindings = {
|
||||||
"XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +5%";
|
XF86MonBrightnessUp = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +5%";
|
||||||
"XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 5%-";
|
XF86MonBrightnessDown = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 5%-";
|
||||||
|
"${mod}+F6" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 1%-";
|
||||||
|
"${mod}+F7" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +1%";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ in
|
||||||
"XF86AudioRaiseVolume" = "${pactl} set-sink-mute @DEFAULT_SINK@ false; ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
|
"XF86AudioRaiseVolume" = "${pactl} set-sink-mute @DEFAULT_SINK@ false; ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
"XF86AudioLowerVolume" = "${pactl} set-sink-mute @DEFAULT_SINK@ false; ${pactl} set-sink-volume @DEFAULT_SINK@ -5%";
|
"XF86AudioLowerVolume" = "${pactl} set-sink-mute @DEFAULT_SINK@ false; ${pactl} set-sink-volume @DEFAULT_SINK@ -5%";
|
||||||
"XF86AudioMute" = "${pactl} set-sink-mute @DEFAULT_SINK@ true";
|
"XF86AudioMute" = "${pactl} set-sink-mute @DEFAULT_SINK@ true";
|
||||||
"${mod}+F7" = "${pactl} suspend-sink @DEFAULT_SINK@ 1; ${pactl} suspend-sink @DEFAULT_SINK@ 0"; # Re-synchronize bluetooth headset
|
"${mod}+F8" = "${pactl} suspend-sink @DEFAULT_SINK@ 1; ${pactl} suspend-sink @DEFAULT_SINK@ 0"; # Re-synchronize bluetooth headset
|
||||||
"${mod}+F11" = "exec ${pkgs.pavucontrol}/bin/pavucontrol";
|
"${mod}+F11" = "exec ${pkgs.pavucontrol}/bin/pavucontrol";
|
||||||
"${mod}+F12" = "exec ${pkgs.pavucontrol}/bin/pavucontrol";
|
"${mod}+F12" = "exec ${pkgs.pavucontrol}/bin/pavucontrol";
|
||||||
# TODO Find pacmixer?
|
# TODO Find pacmixer?
|
||||||
|
|
|
@ -41,11 +41,11 @@
|
||||||
] ++ lib.optionals config.frogeye.desktop.xorg [
|
] ++ lib.optionals config.frogeye.desktop.xorg [
|
||||||
|
|
||||||
# multimedia editors
|
# multimedia editors
|
||||||
gimp
|
|
||||||
inkscape
|
|
||||||
darktable
|
darktable
|
||||||
puddletag
|
puddletag
|
||||||
audacity
|
audacity
|
||||||
|
xournalpp
|
||||||
|
krita
|
||||||
|
|
||||||
# downloading
|
# downloading
|
||||||
transmission-qt
|
transmission-qt
|
||||||
|
|
19
hm/shell/atuin.nix
Normal file
19
hm/shell/atuin.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ pkgs, lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
programs.atuin = {
|
||||||
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings = {
|
||||||
|
auto_sync = true;
|
||||||
|
sync_frequency = "5m";
|
||||||
|
sync_address = "https://atuin.frogeye.fr";
|
||||||
|
ctrl_n_shortcuts = true; # Cranberry uses Alt for i3
|
||||||
|
};
|
||||||
|
flags = [
|
||||||
|
"--disable-up-arrow"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -14,7 +14,6 @@ in
|
||||||
historySize = 100000;
|
historySize = 100000;
|
||||||
historyFile = "${config.xdg.stateHome}/shell_history";
|
historyFile = "${config.xdg.stateHome}/shell_history";
|
||||||
historyFileSize = 100000;
|
historyFileSize = 100000;
|
||||||
# TODO Check out Atuin
|
|
||||||
historyControl = [ "erasedups" "ignoredups" "ignorespace" ];
|
historyControl = [ "erasedups" "ignoredups" "ignorespace" ];
|
||||||
};
|
};
|
||||||
zsh = {
|
zsh = {
|
||||||
|
@ -35,4 +34,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
imports = [
|
||||||
|
./atuin.nix
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue