Initial commit

This commit is contained in:
zervo 2025-03-11 12:33:13 +01:00
commit 7db7871657
15 changed files with 1105 additions and 0 deletions

View file

@ -0,0 +1,499 @@
# See dunst(5) for all configuration options
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a window manager that exports the
# _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern window managers.
#
# If this option is set to mouse or keyboard, the monitor option
# will be ignored.
follow = none
### Geometry ###
# The width of the window, excluding the frame.
# dynamic width from 0 to 300
# width = (0, 300)
# constant width of 300
width = (100, 300)
# The height of a single notification, excluding the frame.
# dynamic height from 0 to 300
height = (0, 300)
# constant height of 300
# height = 300
# NOTE: Dunst from version 1.11 and older don't support dynamic height
# and the given value is treated as the maximum height
# Position the notification in the top right corner
origin = top-right
# Offset from the origin
# NOTE: Dunst from version 1.11 and older use this alternative notation
# offset = 10x50
offset = (15, 15)
# Scale factor. It is auto-detected if value is 0.
# NOTE: The screenshot was made with scale = 2
scale = 0
# Maximum number of notification (0 means no limit)
notification_limit = 10
### Progress bar ###
# Turn on the progress bar. It appears when a progress hint is passed with
# for example dunstify -h int:value:12
progress_bar = true
# Set the progress bar height. This includes the frame, so make sure
# it's at least twice as big as the frame width.
progress_bar_height = 14
# Set the frame width of the progress bar
progress_bar_frame_width = 0
# Set the minimum width for the progress bar
progress_bar_min_width = 100
# Set the maximum width for the progress bar
progress_bar_max_width = 300
# Corner radius for the progress bar. 0 disables rounded corners.
progress_bar_corner_radius = 50
# Define which corners to round when drawing the progress bar. If progress_bar_corner_radius
# is set to 0 this option will be ignored.
progress_bar_corners = bottom-left, top-right
# Corner radius for the icon image.
icon_corner_radius = 0
# Define which corners to round when drawing the icon image. If icon_corner_radius
# is set to 0 this option will be ignored.
icon_corners = all
# Show how many messages are currently hidden (because of
# notification_limit).
indicate_hidden = yes
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.). (X11 only)
transparency = 0
# Draw a line of "separator_height" pixel height between two
# notifications.
# Set to 0 to disable.
# If gap_size is greater than 0, this setting will be ignored.
separator_height = 6
# Padding between text and separator.
padding = 10
# Horizontal padding.
horizontal_padding = 8
# Padding between text and icon.
text_icon_padding = 12
# Defines width in pixels of frame around the notification window.
# Set to 0 to disable.
frame_width = 1
# Defines color of the frame around the notification window.
frame_color = "#a0a0a0"
# Size of gap to display between notifications - requires a compositor.
# If value is greater than 0, separator_height will be ignored and a border
# of size frame_width will be drawn around each notification instead.
# Click events on gaps do not currently propagate to applications below.
gap_size = 6
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
# Sort type.
# possible values are:
# * id: sort by id
# * urgency_ascending: sort by urgency (low then normal then critical)
# * urgency_descending: sort by urgency (critical then normal then low)
# * update: sort by update (most recent always at the top)
sort = yes
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
# A client can set the 'transient' hint to bypass this. See the rules
# section for how to disable this if necessary
# idle_threshold = 120
### Text ###
font = JetBrains Mono 12
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
line_height = 0
# Possible values are:
# full: Allow a small subset of html markup in notifications:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# <https://docs.gtk.org/Pango/pango_markup.html>.
#
# strip: This setting is provided for compatibility with some broken
# clients that send markup even though it's not enabled on the
# server. Dunst will try to strip the markup but the parsing is
# simplistic so using this option outside of matching rules for
# specific applications *IS GREATLY DISCOURAGED*.
#
# no: Disable markup parsing, incoming notifications will be treated as
# plain text. Dunst will not advertise that it has the body-markup
# capability if this is set as a global setting.
#
# It's important to note that markup inside the format option will be parsed
# regardless of what this is set to.
markup = full
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b>\n%b"
# Alignment of message text.
# Possible values are "left", "center" and "right".
alignment = left
# Vertical alignment of message text and icon.
# Possible values are "top", "center" and "bottom".
vertical_alignment = center
# Show age of message if message is older than show_age_threshold
# seconds.
# Set to -1 to disable.
show_age_threshold = -1
# Specify where to make an ellipsis in long lines.
# Possible values are "start", "middle" and "end".
ellipsize = middle
# Ignore newlines '\n' in notifications.
ignore_newline = no
# Stack together notifications with the same content
stack_duplicates = true
# Hide the count of stacked notifications with the same content
hide_duplicate_count = false
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
### Icons ###
# Recursive icon lookup. You can set a single theme, instead of having to
# define all lookup paths.
enable_recursive_icon_lookup = true
# Set icon theme (only used for recursive icon lookup)
icon_theme = Adwaita, Tela, Tela-black
# You can also set multiple icon themes, with the leftmost one being used first.
# icon_theme = "Adwaita, breeze"
# Align icons left/right/top/off
icon_position = right
# Scale small icons up to this size, set to 0 to disable. Helpful
# for e.g. small files or high-dpi screens. In case of conflict,
# max_icon_size takes precedence over this.
min_icon_size = 32
# Scale larger icons down to this size, set to 0 to disable
max_icon_size = 128
# Paths to default icons (only necessary when not using recursive icon lookup)
icon_path = /usr/share/icons/Tela/16/status/:/usr/share/icons/Tela/16/devices/
### History ###
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 30
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/bin/dmenu -l 10 -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/xdg-open
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
# Define the title of the windows spawned by dunst (X11 only)
title = Dunst
# Define the class of the windows spawned by dunst (X11 only)
class = Dunst
# Define the corner radius of the notification window
# in pixel size. If the radius is 0, you have no rounded
# corners.
# The radius will be automatically lowered if it exceeds half of the
# notification height to avoid clipping text and/or icons.
corner_radius = 10
# Define which corners to round when drawing the window. If the corner radius
# is set to 0 this option will be ignored.
#
# Comma-separated list of the corners. The accepted corner values are bottom-right,
# bottom-left, top-right, top-left, top, bottom, left, right or all.
corners = bottom, top-left
# Ignore the dbus closeNotification message.
# Useful to enforce the timeout set by dunst configuration. Without this
# parameter, an application may close the notification sent before the
# user defined timeout.
ignore_dbusclose = false
### Wayland ###
# These settings are Wayland-specific. They have no effect when using X11
# Uncomment this if you want to let notifications appear under fullscreen
# applications (default: overlay)
# layer = top
# Set this to true to use X11 output on Wayland.
force_xwayland = false
### Legacy
# Use the Xinerama extension instead of RandR for multi-monitor support.
# This setting is provided for compatibility with older nVidia drivers that
# do not support RandR and using it on systems that support RandR is highly
# discouraged.
#
# By enabling this setting dunst will not be able to detect when a monitor
# is connected or disconnected which might break follow mode if the screen
# layout changes.
force_xinerama = false
### mouse
# Defines list of actions for each mouse event
# Possible values are:
# * none: Don't do anything.
# * do_action: Invoke the action determined by the action_name rule. If there is no
# such action, open the context menu.
# * open_url: If the notification has exactly one url, open it. If there are multiple
# ones, open the context menu.
# * close_current: Close current notification.
# * close_all: Close all notifications.
# * context: Open context menu for the notification.
# * context_all: Open context menu for all notifications.
# These values can be strung together for each mouse event, and
# will be executed in sequence.
mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all
# Experimental features that may or may not work correctly. Do not expect them
# to have a consistent behaviour across releases.
[experimental]
# Calculate the dpi to use on a per-monitor basis.
# If this setting is enabled the Xft.dpi value will be ignored and instead
# dunst will attempt to calculate an appropriate dpi value for each monitor
# using the resolution and physical size. This might be useful in setups
# where there are multiple screens with very different dpi values.
per_monitor_dpi = false
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#222222"
foreground = "#ffffff"
highlight = "#722ae6, #e4b5cb"
timeout = 20
# Icon for notifications with low urgency
#default_icon = dialog-information
[urgency_normal]
background = "#222222"
foreground = "#ffffff"
frame_color = "#5e5086"
highlight = "#722ae6, #e4b5cb"
timeout = 20
override_pause_level = 30
# Icon for notifications with normal urgency
default_icon = dialog-information
[urgency_critical]
background = "#222222"
foreground = "#ffffff"
frame_color = "#d54e53"
highlight = "#d54e53, #f0f0f0"
timeout = 0
override_pause_level = 60
# Icon for notifications with critical urgency
default_icon = dialog-warning
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
#
# Messages can be matched by
# appname (discouraged, see desktop_entry)
# body
# category
# desktop_entry
# icon
# match_transient
# msg_urgency
# stack_tag
# summary
#
# and you can override the
# background
# foreground
# format
# frame_color
# fullscreen
# new_icon
# set_stack_tag
# set_transient
# set_category
# timeout
# urgency
# icon_position
# skip_display
# history_ignore
# action_name
# word_wrap
# ellipsize
# alignment
# hide_text
# override_pause_level
#
# Shell-like globbing will get expanded.
#
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
# GLib based applications export their desktop-entry name. In comparison to the appname,
# the desktop-entry won't get localized.
#
# You can also allow a notification to appear even when paused. Notification will appear whenever notification's override_pause_level >= dunst's paused level.
# This can be used to set partial pause modes, where more urgent notifications get through, but less urgent stay paused. To do that, you can override the following in the rules:
# override_pause_level = X
# SCRIPTING
# You can specify a script that gets run when the rule matches by
# setting the "script" option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
# Disable the transient hint so that idle_threshold cannot be bypassed from the
# client
#[transient_disable]
# match_transient = yes
# set_transient = no
#
# Make the handling of transient notifications more strict by making them not
# be placed in history.
#[transient_history_ignore]
# match_transient = yes
# history_ignore = yes
# fullscreen values
# show: show the notifications, regardless if there is a fullscreen window opened
# delay: displays the new notification, if there is no fullscreen window active
# If the notification is already drawn, it won't get undrawn.
# pushback: same as delay, but when switching into fullscreen, the notification will get
# withdrawn from screen again and will get delayed like a new notification
#[fullscreen_delay_everything]
# fullscreen = delay
#[fullscreen_show_critical]
# msg_urgency = critical
# fullscreen = show
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# skip_display = true
#[history-ignore]
# # This notification will not be saved in history
# summary = "foobar"
# history_ignore = yes
#[skip-display]
# # This notification will not be displayed, but will be included in the history
# summary = "foobar"
# skip_display = yes
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
#[stack-volumes]
# appname = "some_volume_notifiers"
# set_stack_tag = "volume"
#
# vim: ft=cfg

