Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunsingh committed Nov 18, 2023
1 parent 9e67828 commit c3d0119
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 133 deletions.
179 changes: 60 additions & 119 deletions flake.lock

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

2 changes: 2 additions & 0 deletions users/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
_:
{
debug = true;

# home-manager configurations
parts.homeConfigurations = {
"shaunsingh@m1" = {
Expand Down
29 changes: 15 additions & 14 deletions users/shaurizard/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -135,20 +135,21 @@
gaps.outer = 18;
defaultWorkspace = "workspace 1";
keybindings =
let
modifier = "Mod4";
concatAttrs = lib.fold (x: y: x // y) { };
tagBinds =
concatAttrs
(map
(i: {
"${modifier}+${toString i}" = "exec 'swaymsg workspace ${toString i} && ${inputs.eww.packages.${system}.eww-wayland}/bin/eww update active-tag=${toString i}'";
"${modifier}+Shift+${toString i}" = "exec 'swaymsg move container to workspace ${toString i}'";
})
(lib.range 0 9));
in
tagBinds
// {
# let
# modifier = "Mod4";
# concatAttrs = lib.fold (x: y: x // y) { };
# tagBinds =
# concatAttrs
# (map
# (i: {
# "${modifier}+${toString i}" = "exec 'swaymsg workspace ${toString i} && ${inputs.eww.packages.${system}.eww-wayland}/bin/eww update active-tag=${toString i}'";
# "${modifier}+Shift+${toString i}" = "exec 'swaymsg move container to workspace ${toString i}'";
# })
# (lib.range 0 9));
# in
# tagBinds
# //
{
"${modifier}+Return" = "exec ${pkgs.foot}/bin/foot";
"${modifier}+d" = "exec ${pkgs.kickoff}/bin/kickoff";
"${modifier}+p" = "exec ${pkgs.screenshot}/bin/screenshot";
Expand Down

0 comments on commit c3d0119

Please sign in to comment.