enabled i3
This commit is contained in:
90
home.nix
90
home.nix
@@ -47,6 +47,7 @@
|
|||||||
neofetch
|
neofetch
|
||||||
telegram-desktop
|
telegram-desktop
|
||||||
git-annex
|
git-annex
|
||||||
|
dmenu
|
||||||
python3
|
python3
|
||||||
eza
|
eza
|
||||||
bat
|
bat
|
||||||
@@ -183,8 +184,8 @@
|
|||||||
};
|
};
|
||||||
keybindings =
|
keybindings =
|
||||||
let
|
let
|
||||||
modifier = config.wayland.windowManager.sway.config.modifier;
|
modifier = config.xsession.windowManager.i3.config.modifier;
|
||||||
menu = config.wayland.windowManager.sway.config.menu;
|
menu = config.xsession.windowManager.i3.config.menu;
|
||||||
in lib.mkOptionDefault {
|
in lib.mkOptionDefault {
|
||||||
"${modifier}+space" = "exec ${menu}";
|
"${modifier}+space" = "exec ${menu}";
|
||||||
"${modifier}+Control+Space" = "focus mode_toggle";
|
"${modifier}+Control+Space" = "focus mode_toggle";
|
||||||
@@ -192,10 +193,10 @@
|
|||||||
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||||
"XF86AudioMicMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
"XF86AudioMicMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||||
"XF86Launch1" = "exec ~/scripts/sunset.sh";
|
# "XF86Launch1" = "exec ~/scripts/sunset.sh";
|
||||||
"${modifier}+Control+p" = "exec swaylock -f -c ef5ffc";
|
# "${modifier}+Control+p" = "exec swaylock -f -c ef5ffc";
|
||||||
};
|
};
|
||||||
menu = "wofi -G | xargs swaymsg exec --";
|
menu = "dmenu_run";
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
output = {
|
output = {
|
||||||
"*" = {
|
"*" = {
|
||||||
@@ -216,6 +217,85 @@
|
|||||||
include ~/.config/sway/device-conf
|
include ~/.config/sway/device-conf
|
||||||
'';
|
'';
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
|
xsession.windowManager.i3 = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.i3-rounded;
|
||||||
|
config = {
|
||||||
|
bars = [{
|
||||||
|
colors = {
|
||||||
|
activeWorkspace = {
|
||||||
|
background = "#a15ffc";
|
||||||
|
border = "#a15ffc";
|
||||||
|
text = "#333333";
|
||||||
|
};
|
||||||
|
background = "#ef5ffc";
|
||||||
|
inactiveWorkspace = {
|
||||||
|
background = "#ef5ffc";
|
||||||
|
border = "#a15ffc";
|
||||||
|
text = "#333333";
|
||||||
|
};
|
||||||
|
# seperator = "#a15fffc";
|
||||||
|
statusline = "#333333";
|
||||||
|
};
|
||||||
|
fonts = {
|
||||||
|
names = [ "Ubuntu Mono" ];
|
||||||
|
size = 13.0;
|
||||||
|
};
|
||||||
|
mode = "dock";
|
||||||
|
position = "top";
|
||||||
|
}];
|
||||||
|
colors.focused = {
|
||||||
|
border = "#ef5ffc";
|
||||||
|
background = "#ef5ffc";
|
||||||
|
text = "#333333";
|
||||||
|
indicator = "#2e9ef4";
|
||||||
|
childBorder = "#ef5ffc";
|
||||||
|
};
|
||||||
|
defaultWorkspace = "1";
|
||||||
|
floating = {
|
||||||
|
criteria = [
|
||||||
|
{
|
||||||
|
class = "org.keepassxc.KeePassXC";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
gaps = {
|
||||||
|
inner = 8;
|
||||||
|
smartBorders = "on";
|
||||||
|
smartGaps = true;
|
||||||
|
};
|
||||||
|
keybindings =
|
||||||
|
let
|
||||||
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
||||||
|
menu = config.wayland.windowManager.sway.config.menu;
|
||||||
|
in lib.mkOptionDefault {
|
||||||
|
"${modifier}+space" = "exec ${menu}";
|
||||||
|
"${modifier}+Control+Space" = "focus mode_toggle";
|
||||||
|
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||||
|
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||||
|
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
||||||
|
"XF86AudioMicMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||||
|
"XF86Launch1" = "exec ~/scripts/sunset.sh";
|
||||||
|
"${modifier}+Control+p" = "exec swaylock -f -c ef5ffc";
|
||||||
|
};
|
||||||
|
modifier = "Mod4";
|
||||||
|
window.titlebar = false;
|
||||||
|
terminal = "alacritty";
|
||||||
|
window.border = 2;
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
include ~/.config/sway/device-conf
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
|
|||||||
Reference in New Issue
Block a user