View file

@ -0,0 +1,28 @@
#################
### AUTOSTART ###
#################
# Set utility script path.
$scriptPath = ~/.config/hypr/scripts
# Unscale XWayland
xwayland {
force_zero_scaling = true
}
# Setup/run XDPH (xdg desktop portal)
exec-once = $scriptPath/resetxdgportal.sh # reset XDPH for screenshare
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH
exec-once = dbus-update-activation-environment --systemd --all # for XDPH
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH
# Start polkit agent
exec-once = systemctl --user start hyprpolkitagent
# Start idle management daemon
exec-once = hypridle
# Rice components
#exec-once = hyprpaper
exec-once = waybar
exec-once = dunst &

View file

@ -0,0 +1,93 @@
#############################
### ENVIRONMENT VARIABLES ###
#############################
# Documentation: https://wiki.hyprland.org/Configuring/Environment-variables/
###############
## OVERRIDES ##
###############
env = MOZ_ENABLE_WAYLAND,1 # Force firefox to run natively under wayland.
env = EDITOR,neovim # Set neovim as default editor.
##############
## HYPRLAND ##
##############
#env = HYPRLAND_TRACE,1 # Enables verbose logging.
#env = HYPRLAND_NO_RT,1 # Disables realtime priority setting by Hyprland.
#env = HYPRLAND_NO_SD_NOTIFY,1 # If systemd, disables the 'sd_notify' calls.
#env = HYPRLAND_NO_SD_VARS,1 # Disables management of variables in systemd and dbus activation environments
################
## AQUAMARINE ##
################
#env = AQ_TRACE,1 # Enables verbose logging.
#env = AQ_DRM_DEVICE,CardsHere # Explicitly define DRM devices to use. Colon-separated list of paths, with the first being the primary. E.g. /dev/dri/card1:/dev/dri/card0
#env = AQ_MPGU_NO_EXPLICIT,1 # Disables explicit syncing on mgpu buffers.
#env = AQ_NO_MODIFIERS,1 # Disables modifiers for DRM buffers.
#####################
## TOOLKIT BACKEND ##
#####################
#env = GDK_BACKEND,wayland,x11,* # GTK: Use wayland if available. If not: try x11, then any other GDK backend.
#env = GDK_SCALE,1
env = QT_QPA_PLATFORM,wayland;xcb # Qt: Use wayland if available, fall back to x11 if not.
#env = SDL_VIDEODRIVER,wayland # Run SDL2 applications on Wayland. Remove or set to x11 if games that provide older versions of SDL cause compatibility issues
#env = CLUTTER_BACKEND,wayland # Clutter package already has wayland enabled, this variable will force Clutter applications to try and use the Wayland backend
###############
## XDG SPECS ##
###############
env = XDG_CURRENT_DESKTOP,Hyprland # Specify the DE being used.
env = XDG_SESSION_TYPE,wayland # Specify the graphic environment of the session.
env = XDG_SESSION_DESKTOP,Hyprland # Specify the DE of the session.
########
## QT ##
########
env = QT_AUTO_SCREEN_SCALE_FACTOR,1 # Enables automatic scaling, based on the monitors pixel density.
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 # Disables window decorations on Qt applications
#env = QT_QPA_PLATFORMTHEME,qt5ct # Tells Qt based applications to pick your theme from qt5ct, use with Kvantum.
############
## NVIDIA ##
############
# Useful info: https://wiki.hyprland.org/Nvidia/
# Set the following to force GBM as backend:
env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
# Hardware acceleration. More info: https://wiki.archlinux.org/title/Wayland#Requirements
env = LIBVA_DRIVER_NAME,nvidia
# Controls if G-Sync capable monitors use Variable Refresh Rate (VBR). More info: https://wiki.archlinux.org/title/Hardware_video_acceleration
#env = __GL_GSYNC_ALLOWED
# Controls if Adaptive Sync should be used. Recommended to set as “0” to avoid having problems on some games.
#env = __GL_VRR_ALLOWED,0
# Use legacy DRM interface instead of atomic mode setting. NOT recommended.
#env = AQ_NO_ATOMIC,1
#############
## THEMING ##
#############
env = GTK_THEME,Adwaita:dark # Override GTK theme, useful if you want to avoid appearance tools such as lxappearance or nwg-look.
#env = XCURSOR_THEME,someTheme # Set cursor theme. The theme needs to be installed and readable by your user.
env = XCURSOR_SIZE,24 # Set cursor size. Why? Because: https://wiki.hyprland.org/FAQ/
env = HYPRCURSOR_SIZE,24

