Tablet stuff
This commit is contained in:
@@ -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)
|
||||||
@@ -1,15 +1,4 @@
|
|||||||
hl.on("hyprland.start", function()
|
require("autostart")
|
||||||
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("bindings")
|
require("bindings")
|
||||||
require("envs")
|
require("envs")
|
||||||
require("looknfeel")
|
require("looknfeel")
|
||||||
|
|||||||
@@ -86,3 +86,18 @@ hl.window_rule({
|
|||||||
-- direction = "horizontal",
|
-- direction = "horizontal",
|
||||||
-- action = "workspace",
|
-- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user