♻️ refactor: move hyprland config files to hypr
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
|
||||
################
|
||||
## APPEARANCE ##
|
||||
################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Variables for more information on how to configure appearance
|
||||
|
||||
source = ~/.cache/wal/colors-hypr.conf
|
||||
|
||||
general {
|
||||
gaps_in = 4
|
||||
gaps_out = 6
|
||||
|
||||
border_size = 2
|
||||
|
||||
col.active_border = $color1
|
||||
col.inactive_border = $background
|
||||
|
||||
resize_on_border = false
|
||||
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding = 12
|
||||
|
||||
active_opacity = 1.0
|
||||
inactive_opacity = 0.98
|
||||
|
||||
drop_shadow = true
|
||||
shadow_range = 4
|
||||
shadow_render_power = 3
|
||||
col.shadow = rgba(1a1a1aee)
|
||||
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 1
|
||||
vibrancy = 0.9
|
||||
}
|
||||
}
|
||||
|
||||
animations {
|
||||
enabled = true
|
||||
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
bezier = amazingBezier, 0.25, 0.59, 0.1, 1.05
|
||||
|
||||
animation = windows, 1, 5.5, amazingBezier, slide bottom
|
||||
animation = windowsOut, 1, 5, amazingBezier, slide bottom
|
||||
animation = layers, 1, 7, amazingBezier, slide bottom
|
||||
animation = layersOut, 1, 7, amazingBezier, slide bottom
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 3.5, default
|
||||
animation = fadeLayers, 1, 7, amazingBezier
|
||||
animation = workspaces, 1, 5.5, amazingBezier, slidefade
|
||||
}
|
||||
|
||||
dwindle {
|
||||
pseudotile = true
|
||||
preserve_split = true
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
###############
|
||||
## AUTOSTART ##
|
||||
###############
|
||||
|
||||
exec-once = /usr/lib/polkit-kde-authentication-agent-1 # exec kde auth agent if app asks for sudo
|
||||
exec-once = waybar
|
||||
exec-once = swaync # Run notification center / daemon
|
||||
exec-once = hyprpaper
|
||||
exec-once = hypridle # Idle daemon for Hyprland
|
||||
|
||||
# Re-run pywal
|
||||
exec-once = wal -R
|
||||
|
||||
# Clipboard manager
|
||||
exec-once = wl-paste --type text --watch cliphist store # Stores text
|
||||
exec-once = wl-paste --type image --watch cliphist store # Stores images
|
||||
|
||||
# Apps
|
||||
exec-once = /bin/vesktop --start-minimized
|
||||
|
||||
# Special
|
||||
exec-once = ~/.local/share/scripts/fix-nautilus.sh
|
||||
@@ -0,0 +1,133 @@
|
||||
################
|
||||
### BINDINGS ###
|
||||
################
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Keywords and https://wiki.hyprland.org/Configuring/Binds for information on how to configure input
|
||||
|
||||
$terminal = kitty
|
||||
$fileManager = nautilus
|
||||
$menu = anyrun
|
||||
$dmenu = anyrun --plugins libstdin.so
|
||||
$mainMod = SUPER
|
||||
$lockscreen = hyprlock
|
||||
$screenshotDir = $HOME/Screenshots
|
||||
$screenshotFull = hyprshot -m output -o $screenshotDir
|
||||
$screenshotSelect = hyprshot -m region -o $screenshotDir
|
||||
|
||||
|
||||
input {
|
||||
kb_layout = br
|
||||
kb_variant = abnt2
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
touchpad {
|
||||
natural_scroll = true
|
||||
}
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||
gestures {
|
||||
workspace_swipe = true
|
||||
}
|
||||
|
||||
# Main binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, K, exec, $terminal
|
||||
bind = $mainMod, Q, killactive
|
||||
bind = $mainMod, E, exec, $fileManager
|
||||
bind = $mainMod, F, togglefloating
|
||||
bind = $mainMod, SPACE, exec, $menu
|
||||
bind = $mainMod, P, pseudo,
|
||||
bind = $mainMod, J, togglesplit
|
||||
bind = $mainMod, F11, fullscreen
|
||||
bind = $mainMod, N, exec, swaync-client -t
|
||||
bind = $mainMod, L, exec, $lockscreen
|
||||
bind = $mainMod, C, centerwindow
|
||||
|
||||
# Media keys
|
||||
bind = , code:121, exec, pamixer --mute # Mute
|
||||
bind = , code:122, exec, pamixer -d 5 # Decrease volume
|
||||
bind = , code:123, exec, pamixer -i 5 # Increase volume
|
||||
bind = , code:173, exec, playerctl previous # Previous media
|
||||
bind = , code:172, exec, playerctl play-pause # Toggle Play/Pause media
|
||||
bind = , code:171, exec, playerctl next # Next media
|
||||
bind = , code:232, exec, brightnessctl s 5%- # Lower monitor brightness
|
||||
bind = , code:233, exec, brightnessctl s +5% # Increase monitor brightness
|
||||
|
||||
# Screenshot
|
||||
bind = , Print, exec, $screenshotSelect
|
||||
bind = $mainMod, Print, exec, $screenshotFull
|
||||
|
||||
# Open wofi clipboard
|
||||
bind = $mainMod, V, exec, cliphist list | $dmenu | cliphist decode | wl-copy
|
||||
|
||||
# Open wallpaper menu
|
||||
bind = $mainMod, W, exec, /usr/bin/env bash $HOME/.config/hypr/scripts/change-wallpaper.sh
|
||||
|
||||
# Reloading Components
|
||||
# Waybar
|
||||
bind = $mainMod, F7, exec, pkill waybar && waybar
|
||||
# Hyprpaper (Wallpaper)
|
||||
bind = $mainMod, F8, exec, pkill hyprpaper && hyprpaper
|
||||
|
||||
# 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 arrowkeys
|
||||
bind = $mainMod SHIFT, left, movewindow, l
|
||||
bind = $mainMod SHIFT, right, movewindow, r
|
||||
bind = $mainMod SHIFT, up, movewindow, u
|
||||
bind = $mainMod SHIFT, down, movewindow, d
|
||||
|
||||
# Resize windows with arrowkeys
|
||||
bind = $mainMod ALT, left, resizeactive, -60 0
|
||||
bind = $mainMod ALT, right, resizeactive, 60 0
|
||||
bind = $mainMod ALT, up, resizeactive, 0 -60
|
||||
bind = $mainMod ALT, down, resizeactive, 0 60
|
||||
|
||||
# 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
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
||||
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
||||
|
||||
# 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
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
#################
|
||||
## ENVIRONMENT ##
|
||||
#################
|
||||
|
||||
env = XCURSOR_SIZE, 24
|
||||
env = HYPRCURSOR_SIZE, 24
|
||||
env = QT_QPA_PLATFORM, wayland
|
||||
env = QT_QPA_PLATFORMTHEME, qt6ct
|
||||
env = XDG_CURRENT_DESKTOP, Hyprland
|
||||
env = ADW_DISABLE_PORTAL, 1
|
||||
|
||||
env = WALLPAPER, $wallpaper
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
general {
|
||||
lock_cmd = echo "Locked Hyprland Session"
|
||||
unlock_cmd = echo "Unlocked Hyprland Session"
|
||||
ignore_dbus_inhibit = false
|
||||
ignore_systemd_inhibit = false
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 3600 # 1800 -> 30m | 3600 -> 1h | 7200 -> 2h
|
||||
on-timeout = hyprlock
|
||||
on-resume = notify-send "Welcome back to Hyprland, $USER!"
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
#############################################
|
||||
## Retrozinndev's Hyprland Configurations! ##
|
||||
#############################################
|
||||
|
||||
# Environment
|
||||
source = ~/.config/hypr/environment.conf
|
||||
|
||||
# Monitors
|
||||
source = ~/.config/hypr/monitors.conf
|
||||
|
||||
# Devices
|
||||
# source = ~/.config/hypr/devices.conf # Uncomment this line to apply file, remember to make it first!
|
||||
|
||||
# Appearance
|
||||
source = ~/.config/hypr/appearance.conf
|
||||
|
||||
# Autostart
|
||||
source = ~/.config/hypr/autostart.conf
|
||||
|
||||
# Bindings
|
||||
source = ~/.config/hypr/bindings.conf
|
||||
|
||||
# Rules
|
||||
source = ~/.config/hypr/rules.conf
|
||||
@@ -0,0 +1,95 @@
|
||||
|
||||
##############
|
||||
# LOCKSCREEN #
|
||||
##############
|
||||
|
||||
# Source colors from pywal
|
||||
source = ~/.cache/wal/colors-hypr.conf
|
||||
|
||||
# Fonts
|
||||
$font = Cantarell Regular
|
||||
$clockFont = Cantarell Black
|
||||
$minimalFont = Noto Sans Mono
|
||||
|
||||
general {
|
||||
disable_loading_bar = true
|
||||
hide_cursor = false
|
||||
}
|
||||
|
||||
background {
|
||||
monitor =
|
||||
path = $wallpaper
|
||||
blur_passes = 2
|
||||
color = $background
|
||||
}
|
||||
|
||||
# Time
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:30000] echo -e "$(date +"%R")" # 24-hour style
|
||||
# text = cmd[update:30000] echo -e "$(date +"%r")"
|
||||
color = $foreground
|
||||
font_size = 120
|
||||
font_family = $clockFont
|
||||
position = 0, -60
|
||||
halign = center
|
||||
valign = top
|
||||
}
|
||||
|
||||
# Date
|
||||
label {
|
||||
monitor =
|
||||
text = cmd[update:43200000] echo -e "$(date +"%A, %d %B %Y")"
|
||||
color = $foreground
|
||||
font_size = 20
|
||||
font_family = $font
|
||||
position = 0, -250
|
||||
halign = center
|
||||
valign = top
|
||||
}
|
||||
|
||||
# Logged user
|
||||
label {
|
||||
monitor =
|
||||
font_size = 6
|
||||
font_family = $minimalFont
|
||||
color = $foreground
|
||||
text = Currently logged in as $USER
|
||||
halign = center
|
||||
valign = bottom
|
||||
position = 0, 5
|
||||
}
|
||||
|
||||
# Avatar
|
||||
image {
|
||||
monitor =
|
||||
path = ~/.face
|
||||
size = 72
|
||||
border_color = $color2
|
||||
position = 0, 100
|
||||
halign = center
|
||||
valign = bottom
|
||||
}
|
||||
|
||||
# Input (password)
|
||||
input-field {
|
||||
monitor =
|
||||
size = 180, 35
|
||||
outline_thickness = 2
|
||||
dots_size = .15
|
||||
dots_spacing = .6
|
||||
dots_center = true
|
||||
outer_color = $background
|
||||
inner_color = $color3
|
||||
font_color = $foreground
|
||||
fade_on_empty = false
|
||||
placeholder_text =
|
||||
hide_input = false
|
||||
check_color = $color4
|
||||
fail_color = $color1
|
||||
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
||||
capslock_color = $color1
|
||||
position = 0, 40
|
||||
halign = center
|
||||
valign = bottom
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
|
||||
$wallpaper = /home/joaov/wallpapers/Ryo Yamada.png
|
||||
|
||||
splash = true
|
||||
preload = $wallpaper
|
||||
wallpaper = , $wallpaper
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
##############
|
||||
## MONITORS ##
|
||||
##############
|
||||
|
||||
# Configure yout monitor(s) here! See https://wiki.hyprland.org/Configuring/Monitors for more information on how to do that!
|
||||
|
||||
monitor = , preferred, auto, auto, vrr, 1 # vrr enables variable refresh rate for gaming
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
##################
|
||||
## WINDOW RULES ##
|
||||
##################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ and https://wiki.hyprland.org/Configuring/Workspace-Rules/ for information on how to configure this
|
||||
|
||||
# Floating windows
|
||||
windowrulev2 = float, class:moe.launcher.*
|
||||
windowrulev2 = float, title:^(Clapper)$
|
||||
windowrulev2 = float, class:xdg-desktop-portal*
|
||||
windowrulev2 = float, class:org.pulseaudio.pavucontrol
|
||||
windowrulev2 = float, class:org.gnome.Loupe
|
||||
windowrulev2 = float, class:mcpelauncher-webview
|
||||
|
||||
# Resize
|
||||
windowrulev2 = size 50% 50%, class:org.pulseaudio.pavucontrol
|
||||
|
||||
# Moving
|
||||
windowrulev2 = move 49.27% 7.28%, class:org.pulseaudio.pavucontrol
|
||||
|
||||
# Maximize
|
||||
windowrulev2 = tile, title:^(Resources)$
|
||||
|
||||
# Animations
|
||||
windowrulev2 = animation slide right, class:org.pulseaudio.pavucontrol
|
||||
layerrule = animation slide right, swaync-control-center
|
||||
layerrule = animation fade, selection
|
||||
layerrule = animation fade, logout_dialog
|
||||
layerrule = animation fade, waybar
|
||||
layerrule = animation fade, hyprpaper
|
||||
layerrule = animation slide right, swaync-notification-window
|
||||
layerrule = animation fade, hyprpicker
|
||||
|
||||
# Opacity
|
||||
windowrulev2 = opacity , class:kitty
|
||||
|
||||
# Blur
|
||||
blurls = logout_dialog
|
||||
blurls = kitty
|
||||
|
||||
# No blur
|
||||
windowrulev2 = noblur, title:^()
|
||||
|
||||
windowrulev2 = suppressevent maximize, class:.*
|
||||
@@ -0,0 +1,56 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
WALLPAPER_DIR="$HOME/wallpapers"
|
||||
HYPRPAPER_FILE="$HOME/.config/hypr/hyprpaper.conf"
|
||||
|
||||
WALLPAPER_DMENU="anyrun --plugins libstdin.so"
|
||||
|
||||
if [[ -z $(ls -A $WALLPAPER_DIR) ]]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Prompt wallpaper list via dmenu
|
||||
SET_WALLPAPER_NAME="$(ls $WALLPAPER_DIR | $WALLPAPER_DMENU )"
|
||||
SET_WALLPAPER_FULL="$WALLPAPER_DIR/$SET_WALLPAPER_NAME"
|
||||
|
||||
echo $SET_WALLPAPER_NAME
|
||||
|
||||
# Check if input wallpaper is empty
|
||||
if [[ $SET_WALLPAPER_NAME == "" ]] || [[ $SET_WALLPAPER_NAME == " " ]]
|
||||
then
|
||||
echo "No wallpaper has been selected by user!"
|
||||
if [ $RANDOM_WALLPAPER_WHEN_EMPTY = true ]
|
||||
then
|
||||
SET_WALLPAPER_NAME=$(ls $WALLPAPER_DIR | shuf -n 1)
|
||||
echo "Selected random wallpaper from $HOME/wallpapers: $SET_WALLPAPER_NAME"
|
||||
SET_WALLPAPER_FULL="$WALLPAPER_DIR/$SET_WALLPAPER_NAME"
|
||||
|
||||
else
|
||||
echo "Skipping hyprpaper changes and exiting."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Writing change to hyprpaper"
|
||||
|
||||
echo "" > $HYPRPAPER_FILE # Cleans hyprpaper file
|
||||
|
||||
echo "\$wallpaper = $SET_WALLPAPER_FULL" >> $HYPRPAPER_FILE
|
||||
echo "" >> $HYPRPAPER_FILE
|
||||
echo "splash = true" >> $HYPRPAPER_FILE
|
||||
echo "preload = \$wallpaper" >> $HYPRPAPER_FILE
|
||||
echo "wallpaper = , \$wallpaper" >> $HYPRPAPER_FILE
|
||||
|
||||
echo "Reloading pywal colorscheme"
|
||||
wal -q -s -t -i "$SET_WALLPAPER_FULL"
|
||||
|
||||
echo "Updating hyprpaper wallpaper"
|
||||
hyprctl hyprpaper unload all
|
||||
hyprctl hyprpaper preload "$SET_WALLPAPER_FULL"
|
||||
hyprctl hyprpaper wallpaper ", $SET_WALLPAPER_FULL"
|
||||
|
||||
echo "Reloading stylsheet for SwayNC"
|
||||
swaync-client -rs
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user