View file

@ -0,0 +1,38 @@
##############################
### IDLE MANAGEMENT DAEMON ###
##############################
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
timeout = 150 # 2.5min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore.
}
# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
# listener {
# timeout = 150 # 2.5min.
# on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
# on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
# }
listener {
timeout = 300 # 5min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 330 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}
listener {
timeout = 1800 # 30min
on-timeout = systemctl suspend # suspend pc
}

View file

@ -0,0 +1,58 @@
# /$$ /$$ /$$ /$$
# | $$ | $$ | $$ | $$
# | $$ | $$ /$$ /$$ /$$$$$$ /$$$$$$ | $$ /$$$$$$ /$$$$$$$ /$$$$$$$
# | $$$$$$$$| $$ | $$ /$$__ $$ /$$__ $$| $$ |____ $$| $$__ $$ /$$__ $$
# | $$__ $$| $$ | $$| $$ \ $$| $$ \__/| $$ /$$$$$$$| $$ \ $$| $$ | $$
# | $$ | $$| $$ | $$| $$ | $$| $$ | $$ /$$__ $$| $$ | $$| $$ | $$
# | $$ | $$| $$$$$$$| $$$$$$$/| $$ | $$| $$$$$$$| $$ | $$| $$$$$$$
# |__/ |__/ \____ $$| $$____/ |__/ |__/ \_______/|__/ |__/ \_______/
# /$$ | $$| $$
# | $$$$$$/| $$
# \______/ |__/
#
# ------------ [ Zervó's Hyprland Config ] ------------
#
# This is my Hyprland config!
# Each section has been split into an individual file to make working with it easier.
# https://wiki.hyprland.org/Configuring/
#
# This config relies on the following programs:
# - hyprland - hyprland itself
# - hyprpaper - wallpaper utility
# - hyprlock - screen-locking utility
# - hypridle - idle management daemon
# - waybar - status bar
# - dunst - notification daemon
# - playerctl - media control
# - brightnessctl - brightness control
# - wpctl - audio control
# - hyprpolkitagent - policykit agent auth agent
## PROGRAMS ##
$browser = firefox --new-window
$terminal = alacritty
$fileManager = nemo
$menu = ~/.config/rofi/launchers/type-2/launcher.sh
## MONITORS ##
source = ~/.config/hypr/monitors.conf
## AUTOSTART ##
source = ~/.config/hypr/autostart.conf
## ENVIRONMENT ##
source = ~/.config/hypr/env.conf
## LOOK AND FEEL ##
source = ~/.config/hypr/theme.conf
## INPUT ##
source = ~/.config/hypr/input.conf
## KEYBINDS ##
source = ~/.config/hypr/keybinds.conf
## RULES ##
source = ~/.config/hypr/rules.conf

View file

@ -0,0 +1,73 @@
#########################
### LOCKSCREEN CONFIG ###
#########################
# Documentation: https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/
# Example: https://github.com/justinmdickey/publicdots/blob/main/.config/hypr/hyprlock.conf
# BACKGROUND
background {
monitor =
#path = screenshot
path = ~/.config/hypr/wp/wp.jpg
#color = $background
blur_passes = 2
contrast = 1
brightness = 0.5
vibrancy = 0.2
vibrancy_darkness = 0.2
}
# GENERAL
general {
no_fade_in = true
no_fade_out = true
hide_cursor = false
grace = 0
disable_loading_bar = true
}
# DATE
label {
monitor =
text = cmd[update:1000] echo "$(date +"%A, %B %d")"
color = rgba(242, 243, 244, 0.75)
font_size = 22
font_family = JetBrains Mono
position = 0, 300
halign = center
valign = center
}
# INPUT FIELD
input-field {
monitor =
size = 250, 60
outline_thickness = 2
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.35 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
outer_color = rgba(0, 0, 0, 0)
inner_color = rgba(0, 0, 0, 0.2)
font_color = rgba(255, 255, 255, 0)
fade_on_empty = false
rounding = -1
check_color = rgb(204, 136, 34)
placeholder_text = <i><span foreground="##cdd6f4">Input Password...</span></i>
hide_input = false
position = 0, -200
halign = center
valign = center
}
# TIME
label {
monitor =
text = cmd[update:1000] echo "$(date +"%-I:%M")"
color = rgba(242, 243, 244, 0.75)
font_size = 95
font_family = JetBrains Mono Extrabold
position = 0, 200
halign = center
valign = center
}

View file

@ -0,0 +1,6 @@
#################
### WALLPAPER ###
#################
preload = ~/.config/hypr/wp/wp.jpg
wallpaper = , ~/.config/hypr/wp/wp.jpg

View file

@ -0,0 +1,33 @@
#############
### INPUT ###
#############
# Documentation: https://wiki.hyprland.org/Configuring/Variables/#input
input {
kb_layout = se
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
}
}
# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
workspace_swipe = false
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device {
name = epic-mouse-v1
sensitivity = -0.5
}

