Skip to content

Commit

Permalink
[chore]: update
Browse files Browse the repository at this point in the history
  • Loading branch information
rxyhn committed Jan 2, 2024
1 parent a0bcfb5 commit d8f83be
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 10 deletions.
18 changes: 9 additions & 9 deletions flake.lock

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

2 changes: 1 addition & 1 deletion home/modules/programs/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
cursorSmoothCaretAnimation = "on";
cursorWidth = 2;
find.addExtraSpaceOnTop = false;
fontFamily = "'monospace', monospace";
fontFamily = "'monospace', monospace, 'tabler-icons'";
fontLigatures = true;
fontSize = 16;
formatOnPaste = true;
Expand Down
1 change: 1 addition & 0 deletions home/modules/windowManager/hyprland/config/binds.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ in {

"$mod, Space, exec, run-as-service $(wofi -S drun)"
"$mod, Return, exec, run-as-service kitty"
"$mod, Escape, exec, wlogout -p layer-shell"
"$mod, L, exec, loginctl lock-session"
"$mod, O, exec, run-as-service wl-ocr"

Expand Down
1 change: 1 addition & 0 deletions home/modules/windowManager/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

./config
./programs/swaylock.nix
./programs/waybar.nix
./programs/wlogout.nix
./programs/wofi.nix

Expand Down
54 changes: 54 additions & 0 deletions home/modules/windowManager/hyprland/programs/waybar.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{...}: let
snowflake = builtins.fetchurl rec {
name = "Logo-${sha256}.svg";
url = "https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nix-snowflake.svg";
sha256 = "14mbpw8jv1w2c5wvfvj8clmjw0fi956bq5xf9s2q3my14far0as8";
};
in {
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
mode = "dock";
exclusive = true;
passthrough = false;
fixed-center = true;
gtk-layer-shell = true;
height = 40;
spacing = 0;
margin-top = 0;
margin-right = 0;
margin-bottom = 0;
margin-left = 0;
modules-left = [
"custom/search"
"hyprland/workspaces"
];
modules-center = [];
modules-right = [];
"custom/search" = {
format = " ";
tooltip = false;
on-click = "sh -c 'run-as-service $(wofi -S drun)'";
};
"hyprland/workspaces" = {
active-only = false;
all-outputs = true;
disable-scroll = true;
on-click = "activate";
format = "{icon}";
format-icons = {
active = "";
default = "ﰓ";
empty = "ﰓ";
};
persistent_workspaces = {
"*" = 5;
};
};
};
};
};
}

0 comments on commit d8f83be

Please sign in to comment.