super + enter to switch keyboard layouts

This commit is contained in:
2026-08-23 21:47:45 -07:00
parent 908876a7b8
commit 295a437043
6 changed files with 27 additions and 3 deletions

View File

@@ -191,3 +191,14 @@ bind("SUPER + SUPER_R", hl.dsp.workspace.toggle_special(), {device = {inclusive
-- Global back and forward binds -- Global back and forward binds
bind('ALT + SLASH', hl.dsp.send_shortcut({mods = 'ALT', key = 'LEFT'})) bind('ALT + SLASH', hl.dsp.send_shortcut({mods = 'ALT', key = 'LEFT'}))
bind('ALT + EQUAL', hl.dsp.send_shortcut({mods = 'ALT', key = 'RIGHT'})) bind('ALT + EQUAL', hl.dsp.send_shortcut({mods = 'ALT', key = 'RIGHT'}))
-- Switch keyboard layouts
bind('SUPER + RETURN', function()
if hl.get_config('input.kb_variant') == 'dvorak' then
hl.config({input = {kb_variant = ''}})
hl.exec_cmd('notify-send -i input-keyboard "Keyboard layout changed" "QWERTY"')
else
hl.config({input = {kb_variant = 'dvorak'}})
hl.exec_cmd('notify-send -i input-keyboard "Keyboard layout changed" "Dvorak"')
end
end)

View File

@@ -36,6 +36,7 @@ hl.config({
render_power = 3, render_power = 3,
color = "#00000088", color = "#00000088",
}, },
-- screen_shader = 'shader.frag',
}, },
dwindle = { dwindle = {
preserve_split = true, preserve_split = true,
@@ -64,6 +65,7 @@ hl.config({
persistent_warps = true, persistent_warps = true,
zoom_detached_camera = false, zoom_detached_camera = false,
zoom_disable_aa = false, zoom_disable_aa = false,
no_hardware_cursors = 1,
}, },
xwayland = { xwayland = {
force_zero_scaling = true, force_zero_scaling = true,

View File

@@ -8,10 +8,10 @@ hl.on("hyprland.start", function()
hl.exec_cmd("kanshi") hl.exec_cmd("kanshi")
end) end)
hl.env("XCURSOR_SIZE", "22")
hl.env("XCURSOR_THEME", "GoogleDot-Black")
hl.env("GTK_THEME", "Graphite-Dark") hl.env("GTK_THEME", "Graphite-Dark")
hl.env("GTK_ICON_THEME", "YAMIS") hl.env("GTK_ICON_THEME", "YAMIS")
hl.env("XCURSOR_SIZE", "22")
hl.env("XCURSOR_THEME", "GoogleDot-black")
hl.env("HYPRCURSOR_SIZE", "22") hl.env("HYPRCURSOR_SIZE", "22")
hl.env("HYPRCURSOR_THEME", "GoogleDot-hypr") hl.env("HYPRCURSOR_THEME", "GoogleDot-hypr")
hl.env("QT_QPA_PLATFORMTHEME", "gtk3") hl.env("QT_QPA_PLATFORMTHEME", "gtk3")

View File

@@ -5,6 +5,11 @@ hl.config({
} }
}) })
hl.device({
name = '-usb-optical-mouse',
sensitivity = -0.5
})
bind("KP_ADD", hl.dsp.exec_cmd("pkill -SIGUSR1 -x gpu-screen-reco")) bind("KP_ADD", hl.dsp.exec_cmd("pkill -SIGUSR1 -x gpu-screen-reco"))
bind("SUPER + F7", hl.dsp.exec_cmd("pkill -x quickshell; quickshell")) bind("SUPER + F7", hl.dsp.exec_cmd("pkill -x quickshell; quickshell"))

View File

@@ -93,6 +93,13 @@ hl.window_rule({
}, },
decorate = false, decorate = false,
}) })
hl.window_rule({
match = {
title = '.*\'s Stream'
},
pin = true,
float = true
})
hl.layer_rule({ hl.layer_rule({
match = { namespace = "quickshell" }, match = { namespace = "quickshell" },
no_anim = true no_anim = true

View File

@@ -2,7 +2,6 @@
# Setups # Setups
format="$directory$git_branch$character" format="$directory$git_branch$character"
right_format = "$sudo$cmd_duration"
# add_newline = false # add_newline = false
# Other languages configurations: # Other languages configurations: