better applet handling

This commit is contained in:
Remy Moll 2025-03-08 14:21:59 +01:00
parent 9d55b1de59
commit f6f3a19d18
5 changed files with 19 additions and 87 deletions

60
flake.lock generated
View File

@ -1,26 +1,5 @@
{ {
"nodes": { "nodes": {
"Hyprspace": {
"inputs": {
"hyprland": [
"hyprland"
],
"systems": "systems"
},
"locked": {
"lastModified": 1740777046,
"narHash": "sha256-hPp+DnTYjE6M9Mdau7inbqMeLR1SpSPVyuxd+nabwaA=",
"owner": "KZDKM",
"repo": "Hyprspace",
"rev": "b5c8adb16f4729572c67883da1bcb46e11f195d6",
"type": "github"
},
"original": {
"owner": "KZDKM",
"repo": "Hyprspace",
"type": "github"
}
},
"aquamarine": { "aquamarine": {
"inputs": { "inputs": {
"hyprutils": [ "hyprutils": [
@ -171,26 +150,6 @@
"type": "github" "type": "github"
} }
}, },
"hyprgrass": {
"inputs": {
"hyprland": [
"hyprland"
]
},
"locked": {
"lastModified": 1736771168,
"narHash": "sha256-8TaiwQorn5etYxUtyUYPJBkWuzfoULHSwGDEf+cOhh4=",
"owner": "horriblename",
"repo": "hyprgrass",
"rev": "d324904d70e8c9710bcf772227f364262baf3820",
"type": "github"
},
"original": {
"owner": "horriblename",
"repo": "hyprgrass",
"type": "github"
}
},
"hyprland": { "hyprland": {
"inputs": { "inputs": {
"aquamarine": "aquamarine", "aquamarine": "aquamarine",
@ -203,7 +162,7 @@
"hyprwayland-scanner": "hyprwayland-scanner", "hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"pre-commit-hooks": "pre-commit-hooks", "pre-commit-hooks": "pre-commit-hooks",
"systems": "systems_2", "systems": "systems",
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
@ -442,9 +401,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"Hyprspace": "Hyprspace",
"home-manager": "home-manager", "home-manager": "home-manager",
"hyprgrass": "hyprgrass",
"hyprland": "hyprland", "hyprland": "hyprland",
"nix-flatpak": "nix-flatpak", "nix-flatpak": "nix-flatpak",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
@ -466,21 +423,6 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"xdph": { "xdph": {
"inputs": { "inputs": {
"hyprland-protocols": [ "hyprland-protocols": [

View File

@ -11,26 +11,14 @@
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1"; nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=v0.4.1";
# hyprland, plugins and related utils # hyprland, plugins and related utils
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
hyprgrass = {
url = "github:horriblename/hyprgrass";
inputs.hyprland.follows = "hyprland"; # IMPORTANT
};
Hyprspace = {
url = "github:KZDKM/Hyprspace";
# Hyprspace uses latest Hyprland. We declare this to keep them in sync.
inputs.hyprland.follows = "hyprland";
};
}; };
outputs = { outputs = {
self, self,
nixpkgs, nixpkgs,
home-manager, home-manager,
hyprgrass,
... ...
} @ inputs: } @ inputs:
let let
in in
{ {

View File

@ -1,4 +1,4 @@
{inputs, pkgs, ...}: {inputs, pkgs, ...}:
{ {
home.packages = [ home.packages = [
@ -28,8 +28,8 @@
"$mod, s, exec, $ide" "$mod, s, exec, $ide"
"$mod, e, exec, nautilus" "$mod, e, exec, nautilus"
# Overview # Overview
# "$mod, , overview:toggle" "$mod, , overview:toggle"
# Lock screen # Lock screen
"$mod+Shift, l, exec, hyprlock" "$mod+Shift, l, exec, hyprlock"
@ -172,12 +172,12 @@
}; };
# TODO - plugins are broken for now # TODO - plugins are broken for now
# plugins = [ plugins = [
# # Global overview # Global overview
# inputs.Hyprspace.packages.${pkgs.system}.Hyprspace pkgs.hyprlandPlugins.hyprspace
# # Touch gestures: https://github.com/horriblename/hyprgrass # Touch gestures
# inputs.hyprgrass.packages.${pkgs.system}.default pkgs.hyprlandPlugins.hyprgrass
# ]; ];
# plugin = { # plugin = {
# touch_gestures = { # touch_gestures = {

View File

@ -1,4 +1,4 @@
{inputs, pkgs, ...}: {inputs, pkgs, ...}:
{ {
# required to autoload fonts from packages installed via Home Manager # required to autoload fonts from packages installed via Home Manager
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
@ -67,7 +67,7 @@
}; };
"clock" = { "clock" = {
format = "{:%H:%M}"; format = "{:%H:%M}";
interval = 1; interval = 1;
tooltip-format = "<tt>{calendar}</tt>"; tooltip-format = "<tt>{calendar}</tt>";
calendar = { calendar = {
"format" = { "format" = {
@ -95,7 +95,7 @@
tooltip-format-enumerate-connected = "{device_alias}\n{device_address}"; tooltip-format-enumerate-connected = "{device_alias}\n{device_address}";
tooltip-format-enumerate-connected-battery = "{device_alias}\n{device_address}\n{device_battery_percentage}%"; tooltip-format-enumerate-connected-battery = "{device_alias}\n{device_address}\n{device_battery_percentage}%";
on-click-right = "blueman-manager"; on-click-right = "blueman-manager";
}; };
"battery" = { "battery" = {
interval = 60; interval = 60;
states = { states = {
@ -109,7 +109,7 @@
format-icons = [ "󰁻" "󰁼" "󰁾" "󰂀" "󰂂" "󰁹" ]; format-icons = [ "󰁻" "󰁼" "󰁾" "󰂀" "󰂂" "󰁹" ];
}; };
"backlight" = { "backlight" = {
"format" = "{percent}% {icon}",; "format" = "{percent}% {icon}";
"format-icons" = ["" "" "" "" "" "" "" "" ""]; "format-icons" = ["" "" "" "" "" "" "" "" ""];
}; };
"wireplumber" = { "wireplumber" = {
@ -132,7 +132,7 @@
"" ""
]; ];
}; };
on-click = "sleep 0.1 && pavucontrol"; on-click = "XDG_CURRENT_DESKTOP=GNOME gnome-control-center sound";
}; };
"tray" = { "tray" = {
spacing = 5; spacing = 5;
@ -166,6 +166,7 @@
tooltip-format-wifi = "SSID: {essid}({signalStrength}%), {frequency} MHz\nInterface: {ifname}\nIP: {ipaddr}\nGW: {gwaddr}\n\n<span color='#a6da95'>{bandwidthUpBits}</span>\t<span color='#ee99a0'>{bandwidthDownBits}</span>\t<span color='#c6a0f6'>󰹹{bandwidthTotalBits}</span>"; tooltip-format-wifi = "SSID: {essid}({signalStrength}%), {frequency} MHz\nInterface: {ifname}\nIP: {ipaddr}\nGW: {gwaddr}\n\n<span color='#a6da95'>{bandwidthUpBits}</span>\t<span color='#ee99a0'>{bandwidthDownBits}</span>\t<span color='#c6a0f6'>󰹹{bandwidthTotalBits}</span>";
tooltip-format-ethernet = "{ifname} "; tooltip-format-ethernet = "{ifname} ";
tooltip-format-disconnected = "Disconnected"; tooltip-format-disconnected = "Disconnected";
on-click = "XDG_CURRENT_DESKTOP=GNOME gnome-control-center wifi";
}; };
}; };
}; };

View File

@ -1,4 +1,4 @@
{pkgs, ...}: {pkgs, ...}:
{ {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
@ -6,6 +6,7 @@
settings = { settings = {
background_opacity = 0.8; background_opacity = 0.8;
confirm_os_window_close = 0; confirm_os_window_close = 0;
enable_audio_bell = false;
cursor_trail = 3; cursor_trail = 3;
cursor_trail_decay = "0.1 0.4"; cursor_trail_decay = "0.1 0.4";
url_style = "curly"; url_style = "curly";