♻️ hypr: separate shell and user configurations
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
|
||||
# color-shell specific configuration, please don't modify unless you know what you're doing!
|
||||
|
||||
# Daemons
|
||||
# exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # GNOME PolKit
|
||||
exec-once = systemctl enable --user --now hyprpolkitagent # Hyprland's PolKit
|
||||
exec-once = systemctl enable --user --now hypridle
|
||||
exec-once = systemctl enable --user --now gnome-keyring-daemon
|
||||
exec-once = wl-paste --type text --watch cliphist store
|
||||
exec-once = wl-paste --type image --watch cliphist store
|
||||
|
||||
# Tools
|
||||
exec-once = systemctl enable --user --now hyprpaper
|
||||
exec-once = systemctl enable --user --now hyprsunset
|
||||
|
||||
# Scripts
|
||||
exec-once = sh ../scripts/gen-pywal.sh
|
||||
exec-once = sh ../scripts/night-light-check.sh
|
||||
|
||||
# Other
|
||||
exec-once = ags run
|
||||
@@ -0,0 +1,97 @@
|
||||
|
||||
# color-shell specific configuration, please don't modify unless you know what you're doing!
|
||||
|
||||
bind = $mainMod, SPACE, exec, $menu
|
||||
bind = $mainMod, F11, fullscreen
|
||||
|
||||
|
||||
bind = , Print, exec, killall slurp || hyprshot -m region -o "$(xdg-user-dir PICTURES)/Screenshots"
|
||||
bind = $mainMod, Print, exec, killall slurp || hyprshot -m active -m output -o "$(xdg-user-dir PICTURES)/Screenshots"
|
||||
|
||||
# Test-only bind, used by developer
|
||||
bind = $mainMod, F7, exec, ags request reload
|
||||
|
||||
bind = $mainMod, K, exec, $terminal
|
||||
bind = $mainMod, Q, killactive
|
||||
bind = $mainMod, E, exec, $fm
|
||||
bind = $mainMod, F, togglefloating
|
||||
bind = $mainMod, P, pseudo,
|
||||
bind = $mainMod, J, togglesplit
|
||||
bind = $mainMod, N, exec, astal toggle control-center
|
||||
bind = $mainMod, M, exec, astal toggle center-window
|
||||
bind = $mainMod, L, exec, $lockscreen
|
||||
bind = $mainMod, V, exec, sh $XDG_CONFIG_HOME/hypr/scripts/clipboard-menu.sh
|
||||
bind = $mainMod, W, exec, sh $XDG_CONFIG_HOME/hypr/scripts/change-wallpaper.sh
|
||||
|
||||
bind = $mainMod, $mainMod_L, exec, astal show-ws-numbers
|
||||
|
||||
bind = , XF86AudioLowerVolume, exec, astal volume sink-decrease 5 || wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- # Decrease volume
|
||||
bind = , XF86AudioRaiseVolume, exec, astal volume sink-increase 5 || wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ # Increase volume
|
||||
bind = , XF86AudioMute, exec, astal volume sink-mute || wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # Mute
|
||||
bind = , XF86AudioPrev, exec, playerctl previous # Previous media
|
||||
bind = , XF86AudioNext, exec, playerctl next # Next media
|
||||
bind = , XF86AudioPlay, exec, playerctl play-pause # Toggle Play/Pause media
|
||||
|
||||
bind = , XF86MonBrightnessDown, exec, brightnessctl s 5%- # Lower monitor brightness
|
||||
bind = , XF86MonBrightnessUp, exec, brightnessctl s +5% # Increase monitor brightness
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
bind = $mainMod, right, movefocus, r
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
|
||||
|
||||
# Move windows with keyboard keys
|
||||
bind = $mainMod SHIFT, left, movewindow, l
|
||||
bind = $mainMod SHIFT, right, movewindow, r
|
||||
bind = $mainMod SHIFT, up, movewindow, u
|
||||
bind = $mainMod SHIFT, down, movewindow, d
|
||||
bind = $mainMod SHIFT, C, centerwindow
|
||||
|
||||
|
||||
# Resize windows with arrow keys / hjkl
|
||||
bind = $mainMod ALT, left, resizeactive, -60 0
|
||||
bind = $mainMod ALT, down, resizeactive, 0 60
|
||||
bind = $mainMod ALT, up, resizeactive, 0 -60
|
||||
bind = $mainMod ALT, right, resizeactive, 60 0
|
||||
|
||||
bind = $mainMod ALT, H, resizeactive, -60 0
|
||||
bind = $mainMod ALT, J, resizeactive, 0 60
|
||||
bind = $mainMod ALT, K, resizeactive, 0 -60
|
||||
bind = $mainMod ALT, L, resizeactive, 60 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
|
||||
|
||||
bind = CTRL $mainMod, right, workspace, e+1
|
||||
bind = CTRL $mainMod, left, workspace, e-1
|
||||
|
||||
bind = $mainMod, S, togglespecialworkspace, special
|
||||
bind = $mainMod SHIFT, S, movetoworkspace, special:special
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
@@ -0,0 +1,87 @@
|
||||
|
||||
source = ~/.cache/wal/colors-hypr.conf
|
||||
|
||||
general {
|
||||
gaps_in = 6
|
||||
gaps_out = 12
|
||||
|
||||
border_size = 2
|
||||
|
||||
col.active_border = $color1
|
||||
col.inactive_border = $background
|
||||
|
||||
resize_on_border = false
|
||||
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
render {
|
||||
ctm_animation = 1
|
||||
}
|
||||
|
||||
misc {
|
||||
animate_manual_resizes = true
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 16
|
||||
|
||||
# Active Window Opacity
|
||||
active_opacity = 1.0
|
||||
# Inactive Window Opacity
|
||||
inactive_opacity = 0.95
|
||||
|
||||
shadow {
|
||||
enabled = true
|
||||
range = 4
|
||||
render_power = 4
|
||||
color = $background
|
||||
}
|
||||
|
||||
blur {
|
||||
enabled = true
|
||||
new_optimizations = true
|
||||
xray = false # Setting to true can cause issues with nvidia cards!
|
||||
size = 2
|
||||
passes = 5
|
||||
vibrancy = 0.9
|
||||
# popups = true
|
||||
# popups_ignorealpha = 0.6
|
||||
}
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = true
|
||||
|
||||
# Beziers (I need better names)
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
bezier = amazingBezier, 0.25, 0.59, 0.1, 1.05
|
||||
bezier = popinBezier, 0.5, .1, .05, 1.0
|
||||
bezier = layerBezier, 0.5, .1, .05, 1.0
|
||||
bezier = workspaceBezier, 0.16, 0.20, 0, 1
|
||||
|
||||
|
||||
# Windows
|
||||
animation = windowsIn, 1, 6, myBezier, slide
|
||||
animation = windowsOut, 1, 5, amazingBezier, slide
|
||||
animation = windowsMove, 1, 4.5, myBezier
|
||||
|
||||
# Layers
|
||||
animation = layersIn, 1, 6, layerBezier, slide
|
||||
animation = layersOut, 1, 6, layerBezier, slide
|
||||
|
||||
# Workspaces
|
||||
animation = workspaces, 1, 3.5, workspaceBezier, slidefade 16%
|
||||
animation = specialWorkspace, 1, 3.5, myBezier, slidefadevert 10%
|
||||
|
||||
# Fade
|
||||
animation = fade, 1, 4, myBezier
|
||||
animation = fadeLayersIn, 1, 4, layerBezier
|
||||
animation = fadeLayersOut, 1, 3, layerBezier
|
||||
|
||||
# Others
|
||||
animation = border, 1, 5.5, amazingBezier
|
||||
animation = borderangle, 1, 8, default
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
# XDG Vars
|
||||
env = XDG_CONFIG_HOME, $HOME/.config
|
||||
env = XDG_CACHE_HOME, $HOME/.cache
|
||||
env = XDG_DATA_HOME, $HOME/.local/share
|
||||
env = XDG_STATE_HOME, $HOME/.local/state
|
||||
env = XDG_CURRENT_DESKTOP, Hyprland
|
||||
env = XDG_SESSION_TYPE, wayland
|
||||
|
||||
# Cursor
|
||||
env = XCURSOR_THEME, Adwaita
|
||||
env = XCURSOR_SIZE, 24
|
||||
env = HYPRCURSOR_THEME, Adwaita
|
||||
env = HYPRCURSOR_SIZE, 24
|
||||
|
||||
# Wayland stuff
|
||||
env = MOZ_ENABLE_WAYLAND, 1
|
||||
env = ELECTRON_OZONE_PLATFORM_HINT, x11
|
||||
|
||||
# QT
|
||||
env = QT_QPA_PLATFORM, wayland
|
||||
env = QT_QPA_PLATFORMTHEME, qt5ct
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR, 1
|
||||
|
||||
# Others
|
||||
env = ADW_DISABLE_PORTAL, 1 # Fixes prefer-dark theme setting in some flatpak apps
|
||||
env = WALLPAPERS, $HOME/wallpapers
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
source = ./variables.conf
|
||||
source = ./nvidia.conf
|
||||
source = ./environment.conf
|
||||
source = ./bindings.conf
|
||||
source = ./decorations.conf
|
||||
source = ./autostart.conf
|
||||
source = ./rules.conf
|
||||
source = ./layout.conf
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
dwindle {
|
||||
pseudotile = false
|
||||
preserve_split = true
|
||||
smart_resizing = true
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
##################
|
||||
## NVIDIA STUFF ##
|
||||
##################
|
||||
# Wiki: https://wiki.hyprland.org/Configuring/Environment-variables/#nvidia-specific
|
||||
|
||||
|
||||
env = LIBVA_DRIVER_NAME, nvidia
|
||||
env = __GLX_VENDOR_LIBRARY_NAME, nvidia
|
||||
env = NVD_BACKEND, direct
|
||||
|
||||
cursor {
|
||||
no_hardware_cursors = false # Set to true/false if you have issues
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
|
||||
# Float
|
||||
windowrule = float, class:nm-connection-editor
|
||||
windowrule = float, class:org.pulseaudio.pavucontrol
|
||||
windowrule = float, class:xdg-desktop-portal.*
|
||||
windowrule = float, class:io.github.kaii_lb.Overskride
|
||||
|
||||
|
||||
# Resize
|
||||
windowrule = size 50% 50%, class:org.pulseaudio.pavucontrol
|
||||
windowrule = size 50% 50%, class:io.github.kaii_lb.Overskride
|
||||
|
||||
|
||||
# Position
|
||||
windowrule = move 49.27% 7.28%, class:org.pulseaudio.pavucontrol
|
||||
windowrule = move 49.27% 7.28%, class:io.github.kaii_lb.Overskride
|
||||
|
||||
|
||||
# Workspace
|
||||
windowrule = movetoworkspace e, class:org.pulseaudio.pavucontrol
|
||||
|
||||
|
||||
# Animations
|
||||
windowrule = animation gnomed, class:hyprpolkitagent
|
||||
windowrule = animation slide right, class:org.pulseaudio.pavucontrol
|
||||
windowrule = animation slide right, class:io.github.kaii_lb.Overskride
|
||||
|
||||
layerrule = animation fade, selection
|
||||
layerrule = animation fade, hyprpicker
|
||||
layerrule = animation fade, hyprpaper
|
||||
layerrule = animation fade, anyrun
|
||||
layerrule = animation fade, control-center
|
||||
layerrule = animation fade, center-window
|
||||
layerrule = animation fade, logout-menu
|
||||
layerrule = animation slide bottom, apps-window
|
||||
layerrule = animation slide right, floating-notifications
|
||||
layerrule = animation fade, runner
|
||||
layerrule = animation fade, background-window
|
||||
layerrule = animation fade, .*-popup
|
||||
|
||||
|
||||
# Blur
|
||||
windowrule = noblur, class:^()$, title:^()$ # fixes chromium/electron context menus
|
||||
|
||||
layerrule = blur, top-bar
|
||||
layerrule = blur, osd
|
||||
layerrule = blur, control-center
|
||||
layerrule = blur, center-window
|
||||
layerrule = blur, logout-menu
|
||||
layerrule = blur, runner
|
||||
layerrule = blur, ask-popup
|
||||
layerrule = blur, entry-popup
|
||||
layerrule = blur, floating-notifications
|
||||
layerrule = blur, apps-window
|
||||
layerrule = ignorealpha .7, runner
|
||||
layerrule = ignorealpha .4, osd
|
||||
layerrule = ignorealpha .55, top-bar
|
||||
layerrule = ignorealpha .6, ask-popup
|
||||
layerrule = ignorealpha .6, entry-popup
|
||||
layerrule = ignorealpha .7, control-center
|
||||
layerrule = ignorealpha .5, apps-window
|
||||
layerrule = ignorealpha .7, center-window
|
||||
layerrule = ignorealpha .7, floating-notifications
|
||||
|
||||
|
||||
# Suppress maximize event from windows
|
||||
windowrule = suppressevent maximize, class:.*
|
||||
@@ -0,0 +1,11 @@
|
||||
###############
|
||||
## VARIABLES ##
|
||||
###############
|
||||
|
||||
# Wiki: https://wiki.hyprland.org/Hypr-Ecosystem/hyprlang#defining-variables
|
||||
|
||||
$mainMod = SUPER
|
||||
$terminal = kitty
|
||||
$fm = nautilus
|
||||
$menu = astal runner || anyrun
|
||||
$dmenu = anyrun --plugins libstdin.so
|
||||
Reference in New Issue
Block a user