This commit is contained in:
mjallen18
2025-09-26 20:37:09 -05:00
parent 117912045c
commit ec23a7fe14
7 changed files with 66 additions and 34 deletions

View File

@@ -461,42 +461,42 @@ in
++ cfg.windowRule;
plugin = {
touch_gestures = {
# The default sensitivity is probably too low on tablet screens,
# I recommend turning it up to 4.0
sensitivity = "4.0";
# touch_gestures = {
# # The default sensitivity is probably too low on tablet screens,
# # I recommend turning it up to 4.0
# sensitivity = "4.0";
# must be >= 3
workspace_swipe_fingers = "3";
# # must be >= 3
# workspace_swipe_fingers = "3";
# switching workspaces by swiping from an edge, this is separate from workspace_swipe_fingers
# and can be used at the same time
# possible values: l, r, u, or d
# to disable it set it to anything else
workspace_swipe_edge = "d";
# # switching workspaces by swiping from an edge, this is separate from workspace_swipe_fingers
# # and can be used at the same time
# # possible values: l, r, u, or d
# # to disable it set it to anything else
# workspace_swipe_edge = "d";
# in milliseconds
long_press_delay = "400";
# # in milliseconds
# long_press_delay = "400";
# resize windows by long-pressing on window borders and gaps.
# If general:resize_on_border is enabled, general:extend_border_grab_area is used for floating
# windows
resize_on_border_long_press = true;
# # resize windows by long-pressing on window borders and gaps.
# # If general:resize_on_border is enabled, general:extend_border_grab_area is used for floating
# # windows
# resize_on_border_long_press = true;
# in pixels, the distance from the edge that is considered an edge
edge_margin = "10";
# # in pixels, the distance from the edge that is considered an edge
# edge_margin = "10";
# emulates touchpad swipes when swiping in a direction that does not trigger workspace swipe.
# ONLY triggers when finger count is equal to workspace_swipe_fingers
#
# might be removed in the future in favor of event hooks
emulate_touchpad_swipe = false;
# # emulates touchpad swipes when swiping in a direction that does not trigger workspace swipe.
# # ONLY triggers when finger count is equal to workspace_swipe_fingers
# #
# # might be removed in the future in favor of event hooks
# emulate_touchpad_swipe = false;
experimental = {
# send proper cancel events to windows instead of hacky touch_up events,
# NOT recommended as it crashed a few times, once it's stabilized I'll make it the default
send_cancel = "0";
};
# experimental = {
# # send proper cancel events to windows instead of hacky touch_up events,
# # NOT recommended as it crashed a few times, once it's stabilized I'll make it the default
# send_cancel = "0";
# };
# hyprgrass-bind = [
# # swipe left from right edge
@@ -522,7 +522,7 @@ in
# ", longpress:2, movewindow"
# ", longpress:3, resizewindow"
# ];
};
# };
};
# gestures = {

View File

@@ -35,6 +35,7 @@ in
{
imports = [
./options.nix
./scripts/audio-control.nix
./scripts/hass.nix
./scripts/weather.nix
];

View File

@@ -0,0 +1,33 @@
{
config,
lib,
namespace,
pkgs,
...
}:
let
cfg = config.mjallen.programs.waybar;
pythonEnv = pkgs.python3.withPackages (_ps: [
pkgs.${namespace}.pipewire-python
]);
waybar-audio = pkgs.writeScriptBin "waybar-audio" ''
#!${pythonEnv}/bin/python
"""run with the special python"""
from pipewire_python.controller import Controller
audio_controller = Controller()
print(audio_controller.get_config())
print(audio_controller.get_list_targets())
'';
in
{
imports = [ ../options.nix ];
config = lib.mkIf cfg.enable {
home.packages = [ waybar-audio ];
};
}

View File

@@ -71,7 +71,7 @@ in
portalPackage = lib.mkDefault pkgs.xdg-desktop-portal-hyprland;
};
nm-applet.enable = true;
nm-applet.enable = false;
};
security = {