diff --git a/.config/hypr/autostart.lua b/.config/hypr/autostart.lua new file mode 100644 index 0000000..4ca6374 --- /dev/null +++ b/.config/hypr/autostart.lua @@ -0,0 +1,12 @@ +hl.on("hyprland.start", function() + hl.exec_cmd("uwsm-app -- hypridle") + hl.exec_cmd("uwsm-app -- mako") + hl.exec_cmd("uwsm-app -- hyprsunset") + hl.exec_cmd("uwsm-app -- fcitx5 --disable notificationitem") + hl.exec_cmd("uwsm-app -- Enpass -minimize") + hl.exec_cmd("uwsm-app -- Steam") + hl.exec_cmd("nextcloud") + hl.exec_cmd("station-bg-random") + hl.exec_cmd("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1") + hl.exec_cmd("dbus-update-activation-environment --systemd --all") +end) diff --git a/.config/hypr/hyprland.lua b/.config/hypr/hyprland.lua index 24f4971..0b35ed7 100644 --- a/.config/hypr/hyprland.lua +++ b/.config/hypr/hyprland.lua @@ -1,15 +1,4 @@ -hl.on("hyprland.start", function() - hl.exec_cmd("uwsm-app -- hypridle") - hl.exec_cmd("uwsm-app -- mako") - hl.exec_cmd("uwsm-app -- hyprsunset") - hl.exec_cmd("uwsm-app -- fcitx5 --disable notificationitem") - hl.exec_cmd("Enpass -minimize") - hl.exec_cmd("nextcloud") - hl.exec_cmd("station-bg-random") - hl.exec_cmd("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1") - hl.exec_cmd("dbus-update-activation-environment --systemd --all") -end) - +require("autostart") require("bindings") require("envs") require("looknfeel") diff --git a/.config/hypr/input.lua b/.config/hypr/input.lua index f492140..46c770b 100644 --- a/.config/hypr/input.lua +++ b/.config/hypr/input.lua @@ -86,3 +86,18 @@ hl.window_rule({ -- direction = "horizontal", -- action = "workspace", -- }) + +for _, tablet in ipairs({ "wacom-intuos-pro-s-pen", "wacom-intuos-pro-s-(wl)-pen" }) do + local monitor_id = "DP-1" + local monitor = hl.get_monitor(monitor_id) + local ratio = monitor.width / monitor.height + local tablet_size = { width = 157.48, height = 98.425 } + local new_tablet_height = tablet_size.width / ratio + + hl.device({ + name = tablet, + output = monitor_id, + active_area_size = { tablet_size.width, new_tablet_height }, + active_area_position = { 0.0, (tablet_size.height - new_tablet_height) / 2 }, + }) +end