mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-10-21 11:01:25 -07:00
Merge branch 'master' of github.com:ksyasuda/dotfiles
This commit is contained in:
8 files changed
+141
-33
No files matched your search
@@ -416,4 +416,6 @@ hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("uwsm app -sb -t service -- tailscale systray")
|
||||
hl.exec_cmd("~/.local/bin/aria")
|
||||
end)
|
||||
|
||||
hl.bind("SHIFT + SUPER + 4", hl.dsp.global("com.t3tools.T3Code:capture-window"))
|
||||
pcall(require, "/home/sudacode/.config/hypr/openwhispr-binds.lua")
|
||||
@@ -40,17 +40,26 @@ hl.bind(mainMod .. " + SHIFT + c", hl.dsp.window.center())
|
||||
hl.bind("CTRL+ALT + j", hl.dsp.focus({ monitor = "r" }))
|
||||
hl.bind("CTRL+ALT + k", hl.dsp.focus({ monitor = "l" }))
|
||||
|
||||
-- Switch workspaces with mainMod + [0-9]
|
||||
for i = 1, 10 do
|
||||
local key = i % 10
|
||||
hl.bind(
|
||||
mainMod .. " + " .. key,
|
||||
hl.dsp.focus({
|
||||
workspace = i,
|
||||
silent = true,
|
||||
})
|
||||
)
|
||||
-- Keep workspace switching available in the default and GSM submaps.
|
||||
local function bindWorkspaceSwitching()
|
||||
-- Switch workspaces with mainMod + [0-9]
|
||||
for i = 1, 10 do
|
||||
local key = i % 10
|
||||
hl.bind(
|
||||
mainMod .. " + " .. key,
|
||||
hl.dsp.focus({
|
||||
workspace = i,
|
||||
silent = true,
|
||||
})
|
||||
)
|
||||
end
|
||||
|
||||
-- Scroll through existing workspaces with mainMod + scroll
|
||||
hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
|
||||
hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
||||
end
|
||||
bindWorkspaceSwitching()
|
||||
|
||||
-- Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
for i = 1, 10 do
|
||||
local key = i % 10 -- workspace 10 maps to key 0
|
||||
@@ -68,10 +77,6 @@ end
|
||||
-- hl.bind("SUPER + S", hl.dsp.workspace.toggle_special("magic"))
|
||||
-- hl.bind("CTRL + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" }))
|
||||
|
||||
-- Scroll through existing workspaces with mainMod + scroll
|
||||
hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
|
||||
hl.bind(mainMod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
||||
|
||||
-- Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
hl.bind(mainMod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||
hl.bind(mainMod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||
@@ -211,6 +216,7 @@ hl.bind("ALT + g", hl.dsp.exec_cmd("/opt/mpv-yomitan/mpv-yomitan.AppImage --togg
|
||||
|
||||
hl.bind("SUPER + g", hl.dsp.submap("gsm"))
|
||||
hl.define_submap("gsm", function()
|
||||
bindWorkspaceSwitching()
|
||||
hl.bind("ALT + f", hl.dsp.window.fullscreen(""))
|
||||
hl.bind("SUPER + SHIFT + s", hl.dsp.exec_cmd([[sh -c 'grim -g "$(slurp -d)" - | wl-copy']]))
|
||||
hl.bind("CTRL + SHIFT + g", hl.dsp.exec_cmd("~/.local/bin/gsm-ocr-command menu_ocr"))
|
||||
|
||||
@@ -310,12 +310,13 @@ hl.window_rule({
|
||||
stay_focused = true,
|
||||
})
|
||||
|
||||
-- Open the GSM overlay at its manually aligned screen position.
|
||||
-- Open the GSM overlay on workspace 6 at its manually aligned screen position.
|
||||
hl.window_rule({
|
||||
match = {
|
||||
class = "com.beangate.gamesentenceminer",
|
||||
title = "^GSM Overlay$",
|
||||
},
|
||||
workspace = "6",
|
||||
move = "4 3",
|
||||
no_initial_focus = false,
|
||||
focus_on_activate = true,
|
||||
|
||||
@@ -38,7 +38,7 @@ window {
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
width: 46.65%;
|
||||
height: 44%;
|
||||
height: 50%;
|
||||
x-offset: 0px;
|
||||
y-offset: 0px;
|
||||
|
||||
@@ -61,14 +61,14 @@ mainbox {
|
||||
imagebox {
|
||||
padding: 24px;
|
||||
background-color: transparent;
|
||||
background-image: url("~/.config/rofi/images/oshinoko.png", both);
|
||||
background-image: url("~/.config/rofi/images/oshinoko-full-body.png", both);
|
||||
orientation: vertical;
|
||||
children: [ "inputbar", "dummy", "mode-switcher" ];
|
||||
}
|
||||
|
||||
listbox {
|
||||
spacing: 20px;
|
||||
padding: 20px;
|
||||
padding: 34px 20px 20px;
|
||||
background-color: transparent;
|
||||
orientation: vertical;
|
||||
children: [ "message", "listview" ];
|
||||
|
||||
Reference in new issue
Block a user