@@ -11,6 +11,7 @@ in
home.file.".config/hypr/modules/misc.lua".source = ./lua/modules/misc.lua;
home.file.".config/hypr/modules/input.lua".source = ./lua/modules/input.lua;
home.file.".config/hypr/modules/keybindings.lua".source = ./lua/modules/keybindings.lua;
+ home.file.".config/hypr/modules/mousebindings.lua".source = ./lua/modules/mousebindings.lua;
home.file.".config/hypr/modules/windows_and_workspaces.lua".source = ./lua/modules/windows_and_workspaces.lua;
xdg = {
@@ -7,4 +7,5 @@ require("modules.look_and_feel")
require("modules.misc")
require("modules.input")
require("modules.keybindings")
+require("modules.mousebindings")
require("modules.windows_and_workspaces")
@@ -21,4 +21,4 @@ hl.gesture({
fingers = 3,
direction = "horizontal",
action = "workspace"
-})
+})
@@ -0,0 +1,20 @@
+hl.bind("mouse:275", function()
+ hl.exec_cmd("playerctl play-pause")
+end)
+
+hl.gesture({
+ fingers = 4,
+ direction = "up",
+ action = function()
+ hl.exec_cmd("playerctl previous")
+ end
+ direction = "down",
+ hl.exec_cmd("playerctl next")
@@ -1,5 +1,19 @@
{ pkgs, ... }:
{
- hardware.bluetooth.enable = true;
+ hardware.bluetooth = {
+ enable = true;
+ powerOnBoot = true;
+ settings = {
+ General = {
+ Enable = "Source,Sink,Media,Socket";
+ AutoConnect = true;
+ FastConnectable = true;
+ };
services.blueman.enable = true;
+ boot.extraModprobeConfig = ''
+ options btusb enable_autosuspend=0
+ '';
}