267 lines
6.9 KiB
Plaintext
Executable File
267 lines
6.9 KiB
Plaintext
Executable File
# Common Hyprland configuration — shared across all hosts
|
|
# Host-specific settings (monitors, env, workspaces) in host/monitors.conf
|
|
|
|
source = mocha.conf
|
|
source = ~/.cache/wal/colors-hyprland.conf
|
|
source = hosts/monitors.conf
|
|
source = hosts/uconsole.conf
|
|
|
|
###################
|
|
### MY PROGRAMS ###
|
|
###################
|
|
|
|
$terminal = kitty
|
|
$editor = emacsclient -c -a emacs
|
|
$menu = wofi --show drun
|
|
$zen = zen-browser
|
|
$music = kitty ncspot
|
|
$monitoring = kitty btop
|
|
|
|
#################
|
|
### AUTOSTART ###
|
|
#################
|
|
|
|
exec = hyprshade auto
|
|
exec-once = udiskie
|
|
exec-once = waybar
|
|
exec-once = swww-daemon
|
|
exec-once = swaync
|
|
exec-once = hypridle
|
|
exec-once = hyprlock
|
|
exec-once = /usr/bin/emacs --daemon
|
|
exec-once = dbus-update-activation-environment --systemd HYPRLAND_INSTANCE_SIGNATURE
|
|
|
|
#############################
|
|
### ENVIRONMENT VARIABLES ###
|
|
#############################
|
|
|
|
env = XCURSOR_SIZE,24
|
|
env = HYPRCURSOR_SIZE,24
|
|
env = XDG_SESSION_TYPE,wayland
|
|
|
|
#####################
|
|
### LOOK AND FEEL ###
|
|
#####################
|
|
|
|
general {
|
|
gaps_in = 7.5
|
|
gaps_out = 15
|
|
border_size = 2
|
|
col.active_border = $color1 $color1 $color2 45deg
|
|
col.inactive_border = $background
|
|
resize_on_border = false
|
|
allow_tearing = false
|
|
layout = dwindle
|
|
}
|
|
|
|
decoration {
|
|
rounding = 4
|
|
active_opacity = 0.9
|
|
inactive_opacity = 0.75
|
|
}
|
|
|
|
animations {
|
|
enabled = true
|
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
|
animation = windows, 1, 1.6, myBezier
|
|
animation = windowsOut, 1, 1.6, default, popin 80%
|
|
animation = border, 1, 1.6, default
|
|
animation = borderangle, 1, 1.6, default
|
|
animation = fade, 1, 1.6, default
|
|
animation = workspaces, 1, 1.6, default
|
|
animation = specialWorkspace, 1, 1.6, myBezier, slidefadevert -10%
|
|
}
|
|
|
|
dwindle {
|
|
preserve_split = true
|
|
force_split = 2
|
|
}
|
|
|
|
master {
|
|
new_status = master
|
|
}
|
|
|
|
misc {
|
|
force_default_wallpaper = 0
|
|
disable_hyprland_logo = true
|
|
}
|
|
|
|
#############
|
|
### INPUT ###
|
|
#############
|
|
|
|
input {
|
|
kb_layout = us,ca
|
|
kb_options = grp:win_space_toggle, ctrl:nocaps
|
|
follow_mouse = 1
|
|
sensitivity = 0.5
|
|
touchpad {
|
|
natural_scroll = true
|
|
disable_while_typing = true
|
|
}
|
|
}
|
|
|
|
gestures {}
|
|
|
|
device {
|
|
name = epic-mouse-v1
|
|
sensitivity = -0.5
|
|
}
|
|
|
|
###################
|
|
### KEYBINDINGS ###
|
|
###################
|
|
|
|
$mainMod = CTRL ALT
|
|
|
|
bind = $mainMod, T, exec, $terminal
|
|
bind = $mainMod, D, killactive,
|
|
bind = $mainMod SHIFT, Q, exit,
|
|
bind = $mainMod, U, exec, ~/ExoKortex/4-Automata/dotfiles/scripts/make_all.sh
|
|
bind = $mainMod, M, exec, $monitoring
|
|
bind = $mainMod, E, exec, $editor
|
|
bind = $mainMod, V, togglefloating,
|
|
bind = $mainMod, R, exec, $menu
|
|
bind = $mainMod, Z, exec, $zen
|
|
bind = $mainMod, P, pseudo,
|
|
bind = $mainMod, N, movecurrentworkspacetomonitor, -1
|
|
bind = $mainMod SHIFT, N, movecurrentworkspacetomonitor, +1
|
|
bind = $mainMod, X, swapwindow
|
|
bind = $mainMod, B, exec, python /home/tpouplier/ExoKortex/4-Automata/recordntrans/record_transcribe.py
|
|
bind = $mainMod, A, exec, $music
|
|
bind = $mainMod, C, exec, emacsclient -n -c -e '(gortium/hermes-vterm)'
|
|
|
|
bind = SUPER, F, fullscreen
|
|
bind = , PRINT, exec, hyprshot -m output
|
|
bind = $mainMod, PRINT, exec, hyprshot -m window
|
|
bind = shift, PRINT, exec, hyprshot -m region
|
|
bind = $mainMod, o, exec, hyprlock
|
|
|
|
bind = $mainMod, h, movefocus, l
|
|
bind = $mainMod, j, movefocus, d
|
|
bind = $mainMod, k, movefocus, u
|
|
bind = $mainMod, l, movefocus, r
|
|
|
|
bind = $mainMod, Tab, cyclenext
|
|
bind = $mainMod SHIFT, Tab, cyclenext, prev
|
|
|
|
bind = $mainMod CTRL, l, resizeactive, 20 0
|
|
bind = $mainMod CTRL, h, resizeactive, -20 0
|
|
bind = $mainMod CTRL, k, resizeactive, 0 -20
|
|
bind = $mainMod CTRL, j, resizeactive, 0 20
|
|
|
|
bind = $mainMod SHIFT, h, swapwindow, l
|
|
bind = $mainMod SHIFT, j, swapwindow, d
|
|
bind = $mainMod SHIFT, k, swapwindow, u
|
|
bind = $mainMod SHIFT, l, swapwindow, r
|
|
|
|
bind = $mainMod SHIFT, l, moveactive, 100 0
|
|
bind = $mainMod SHIFT, h, moveactive, -100 0
|
|
bind = $mainMod SHIFT, k, moveactive, 0 -100
|
|
bind = $mainMod SHIFT, j, moveactive, 0 100
|
|
|
|
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
|
|
|
|
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
|
|
|
|
bind = $mainMod, S, togglespecialworkspace, tools
|
|
bind = $mainMod SHIFT, S, movetoworkspace, special:tools
|
|
|
|
bind = $mainMod, mouse_down, workspace, e+1
|
|
bind = $mainMod, mouse_up, workspace, e-1
|
|
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
bindm = $mainMod, mouse:273, resizewindow
|
|
|
|
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 10%+
|
|
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
|
|
|
bindl = , XF86AudioNext, exec, playerctl next
|
|
bindl = , XF86AudioPause, exec, playerctl play-pause
|
|
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|
bindl = , XF86AudioPrev, exec, playerctl previous
|
|
|
|
bind = $mainMod, W, exec, emacsclient --eval '(thanos/type)'
|
|
windowrule {
|
|
name = float-emacs
|
|
match:title = ^emacs-float$
|
|
float = true
|
|
}
|
|
|
|
##############################
|
|
### WINDOWS AND WORKSPACES ###
|
|
##############################
|
|
|
|
windowrule {
|
|
name = suppress-maximize-events
|
|
match:class = .*
|
|
suppress_event = maximize
|
|
}
|
|
|
|
windowrule {
|
|
name = nofocus-xwayland-float
|
|
match:class = ^$
|
|
match:title = ^$
|
|
match:xwayland = true
|
|
match:float = true
|
|
match:fullscreen = false
|
|
match:pin = false
|
|
no_focus = true
|
|
}
|
|
|
|
# Dashboard windows for special workspace
|
|
windowrule {
|
|
name = dashboard-btop
|
|
match:class = ^(btop)$
|
|
tile = true
|
|
workspace = special:tools
|
|
}
|
|
|
|
windowrule {
|
|
name = dashboard-ncspot
|
|
match:class = ^(ncspot)$
|
|
tile = true
|
|
workspace = special:tools
|
|
}
|
|
|
|
windowrule {
|
|
name = dashboard-ncpamixer
|
|
match:class = ^(ncpamixer)$
|
|
tile = true
|
|
workspace = special:tools
|
|
}
|
|
|
|
windowrule {
|
|
name = dashboard-bluetuith
|
|
match:class = ^(bluetuith)$
|
|
tile = true
|
|
workspace = special:tools
|
|
}
|
|
|
|
bind = $mainMod, grave, exec, kitty --class btop btop
|
|
bind = $mainMod, grave, exec, kitty --class ncspot ncspot
|
|
bind = $mainMod, grave, exec, kitty --class ncpamixer ncpamixer
|
|
bind = $mainMod, grave, exec, kitty --class bluetuith bluetuith
|