[hypr] Fix modes
This commit is contained in:
parent
bc2f9752ce
commit
65e6b9cab9
4 changed files with 46 additions and 22 deletions
|
|
@ -270,23 +270,7 @@ $lock = swaylock
|
||||||
|
|
||||||
source = /home/tdpeuter/.config/hypr/input-output.conf
|
source = /home/tdpeuter/.config/hypr/input-output.conf
|
||||||
source = /home/tdpeuter/.config/hypr/keybinds.conf
|
source = /home/tdpeuter/.config/hypr/keybinds.conf
|
||||||
|
source = /home/tdpeuter/.config/hypr/modes.conf
|
||||||
$mode_launcher = Launch (f)irefox, (t)hunderbird.
|
|
||||||
bind = $flag, O, submap, $mode_launcher
|
|
||||||
submap = $mode_launcher
|
|
||||||
|
|
||||||
bind = , F, exec, firefox
|
|
||||||
bind = , F, submap, reset
|
|
||||||
bind = , T, exec, thunderbird
|
|
||||||
bind = , T, submap, reset
|
|
||||||
bind = , Z, exec, zen
|
|
||||||
bind = , Z, submap, reset
|
|
||||||
|
|
||||||
bind = $flag, O, submap, reset
|
|
||||||
bind = , Escape, submap, reset
|
|
||||||
bind = , Return, submap, reset
|
|
||||||
|
|
||||||
submap = reset
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Nvidia/#environment-variables
|
# https://wiki.hyprland.org/Nvidia/#environment-variables
|
||||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||||
|
|
|
||||||
|
|
@ -58,9 +58,8 @@ bind = $flag, s, setfloating
|
||||||
bind = $flag+Shift, s, pin
|
bind = $flag+Shift, s, pin
|
||||||
bind = $flag+Shift, s, settiled
|
bind = $flag+Shift, s, settiled
|
||||||
|
|
||||||
bind = $flag, F11, fullscreen, 1
|
bind = $flag, F11, fullscreen, 1
|
||||||
# bind = $flag, Prior, fullscreen, 1
|
bind = $flag+Shift, F11, fullscreen, 0
|
||||||
# bind = $flag, KP_Prior, fullscreen, 1
|
|
||||||
|
|
||||||
# Workspaces
|
# Workspaces
|
||||||
|
|
||||||
|
|
@ -158,9 +157,9 @@ bind = , XF86Calculator, exec, qalculate-gtk
|
||||||
# Shortcuts
|
# Shortcuts
|
||||||
|
|
||||||
# Reload
|
# Reload
|
||||||
bind = Alt+Shift, r, exec, "hyperctl reload"
|
bind = Alt+Shift, r, exec, "hyperctl reload"
|
||||||
bind = Ctrl+Alt+Shift, r, forcerendererreload
|
bind = Ctrl+Alt+Shift, r, forcerendererreload
|
||||||
bind = Alt+Shift, e, exit
|
bind = Alt+Shift, e, exit
|
||||||
|
|
||||||
# Kill a window
|
# Kill a window
|
||||||
bind = $flag, q, closewindow, activewindow
|
bind = $flag, q, closewindow, activewindow
|
||||||
|
|
|
||||||
38
stow/hyprland/.config/hypr/modes.conf
Normal file
38
stow/hyprland/.config/hypr/modes.conf
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
# System actions
|
||||||
|
$mode_system = System (l)ock, (s)leep, (h)ibernate, (r)eboot, (Shift+s)hutdown
|
||||||
|
bind = Ctrl+Alt, Delete, submap, $mode_system
|
||||||
|
submap = $mode_system
|
||||||
|
|
||||||
|
bind = , l, exec, $lock
|
||||||
|
bind = , l, submap, reset
|
||||||
|
bind = , s, exec, $lock, exec, systemctl suspend
|
||||||
|
bind = , s, submap, reset
|
||||||
|
bind = , h, exec, $lock, exec, systemctl hibernate
|
||||||
|
bind = , h, submap, reset
|
||||||
|
bind = , r, exec, systemctl reboot
|
||||||
|
bind = Shift, s, exec, systemctl poweroff -i
|
||||||
|
|
||||||
|
bind = Ctrl+Alt, Delete, submap, reset
|
||||||
|
bind = , Escape, submap, reset
|
||||||
|
bind = , Return, submap, reset
|
||||||
|
|
||||||
|
submap = reset
|
||||||
|
|
||||||
|
# Launcher
|
||||||
|
$mode_launcher = Launch (f)irefox, (t)hunderbird.
|
||||||
|
bind = $flag, O, submap, $mode_launcher
|
||||||
|
submap = $mode_launcher
|
||||||
|
|
||||||
|
bind = , F, exec, firefox
|
||||||
|
bind = , F, submap, reset
|
||||||
|
bind = , T, exec, thunderbird
|
||||||
|
bind = , T, submap, reset
|
||||||
|
bind = , Z, exec, zen
|
||||||
|
bind = , Z, submap, reset
|
||||||
|
|
||||||
|
bind = $flag, O, submap, reset
|
||||||
|
bind = , Escape, submap, reset
|
||||||
|
bind = , Return, submap, reset
|
||||||
|
|
||||||
|
submap = reset
|
||||||
|
|
||||||
|
|
@ -40,11 +40,14 @@
|
||||||
"sway/window",
|
"sway/window",
|
||||||
"group/workspaces",
|
"group/workspaces",
|
||||||
"custom/scratchpad-indicator",
|
"custom/scratchpad-indicator",
|
||||||
|
"group/mode"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"mpris"
|
"mpris"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
|
"keyboard-state#numlock",
|
||||||
|
"keyboard-state#capslock",
|
||||||
"privacy",
|
"privacy",
|
||||||
"tray",
|
"tray",
|
||||||
"group/control-center",
|
"group/control-center",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue