Update
This commit is contained in:
parent
d11cf580f9
commit
52e267a436
10
flake.lock
10
flake.lock
@ -805,11 +805,11 @@
|
|||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1728292968,
|
"lastModified": 1728320787,
|
||||||
"narHash": "sha256-Jp/SQH5q2uTRBW625gFdfXLvYLjQiDNxtvQo0vVbyeA=",
|
"narHash": "sha256-k6uOqBw7ROiFrYezdhqlg1aQULLb8Sbgd+GY7CQGqx8=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "nixvim",
|
"repo": "nixvim",
|
||||||
"rev": "d71cfaaae8353b4102169a9858422ce3738cd43b",
|
"rev": "a3dd64b30c1016342f8c96ef04806b49dc4339f3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -874,13 +874,13 @@
|
|||||||
"lastModified": 1728046164,
|
"lastModified": 1728046164,
|
||||||
"narHash": "sha256-n/sMiz6ztfzAwidL7CaRaUW5m07i9i6cemthE1L4Pes=",
|
"narHash": "sha256-n/sMiz6ztfzAwidL7CaRaUW5m07i9i6cemthE1L4Pes=",
|
||||||
"owner": "MeanderingProgrammer",
|
"owner": "MeanderingProgrammer",
|
||||||
"repo": "markdown.nvim",
|
"repo": "render-markdown.nvim",
|
||||||
"rev": "fe1002fddc61207e4ef4325d4bc0ca33697bbc7a",
|
"rev": "fe1002fddc61207e4ef4325d4bc0ca33697bbc7a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "MeanderingProgrammer",
|
"owner": "MeanderingProgrammer",
|
||||||
"repo": "markdown.nvim",
|
"repo": "render-markdown.nvim",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -24,12 +25,9 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||||
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
||||||
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
|
hyprpanel.url = "github:Jas-SinghFSU/HyprPanel";
|
||||||
plugin-markdown = {
|
plugin-markdown = {
|
||||||
# TODO: Put the new url (render-markdown.nvim)
|
url = "github:MeanderingProgrammer/render-markdown.nvim";
|
||||||
url = "github:MeanderingProgrammer/markdown.nvim";
|
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
nixy-wallpapers = {
|
nixy-wallpapers = {
|
||||||
@ -37,6 +35,7 @@
|
|||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:danth/stylix";
|
||||||
|
apple-fonts.url = "github:Lyndeno/apple-fonts.nix";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = inputs@{ nixpkgs, ... }: {
|
outputs = inputs@{ nixpkgs, ... }: {
|
||||||
|
@ -13,8 +13,7 @@ let
|
|||||||
''
|
''
|
||||||
hyprctl keyword "general:gaps_in" 0
|
hyprctl keyword "general:gaps_in" 0
|
||||||
hyprctl keyword "general:gaps_out" 0
|
hyprctl keyword "general:gaps_out" 0
|
||||||
# TODO: Fix this:
|
hyprpanel-hide
|
||||||
hyprpanel-toggle
|
|
||||||
hyprctl keyword "general:border_size" 1
|
hyprctl keyword "general:border_size" 1
|
||||||
hyprctl keyword "decoration:rounding" 0
|
hyprctl keyword "decoration:rounding" 0
|
||||||
hyprctl keyword "decoration:drop_shadow" false
|
hyprctl keyword "decoration:drop_shadow" false
|
||||||
@ -27,7 +26,7 @@ let
|
|||||||
# bash
|
# bash
|
||||||
''
|
''
|
||||||
hyprctl reload
|
hyprctl reload
|
||||||
hyprpanel-reload
|
hyprpanel-show
|
||||||
rm /tmp/hyprfocus
|
rm /tmp/hyprfocus
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -14,12 +14,33 @@ let
|
|||||||
hyprpanel -t bar-3
|
hyprpanel -t bar-3
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
hyprpanel-hide = pkgs.writeShellScriptBin "hyprpanel-hide" ''
|
||||||
|
status=$(hyprpanel -r "isWindowVisible('bar-0')")
|
||||||
|
if [[ $status == "true" ]]; then
|
||||||
|
hyprpanel -t bar-0
|
||||||
|
fi
|
||||||
|
status=$(hyprpanel -r "isWindowVisible('bar-1')")
|
||||||
|
if [[ $status == "true" ]]; then
|
||||||
|
hyprpanel -t bar-1
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
hyprpanel-show = pkgs.writeShellScriptBin "hyprpanel-show" ''
|
||||||
|
status=$(hyprpanel -r "isWindowVisible('bar-0')")
|
||||||
|
if [[ $status == "false" ]]; then
|
||||||
|
hyprpanel -t bar-0
|
||||||
|
fi
|
||||||
|
status=$(hyprpanel -r "isWindowVisible('bar-1')")
|
||||||
|
if [[ $status == "false" ]]; then
|
||||||
|
hyprpanel -t bar-1
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
hyprpanel-reload = pkgs.writeShellScriptBin "hyprpanel-reload" ''
|
hyprpanel-reload = pkgs.writeShellScriptBin "hyprpanel-reload" ''
|
||||||
[ $(pgrep "ags") ] && pkill ags
|
[ $(pgrep "ags") ] && pkill ags
|
||||||
hyprctl dispatch exec hyprpanel
|
hyprctl dispatch exec hyprpanel
|
||||||
'';
|
'';
|
||||||
|
in {
|
||||||
hyprpanel-kill = pkgs.writeShellScriptBin "hyprpanel-kill" ''
|
home.packages =
|
||||||
[ $(pgrep "ags") ] && pkill ags
|
[ hyprpanel-toggle hyprpanel-reload hyprpanel-hide hyprpanel-show ];
|
||||||
'';
|
}
|
||||||
in { home.packages = [ hyprpanel-toggle hyprpanel-reload hyprpanel-kill ]; }
|
|
||||||
|
Loading…
Reference in New Issue
Block a user