View file

@ -0,0 +1,113 @@
###################
### KEYBINDINGS ###
###################
# Documentation: https://wiki.hyprland.org/Configuring/Binds/
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier
# WM BINDS:
# Keybinds related to Hyprland itself.
bind = $mainMod CTRL, E, exit, # Exit session.
# APPLICATION BINDS:
# Keybinds related to launching applications.
bind = $mainMod, Return, exec, $terminal # New terminal.
bind = $mainMod, B, exec, $browser # New browser.
bind = $mainMod, E, exec, [float] $fileManager # File explorer.
bind = $mainMod, W, exec, $menu # App launcher.
# WINDOW BINDS:
# Keybinds related to operating on a window.
bind = $mainMod SHIFT, Q, killactive, # Kill active window.
bind = $mainMod, F, fullscreen # Toggle fullscreen on active window.
bind = $mainMod, SPACE, togglefloating, # Toggle floating on active window.
bind = $mainMod, P, pseudo, # Toggle pseudo-tiling on active window.
bind = $mainMod, J, togglesplit, # Toggle splits on active window.
bind = $mainMod SHIFT, left, movewindow, l # Move active window left.
bind = $mainMod SHIFT, right, movewindow, r # Move active window right.
bind = $mainMod SHIFT, up, movewindow, u # Move active window up.
bind = $mainMod SHIFT, down, movewindow, d # Move active window down.
bindm = $mainMod, mouse:272, movewindow # Move window on mainMod+leftclick-drag.
bindm = $mainMod, mouse:273, resizewindow # Resize window on mainMod+rightclick-drag.
# WINDOW-GROUP BINDS:
# Keybinds related to the grouping of windows.
bind = $mainMod, G, togglegroup, # Create group from window or dissolve existing group.
bind = $mainMod SHIFT, G, moveoutofgroup # Move active window out of group.
# bind = $mainMod CTRL, left, moveintogroup, l # Move active window into group on the left.
# bind = $mainMod CTRL, right, moveintogroup, r # Move active window into group on the right.
# bind = $mainMod CTRL, up, moveintogroup, u # Move active window into group above.
# bind = $mainMod CTRL, down, moveintogroup, d # Move active window into group below.
# Move active window into a group if there is a one in the given direction.
# Moves window out of a group if there is no group in the given direction relative to the active group.
# Otherwise behaves like a normal window move.
bind = $mainMod CTRL, left, movewindoworgroup, l # -- || -- left
bind = $mainMod CTRL, right, movewindoworgroup, r # -- || -- right
bind = $mainMod CTRL, up, movewindoworgroup, u # -- || -- up
bind = $mainMod CTRL, down, movewindoworgroup, d # -- || -- down
# FOCUS BINDS:
# Keybinds related to window focus.
#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
# WORKSPACE BINDS:
# Keybinds related to workspaces.
# 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, movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
# Special workspace (scratchpad).
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
# MULTIMEDIA BINDS:
# Keybinds related to the multimedia keys often found on laptops.
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ # Increase audio volume by 5%.
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- # Decrease audio volume by 5%
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # (un)Mute default audio sink.
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle # (un)Mute default audio source.
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+ # Increase screen brightness by 10%.
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%- # Decrease screen brightness by 10%.
bindl = , XF86AudioNext, exec, playerctl next # Skip to next media in queue.
bindl = , XF86AudioPause, exec, playerctl play-pause # (un)Pause current media.
bindl = , XF86AudioPlay, exec, playerctl play-pause # (un)Pause current media.
bindl = , XF86AudioPrev, exec, playerctl previous # Play previous media.

