super + enter to switch keyboard layouts
This commit is contained in:
@@ -191,3 +191,14 @@ bind("SUPER + SUPER_R", hl.dsp.workspace.toggle_special(), {device = {inclusive
|
||||
-- Global back and forward binds
|
||||
bind('ALT + SLASH', hl.dsp.send_shortcut({mods = 'ALT', key = 'LEFT'}))
|
||||
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)
|
||||
|
||||
@@ -36,6 +36,7 @@ hl.config({
|
||||
render_power = 3,
|
||||
color = "#00000088",
|
||||
},
|
||||
-- screen_shader = 'shader.frag',
|
||||
},
|
||||
dwindle = {
|
||||
preserve_split = true,
|
||||
@@ -64,6 +65,7 @@ hl.config({
|
||||
persistent_warps = true,
|
||||
zoom_detached_camera = false,
|
||||
zoom_disable_aa = false,
|
||||
no_hardware_cursors = 1,
|
||||
},
|
||||
xwayland = {
|
||||
force_zero_scaling = true,
|
||||
|
||||
@@ -8,10 +8,10 @@ hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("kanshi")
|
||||
end)
|
||||
|
||||
hl.env("XCURSOR_SIZE", "22")
|
||||
hl.env("XCURSOR_THEME", "GoogleDot-Black")
|
||||
hl.env("GTK_THEME", "Graphite-Dark")
|
||||
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_THEME", "GoogleDot-hypr")
|
||||
hl.env("QT_QPA_PLATFORMTHEME", "gtk3")
|
||||
|
||||
@@ -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("SUPER + F7", hl.dsp.exec_cmd("pkill -x quickshell; quickshell"))
|
||||
|
||||
@@ -93,6 +93,13 @@ hl.window_rule({
|
||||
},
|
||||
decorate = false,
|
||||
})
|
||||
hl.window_rule({
|
||||
match = {
|
||||
title = '.*\'s Stream'
|
||||
},
|
||||
pin = true,
|
||||
float = true
|
||||
})
|
||||
hl.layer_rule({
|
||||
match = { namespace = "quickshell" },
|
||||
no_anim = true
|
||||
|
||||
Reference in New Issue
Block a user