Skip to content

Commit

Permalink
Merge pull request #27 from datsfilipe/feat-add-linux-shimeji
Browse files Browse the repository at this point in the history
feat: add linux shimeji to the config
  • Loading branch information
datsfilipe authored Jan 12, 2025
2 parents e17740f + 36cf017 commit f050bad
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 3 deletions.
58 changes: 57 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
inputs.nixpkgs.follows = "nixpkgs";
url = "github:nix-community/home-manager/master";
};
linux-shimeji = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:datsfilipe/linux-shimeji/main";
};
sops-nix = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:Mic92/sops-nix/master";
Expand Down
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
1 change: 1 addition & 0 deletions hosts/dtsf-pc/home/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

modules.desktop.nupkgs.packages = with mypkgs; [
devtunnel-cli
linux-shimeji
];

programs.i3status = {
Expand Down
3 changes: 2 additions & 1 deletion modules/nupkgs/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, mylib, zellij-switch, ... }: let
{ lib, pkgs, mylib, zellij-switch, linux-shimeji, ... }: let
packageFiles = lib.filter
(path: !lib.strings.hasPrefix (toString ./overlays) (toString path))
(mylib.file.scanPaths ./.);
Expand All @@ -14,6 +14,7 @@
packageFiles
) // {
inherit (pkgsWithOverlays) zellij-switch;
linux-shimeji = linux-shimeji.packages.${pkgs.system}.little-ghost-polite;
};
in
packages
1 change: 1 addition & 0 deletions templates/flake.template.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ in genFlake ./flake.template.nix
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
linux-shimeji = (ext "github:datsfilipe/linux-shimeji/main");
zellij-switch = (ext "github:datsfilipe/zellij-switch/flake");
home-manager = (ext "github:nix-community/home-manager/master");
sops-nix = (ext "github:Mic92/sops-nix/master");
Expand Down

0 comments on commit f050bad

Please sign in to comment.