Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
3.3 KiB

2 years ago
{ pkgs, lib, ... }:
let
colors = import ./colors;
2 years ago
mod = "Mod4";
in {
# Dependencies
home.packages = with pkgs; [
playerctl # pactl comes with PulseAudio
xclip # Copying screenshots to clipboard
];
# Screenshots
services.flameshot = {
enable = true;
settings = {
General = {
disabledTrayIcon = true;
showStartupLaunchMessage = false;
showHelp = false;
showSidePanelButton = false;
2 years ago
uiColor = "${colors.bg1}";
contrastUiColor = "${colors.bg0}";
drawColor = "#ffffff";
};
};
};
2 years ago
xsession.windowManager.i3 = {
enable = true;
config = {
defaultWorkspace = "workspace number 1"; # defaults to 10 for some reason
2 years ago
modifier = mod;
# i3-gaps-specific configuration
gaps = {
inner = 12;
smartGaps = true;
};
colors = {
focused = {
2 years ago
border = "${colors.bg1}";
background = "${colors.bg1}";
text = "${colors.fg0}";
indicator = "${colors.undefined}";
childBorder = "${colors.undefined}";
};
focusedInactive = {
2 years ago
border = "${colors.bg1}";
background = "${colors.bg1}";
text = "${colors.fg0}";
indicator = "${colors.undefined}";
childBorder = "${colors.undefined}";
};
unfocused = {
2 years ago
border = "${colors.bg0}";
background = "${colors.bg0}";
text = "${colors.fg0}";
indicator = "${colors.undefined}";
childBorder = "${colors.undefined}";
};
};
2 years ago
startup = [
{
command = "(systemctl --user restart polybar &) && (nm-applet &) && (nextcloud &)";
2 years ago
always = true;
notification = false;
}
];
keybindings = lib.mkOptionDefault {
"${mod}+Return" = "exec kitty";
"${mod}+Shift+e" = "exec i3-msg exit"; # bypass default session exit confirmation menu
"${mod}+space" = "exec i3-msg open"; # Open blank space
2 years ago
"Mod1+Q" = "exec /etc/profiles/per-user/elnu/bin/rofi-power";
# Audio controls
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%";
"XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%";
"XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle";
"XF86AudioMicMute" = "exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle";
# Media player controls
"XF86AudioPlay" = "exec playerctl play-pause";
"XF86AudioNext" = "exec playerctl next";
"XF86AudioPrev" = "exec playerctl previous";
# Window resizing
"${mod}+Ctrl+Left" = "resize shrink width 1px or 1ppt";
"${mod}+Ctrl+Right" = "resize grow width 1px or 1ppt";
"${mod}+Ctrl+Up" = "resize grow height 1px or 1ppt";
"${mod}+Ctrl+Down" = "resize shrink height 1px or 1ppt";
# Screenshots
"Print" = "exec flameshot gui";
};
2 years ago
keycodebindings = {
"133" = "--release exec rofi -show run -theme";
};
window.commands = [
{
command = "border pixel 0";
criteria = { class = "^.*"; };
}
];
bars = [];
};
};
}