2019-01-08 16:57:31 +01:00
|
|
|
{pkgs, config, lib, ...}:
|
|
|
|
{
|
2019-01-09 00:28:02 +01:00
|
|
|
|
2019-06-08 14:59:52 +02:00
|
|
|
imports = [ ./dunstrc.nix ./terminal.nix ./audio.nix ];
|
2019-01-09 00:28:02 +01:00
|
|
|
|
2019-01-08 16:57:31 +01:00
|
|
|
home.keyboard = {
|
|
|
|
layout = "no-latin1";
|
|
|
|
};
|
|
|
|
|
2020-06-15 14:00:54 +02:00
|
|
|
services.random-background = {
|
|
|
|
enable = true;
|
|
|
|
imageDirectory = "%h/wallpapers";
|
|
|
|
interval = "30m";
|
|
|
|
};
|
|
|
|
|
2020-06-13 13:06:41 +02:00
|
|
|
wayland.windowManager.sway = {
|
2020-05-27 00:05:17 +02:00
|
|
|
enable = true;
|
|
|
|
config = {
|
2020-06-13 13:06:41 +02:00
|
|
|
terminal = "kitty";
|
2020-05-27 00:05:17 +02:00
|
|
|
bars = [
|
|
|
|
{
|
|
|
|
command = "${pkgs.waybar}/bin/waybar";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-06-13 13:06:41 +02:00
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
|
|
|
|
initExtra = ''
|
|
|
|
export PATH="$HOME/.config/nixpkgs/nix-dotfiles/bin:$PATH"
|
|
|
|
|
|
|
|
export XDG_CURRENT_DESKTOP=kde
|
|
|
|
export DESKTOP_SESSION=kde
|
|
|
|
|
|
|
|
export QT_STYLE_OVERRIDE="breeze"
|
|
|
|
'';
|
|
|
|
|
|
|
|
windowManager = {
|
|
|
|
i3.enable = true;
|
|
|
|
i3.config = {
|
|
|
|
modifier = "Mod4";
|
2020-06-16 04:08:54 +02:00
|
|
|
terminal = "kitty";
|
|
|
|
keybindings = let modifier = config.xsession.windowManager.i3.config.modifier;
|
2020-06-13 13:06:41 +02:00
|
|
|
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 brightnessctl set +5%";
|
|
|
|
"XF86MonBrightnessDown" = "exec --no-startup-id brightnessctl set 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}+Shift+U" = "exec $HOME/.config/nixpkgs/nix-dotfiles/scripts/dmenuunicode";
|
|
|
|
|
|
|
|
"${modifier}+n" = "exec dolphin";
|
|
|
|
"${modifier}+b" = "exec firefox";
|
|
|
|
"${modifier}+t" = "exec gedit";
|
|
|
|
|
2020-06-16 04:08:54 +02:00
|
|
|
# "${modifier}+Return" = lib.mkForce "exec kitty";
|
2020-06-13 13:06:41 +02:00
|
|
|
"${modifier}+Shift+Return" = "exec kitty -e ssh dandellion@lilith";
|
|
|
|
};
|
2020-06-16 04:08:54 +02:00
|
|
|
window = {
|
|
|
|
titlebar = false;
|
|
|
|
hideEdgeBorders = "smart";
|
|
|
|
};
|
|
|
|
bars = [];
|
|
|
|
startup = [
|
|
|
|
{ command = "systemctl --user restart polybar"; always = true; notification = false; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.polybar = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.polybar.override {
|
|
|
|
i3Support = true;
|
|
|
|
};
|
|
|
|
script = "polybar bot &";
|
|
|
|
config = {
|
|
|
|
"colors" = {
|
|
|
|
background = "#222";
|
|
|
|
background-alt = "#444";
|
|
|
|
foreground = "#dfdfdf";
|
|
|
|
foreground-alt = "#555";
|
|
|
|
primary = "#ffb52a";
|
|
|
|
secondary = "#e60053";
|
|
|
|
alert = "#bd2c40";
|
|
|
|
};
|
|
|
|
"bar/bot" = {
|
|
|
|
bottom = true;
|
|
|
|
width = "100%";
|
|
|
|
height = 27;
|
|
|
|
|
|
|
|
font-0 = "MesloLGS NF:fontformat=truetype:pixelsize=11;1";
|
|
|
|
|
|
|
|
background = "\${colors.background}";
|
|
|
|
foreground = "\${colors.foreground}";
|
|
|
|
|
|
|
|
padding-left = "0";
|
|
|
|
padding-right = "2";
|
|
|
|
|
|
|
|
module-margin-left = "1";
|
|
|
|
module-margin-right = "2";
|
|
|
|
|
|
|
|
modules-left = "i3 title";
|
|
|
|
modules-right = "wlan eth filesystem cpu memory battery date";
|
|
|
|
};
|
|
|
|
|
|
|
|
"module/i3" = {
|
|
|
|
type = "internal/i3";
|
|
|
|
format = "<label-state> <label-mode>";
|
|
|
|
scroll-up = "i3wm-wsnext";
|
|
|
|
scroll-down = "i3wm-wsprev";
|
|
|
|
|
|
|
|
label-mode-padding = "0";
|
|
|
|
label-mode-foreground = "#000";
|
|
|
|
label-mode-background = "\${colors.primary}";
|
|
|
|
|
|
|
|
label-focused = "%index%";
|
|
|
|
label-focused-background = "\${colors.background-alt}";
|
|
|
|
label-focused-underline= "\${colors.primary}";
|
|
|
|
label-focused-padding = "1";
|
|
|
|
|
|
|
|
label-unfocused = "%index%";
|
|
|
|
label-unfocused-padding = "1";
|
|
|
|
|
|
|
|
label-visible = "%index%";
|
|
|
|
label-visible-background = "\${self.label-focused-background}";
|
|
|
|
label-visible-underline = "\${self.label-focused-underline}";
|
|
|
|
label-visible-padding = "\${self.label-focused-padding}";
|
|
|
|
|
|
|
|
label-urgent = "%index%";
|
|
|
|
label-urgent-background = "\${colors.alert}";
|
|
|
|
label-urgent-padding = "1";
|
|
|
|
|
|
|
|
};
|
|
|
|
"module/title" = {
|
|
|
|
type = "internal/xwindow";
|
|
|
|
};
|
|
|
|
"module/wlan" = {
|
|
|
|
type = "internal/network";
|
|
|
|
interface = "wlp4s0";
|
|
|
|
interval = "3.0";
|
|
|
|
|
|
|
|
format-connected = "<ramp-signal> <label-connected>";
|
|
|
|
format-connected-underline = "#9f78e1";
|
|
|
|
label-connected = "(%signal%% on %essid%) %local_ip%";
|
|
|
|
|
|
|
|
format-disconnected = "";
|
|
|
|
|
|
|
|
ramp-signal-0 = "";
|
|
|
|
ramp-signal-1 = "";
|
|
|
|
ramp-signal-2 = "";
|
|
|
|
ramp-signal-3 = "";
|
|
|
|
ramp-signal-4 = "";
|
|
|
|
ramp-signal-foreground = "\${colors.foreground-alt}";
|
|
|
|
};
|
|
|
|
"module/eth" = {
|
|
|
|
type = "internal/network";
|
|
|
|
interface = "enp0s25";
|
|
|
|
interval = "3.0";
|
|
|
|
|
|
|
|
format-connected-underline = "#55aa55";
|
|
|
|
format-connected-prefix = " ";
|
|
|
|
format-connected-prefix-foreground = "\${colors.foreground-alt}";
|
|
|
|
label-connected = "%local_ip%";
|
|
|
|
|
|
|
|
format-disconnected = "";
|
|
|
|
};
|
|
|
|
"module/filesystem" = {
|
|
|
|
type = "internal/fs";
|
|
|
|
interval = 25;
|
|
|
|
|
|
|
|
mount-0 = "/";
|
|
|
|
|
|
|
|
label-mounted = "%{F#0a81f5}%mountpoint%%{F-}: %free%";
|
|
|
|
label-unmounted = "%mountpoint% not mounted";
|
|
|
|
label-unmounted-foreground = "\${colors.foreground-alt}";
|
|
|
|
};
|
|
|
|
"module/cpu" = {
|
|
|
|
type = "internal/cpu";
|
|
|
|
interval = 2;
|
|
|
|
format-prefix = " ";
|
|
|
|
format-prefix-foreground = "\${colors.foreground-alt}";
|
|
|
|
format-underline = "#f90000";
|
|
|
|
label = "%percentage:2%%";
|
|
|
|
};
|
|
|
|
"module/memory" = {
|
|
|
|
type = "internal/memory";
|
|
|
|
interval = "2";
|
|
|
|
format-prefix = " ";
|
|
|
|
format-prefix-foreground = "\${colors.foreground-alt}";
|
|
|
|
format-underline = "#4bffdc";
|
|
|
|
label = "%percentage_used%%";
|
|
|
|
};
|
|
|
|
"module/battery" = {
|
|
|
|
type = "internal/battery";
|
|
|
|
battery = "BAT0";
|
|
|
|
adapter = "AC";
|
|
|
|
|
|
|
|
format-charging = "<animation-charging> <label-charging>";
|
|
|
|
format-charging-underline = "#ffb52a";
|
|
|
|
|
|
|
|
format-discharging = "<animation-discharging> <label-discharging>";
|
|
|
|
format-discharging-underline = "\${self.format-charging-underline}";
|
|
|
|
|
|
|
|
format-full-prefix-foreground = "\${colors.foreground-alt}";
|
|
|
|
format-full-underline = "\${self.format-charging-underline}";
|
|
|
|
|
|
|
|
ramp-capacity-foreground = "\${colors.foreground-alt}";
|
|
|
|
|
|
|
|
format-full-prefix = " ";
|
|
|
|
|
|
|
|
ramp-capacity-0 = "";
|
|
|
|
ramp-capacity-1 = "";
|
|
|
|
ramp-capacity-2 = "";
|
|
|
|
|
|
|
|
animation-charging-0 = "";
|
|
|
|
animation-charging-1 = "";
|
|
|
|
animation-charging-2 = "";
|
|
|
|
animation-charging-foreground = "\${colors.foreground-alt}";
|
|
|
|
animation-charging-framerate = "750";
|
|
|
|
|
|
|
|
animation-discharging-0 = "";
|
|
|
|
animation-discharging-1 = "";
|
|
|
|
animation-discharging-2 = "";
|
|
|
|
animation-discharging-foreground = "\${colors.foreground-alt}";
|
|
|
|
animation-discharging-framerate = "750";
|
|
|
|
};
|
|
|
|
"module/date" = {
|
|
|
|
type = "internal/date";
|
|
|
|
internal = 5;
|
|
|
|
date = "%Y-%m-%d";
|
|
|
|
time = "%H:%M";
|
|
|
|
label = "%date% %time%";
|
2020-06-13 13:06:41 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.picom = {
|
|
|
|
enable = true;
|
|
|
|
backend = "xrender";
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
gtk = {
|
|
|
|
enable = true;
|
|
|
|
theme = {
|
|
|
|
package = pkgs.breeze-gtk;
|
|
|
|
name = "Breeze";
|
|
|
|
};
|
|
|
|
iconTheme = {
|
|
|
|
package = pkgs.breeze-icons;
|
|
|
|
name = "breeze";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
#useGtkTheme = true;
|
|
|
|
platformTheme = "gtk";
|
|
|
|
};
|
2019-01-09 17:03:10 +01:00
|
|
|
|
2019-01-08 16:57:31 +01:00
|
|
|
home.packages = [
|
2020-05-27 00:05:17 +02:00
|
|
|
pkgs.brightnessctl
|
2019-01-09 00:32:24 +01:00
|
|
|
pkgs.pavucontrol
|
2020-06-13 13:06:41 +02:00
|
|
|
pkgs.xorg.xkill
|
|
|
|
pkgs.arandr
|
2019-01-09 00:28:02 +01:00
|
|
|
|
2019-01-08 16:57:31 +01:00
|
|
|
pkgs.dunst
|
|
|
|
pkgs.libnotify
|
|
|
|
|
|
|
|
pkgs.dmenu
|
2019-01-09 00:28:02 +01:00
|
|
|
|
2020-06-13 13:06:41 +02:00
|
|
|
pkgs.scrot
|
2020-06-16 04:08:54 +02:00
|
|
|
pkgs.neofetch
|
2020-06-13 13:06:41 +02:00
|
|
|
pkgs.xclip
|
2019-01-09 00:32:24 +01:00
|
|
|
|
2020-06-16 04:08:54 +02:00
|
|
|
# pkgs.dejavu_fonts
|
2019-01-09 23:18:25 +01:00
|
|
|
|
2020-06-13 13:06:41 +02:00
|
|
|
pkgs.breeze-qt5
|
|
|
|
pkgs.breeze-icons
|
2019-01-08 16:57:31 +01:00
|
|
|
];
|
|
|
|
}
|