diff --git a/devices.lua b/devices.lua new file mode 100644 index 0000000..03e7f69 --- /dev/null +++ b/devices.lua @@ -0,0 +1,22 @@ +hl.config({ + input = { + + -- keyboard + kb_layout = "de", + kb_options = "caps:swapescape", + numlock_by_default = true, + + -- Cursor + focus_on_close = 2, + follow_mouse = 1, + + touchpad = { + natural_scroll = true, + disable_while_typing = true, + }, + }, +}) + +return { + start = function() end, +} diff --git a/flake.nix b/flake.nix index 6de51b7..45545b2 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,10 @@ runtimePackages = with pkgs; [ swaybg + quickshell + waybar + networkmanagerapplet + blueman ]; runtimePath = pkgs.lib.makeBinPath runtimePackages; diff --git a/hyprland.lua b/hyprland.lua index 6a665fa..7a37b67 100644 --- a/hyprland.lua +++ b/hyprland.lua @@ -1,8 +1,10 @@ +-- Module devices local monitor = require("monitor") local background = require("background") local status_bar = require("status_bar") +local devices = require("devices") --- on event +-- On event hl.on("hyprland.start", function() monitor.start() background.start() diff --git a/status_bar.lua b/status_bar.lua index 0477db8..d32a4de 100644 --- a/status_bar.lua +++ b/status_bar.lua @@ -1,5 +1,7 @@ return { start = function() hl.exec_cmd("waybar") + hl.exec_cmd("nm-applet --indicator") + hl.exec_cmd("blueman-applet") end, }