add Desktop Environment (hypr) settings

This commit is contained in:
fbachus
2024-11-08 18:53:43 +01:00
parent 6ea752e214
commit c8163e23b4
14 changed files with 1293 additions and 0 deletions

View File

@@ -0,0 +1,144 @@
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
source = ~/.config/hypr/apps.conf
$mainMod = SUPER
# Switch Keyboard Layout
# bind = $mainMod ALT_L, K, exec, hyprctl switchxkblayout holtek-usb-hid-keyboard next && hyprctl switchxkblayout at-translated-set-2-keyboard next
bind = $mainMod ALT_L, K, exec, hyprctl switchxkblayout holtek-usb-hid-keyboard next; hyprctl switchxkblayout holtek-usb-hid-keyboard-1 next; hyprctl switchxkblayout at-translated-set-2-keyboard next
# change volume with Volume Keys
# units: None(1% increases), dB, %(works as you'd expect on laptop, but on PC↓)
# percent increases (1%+-) lead to jumps to 10% or 90% on PC with Sharkoon
# keyboard, depending on whether you pressed VolUp or VolDown
# % is needed for the DragonFly, because it is too finegrained with 65k steps
binde = ,XF86AudioLowerVolume, exec, amixer -M -- set Master Playback Switch 1%-
binde = ,XF86AudioRaiseVolume, exec, amixer -M -- set Master Playback Switch 1%+
# Reduce effects for performance
bind = WIN, F1, exec, ~/.config/hypr/gamemode.sh
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, C, killactive,
bind = $mainMod, D, togglesplit, # dwindle
bind = ALT_L, F4, killactive
bind = ALT_L, SPACE, exec, $appLauncher
bind = ALT_L, F11, fullscreenstate, 0
bind = $mainMod, F11, fullscreenstate, 2 # maximize # fullscreen window w/o fullscreen mode
bind = $mainMod, up, fullscreenstate, 3 # maximize # fullscreen window w/o fullscreen mode
bind = ALT_L, TAB, cyclenext
# Move focus with mainMod + arrow keys
bind = $mainMod, h, movefocus, l
bind = $mainMod, j, movefocus, d
bind = $mainMod, k, movefocus, u
bind = $mainMod, l, movefocus, r
# Maximise / Minimise workaround
#bind = $mainMod, up, movetoworkspace, empty
bind = $mainMod, O, fullscreenstate, 1
# lock
bind = $mainMod, F12, exec, $lockscreen
# Move window in direction
bind = $mainMod SHIFT, h, swapwindow, l
bind = $mainMod SHIFT, j, swapwindow, d
bind = $mainMod SHIFT, k, swapwindow, u
bind = $mainMod SHIFT, l, swapwindow, r
# Move window to other screen
bind = $mainMod SHIFT, left, movewindow, mon:-1
bind = $mainMod SHIFT, right, movewindow, mon:+1
# Resize Window in direction
binde = $mainMod CTRL, h, resizeactive, -25 0
binde = $mainMod CTRL, j, resizeactive, 0 25
binde = $mainMod CTRL, k, resizeactive, 0 -25
binde = $mainMod CTRL, l, resizeactive, 25 0
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Move Window to new virtual workspace/ desktop
bind = $mainMod ALT_L, h, movetoworkspace, r-1
bind = $mainMod ALT_L, l, movetoworkspace, r+1
# Switch to next/previous virtual workspace/ desktop, ignore empty
bind = ALT_L, h, workspace, e-1
bind = ALT_L, l, workspace, e+1
# ----
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, S
bind = $mainMod SHIFT, S, movetoworkspace, special:S
bind = $mainMod, A, togglespecialworkspace, A
bind = $mainMod SHIFT, A, movetoworkspace, special:A
bind = $mainMod, X, togglespecialworkspace, X
bind = $mainMod SHIFT, X, movetoworkspace, special:X
# ----
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
bind = SHIFT_LALT_L, h, changegroupactive, b
bind = SHIFT_LALT_L, l, changegroupactive, f
#--------------------
# will switch to a submap called groups
bind = $mainMod, G, submap, groups
# will start a submap called "groups"
submap = groups
# move window into a group according to vim-motion key
bind = , h, moveintogroup, l
bind = , j, moveintogroup, d
bind = , k, moveintogroup, u
bind = , l, moveintogroup, r
# get window out of group
bind = , G, moveoutofgroup,
# Toggle a group on the current window
bind = $mainMod, t, togglegroup
# lock window group
bind = , L, lockactivegroup
# use reset to go backc to the global submap
bind = , escape, submap, reset
# will reset the submap, which will return to the global submap
submap = reset
#--------------------