fix: wireguard status for waybar

This commit is contained in:
DACHXY 2025-06-03 11:21:00 +08:00
parent e928d2e4c9
commit cc803cae27
11 changed files with 68 additions and 57 deletions

View file

@ -4,6 +4,7 @@
enable = true;
silent = true;
enableBashIntegration = true;
silent = true;
nix-direnv.enable = true;
};
};

View file

@ -16,7 +16,7 @@
QT_IM_MODULES = "wayland;fcitx;ibus";
MOZ_ENABLE_WAYLAND = "1";
SDL_VIDEODRIVER = "wayland";
SDL_VIDEODRIVER = "wayland,x11";
WLR_NO_HARDWARE_CURSORS = "1";
CLUTTER_BACKEND = "wayland";
EGL_PLATFORM = "wayland";

View file

@ -1,5 +1,5 @@
[
''desc:ASUSTek COMPUTER INC ASUS VG32VQ1B 0x00002271, 2560x1440@165, 0x0, 1''
''desc:Acer Technologies XV272U V3 1322131231233, 2560x1440@180, -1440x-430, 1, transform, 1''
''desc:Acer Technologies XV272U V3 1322131231233, 2560x1440@180, -1440x-600, 1, transform, 1''
''desc:LG Display 0x0665, preferred, 0x0, 1.25''
]

View file

@ -102,6 +102,18 @@ in
# === hyprlock === #
programs.hyprlock = {
enable = true;
package = (
pkgs.hyprlock.overrideAttrs (
final: prev: {
src = pkgs.fetchFromGitHub {
owner = "hyprwm";
repo = "hyprlock";
rev = "da1d076d849fc0f298c1d287bddd04802bf7d0f9";
hash = "sha256-IypoV7crmhQ4llD0n4qqO4XTRNAAbHfA+2oiTiq2qpk=";
};
}
)
);
importantPrefixes = [
"$"
"monitor"
@ -115,10 +127,7 @@ in
font2 = "SF Pro Display Bold";
mainMonitor =
if ((builtins.length settings.hyprland.monitors) > 0) then
# TODO: Identifying monitor by desc is broken
# https://github.com/hyprwm/hyprlock/issues/737
# builtins.elemAt settings.hyprland.monitors 0
"DP-2"
builtins.elemAt settings.hyprland.monitors 0
else
"";
in

View file

@ -5,19 +5,6 @@
inputs,
...
}:
let
lazyVim = (
pkgs.vimPlugins.LazyVim.overrideAttrs (previous: {
version = "2025-02-15";
src = pkgs.fetchFromGitHub {
owner = "LazyVim";
repo = "LazyVim";
rev = "main";
sha256 = "sha256-lwT39h97ZyF/SFJhkOqZ2vU5f3QpCpe7L1MVDPEXN28=";
};
})
);
in
{
home.packages = with pkgs; [
gh
@ -62,8 +49,8 @@ in
extraPackages = with pkgs; [
lua-language-server
stylua
ripgrep
stylua
vue-language-server
dockerfile-language-server-nodejs
ruff
@ -88,6 +75,9 @@ in
taplo
zls
vscode-js-debug
neocmakelsp
ghostscript
];
plugins = with pkgs.vimPlugins; [
@ -97,8 +87,7 @@ in
extraLuaConfig =
let
plugins = with pkgs.vimPlugins; [
# LazyVim
lazyVim
LazyVim
bufferline-nvim
cmp-buffer