Skip to content

Commit

Permalink
feat: add keymaps and window configs to i3 and picom for linux shimeji
Browse files Browse the repository at this point in the history
  • Loading branch information
datsfilipe committed Jan 12, 2025
1 parent edaf1cf commit 36cf017
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions home/linux/gui/i3/values/picom.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"class_g ?= 'Polybar'"
"class_g ?= 'Rofi'"
"_GTK_FRAME_EXTENTS"
"name = 'win'"
];

corner-radius = 0;
Expand All @@ -28,6 +29,13 @@
"class_g = 'Polybar'"
"class_g = 'Rofi'"
"window_type = 'tooltip'"
"name = 'win'"
];
blur-background-exclude = [
"name = 'win'"
];
focus-exclude = [
"name = 'win'"
];
};

Expand Down
7 changes: 7 additions & 0 deletions hosts/dtsf-pc/home/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
style = "Regular";
size = 8.0;
};

window.commands = [
{
command = "floating enable, sticky enable";
criteria = { title = "^win"; };
}
];
};
};
};
Expand Down
6 changes: 5 additions & 1 deletion hosts/dtsf-pc/home/keymaps.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ mod, alt, pkgs, lib, ... }: let
mod = "Mod4";
alt = "Mod1";
print = "Print";
workspaceBindings = builtins.listToAttrs (
(map (i: {
name = "${mod}+${toString i}";
Expand All @@ -21,10 +22,13 @@
"${mod}+Return" = "exec ${pkgs.alacritty}/bin/alacritty -e ${pkgs.zellij}/bin/zellij attach dtsf -c";
"${mod}+a" = "exec chromium --wv --force-dark-mode --enable-features=WebUIDarkMode";
"${mod}+d" = "exec $HOME/.local/bin/dmenu-theme";
"Print" = "exec flameshot gui";
"${mod}+Shift+m" = "exec shimeji";

"${alt}+k" = "exec $HOME/.local/bin/switch-kb-variant";
"${alt}+i" = "exec $HOME/.local/bin/switch-kb-variant intl";

"${print}" = "exec flameshot gui";

"${mod}+h" = "focus left";
"${mod}+j" = "focus down";
"${mod}+k" = "focus up";
Expand Down

0 comments on commit 36cf017

Please sign in to comment.