mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-09-20 05:16:17 -07:00
update
This commit is contained in:
@@ -68,11 +68,8 @@ $notification_daemon = uwsm app -- swaync -c ~/.config/swaync/config.json
|
||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||
# Or execute your favorite apps at launch like this:
|
||||
|
||||
exec-once = uwsm app -sb -- hyprpm update -n
|
||||
exec-once = uwsm app -sb -- hyprpm reload -n
|
||||
exec-once = $notification_daemon
|
||||
exec-once = $terminal
|
||||
exec-once = uwsm app -sb -S both -t scope -- hyprpm update -n
|
||||
exec-once = uwsm app -sb -S both -t scope -- hyprpm reload -n
|
||||
exec-once = uwsm app -sb -t service -- nm-applet
|
||||
exec-once = uwsm app -sb -t service -- waybar -c ~/.config/waybar/catppuccin-macchiato/config.jsonc -s ~/.config/waybar/catppuccin-macchiato/style.css
|
||||
|
||||
@@ -404,11 +404,8 @@ hl.config({
|
||||
})
|
||||
|
||||
hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("uwsm app -sb -- hyprpm update -n")
|
||||
hl.exec_cmd("uwsm app -sb -- hyprpm reload -n")
|
||||
hl.exec_cmd(notification_daemon)
|
||||
hl.exec_cmd(terminal)
|
||||
hl.exec_cmd("uwsm app -sb -S both -t scope -- hyprpm update -n")
|
||||
hl.exec_cmd("uwsm app -sb -S both -t scope -- hyprpm reload -n")
|
||||
hl.exec_cmd("uwsm app -sb -t service -- nm-applet")
|
||||
hl.exec_cmd(
|
||||
|
||||
@@ -209,11 +209,15 @@ hl.bind(mainMod .. " + a", hl.dsp.exec_cmd("~/.config/rofi/scripts/rofi-anki-scr
|
||||
-- hl.bind("mouse:276", hl.dsp.exec_cmd("xdotool key alt+grave"), { locked = true })
|
||||
hl.bind("ALT + g", hl.dsp.exec_cmd("/opt/mpv-yomitan/mpv-yomitan.AppImage --toggle"))
|
||||
|
||||
-- Hold Left Shift to show the GSM overlay while this submap is active.
|
||||
hl.bind("SUPER + g", hl.dsp.submap("gsm"))
|
||||
hl.define_submap("gsm", function()
|
||||
hl.bind("CTRL + SHIFT + g", hl.dsp.exec_cmd("~/.local/bin/gsm-ocr-command menu_ocr"))
|
||||
hl.bind("CTRL + SHIFT + o", hl.dsp.exec_cmd("~/.local/bin/gsm-ocr-command area_select_ocr"))
|
||||
hl.bind("ALT + t", hl.dsp.global("com.beangate.gamesentenceminer:gsm:app:translate"))
|
||||
hl.bind("SUPER + SHIFT + g", hl.dsp.submap("reset"))
|
||||
hl.bind("SHIFT + Shift_L", hl.dsp.pass({ window = "class:^(gsm_overlay)$" }))
|
||||
hl.bind("SHIFT + Shift_L", hl.dsp.global("com.beangate.gamesentenceminer:gsm:manual-show"))
|
||||
hl.bind("SHIFT + SPACE", hl.dsp.global("com.beangate.gamesentenceminer:gsm:manual-show"))
|
||||
hl.bind("code:276", hl.dsp.global("com.beangate.gamesentenceminer:gsm:manual-show"))
|
||||
end)
|
||||
|
||||
hl.bind("ALT + SHIFT + f", hl.dsp.exec_cmd("uwsm app -sb -- flameshot gui"))
|
||||
|
||||
@@ -297,6 +297,27 @@ hl.window_rule({
|
||||
-- }}}
|
||||
|
||||
-- {{{ GSM Overlay and LunaTranslator tweaks
|
||||
-- Open the GSM overlay at its manually aligned screen position.
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "com.beangate.gamesentenceminer",
|
||||
title = "^GSM Overlay$",
|
||||
},
|
||||
move = "4 3",
|
||||
no_initial_focus = false,
|
||||
focus_on_activate = true,
|
||||
stay_focused = true,
|
||||
})
|
||||
|
||||
-- Raise on open; the overlay rule retains focus until it is hidden.
|
||||
hl.on("window.open", function(window)
|
||||
if window.class ~= "com.beangate.gamesentenceminer" or window.title ~= "GSM Overlay" then
|
||||
return
|
||||
end
|
||||
hl.dispatch(hl.dsp.focus({ window = window }))
|
||||
hl.dispatch(hl.dsp.window.alter_zorder({ window = window, mode = "top" }))
|
||||
end)
|
||||
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "com.beangate.gamesentenceminer",
|
||||
|
||||
Reference in New Issue
Block a user