1
0
Fork 0
dotfiles2000/dotfiles/hypr-session/dot-config/hypr/hyprland.conf
J. Elfring d5cb5d5ee8 Better dropterminal.
The dropdown terminal gets smaller.
Caps-Lock becomes Hyper and Hyper drops the term.
2024-11-10 22:16:06 +01:00

168 lines
4.8 KiB
Text

# This is the Hyprland config file.
# Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/
################
### MONITORS ###
################
# See https://wiki.hyprland.org/Configuring/Monitors/ monitor=, preferred, auto, 1
monitor= ,preferred, auto, 1.0, transform, 0 # Default
monitor=desc: ,preferred, auto, 1.5, transform, 3 # GPD Pocket
###################
### MY PROGRAMS ###
###################
# See https://wiki.hyprland.org/Configuring/Keywords/
$terminal = kitty
$fileManager = pcmanfm
$menu = wofi --show drun
#################
### AUTOSTART ###
#################
exec-once = nm-applet
exec-once = blueman-applet
exec-once = dunst
exec-once = waybar
exec-once = ~/.local/hypr_autostart.sh
exec-once = hypridle
exec-once = hyprpaper
exec-once = pypr
exec-once = wl-paste --watch ~/.bin/cliphist-filter
exec-once = wl-paste --primary --watch ~/.bin/cliphist-filter
#############################
### ENVIRONMENT VARIABLES ###
#############################
# See https://wiki.hyprland.org/Configuring/Environment-variables/
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
#####################
### LOOK AND FEEL ###
#####################
source = src_hyprland/lookNfeel.conf
#############
### INPUT ###
#############
# https://wiki.hyprland.org/Configuring/Variables/#input
input {
kb_layout = de
kb_variant = nodeadkeys
kb_model =
kb_options = compose:menu,caps:hyper
kb_rules =
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = true
drag_lock = true
clickfinger_behavior = true
}
}
# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
workspace_swipe = false
}
# Per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs
# GPD Pocket 2
device {
name = hailuck-co.,ltd-usb-keyboard
kb_layout = us
kb_variant =
}
device {
name = keyd-virtual-keyboard
kb_layout = us
kb_variant =
}
device {
name = goodix-capacitive-touchscreen-1
transform = 3
}
###################
### KEYBINDINGS ###
###################
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier
# See https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod SHIFT, E, exit,
bind = $mainMod SHIFT, C, killactive,
bind = $mainMod SHIFT, F, togglefloating,
bind = $mainMod, F, fullscreen,
bind = $mainMod SHIFT, P, pseudo, # dwindle
bind = $mainMod SHIFT, J, togglesplit, # dwindle
bind = $mainMod, D, exec, $menu
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, L , exec, loginctl lock-session
bind = $mainMod, X, exec, $fileManager
bind = $mainMod, C, exec, plus42
bind = $mainMod SHIFT, B, exec, ~/.bin/waybar_restart.sh
bind = $mainMod, B, exec, ~/.bin/startBrowser.sh
bind = $mainMod, N, exec, ~/.bin/startBrowserPrivat.sh
bind = $mainMod, V, exec, cliphist list | wofi -p Clipboard -S dmenu | cliphist decode | wl-copy
# PyPrland
bind = , Hyper_L, exec, pypr toggle term
bind = $mainMod, Tab, exec, pypr fetch_client_menu
# Laptop multimedia keys for volume and LCD brightness
bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindel = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = , XF86MonBrightnessUp, exec, brightnessctl s 5%+
bindel = , XF86MonBrightnessDown, exec, brightnessctl s 5%-
# Requires playerctl
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous
# Screenshots
bind = , Print, exec, HYPRSHOT_DIR=~ hyprshot -m window
bind = SHIFT, Print, exec, HYPRSHOT_DIR=~ hyprshot -m region
# Import windowmovement keys
source = src_hyprland/windowmgm_keys.conf
##############################
### WINDOWS AND WORKSPACES ###
##############################
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# Ignore maximize requests from apps. You'll probably like this.
windowrulev2 = suppressevent maximize, class:.*
# Fix some dragging issues with XWayland
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
windowrulev2 = float,class:^(plus42)$
windowrulev2 = float,class:^(org.pulseaudio.pavucontrol)$