hypr: major cleanup to match armory

This commit is contained in:
Trimutex 2024-06-25 04:40:13 -05:00
parent 32b5b5c163
commit 7304d7ecc6
7 changed files with 351 additions and 289 deletions

View File

@ -1,28 +1,163 @@
# Monitor source = ~/.config/hypr/frappe.conf # Catppuccin colorscheme
monitor=,highrr,auto,1.00
# < Start Section >
# monitors
monitor = eDP-1, highrr, 0x0, 1.00
monitor = , highrr, 1920x0, 1.00
# < End Section >
# < Start Section >
# startup applications
# environment launches
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH
exec-once = dbus-update-activation-environment --systemd --all
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = /usr/lib/polkit-kde-authentication-agent-1 # authentication dialogue for GUI apps
exec-once = gsettings set org.gnome.desktop.interface gtk-theme 'Catppuccin-Mocha'
exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
# Startup
exec-once = waybar -c ~/.config/waybar/config exec-once = waybar -c ~/.config/waybar/config
exec-once = pulseaudio
exec-once = syncthing --no-browser
exec-once = dunst exec-once = dunst
exec-once = swww init exec-once = swww init
exec-once = syncthing --no-browser
# main applications
#exec-once = discord --enable-features=UseOzonePlatform --ozone-platform=wayland
exec-once = spotify --disable-gpu
exec-once = alacritty
exec-once = firefox
#exec-once = taskset -c 1-7 steam
#exec-once = taskset -c 1-7 gamescope -W 3200 -H 1100 -b -- steam
exec-once = bolt
# < End Section >
# < Start Section >
# workspace rules
workspace = 1, monitor:eDP-1, persistent:true, default:true
workspace = 2, monitor:eDP-1, persistent:true
workspace = 3, monitor:eDP-1, persistent:true
workspace = 4, monitor:eDP-1, persistent:true
workspace = 5, monitor:eDP-1, persistent:true
# last workspace for hdmi
workspace = 6, monitor:HDMI-A-1
# < End Section >
# < Start Section >
# variables
general {
gaps_in = 0
gaps_out = 0
border_size = 0
col.active_border = $peach
#col.inactive_border = $peach
layout = dwindle
resize_on_border = false
# old border colors
#col.active_border = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
#col.inactive_border = rgba(b4befecc) rgba(6c7086cc) 45deg
}
decoration {
#rounding = 0
rounding = 6
drop_shadow = false
dim_special = 0.3
fullscreen_opacity = 1.0
#active_opacity = 1.0
#inactive_opacity = 0.9
blur {
enabled = yes
special = true
size = 6
passes = 3
new_optimizations = on
ignore_opacity = on
xray = false
}
}
animations {
enabled = yes
bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.1
bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1
animation = windows, 1, 6, wind, slide
animation = windowsIn, 1, 6, winIn, slide
animation = windowsOut, 1, 5, winOut, slide
animation = windowsMove, 1, 5, wind, slide
animation = border, 1, 1, liner
animation = borderangle, 1, 30, liner, loop
animation = fade, 1, 10, default
animation = workspaces, 1, 5, wind
}
# Settings
input { input {
kb_layout = us kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 2 follow_mouse = 2
mouse_refocus = false;
sensitivity = 0
force_no_accel = 1
touchpad { touchpad {
natural_scroll = no natural_scroll = no
} }
}
sensitivity = 0 gestures {
workspace_swipe = off
}
group {
col.border_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
col.border_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
col.border_locked_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
col.border_locked_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
force_default_wallpaper = 0
vrr = 1
vfr = true
}
xwayland {
# latest configuration
# use_nearset_neighbor = true
# force_zero_scaling = true
# current configuration
use_nearest_neighbor = true
force_zero_scaling = false
}
cursor {
no_hardware_cursors = true
inactive_timeout = 2
no_warps = false
default_monitor = DP-1
}
debug {
disable_logs = true
#disable_logs = false
} }
# Disable touchscreen # Disable touchscreen
@ -32,71 +167,166 @@ device {
} }
# < End Section >
# < Start Section >
# dwindle layout
dwindle { dwindle {
pseudotile = yes pseudotile = yes
preserve_split = yes preserve_split = yes
} }
# < End Section >
# < Start Section >
# master layout
master { master {
# TODO: replace when out of git version
#new_status = master
new_is_master = true new_is_master = true
} }
gestures { # < End Section >
workspace_swipe = off
}
# Window rules
source = ~/.config/hypr/windowrules.conf
# General binds
# < Start Section >
# window rules
# core
windowrulev2 = opacity 0.80 0.80,class:^(.*)$
windowrulev2 = opacity 0.80 0.70,class:^(pavucontrol)$
windowrulev2 = opacity 0.80 0.70,class:^(org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = float, class:^(qt5ct)$
windowrulev2 = float, class:^(nwg-look)$
windowrulev2 = float, class:^(pavucontrol)$
windowrulev2 = float, class:^(org.kde.polkit-kde-authentication-agent-1)$
#windowrulev2 = float, class:^(steam)$
# main
windowrulev2 = workspace 1 silent, class:^(discord)$
windowrulev2 = workspace 1 silent, class:^(Spotify)$
windowrulev2 = workspace 2 silent, class:^(Alacritty)$
windowrulev2 = workspace 3 silent, class:^(firefox)$
windowrulev2 = workspace 4 silent, class:^(steam)$
windowrulev2 = workspace 4 silent, title:^(Minecraft.*)$
windowrulev2 = workspace 4 silent, class:^(steam_app_.*)$
windowrulev2 = workspace 4 silent, class:^(steam_proton)$
windowrulev2 = workspace 4 silent, class:^(hl2_linux)$
windowrulev2 = workspace 4 silent, class:^(gamescope)$
windowrulev2 = workspace 5 silent, class:^(Bolt.*)$
# development
windowrulev2 = pseudo, title:^(SnakePlusPlus)$
windowrulev2 = center, title:^(SnakePlusPlus)$
windowrulev2 = opacity 0.4, title:^(SnakePlusPlus)$
windowrulev2 = float, title:^(TetrisPlusPlus)$
windowrulev2 = center, title:^(TetrisPlusPlus)$
# layer rules
layerrule = blur,waybar
layerrule = ignorezero, waybar
# < End Section >
# < Start Section >
# keybinds
# main modifier
$mainMod = SUPER $mainMod = SUPER
# passthrough
bind = , mouse:275, pass, ^(discord)$
bind = SHIFT, mouse:275, pass, ^(discord)$
# core binds
bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod SHIFT, M, exit
bind = $mainMod, SPACE, togglefloating,
bind = $mainMod, F, fullscreen,
bind = $mainMod SHIFT, L, exec, hyprlock
bind = $mainMod $CONTROL, ESCAPE, exec, killall waybar || waybar # toggle waybar
bind = $mainMod SHIFT, J, togglesplit, # dwindle
bind = $mainMod SHIFT, SPACE, pseudo, # dwindle
# main application shortcuts
bind = $mainMod, RETURN, exec, alacritty bind = $mainMod, RETURN, exec, alacritty
bind = $mainMod SHIFT, P, pseudo bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy
bind = $mainMod SHIFT, Q, killactive bind = $mainMod SHIFT, 7, exec, taskset -c 1-7 prismlauncher
bind = $mainMod SHIFT, L, exec, swaylock
bind = $mainMod, M, exit,
bind = $mainMod, F, fullscreen
bind = $mainMod, SPACE, togglefloating
bind = $mainMod, S, exec, pkill -x rofi || rofi -show drun bind = $mainMod, S, exec, pkill -x rofi || rofi -show drun
bind = $mainMod SHIFT, S, exec, hyprshot -m region --clipboard-only
# generic audio control
binde = , XF86AudioPlay, exec, playerctl play-pause
binde = , XF86AudioStop, exec, playerctl stop
binde = , XF86AudioPrev, exec, playerctl previous
binde = , XF86AudioNext, exec, playerctl next
binde = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
binde = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
binde = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%
# custom audio control
binde = $mainMod, F1, exec, playerctl play-pause
binde = $mainMod, F2, exec, playerctl previous
binde = $mainMod, F3, exec, playerctl next
# Laptop binds # Laptop binds
binde = , XF86MonBrightnessDown, exec, brightnessctl set 5%- binde = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
binde = , XF86MonBrightnessUp, exec, brightnessctl set 5%+ binde = , XF86MonBrightnessUp, exec, brightnessctl set 5%+
binde = , XF86AudioMute, exec, pulseaudio-ctl mute
binde = , XF86AudioLowerVolume, exec, pulseaudio-ctl down
binde = , XF86AudioRaiseVolume, exec, pulseaudio-ctl up
# move focus
# Move focus
bind = $mainMod, h, movefocus, l bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d bind = $mainMod, j, movefocus, d
# Switch workspaces with mainMod + [0-9] # workspaces
bind = $mainMod, 1, workspace, 1 bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2 bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3 bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4 bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5 bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod ALT, 1, movetoworkspacesilent, 1
bind = $mainMod ALT, 2, movetoworkspacesilent, 2
bind = $mainMod ALT, 3, movetoworkspacesilent, 3
bind = $mainMod ALT, 4, movetoworkspacesilent, 4
bind = $mainMod ALT, 5, movetoworkspacesilent, 5
bind = $mainMod ALT, 6, movetoworkspacesilent, 6
# Move/resize windows with mainMod + LMB/RMB and dragging # resizing windows
binde = $mainMod, right, resizeactive, 5 0
binde = $mainMod, left, resizeactive, -5 0
binde = $mainMod, up, resizeactive, 0 -5
binde = $mainMod, down, resizeactive, 0 5
bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow bindm = $mainMod, mouse:273, resizewindow
# sets repeatable binds for resizing the active window # < End Section >
binde = $mainMod, right, resizeactive, 10 0
binde = $mainMod, left, resizeactive, -10 0
binde = $mainMod, up, resizeactive, 0 -10
binde = $mainMod, down, resizeactive, 0 10 # < Start Section >
# environment variables
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_DESKTOP,Hyprland
env = MOZ_ENABLE_WAYLAND,1
env = HYPRCURSOR_THEME, rose-pine-hyprcursor
env = HYPRCURSOR_SIZE, 24
# < End Section >
# Sources
source = ~/.config/hypr/theme.conf

79
hypr/hyprlock.conf Normal file
View File

@ -0,0 +1,79 @@
source = $HOME/.config/hypr/frappe.conf
$accent = $mauve
$accentAlpha = $mauveAlpha
$font = JetBrainsMono Nerd Font
# GENERAL
general {
disable_loading_bar = true
hide_cursor = true
}
# BACKGROUND
background {
monitor = eDP-1
path = ~/.profile/background-locked.png
blur_passes = 0
color = $base
}
# TIME
label {
monitor = eDP-1
text = cmd[update:30000] echo "$(date +"%R")"
color = $text
font_size = 90
font_family = $font
position = -30, 0
halign = right
valign = top
}
# DATE
label {
monitor = eDP-1
text = cmd[update:43200000] echo "$(date +"%A, %d %B %Y")"
color = $text
font_size = 25
font_family = $font
position = -30, -150
halign = right
valign = top
}
# USER AVATAR
image {
monitor = eDP-1
path = ~/.profile/pfp.png
size = 100
border_color = $accent
position = 0, 75
halign = center
valign = center
}
# INPUT FIELD
input-field {
monitor = eDP-1
size = 300, 60
outline_thickness = 4
dots_size = 0.2
dots_spacing = 0.2
dots_center = true
outer_color = $accent
inner_color = $surface0
font_color = $text
fade_on_empty = false
placeholder_text = <span foreground="##$textAlpha"><i>󰌾 Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
hide_input = false
check_color = $accent
fail_color = $red
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
capslock_color = $yellow
position = 0, -35
halign = center
valign = center
}

View File

@ -1,5 +0,0 @@
splash = false
# Single monitor setup
preload=~/pics/dharmx/nord/holy-arch-nordic.png
wallpaper=eDP-1,~/pics/dharmx/nord/holy-arch-nordic.png
ipc = off

View File

@ -1,61 +0,0 @@
$rosewaterAlpha = dc8a78
$flamingoAlpha = dd7878
$pinkAlpha = ea76cb
$mauveAlpha = 8839ef
$redAlpha = d20f39
$maroonAlpha = e64553
$peachAlpha = fe640b
$yellowAlpha = df8e1d
$greenAlpha = 40a02b
$tealAlpha = 179299
$skyAlpha = 04a5e5
$sapphireAlpha = 209fb5
$blueAlpha = 1e66f5
$lavenderAlpha = 7287fd
$textAlpha = 4c4f69
$subtext1Alpha = 5c5f77
$subtext0Alpha = 6c6f85
$overlay2Alpha = 7c7f93
$overlay1Alpha = 8c8fa1
$overlay0Alpha = 9ca0b0
$surface2Alpha = acb0be
$surface1Alpha = bcc0cc
$surface0Alpha = ccd0da
$baseAlpha = eff1f5
$mantleAlpha = e6e9ef
$crustAlpha = dce0e8
$rosewater = 0xffdc8a78
$flamingo = 0xffdd7878
$pink = 0xffea76cb
$mauve = 0xff8839ef
$red = 0xffd20f39
$maroon = 0xffe64553
$peach = 0xfffe640b
$yellow = 0xffdf8e1d
$green = 0xff40a02b
$teal = 0xff179299
$sky = 0xff04a5e5
$sapphire = 0xff209fb5
$blue = 0xff1e66f5
$lavender = 0xff7287fd
$text = 0xff4c4f69
$subtext1 = 0xff5c5f77
$subtext0 = 0xff6c6f85
$overlay2 = 0xff7c7f93
$overlay1 = 0xff8c8fa1
$overlay0 = 0xff9ca0b0
$surface2 = 0xffacb0be
$surface1 = 0xffbcc0cc
$surface0 = 0xffccd0da
$base = 0xffeff1f5
$mantle = 0xffe6e9ef
$crust = 0xffdce0e8

View File

@ -1,61 +0,0 @@
$rosewaterAlpha = fff5e0dc
$flamingoAlpha = fff2cdcd
$pinkAlpha = fff5c2e7
$mauveAlpha = ffcba6f7
$redAlpha = fff38ba8
$maroonAlpha = ffeba0ac
$peachAlpha = fffab387
$yellowAlpha = fff9e2af
$greenAlpha = ffa6e3a1
$tealAlpha = ff94e2d5
$skyAlpha = ff89dceb
$sapphireAlpha = ff74c7ec
$blueAlpha = ff89b4fa
$lavenderAlpha = ffb4befe
$textAlpha = ffcdd6f4
$subtext1Alpha = ffbac2de
$subtext0Alpha = ffa6adc8
$overlay2Alpha = ff9399b2
$overlay1Alpha = ff7f849c
$overlay0Alpha = ff6c7086
$surface2Alpha = ff585b70
$surface1Alpha = ff45475a
$surface0Alpha = ff313244
$baseAlpha = ff1e1e2e
$mantleAlpha = ff181825
$crustAlpha = ff11111b
$rosewater = 0xfff5e0dc
$flamingo = 0xfff2cdcd
$pink = 0xfff5c2e7
$mauve = 0xffcba6f7
$red = 0xfff38ba8
$maroon = 0xffeba0ac
$peach = 0xfffab387
$yellow = 0xfff9e2af
$green = 0xffa6e3a1
$teal = 0xff94e2d5
$sky = 0xff89dceb
$sapphire = 0xff74c7ec
$blue = 0xff89b4fa
$lavender = 0xffb4befe
$text = 0xffcdd6f4
$subtext1 = 0xffbac2de
$subtext0 = 0xffa6adc8
$overlay2 = 0xff9399b2
$overlay1 = 0xff7f849c
$overlay0 = 0xff6c7086
$surface2 = 0xff585b70
$surface1 = 0xff45475a
$surface0 = 0xff313244
$base = 0xff1e1e2e
$mantle = 0xff181825
$crust = 0xff11111b

View File

@ -1,85 +0,0 @@
# Cursor
exec = hyprctl setcursor Catppuccin-Mocha-Lavender 24
exec = gsettings set org.gnome.desktop.interface cursor-theme 'Bibata-Modern-Ice'
exec = gsettings set org.gnome.desktop.interface cursor-size 24
# Font
exec = gsettings set org.gnome.desktop.interface font-name 'Cantarell 10'
exec = gsettings set org.gnome.desktop.interface document-font-name 'Cantarell 10'
exec = gsettings set org.gnome.desktop.interface monospace-font-name 'CaskaydiaCove Nerd Font Mono 9'
exec = gsettings set org.gnome.desktop.interface font-antialiasing 'rgba'
exec = gsettings set org.gnome.desktop.interface font-hinting 'full'
# Theme
exec = gsettings set org.gnome.desktop.interface icon-theme 'Tela-circle-dracula'
exec = gsettings set org.gnome.desktop.interface gtk-theme 'Catppuccin-Mocha'
exec = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
layerrule = blur,waybar
# Window Customization
source = ~/.config/hypr/frappe.conf
general {
gaps_in = 0
gaps_out = 0
border_size = 0
col.active_border = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
col.inactive_border = rgba(b4befecc) rgba(6c7086cc) 45deg
layout = dwindle
resize_on_border = false
}
group {
col.border_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
col.border_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
col.border_locked_active = rgba(ca9ee6ff) rgba(f2d5cfff) 45deg
col.border_locked_inactive = rgba(b4befecc) rgba(6c7086cc) 45deg
}
decoration {
rounding = 0
drop_shadow = false
dim_special = 0.3
#active_opacity = 1.0
#inactive_opacity = 0.9
blur {
enabled = yes
special = true
size = 6
passes = 3
new_optimizations = on
ignore_opacity = on
xray = false
}
}
animations {
enabled = yes
# Hyprdots
bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.1
bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1
animation = windows, 1, 6, wind, slide
animation = windowsIn, 1, 6, winIn, slide
animation = windowsOut, 1, 5, winOut, slide
animation = windowsMove, 1, 5, wind, slide
animation = border, 1, 1, liner
animation = borderangle, 1, 30, liner, loop
animation = fade, 1, 10, default
animation = workspaces, 1, 5, wind
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
force_default_wallpaper = 0
vrr = 1
}

View File

@ -1,35 +0,0 @@
# █░█░█ █ █▄░█ █▀▄ █▀█ █░█░█   █▀█ █░█ █░░ █▀▀ █▀
# ▀▄▀▄▀ █ █░▀█ █▄▀ █▄█ ▀▄▀▄▀   █▀▄ █▄█ █▄▄ ██▄ ▄█
# Main
windowrulev2 = opacity 0.80 0.80,class:^(.*)$
windowrulev2 = opacity 0.80 0.70,class:^(pavucontrol)$
windowrulev2 = opacity 0.80 0.70,class:^(org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = float, class:^(qt5ct)$
windowrulev2 = float, class:^(nwg-look)$
windowrulev2 = float, class:^(pavucontrol)$
windowrulev2 = float, class:^(org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = float, class:^(steam)$
# Development
windowrulev2 = float, class:^(Unity)$
windowrulev2 = float, title:^(SnakePlusPlus)$
windowrulev2 = center, title:^(SnakePlusPlus)$
windowrulev2 = opacity 0.6, title:^(SnakePlusPlus)$
windowrulev2 = float, title:^(TetrisPlusPlus)$
windowrulev2 = center, title:^(TetrisPlusPlus)$
# Games
windowrulev2 = opacity 1.00 override 1.00 override, class:^(Minecraft.*)$
windowrulev2 = pseudo, class:^(Minecraft.*)$
windowrulev2 = size 2646 1108, class:^(Minecraft.*)$
windowrulev2 = opacity 1.00 override 1.00 override, class:^(steam_app_.*)$
windowrulev2 = pseudo, class:^(steam_app_.*)$
windowrulev2 = size 2646 1108, class:^(steam_app_.*)$
windowrulev2 = opacity 1.00 override 1.00 override, class:^(steam_proton)$
windowrulev2 = pseudo, class:^(steam_proton)$
windowrulev2 = size 2646 1108, class:^(steam_proton)$