migrate bindings
This commit is contained in:
parent
e13521500e
commit
6e696aac7e
2 changed files with 70 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
require("hyprland.bindings")
|
||||||
local M = require("colors")
|
local M = require("colors")
|
||||||
|
|
||||||
-- monitors https://wiki.hypr.land/Configuring/Basics/Monitors/
|
-- monitors https://wiki.hypr.land/Configuring/Basics/Monitors/
|
||||||
|
|
|
||||||
69
hypr/hyprland/bindings.lua
Normal file
69
hypr/hyprland/bindings.lua
Normal file
|
|
@ -0,0 +1,69 @@
|
||||||
|
hl.bind("SUPER + mouse:272", hl.dsp.window.drag(), { mouse = true })
|
||||||
|
hl.bind("SUPER + mouse:273", hl.dsp.window.resize(), { mouse = true })
|
||||||
|
|
||||||
|
hl.bind(
|
||||||
|
"SUPER + F10",
|
||||||
|
hl.dsp.send_shortcut({ mods = "CTRL", key = "F10", window = "class:^(com\\.obsproject\\.Studio)$" })
|
||||||
|
)
|
||||||
|
hl.bind("CTRL + SHIFT + M", hl.dsp.pass({ window = "initialClass: discord" }))
|
||||||
|
|
||||||
|
hl.bind("SUPER + ESCAPE", hl.dsp.global("lux:power-menu"))
|
||||||
|
hl.bind("SUPER + R", hl.dsp.global("lux:launcher"))
|
||||||
|
hl.bind("SUPER + M", hl.dsp.global("lux:pomodoro"))
|
||||||
|
hl.bind("SUPER + W", hl.dsp.global("lux:storybook"))
|
||||||
|
hl.bind("SUPER + grave", hl.dsp.global("lux:configuration"))
|
||||||
|
|
||||||
|
hl.bind("SUPER + T", hl.dsp.exec_cmd("alacritty"))
|
||||||
|
hl.bind("SUPER + X", hl.dsp.window.kill())
|
||||||
|
hl.bind("SUPER + E", hl.dsp.exec_cmd("nautilus"))
|
||||||
|
hl.bind("SUPER + F", hl.dsp.window.float())
|
||||||
|
hl.bind("SUPER + CTRL + F", hl.dsp.window.fullscreen())
|
||||||
|
hl.bind("SUPER + P", hl.dsp.window.pseudo())
|
||||||
|
-- hl.bind("SUPER + V", hl.dsp.window.)
|
||||||
|
hl.bind("SUPER + L", hl.dsp.exec_cmd("hyprlock"))
|
||||||
|
hl.bind("SUPER + period", hl.dsp.exec_cmd("gnome-characters"))
|
||||||
|
hl.bind("SUPER + B", hl.dsp.exec_cmd("zen-browser"))
|
||||||
|
hl.bind("PRINT", hl.dsp.exec_cmd('grim -g "$(slurp)" - | swappy -f -'))
|
||||||
|
|
||||||
|
hl.bind("CTRL + ALT + left", hl.dsp.focus({ workspace = "e-1" }))
|
||||||
|
hl.bind("CTRL + ALT + right", hl.dsp.focus({ workspace = "e+1" }))
|
||||||
|
hl.bind("SUPER + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
|
||||||
|
hl.bind("SUPER + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
|
||||||
|
|
||||||
|
hl.bind("SUPER + 1", hl.dsp.focus({ workspace = "1" }))
|
||||||
|
hl.bind("SUPER + 2", hl.dsp.focus({ workspace = "2" }))
|
||||||
|
hl.bind("SUPER + 3", hl.dsp.focus({ workspace = "3" }))
|
||||||
|
hl.bind("SUPER + 4", hl.dsp.focus({ workspace = "4" }))
|
||||||
|
hl.bind("SUPER + 5", hl.dsp.focus({ workspace = "5" }))
|
||||||
|
hl.bind("SUPER + 6", hl.dsp.focus({ workspace = "6" }))
|
||||||
|
hl.bind("SUPER + 7", hl.dsp.focus({ workspace = "7" }))
|
||||||
|
hl.bind("SUPER + 8", hl.dsp.focus({ workspace = "8" }))
|
||||||
|
hl.bind("SUPER + 9", hl.dsp.focus({ workspace = "9" }))
|
||||||
|
hl.bind("SUPER + 0", hl.dsp.focus({ workspace = "10" }))
|
||||||
|
|
||||||
|
hl.bind("SUPER + SHIFT + 1", hl.dsp.window.move({ workspace = "1" }))
|
||||||
|
hl.bind("SUPER + SHIFT + 2", hl.dsp.window.move({ workspace = "2" }))
|
||||||
|
hl.bind("SUPER + SHIFT + 3", hl.dsp.window.move({ workspace = "3" }))
|
||||||
|
hl.bind("SUPER + SHIFT + 4", hl.dsp.window.move({ workspace = "4" }))
|
||||||
|
hl.bind("SUPER + SHIFT + 5", hl.dsp.window.move({ workspace = "5" }))
|
||||||
|
hl.bind("SUPER + SHIFT + 6", hl.dsp.window.move({ workspace = "6" }))
|
||||||
|
hl.bind("SUPER + SHIFT + 7", hl.dsp.window.move({ workspace = "7" }))
|
||||||
|
hl.bind("SUPER + SHIFT + 8", hl.dsp.window.move({ workspace = "8" }))
|
||||||
|
hl.bind("SUPER + SHIFT + 9", hl.dsp.window.move({ workspace = "9" }))
|
||||||
|
hl.bind("SUPER + SHIFT + 0", hl.dsp.window.move({ workspace = "10" }))
|
||||||
|
|
||||||
|
hl.bind("SUPER + left", hl.dsp.focus({ direction = "l" }))
|
||||||
|
hl.bind("SUPER + right", hl.dsp.focus({ direction = "r" }))
|
||||||
|
hl.bind("SUPER + up", hl.dsp.focus({ direction = "u" }))
|
||||||
|
hl.bind("SUPER + down", hl.dsp.focus({ direction = "d" }))
|
||||||
|
|
||||||
|
hl.bind("CTRL + SUPER + T", hl.dsp.workspace.toggle_special("terminal"))
|
||||||
|
hl.bind("CTRL + SUPER + M", hl.dsp.workspace.toggle_special("music"))
|
||||||
|
|
||||||
|
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+"))
|
||||||
|
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"))
|
||||||
|
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"))
|
||||||
|
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"))
|
||||||
|
-- hl.bind("XF86AudioStop", hl.dsp.exec_cmd(""))
|
||||||
|
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"))
|
||||||
|
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue