dotfiles/config/xsession/xsession.nix

108 lines
2.5 KiB
Nix
Raw Normal View History

2019-01-08 16:57:31 +01:00
{pkgs, config, lib, ...}:
{
imports = [ ./dunstrc.nix ./terminal.nix ];
2019-01-08 16:57:31 +01:00
home.keyboard = {
layout = "no-latin1";
};
xsession = {
enable = true;
2019-01-09 17:03:10 +01:00
initExtra = ''
2019-03-13 23:12:26 +01:00
export PATH="$HOME/.config/nixpkgs/nix-dotfiles/bin:$PATH"
2019-01-10 21:59:30 +01:00
export XDG_CURRENT_DESKTOP=kde
2019-01-09 17:03:10 +01:00
export DESKTOP_SESSION=kde
2019-01-11 03:55:59 +01:00
export QT_STYLE_OVERRIDE="breeze"
2019-01-09 17:03:10 +01:00
'';
2019-01-08 16:57:31 +01:00
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";
2019-01-16 16:52:32 +01:00
"${modifier}+Shift+U" = "exec /home/daniel/.config/nixpkgs/nix-dotfiles/scripts/dmenuunicode";
2019-01-08 16:57:31 +01:00
"${modifier}+n" = "exec dolphin";
"${modifier}+b" = "exec firefox";
"${modifier}+t" = "exec gedit";
"${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";
};
2019-01-09 17:03:10 +01:00
gtk = {
enable = true;
theme = {
package = pkgs.breeze-gtk;
2019-01-10 21:59:30 +01:00
name = "Breeze";
2019-01-09 17:03:10 +01:00
};
iconTheme = {
package = pkgs.breeze-icons;
2019-01-10 21:59:30 +01:00
name = "breeze";
2019-01-09 17:03:10 +01:00
};
};
qt = {
enable = true;
useGtkTheme = true;
};
2019-01-08 16:57:31 +01:00
home.packages = [
pkgs.xorg.xbacklight
2019-01-09 00:32:24 +01:00
pkgs.pavucontrol
2019-03-01 19:17:52 +01:00
pkgs.xorg.xkill
2019-05-02 00:00:29 +02:00
pkgs.arandr
2019-01-08 16:57:31 +01:00
pkgs.dunst
pkgs.libnotify
pkgs.dmenu
pkgs.scrot
2019-01-16 16:52:32 +01:00
pkgs.xclip
2019-01-09 00:32:24 +01:00
pkgs.dejavu_fonts
2019-01-09 23:18:25 +01:00
2019-01-10 21:59:30 +01:00
pkgs.breeze-qt5
pkgs.breeze-icons
2019-01-08 16:57:31 +01:00
];
}