View file

@ -0,0 +1,7 @@
################
### MONITORS ###
################
# Documentation: https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,1

View file

@ -0,0 +1,29 @@
####################################
### WINDOWS- AND WORKSPACE RULES ###
####################################
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# 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 = opacity 0.9,class:^(Alacritty)$
# windowrulev2 = opacity 0.99,class:^(code-oss)$
# windowrulev2 = opacity 0.99,class:^(Code)$
# windowrulev2 = opacity 0.99,class:^(VSCodium)$
windowrulev2 = opacity 0.9,class:^([Ss]team)$
windowrulev2 = opacity 0.9,class:^(steamwebhelper)$
windowrulev2 = opacity 0.9,class:^(Spotify)$
windowrulev2 = float, class:firefox,title:(.*)(Bitwarden Password Manager)

View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-gnome
killall xdg-desktop-portal-kde
killall xdg-desktop-portal-lxqt
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
sleep 1
# Use different directory on NixOS
if [ -d /run/current-system/sw/libexec ]; then
libDir=/run/current-system/sw/libexec
else
libDir=/usr/lib
fi
$libDir/xdg-desktop-portal-hyprland &
sleep 2
$libDir/xdg-desktop-portal &

View file

@ -0,0 +1,108 @@
#####################
### LOOK AND FEEL ###
#####################
# Refer to https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
gaps_in = 3
gaps_out = 5
border_size = 1
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
layout = dwindle
}
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
rounding = 10
rounding_power = 2
# Change transparency of focused and unfocused windows
active_opacity = 1.0
inactive_opacity = 1.0
shadow {
enabled = true
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
size = 3
passes = 1
vibrancy = 0.1696
}
}
# https://wiki.hyprland.org/Configuring/Variables/#animations
animations {
enabled = yes, please :)
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = easeOutQuint,0.23,1,0.32,1
bezier = easeInOutCubic,0.65,0.05,0.36,1
bezier = linear,0,0,1,1
bezier = almostLinear,0.5,0.5,0.75,1.0
bezier = quick,0.15,0,0.1,1
animation = global, 1, 10, default
animation = border, 1, 5.39, easeOutQuint
animation = windows, 1, 4.79, easeOutQuint
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
animation = windowsOut, 1, 1.49, linear, popin 87%
animation = fadeIn, 1, 1.73, almostLinear
animation = fadeOut, 1, 1.46, almostLinear
animation = fade, 1, 3.03, quick
animation = layers, 1, 3.81, easeOutQuint
animation = layersIn, 1, 4, easeOutQuint, fade
animation = layersOut, 1, 1.5, linear, fade
animation = fadeLayersIn, 1, 1.79, almostLinear
animation = fadeLayersOut, 1, 1.39, almostLinear
animation = workspaces, 1, 1.94, almostLinear, fade
animation = workspacesIn, 1, 1.21, almostLinear, fade
animation = workspacesOut, 1, 1.94, almostLinear, fade
}
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
# "Smart gaps" / "No gaps when only"
# uncomment all if you wish to use that.
# workspace = w[tv1], gapsout:0, gapsin:0
# workspace = f[1], gapsout:0, gapsin:0
# windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1]
# windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1]
# windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
# windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this
}
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
new_status = master
}
# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB