2019-01-08 16:57:31 +01:00
|
|
|
{pkgs, config, lib, ...}:
|
|
|
|
{
|
2019-01-09 00:28:02 +01:00
|
|
|
|
|
|
|
imports = [ ./dunstrc.nix ./terminal.nix ];
|
|
|
|
|
2019-01-08 16:57:31 +01:00
|
|
|
home.keyboard = {
|
|
|
|
layout = "no-latin1";
|
|
|
|
};
|
|
|
|
|
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
windowManager = {
|
|
|
|
i3.enable = true;
|
|
|
|
i3.config = {
|
|
|
|
modifier = "Mod4";
|
|
|
|
keybindings = let modifier = "Mod4"; #xsession.windowManager.i3.config.modifier;
|
|
|
|
in lib.mkOptionDefault {
|
|
|
|
"${modifier}+0" = "workspace 10";
|
|
|
|
"${modifier}+Shift+0" = "move container to workspace 10";
|
|
|
|
|
|
|
|
"${modifier}+Tab" = "workspace next";
|
|
|
|
"${modifier}+Shift+Tab" = "workspace prev";
|
|
|
|
|
|
|
|
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume 0 +5%";
|
|
|
|
"XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume 0 -5%";
|
|
|
|
"XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute 0 toggle";
|
|
|
|
"XF86AudioMicMute" = "exec --no-startup-id pactl set-source-mute 1 toggle";
|
|
|
|
|
|
|
|
"XF86MonBrightnessUp" = "exec --no-startup-id xbacklight -inc 5";
|
|
|
|
"XF86MonBrightnessDown" = "exec --no-startup-id xbacklight -dec 5";
|
|
|
|
|
|
|
|
"XF86Display" = "exec arandr";
|
|
|
|
|
|
|
|
"Print" = "exec scrot %Y-%m-%d_$wx$h_scrot.png -z -e 'mv $f /home/daniel/Pictures/screenshots/'";
|
|
|
|
"${modifier}+Print" = "exec scrot /home/daniel/Pictures/Screenshots/%Y-%m-%d_$wx$h_scrot.png -z";
|
|
|
|
|
|
|
|
|
|
|
|
"${modifier}+n" = "exec dolphin";
|
|
|
|
"${modifier}+b" = "exec firefox";
|
|
|
|
"${modifier}+t" = "exec gedit";
|
|
|
|
|
2019-01-09 00:28:02 +01:00
|
|
|
"${modifier}+Return" = lib.mkForce "exec kitty";
|
|
|
|
"${modifier}+Shift+Return" = "exec kitty -e ssh daniel@adam";
|
2019-01-08 16:57:31 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.compton = {
|
|
|
|
enable = true;
|
|
|
|
backend = "xrender";
|
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = [
|
2019-01-09 00:28:02 +01:00
|
|
|
pkgs.xorg.xbacklight
|
|
|
|
|
2019-01-08 16:57:31 +01:00
|
|
|
pkgs.dunst
|
|
|
|
pkgs.libnotify
|
|
|
|
|
|
|
|
pkgs.dmenu
|
2019-01-09 00:28:02 +01:00
|
|
|
|
|
|
|
pkgs.scrot
|
2019-01-08 16:57:31 +01:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|