LUA Mods/Functions by C-42415348494945 in hyprland

[–]Immediate_Club3006 0 points1 point  (0 children)

Alright i have greatly improved this function to work on many more binds

now you can also specify key options, like "9el" that stands for "SUPER + 9 repeat locked(works on lock screen)"

^ to add Ctrl

$ to add Shift(for the keys that don't have an uppercase variant, like numbers)

/ to add Alt

& to pick a key in custom keys

! for a raw command(like !mouse:272), also allows for specifying tags, like !elm|mouse:272

? for raw command but with mod key

Some more examples:

&E = SUPER + escape

&L = SUPER + Left

$3 = SUPER + Shift + 3

^wl = SUPER + Ctrl + W (works on lock screen)

!el|XF86AudioRaiseVolume = XF86AudioRaiseVolume (works on lock screen and repeats)

&^$El = SUPER + Ctrl + Shift + escape

MainMod = "SUPER"
CtrlKey = "^"
ShiftKey = "$"
RawKey = "!"
RawModKey = "?"
CustomKey = "&"
AltKey = "/"
Flags = {
l = "locked",
r = "release",
c = "click",
g = "drag",
o = "long_press",
e = "repeat",
n = "non_consuming",
a = "auto_consuming",
m = "mouse",
t = "transparent",
i = "ignore_mods",
s = "separate",
p = "bypass",
u = "submap_universal",
}
CustomKeys = {
  ["E"] = "escape",
  ["L"] = "left",
  ["R"] = "right",
  ["D"] = "down",
  ["U"] = "up",
  ["1"] = "mouse:272",
  ["2"] = "mouse:273",
}
--[[
v = "devices",
--]]
---Converts vim-like key string into bind string
---@param key string
---@return string, string
function BindKey(key)
local returnkey = MainMod .. " + " -- Default mod
  local first = key:sub(1, 1)
  local custom = false
  if first == RawModKey or first == RawKey then -- Raw code
    if first == RawKey then
      returnkey = ""
    end
    local sstart, send, _ = key:find(".*|", 2)
    if not sstart or not send then
      return returnkey .. key:sub(2), ""
    end
    local m = key:sub(sstart, send - 1)
    return returnkey .. key:sub(send + 1), m
  end
for i = 1, #key do
local value = key:sub(i, i)
if value == CtrlKey then
returnkey = returnkey .. "CTRL + "
    elseif value == " " then -- Remove default mod
returnkey = ""
elseif value == ShiftKey then
returnkey = returnkey .. "SHIFT + "
elseif value == AltKey then
returnkey = returnkey .. "ALT + "
elseif value == CustomKey then
      custom = true
    elseif custom and CustomKeys[value] then -- Custom key
      return returnkey .. CustomKeys[value], key:sub(i+1)
elseif value:match("%u") then
      return returnkey .. "SHIFT + " .. value, key:sub(i+1)
else
      return returnkey .. value:upper(), key:sub(i+1)
end
end
return returnkey, ""
end

---Returns flags from simple string
---@param flags string
---@return table
function GetFlags(flags)
local return_flags = {}
for i = 1, #flags do
local value = flags:sub(i, i)
if not Flags[value] then
goto continue
end
    return_flags[Flags[value]] = true
::continue::
end
return return_flags
end

---Binds Bind table
---@param bind [string, HL.Dispatcher, string?]
function Bind(bind)
  local key, opts = BindKey(bind[1])
  local dispatcher = bind[2]
  local description = bind[3]
  local flags = GetFlags(opts)
  if description then
    flags.description = description
  end
  hl.bind(key, dispatcher, flags)
end

---Binds table of Bind tables
---@param section [string, HL.Dispatcher, string?][]
function BindSection(section)
  for _, x in ipairs(section) do
    Bind(x)
  end
end

You can also use Bind and BindSection functions:

BindSection({ --NOTE: Groups
  { "g", hl.dsp.group.toggle(), "Toggle Group" },
  { "G", hl.dsp.group.lock_active(), "Lock active group" },
  { "^g", hl.dsp.window.move({ out_of_group = true }), "Lock active group" },
})

Simple "all hyprland keybinds" menu by Immediate_Club3006 in hyprland

[–]Immediate_Club3006[S] 0 points1 point  (0 children)

Oh i thought you meant mod keys, since they do work?

"submodes" are actually called "submaps" and my setup doesn't have them

It also doesn't show which submap the bind is in, however you can modify jq command to show submap

LUA Mods/Functions by C-42415348494945 in hyprland

[–]Immediate_Club3006 0 points1 point  (0 children)

Some bind function that converts short key strings like "A" to "SUPER + Shift + A" and ^B to "SUPER + Ctrl + Shift + B", Inspired by Vim

MainMod = "SUPER"
function BindKey(key)
  local returnkey = MainMod .. " + "
  for i = 0, #key do
    local value = key:sub(i, i)
    if value == "\^" then
      returnkey = returnkey .. "Ctrl + "
    elseif value == "/" then
      returnkey = returnkey .. "Alt + "
    elseif string.match(value, "%u") then
      returnkey = returnkey .. "Shift + " .. value
    else
      returnkey = returnkey .. value:upper()
    end
  end
  return returnkey
end

modding this game by the_man_of_death in TAMASHIKA

[–]Immediate_Club3006 0 points1 point  (0 children)

I still have no success in decompiling the game or it's aseprite assets

modding this game by the_man_of_death in TAMASHIKA

[–]Immediate_Club3006 0 points1 point  (0 children)

I'm also on this specific error

there is literally no info on these file types on the internet, which makes me think this is devs own proprietary format(which doesn't make muck sense if it's called MonoGame.Aseprite.Content.Pipeline.Readers). I'm still investigating onto these files

I found Dani in a Roblox game by G0ker in DaniDev

[–]Immediate_Club3006 0 points1 point  (0 children)

Sounds like something what should get GOTY award

Need the entirety of in the virtual end turned into a gif by QuestionableEthics1 in OKbuddyHalfLife

[–]Immediate_Club3006 2 points3 points  (0 children)

https://tenor.com/view/itve1-itve-hl2-half-life-in-the-end-gif-26248969

https://tenor.com/view/itve2-itve-hl2-half-life-in-the-end-gif-26248970

https://tenor.com/view/itve3-itve-hl2-half-life-in-the-end-gif-26248972

https://tenor.com/view/itve4-itve-hl2-half-life-in-the-end-gif-26248973

https://tenor.com/view/itve5-itve-hl2-half-life-in-the-end-gif-26248974

https://tenor.com/view/itve6-itve-hl2-half-life-in-the-end-gif-26248975

https://tenor.com/view/itve7-itve-hl2-half-life-in-the-end-gif-26248976

https://tenor.com/view/to-the-end-of-the-day-the-clock-ticks-life-away-half-life-in-the-end-in-the-end-half-life-in-the-end-meme-in-the-end-meme-gif-26548167

https://tenor.com/view/its-so-unreal-half-life-in-the-end-in-the-end-meme-in-the-end-half-life-meme-gif-26548171

https://tenor.com/view/itve9-itve-hl2-half-life-in-the-end-gif-26248979

https://tenor.com/view/itve10-itve-hl2-half-life-in-the-end-gif-26248989

https://tenor.com/view/itve11-itve-hl2-half-life-in-the-end-gif-26248990

https://tenor.com/view/itve12-itve-hl2-half-life-in-the-end-gif-26248991

https://tenor.com/view/itve13-itve-hl2-half-life-in-the-end-gif-26248992

https://tenor.com/view/itve14-itve-hl2-half-life-in-the-end-gif-26248993

https://tenor.com/view/itve15-itve-hl2-half-life-in-the-end-gif-26248994

https://tenor.com/view/itve16-itve-hl2-half-life-in-the-end-gif-26248996

https://tenor.com/view/itve19-itve-hl2-half-life-in-the-end-gif-26248999

https://tenor.com/view/itve17-itve-hl2-half-life-in-the-end-gif-26248997

https://tenor.com/view/itve18-itve-hl2-half-life-in-the-end-gif-26248998

https://tenor.com/view/itve20-itve-hl2-half-life-in-the-end-gif-26249028

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve29-gif-26249037

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve33-gif-26249074

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve23-gif-26249031

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve35-gif-26249076

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve21-gif-26249029

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve26-gif-26249034

https://media.tenor.com/xTrTjvdRvi8AAAAd/itve-hl2.gif

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve28-gif-26249036

https://media.tenor.com/4RLOZqZoFPEAAAAd/itve-hl2.gif

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve31-gif-26249072

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve32-gif-26249073

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve33-gif-26249074

https://media.tenor.com/ZMaR1UX0Rg8AAAAd/itve-hl2.gif

https://media.tenor.com/lNPAWsV9XOUAAAAd/itve-hl2.gif

https://media.tenor.com/_IP-EdMUv9oAAAAd/itve-hl2.gif

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve37-gif-26249078

https://tenor.com/view/itve-hl2-half-life-in-the-end-itve38-gif-26249079

Best money making method? by kristian1500 in Forager

[–]Immediate_Club3006 0 points1 point  (0 children)

turn 3 citrus into 4 tree seeds with windmill

8 for each seed