initial dotfiles setup
Profile-based dotfiles with switchable color themes. Structure: profiles/ with themes/ and config/ per profile.
This commit is contained in:
@@ -0,0 +1,505 @@
|
||||
# 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 = 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 bottom right corner
|
||||
origin = bottom-right
|
||||
|
||||
# Offset from the origin
|
||||
# NOTE: Dunst from version 1.11 and older use this alternative notation
|
||||
# offset = 10x50
|
||||
offset = (10, 10)
|
||||
|
||||
# Scale factor. It is auto-detected if value is 0.
|
||||
scale = 0
|
||||
|
||||
# Maximum number of notification (0 means no limit)
|
||||
notification_limit = 20
|
||||
|
||||
### 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 = 10
|
||||
|
||||
# Set the frame width of the progress bar
|
||||
progress_bar_frame_width = 1
|
||||
|
||||
# Set the minimum width for the progress bar
|
||||
progress_bar_min_width = 150
|
||||
|
||||
# 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 = 0
|
||||
|
||||
# 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 = all
|
||||
|
||||
# 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 = 2
|
||||
|
||||
# Padding between text and separator.
|
||||
padding = 8
|
||||
|
||||
# Horizontal padding.
|
||||
horizontal_padding = 8
|
||||
|
||||
# Padding between text and icon.
|
||||
text_icon_padding = 0
|
||||
|
||||
# Defines width in pixels of frame around the notification window.
|
||||
# Set to 0 to disable.
|
||||
frame_width = 3
|
||||
|
||||
# Defines color of the frame around the notification window.
|
||||
frame_color = "#aaaaaa"
|
||||
|
||||
# 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 = 0
|
||||
|
||||
# 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 = Monospace 8
|
||||
|
||||
# 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
|
||||
# %c category
|
||||
# %S stack_tag
|
||||
# %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 = 60
|
||||
|
||||
# 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
|
||||
|
||||
# When set to true (recommended), you can use POSIX regular expressions for filtering rules.
|
||||
# If this is set to false (not recommended), dunst will use fnmatch(3) for matching strings.
|
||||
# Dunst doesn't pass any flags to fnmatch, so you cannot make use of extended patterns.
|
||||
#
|
||||
# Note that this will eventually be true by default.
|
||||
enable_posix_regex = false
|
||||
|
||||
### 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
|
||||
# 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 = left
|
||||
|
||||
# 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/gnome/16x16/status/:/usr/share/icons/gnome/16x16/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 = 20
|
||||
|
||||
### Misc/Advanced ###
|
||||
|
||||
# dmenu path.
|
||||
dmenu = /usr/bin/dmenu -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 = 12
|
||||
|
||||
# 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 = all
|
||||
|
||||
# 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.
|
||||
# * remove_current: Remove current notification from history.
|
||||
# * 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
|
||||
|
||||
# Pause notification timeout when mouse hovers over the notification window.
|
||||
# When enabled, notifications won't timeout while the mouse pointer is over
|
||||
# them. The timeout resumes when the pointer leaves the window.
|
||||
# Only works on Wayland.
|
||||
pause_on_mouse_over = false
|
||||
|
||||
# Use PCRE regular expressions for filtering rules.
|
||||
# This setting overrides enable_posix_regex.
|
||||
enable_pcre_regex = false
|
||||
|
||||
[urgency_low]
|
||||
skip_display = true
|
||||
timeout = 1
|
||||
script = "~/.config/dunst/notify-waybar.sh"
|
||||
|
||||
[urgency_normal]
|
||||
skip_display = true
|
||||
timeout = 1
|
||||
override_pause_level = 30
|
||||
script = "~/.config/dunst/notify-waybar.sh"
|
||||
|
||||
[urgency_critical]
|
||||
skip_display = true
|
||||
timeout = 1
|
||||
override_pause_level = 60
|
||||
script = "~/.config/dunst/notify-waybar.sh"
|
||||
|
||||
# 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
|
||||
# suppress: withdraw the displayed notification when entering fullscreen and never show
|
||||
# the new notifications that arrive during fullscreen mode
|
||||
#[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"
|
||||
#
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
SUMMARY="$DUNST_SUMMARY"
|
||||
APP="$DUNST_APP_NAME"
|
||||
BODY="$DUNST_BODY"
|
||||
|
||||
[ -z "$SUMMARY" ] && exit 0
|
||||
|
||||
echo "${APP}: ${SUMMARY}${BODY:+ — $BODY}" > /tmp/waybar-notif
|
||||
|
||||
# Datei nach 10 Sekunden automatisch leeren
|
||||
(sleep 10 && rm -f /tmp/waybar-notif) &
|
||||
@@ -0,0 +1,3 @@
|
||||
[Settings]
|
||||
gtk-application-prefer-dark-theme=1
|
||||
gtk-theme-name=Adwaita-dark
|
||||
@@ -0,0 +1,3 @@
|
||||
[Settings]
|
||||
gtk-application-prefer-dark-theme=1
|
||||
color-scheme=prefer-dark
|
||||
@@ -0,0 +1,406 @@
|
||||
# #######################################################################################
|
||||
# AUTOGENERATED HYPRLAND CONFIG.
|
||||
# EDIT THIS CONFIG ACCORDING TO THE WIKI INSTRUCTIONS.
|
||||
# #######################################################################################
|
||||
|
||||
|
||||
|
||||
# This is an example Hyprland config file.
|
||||
# Refer to the wiki for more information.
|
||||
# https://wiki.hypr.land/Configuring/
|
||||
|
||||
# Please note not all available settings / options are set here.
|
||||
# For a full list, see the wiki
|
||||
|
||||
# You can split this configuration into multiple files
|
||||
# Create your files separately and then link them to this file like this:
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
|
||||
|
||||
### Colors (generated by pywal — edit ~/.config/wal/colorschemes/dark/tekki.json) ###
|
||||
source = ~/.config/hypr/colors.conf
|
||||
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Monitors/
|
||||
monitor=,preferred,auto,auto
|
||||
|
||||
|
||||
###################
|
||||
### MY PROGRAMS ###
|
||||
###################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Keywords/
|
||||
|
||||
# Set programs that you use
|
||||
$terminal = kitty
|
||||
$fileManager = dolphin
|
||||
$menu = wofi --show drun
|
||||
|
||||
|
||||
#################
|
||||
### AUTOSTART ###
|
||||
#################
|
||||
|
||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||
# Or execute your favorite apps at launch like this:
|
||||
|
||||
exec-once = ~/.config/wal/reload.sh
|
||||
exec-once = sleep 2 && ~/.config/wal/preload-wallpapers.sh
|
||||
exec-once = $terminal
|
||||
exec-once = nm-applet &
|
||||
exec-once = waybar
|
||||
|
||||
# Authentication Agent
|
||||
exec-once = systemctl --user start hyprpolkitagent
|
||||
|
||||
# Wallpaper
|
||||
exec-once = awww-daemon
|
||||
|
||||
# Notification Demon
|
||||
exec-once = dunst
|
||||
|
||||
# Bluetooth Tray-Applet (blueman) - Maus/Geräte pairen per Klick im Waybar-Tray
|
||||
exec-once = blueman-applet
|
||||
|
||||
# Clipboard
|
||||
exec-once = wl-paste --type text --watch cliphist store
|
||||
exec-once = wl-paste --type image --watch cliphist store
|
||||
|
||||
# XDG Desktop Portal
|
||||
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISLAY XDG_CURRENT_DSKTOP
|
||||
|
||||
#################
|
||||
### Wallpaper ###
|
||||
#################
|
||||
# preload = ~/.config/hypr/wallpapers/meinbild.jpg
|
||||
# wallpaper = ,~/.config/hypr/wallpapers/meinbild.jpg
|
||||
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
#############################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Environment-variables/
|
||||
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
env = GTK_THEME,Adwaita:dark
|
||||
env = GNOME_DESKTOP_SESSION_ID,this-is-deprecated
|
||||
|
||||
|
||||
###################
|
||||
### PERMISSIONS ###
|
||||
###################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Permissions/
|
||||
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
||||
# for security reasons
|
||||
|
||||
# ecosystem {
|
||||
# enforce_permissions = 1
|
||||
# }
|
||||
|
||||
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
|
||||
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
||||
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
|
||||
|
||||
|
||||
#####################
|
||||
### LOOK AND FEEL ###
|
||||
#####################
|
||||
|
||||
# Refer to https://wiki.hypr.land/Configuring/Variables/
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#general
|
||||
general {
|
||||
gaps_in = 0
|
||||
gaps_out = 0
|
||||
|
||||
border_size = 1
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
|
||||
col.active_border = $wal_pink $wal_green 45deg
|
||||
col.inactive_border = $wal_muted
|
||||
|
||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = false
|
||||
|
||||
# Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#decoration
|
||||
decoration {
|
||||
rounding = 0
|
||||
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.hypr.land/Configuring/Variables/#blur
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 1
|
||||
|
||||
vibrancy = 0.1696
|
||||
}
|
||||
}
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#animations
|
||||
animations {
|
||||
enabled = yes, please :)
|
||||
|
||||
# Default curves, see https://wiki.hypr.land/Configuring/Animations/#curves
|
||||
# NAME, X0, Y0, X1, Y1
|
||||
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
|
||||
bezier = quick, 0.15, 0, 0.1, 1
|
||||
|
||||
# Default animations, see https://wiki.hypr.land/Configuring/Animations/
|
||||
# NAME, ONOFF, SPEED, CURVE, [STYLE]
|
||||
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
|
||||
animation = zoomFactor, 1, 7, quick
|
||||
}
|
||||
|
||||
# Ref https://wiki.hypr.land/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
|
||||
# windowrule {
|
||||
# name = no-gaps-wtv1
|
||||
# match:float = false
|
||||
# match:workspace = w[tv1]
|
||||
#
|
||||
# border_size = 0
|
||||
# rounding = 0
|
||||
# }
|
||||
#
|
||||
# windowrule {
|
||||
# name = no-gaps-f1
|
||||
# match:float = false
|
||||
# match:workspace = f[1]
|
||||
#
|
||||
# border_size = 0
|
||||
# rounding = 0
|
||||
# }
|
||||
|
||||
# See https://wiki.hypr.land/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.hypr.land/Configuring/Master-Layout/ for more
|
||||
master {
|
||||
new_status = master
|
||||
}
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#misc
|
||||
misc {
|
||||
force_default_wallpaper = 0
|
||||
disable_hyprland_logo = true
|
||||
}
|
||||
|
||||
|
||||
#############
|
||||
### INPUT ###
|
||||
#############
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#input
|
||||
input {
|
||||
kb_layout = de
|
||||
kb_variant = nodeadkeys
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
touchpad {
|
||||
natural_scroll = false
|
||||
}
|
||||
}
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Gestures
|
||||
gesture = 3, horizontal, workspace
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
|
||||
device {
|
||||
name = epic-mouse-v1
|
||||
sensitivity = -0.5
|
||||
}
|
||||
|
||||
|
||||
###################
|
||||
### KEYBINDINGS ###
|
||||
###################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Keywords/
|
||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||
|
||||
# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
|
||||
bind = $mainMod, T, exec, $terminal
|
||||
bind = $mainMod, H, exec, kitty --class hypr-help -e bash -c "glow /home/tekki/.config/hypr/shortcuts.md; read -p 'Enter zum Schließen'"
|
||||
bind = $mainMod, Q, killactive,
|
||||
bind = $mainMod, M, exec, command -v hyprshutdown >/dev/null 2>&1 && hyprshutdown || hyprctl dispatch exit
|
||||
bind = $mainMod, E, exec, $fileManager
|
||||
#bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy
|
||||
bind = $mainMod, F, togglefloating,
|
||||
bind = $mainMod, L, exec, hyprlock
|
||||
bind = $mainMod, R, exec, $menu
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, layoutmsg, togglesplit # dwindle
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
# Aktives Fenster mit Pfeiltasten verschieben
|
||||
bind = $mainMod SHIFT, left, movewindow, l
|
||||
bind = $mainMod SHIFT, right, movewindow, r
|
||||
bind = $mainMod SHIFT, up, movewindow, u
|
||||
bind = $mainMod SHIFT, down, movewindow, d
|
||||
|
||||
# Theme wechseln
|
||||
bind = , F3, exec, ~/.config/wal/next-theme.sh
|
||||
|
||||
# Touchpad ein/ausschalten (Fn+F7 = Ctrl+Super+F24 laut Firmware)
|
||||
bind = CTRL SUPER, F24, exec, /home/tekki/.config/hypr/scripts/touchpad-toggle.sh
|
||||
|
||||
# Laptop multimedia keys for volume and LCD brightness
|
||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @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 -e4 -n2 set 5%+
|
||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
||||
|
||||
# Requires playerctl
|
||||
bindl = , XF86AudioNext, exec, playerctl next
|
||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
bind = CTRL SHIFT, V, exec, wl-paste | wtype -
|
||||
|
||||
##############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
||||
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
||||
|
||||
# Example windowrules that are useful
|
||||
|
||||
windowrule {
|
||||
# Hilfe-Fenster (SUPER+H): floating, zentriert, feste Größe
|
||||
name = hypr-help-float
|
||||
match:class = hypr-help
|
||||
|
||||
float = yes
|
||||
center = yes
|
||||
size = 800 600
|
||||
}
|
||||
|
||||
windowrule {
|
||||
# Ignore maximize requests from all apps. You'll probably like this.
|
||||
name = suppress-maximize-events
|
||||
match:class = .*
|
||||
|
||||
suppress_event = maximize
|
||||
}
|
||||
|
||||
windowrule {
|
||||
# Fix some dragging issues with XWayland
|
||||
name = fix-xwayland-drags
|
||||
match:class = ^$
|
||||
match:title = ^$
|
||||
match:xwayland = true
|
||||
match:float = true
|
||||
match:fullscreen = false
|
||||
match:pin = false
|
||||
|
||||
no_focus = true
|
||||
}
|
||||
|
||||
# Hyprland-run windowrule
|
||||
windowrule {
|
||||
name = move-hyprland-run
|
||||
|
||||
match:class = hyprland-run
|
||||
|
||||
move = 20 monitor_h-120
|
||||
float = yes
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
general {
|
||||
hide_cursor = true
|
||||
}
|
||||
|
||||
input-field {
|
||||
size = 300, 50
|
||||
position = 0, -100
|
||||
halign = center
|
||||
valign = center
|
||||
placeholder_text = Passwort...
|
||||
hide_input = false
|
||||
}
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
DEVICE="htix5288:00-0911:5288-touchpad"
|
||||
STATE_FILE="/tmp/touchpad-disabled"
|
||||
|
||||
if [ -f "$STATE_FILE" ]; then
|
||||
hyprctl keyword "device[$DEVICE]:enabled" true
|
||||
rm "$STATE_FILE"
|
||||
notify-send "Touchpad" "Aktiviert"
|
||||
else
|
||||
hyprctl keyword "device[$DEVICE]:enabled" false
|
||||
touch "$STATE_FILE"
|
||||
notify-send "Touchpad" "Deaktiviert"
|
||||
fi
|
||||
@@ -0,0 +1,9 @@
|
||||
include ~/.cache/wal/colors-kitty.conf
|
||||
|
||||
font_family MesloLGS Nerd Font Mono Regular
|
||||
bold_font MesloLGS Nerd Font Mono Bold
|
||||
italic_font MesloLGS Nerd Font Mono Italic
|
||||
bold_italic_font MesloLGS Nerd Font Mono Bold Italic
|
||||
font_size 9.0
|
||||
cursor_shape block
|
||||
shell_integration enabled
|
||||
@@ -0,0 +1,269 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Reads the active theme's colors.json and generates all themed config files."""
|
||||
import json, os
|
||||
|
||||
scheme = os.path.expanduser('~/.active_theme/colors.json')
|
||||
cache = os.path.expanduser('~/.cache/wal')
|
||||
os.makedirs(cache, exist_ok=True)
|
||||
|
||||
with open(scheme) as f:
|
||||
c = json.load(f)
|
||||
|
||||
bg = c['special']['background']
|
||||
fg = c['special']['foreground']
|
||||
pink = c['colors']['color1']
|
||||
green = c['colors']['color2']
|
||||
muted = c['colors']['color8']
|
||||
dark = c['colors']['color0']
|
||||
|
||||
def rgba(h, a):
|
||||
h = h.lstrip('#')
|
||||
r, g, b = int(h[0:2],16), int(h[2:4],16), int(h[4:6],16)
|
||||
return f"rgba({r},{g},{b},{a})"
|
||||
|
||||
# ── Waybar ────────────────────────────────────────────────────────────────────
|
||||
waybar = f"""/* Generated — edit ~/.active_theme/colors.json */
|
||||
|
||||
* {{
|
||||
font-family: "MesloLGS Nerd Font Mono", "Font Awesome 7 Free", monospace;
|
||||
font-size: 11px;
|
||||
font-weight: normal;
|
||||
min-height: 0;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}}
|
||||
|
||||
window#waybar {{
|
||||
background-color: {rgba(bg, 0.95)};
|
||||
border-bottom: 1px solid {rgba(pink, 0.4)};
|
||||
color: {green};
|
||||
}}
|
||||
|
||||
window#waybar.bottom {{
|
||||
border-bottom: none;
|
||||
border-top: 1px solid {rgba(pink, 0.4)};
|
||||
font-size: 11px;
|
||||
}}
|
||||
|
||||
#custom-notification {{
|
||||
padding: 1px 8px;
|
||||
color: {green};
|
||||
font-style: italic;
|
||||
}}
|
||||
|
||||
#disk,
|
||||
#network.speed {{
|
||||
padding: 1px 8px;
|
||||
margin: 3px 2px;
|
||||
color: {green};
|
||||
}}
|
||||
|
||||
#workspaces {{
|
||||
margin: 2px 4px;
|
||||
padding: 0 2px;
|
||||
}}
|
||||
|
||||
#workspaces button {{
|
||||
padding: 2px 10px;
|
||||
background: transparent;
|
||||
color: {muted};
|
||||
border-radius: 10px;
|
||||
margin: 2px;
|
||||
transition: all 0.2s ease;
|
||||
}}
|
||||
|
||||
#workspaces button:hover {{
|
||||
color: {pink};
|
||||
}}
|
||||
|
||||
#workspaces button.active {{
|
||||
color: {pink};
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid {pink};
|
||||
}}
|
||||
|
||||
#workspaces button.urgent {{
|
||||
color: {pink};
|
||||
animation: blink 0.6s steps(1) infinite;
|
||||
}}
|
||||
|
||||
#window {{
|
||||
color: {muted};
|
||||
padding: 0 10px;
|
||||
font-style: italic;
|
||||
}}
|
||||
|
||||
#clock {{
|
||||
color: {pink};
|
||||
font-weight: bold;
|
||||
padding: 1px 12px;
|
||||
}}
|
||||
|
||||
#cpu,
|
||||
#memory,
|
||||
#temperature,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#tray {{
|
||||
padding: 1px 8px;
|
||||
margin: 2px 1px;
|
||||
color: {green};
|
||||
transition: all 0.2s ease;
|
||||
}}
|
||||
|
||||
#cpu:hover,
|
||||
#memory:hover,
|
||||
#network:hover,
|
||||
#pulseaudio:hover {{
|
||||
color: {pink};
|
||||
}}
|
||||
|
||||
#temperature.critical {{
|
||||
color: {pink};
|
||||
}}
|
||||
|
||||
#network.disconnected {{
|
||||
color: {pink};
|
||||
}}
|
||||
|
||||
#pulseaudio.muted {{
|
||||
color: {muted};
|
||||
}}
|
||||
|
||||
#tray > .passive {{
|
||||
-gtk-icon-effect: dim;
|
||||
}}
|
||||
|
||||
#tray > .needs-attention {{
|
||||
-gtk-icon-effect: highlight;
|
||||
}}
|
||||
|
||||
@keyframes blink {{
|
||||
to {{ color: {muted}; }}
|
||||
}}
|
||||
"""
|
||||
|
||||
# ── Wofi ──────────────────────────────────────────────────────────────────────
|
||||
wofi = f"""/* Generated — edit ~/.active_theme/colors.json */
|
||||
|
||||
window {{
|
||||
background-color: {bg};
|
||||
border: 1px solid {rgba(pink, 0.5)};
|
||||
border-radius: 12px;
|
||||
font-family: "MesloLGS Nerd Font Mono", monospace;
|
||||
font-size: 13px;
|
||||
color: {green};
|
||||
}}
|
||||
|
||||
#input {{
|
||||
background-color: {dark};
|
||||
color: {green};
|
||||
border: 1px solid {rgba(pink, 0.4)};
|
||||
border-radius: 8px;
|
||||
padding: 8px 12px;
|
||||
margin: 8px;
|
||||
outline: none;
|
||||
caret-color: {pink};
|
||||
}}
|
||||
|
||||
#input:focus {{
|
||||
border-color: {pink};
|
||||
}}
|
||||
|
||||
#inner-box {{
|
||||
background-color: transparent;
|
||||
margin: 0 8px 8px 8px;
|
||||
}}
|
||||
|
||||
#outer-box {{
|
||||
background-color: transparent;
|
||||
padding: 4px;
|
||||
}}
|
||||
|
||||
#scroll {{
|
||||
background-color: transparent;
|
||||
}}
|
||||
|
||||
#text {{
|
||||
color: {green};
|
||||
padding: 2px 8px;
|
||||
}}
|
||||
|
||||
#entry {{
|
||||
background-color: transparent;
|
||||
border-radius: 8px;
|
||||
padding: 6px 8px;
|
||||
margin: 2px 0;
|
||||
}}
|
||||
|
||||
#entry:selected {{
|
||||
background-color: {rgba(pink, 0.2)};
|
||||
border: 1px solid {rgba(pink, 0.5)};
|
||||
}}
|
||||
|
||||
#entry:selected #text {{
|
||||
color: {pink};
|
||||
}}
|
||||
"""
|
||||
|
||||
# ── Hyprland colors ───────────────────────────────────────────────────────────
|
||||
def strip(h): return h.lstrip('#')
|
||||
|
||||
hypr = f"""# Generated — edit ~/.active_theme/colors.json
|
||||
$wal_pink = rgba({strip(pink)}ee)
|
||||
$wal_pink_b = rgba({strip(pink)}66)
|
||||
$wal_green = rgba({strip(green)}ee)
|
||||
$wal_muted = rgba({strip(muted)}aa)
|
||||
$wal_shadow = rgba({strip(bg)}ee)
|
||||
"""
|
||||
|
||||
# ── Hyprland keyword apply (no reload needed) ─────────────────────────────────
|
||||
def a(h, s): return f"rgba({strip(h)}{s})"
|
||||
|
||||
hypr_apply = f"""#!/bin/bash
|
||||
hyprctl keyword general:col.active_border "{a(pink,'ee')} {a(green,'ee')} 45deg"
|
||||
hyprctl keyword general:col.inactive_border "{a(muted,'aa')}"
|
||||
hyprctl keyword decoration:shadow:color "{a(bg,'ee')}"
|
||||
"""
|
||||
|
||||
files = {
|
||||
'waybar-style.css': waybar,
|
||||
'wofi-style.css': wofi,
|
||||
'colors-hypr.conf': hypr,
|
||||
'hypr-apply.sh': hypr_apply,
|
||||
}
|
||||
for name, content in files.items():
|
||||
with open(os.path.join(cache, name), 'w') as f:
|
||||
f.write(content)
|
||||
|
||||
# Write wallpaper path for reload.sh (expand ~ so reload.sh gets an absolute path)
|
||||
wallpaper = os.path.expanduser(c.get('wallpaper', 'None'))
|
||||
with open(os.path.join(cache, 'wallpaper'), 'w') as f:
|
||||
f.write(wallpaper)
|
||||
|
||||
# Update hyprpaper.conf to preload all theme wallpapers for the active profile
|
||||
active_profile = os.path.expanduser('~/.active_profile')
|
||||
themes_dir = os.path.join(active_profile, 'themes')
|
||||
all_wallpapers = set()
|
||||
if os.path.isdir(themes_dir):
|
||||
for theme_name in sorted(os.listdir(themes_dir)):
|
||||
theme_json = os.path.join(themes_dir, theme_name, 'colors.json')
|
||||
if not os.path.isfile(theme_json):
|
||||
continue
|
||||
try:
|
||||
with open(theme_json) as f:
|
||||
j = json.load(f)
|
||||
wp = os.path.expanduser(j.get('wallpaper', 'None'))
|
||||
if wp and wp != 'None' and os.path.isfile(wp):
|
||||
all_wallpapers.add(wp)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
if all_wallpapers:
|
||||
initial = wallpaper if wallpaper in all_wallpapers else next(iter(sorted(all_wallpapers)))
|
||||
hyprpaper_conf = ''.join(f'preload = {wp}\n' for wp in sorted(all_wallpapers))
|
||||
hyprpaper_conf += f'\nwallpaper = ,{initial}\n'
|
||||
with open(os.path.expanduser('~/.config/hypr/hyprpaper.conf'), 'w') as f:
|
||||
f.write(hyprpaper_conf)
|
||||
|
||||
print("Generated: " + ", ".join(files.keys()))
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
THEMES_DIR="$HOME/.active_profile/themes"
|
||||
|
||||
mapfile -t themes < <(ls -d "$THEMES_DIR"/*/ 2>/dev/null | xargs -n1 basename | sort)
|
||||
|
||||
if [[ ${#themes[@]} -eq 0 ]]; then
|
||||
echo "No themes found in $THEMES_DIR"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
current=$(basename "$(readlink "$HOME/.active_theme" 2>/dev/null)" || echo "${themes[0]}")
|
||||
next_index=0
|
||||
for i in "${!themes[@]}"; do
|
||||
if [[ "${themes[$i]}" == "$current" ]]; then
|
||||
next_index=$(( (i + 1) % ${#themes[@]} ))
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
next="${themes[$next_index]}"
|
||||
ln -sfn "$HOME/.active_profile/themes/$next" "$HOME/.active_theme"
|
||||
~/.config/wal/reload.sh
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
# Preloads all theme wallpapers at startup so switching is instant.
|
||||
THEME_DIR="$HOME/.config/wal/colorschemes/dark"
|
||||
|
||||
for json in "$THEME_DIR"/*.json; do
|
||||
wp=$(python3 -c "import json,sys; c=json.load(open('$json')); print(c.get('wallpaper','None'))")
|
||||
if [[ -n "$wp" && "$wp" != "None" && -f "$wp" ]]; then
|
||||
hyprctl hyprpaper preload "$wp" 2>/dev/null || true
|
||||
fi
|
||||
done
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
THEME=$(basename "$(readlink "$HOME/.active_theme" 2>/dev/null)" 2>/dev/null || echo "unknown")
|
||||
echo "$THEME" > ~/.cache/wal/current-theme
|
||||
|
||||
python3 ~/.config/wal/generate.py
|
||||
|
||||
# Symlinks (harmless to repeat)
|
||||
ln -sf ~/.cache/wal/colors-hypr.conf ~/.config/hypr/colors.conf
|
||||
ln -sf ~/.cache/wal/waybar-style.css ~/.config/waybar/style.css
|
||||
ln -sf ~/.cache/wal/wofi-style.css ~/.config/wofi/style.css
|
||||
|
||||
# Apply Hyprland colors without full reload
|
||||
bash ~/.cache/wal/hypr-apply.sh
|
||||
|
||||
# Restart waybar
|
||||
pkill waybar; sleep 0.3; waybar &disown
|
||||
|
||||
# Switch wallpaper only if it changed
|
||||
WALLPAPER=$(cat ~/.cache/wal/wallpaper 2>/dev/null)
|
||||
PREV=$(cat ~/.cache/wal/wallpaper-active 2>/dev/null)
|
||||
if [[ -n "$WALLPAPER" && "$WALLPAPER" != "None" && -f "$WALLPAPER" && "$WALLPAPER" != "$PREV" ]]; then
|
||||
awww img "$WALLPAPER" --transition-type fade
|
||||
echo "$WALLPAPER" > ~/.cache/wal/wallpaper-active
|
||||
fi
|
||||
@@ -0,0 +1,6 @@
|
||||
# Generated by pywal — edit ~/.config/wal/colorschemes/dark/tekki.json
|
||||
$wal_pink = rgba({color1.strip}ee)
|
||||
$wal_pink_b = rgba({color1.strip}66)
|
||||
$wal_green = rgba({color2.strip}ee)
|
||||
$wal_muted = rgba({color8.strip}aa)
|
||||
$wal_shadow = rgba({background.strip}ee)
|
||||
@@ -0,0 +1,147 @@
|
||||
// -*- mode: jsonc -*-
|
||||
[
|
||||
// ── Obere Bar ──────────────────────────────────────────────
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 24,
|
||||
"spacing": 2,
|
||||
|
||||
"modules-left": [
|
||||
"hyprland/workspaces",
|
||||
"hyprland/window"
|
||||
],
|
||||
"modules-center": [
|
||||
"clock"
|
||||
],
|
||||
"modules-right": [
|
||||
"temperature",
|
||||
"cpu",
|
||||
"memory",
|
||||
"battery",
|
||||
"pulseaudio",
|
||||
"network",
|
||||
"tray"
|
||||
],
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"format": "{id}",
|
||||
"on-scroll-up": "hyprctl dispatch workspace e+1",
|
||||
"on-scroll-down": "hyprctl dispatch workspace e-1",
|
||||
"all-outputs": false
|
||||
},
|
||||
|
||||
"hyprland/window": {
|
||||
"max-length": 60,
|
||||
"separate-outputs": true
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "\uf017 {:%H:%M}",
|
||||
"format-alt": "\uf073 {:%d.%m.%Y %H:%M}",
|
||||
"tooltip-format": "<big>{:%B %Y}</big>\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"format": "\uf2db {usage}%",
|
||||
"tooltip": false,
|
||||
"interval": 2
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"format": "\uf538 {percentage}%",
|
||||
"interval": 5
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
"critical-threshold": 80,
|
||||
"format": "\uf2c9 {temperatureC}°C",
|
||||
"format-critical": "\uf2c9 {temperatureC}°C"
|
||||
},
|
||||
|
||||
"network": {
|
||||
"format-wifi": "\uf1eb {essid}",
|
||||
"format-ethernet": "\uf796 {ipaddr}",
|
||||
"format-disconnected": "\uf071 Offline",
|
||||
"tooltip-format": "{ifname} via {gwaddr}\n{ipaddr}/{cidr}",
|
||||
"on-click": "nm-connection-editor"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "\uf0e7 {capacity}%",
|
||||
"format-plugged": "\uf1e6 {capacity}%",
|
||||
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"],
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"tooltip-format": "{timeTo}, {power:.1f}W"
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "\uf6a9 stumm",
|
||||
"format-icons": {
|
||||
"headphone": "\uf025",
|
||||
"headset": "\uf590",
|
||||
"default": ["\uf026", "\uf027", "\uf028"]
|
||||
},
|
||||
"on-click": "pavucontrol",
|
||||
"scroll-step": 5
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"spacing": 8,
|
||||
"icon-size": 16
|
||||
}
|
||||
},
|
||||
|
||||
// ── Untere Bar ─────────────────────────────────────────────
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "bottom",
|
||||
"height": 18,
|
||||
"spacing": 2,
|
||||
"exclusive": true,
|
||||
|
||||
"modules-left": [
|
||||
"custom/notification"
|
||||
],
|
||||
"modules-center": [],
|
||||
"modules-right": [
|
||||
"disk",
|
||||
"network#speed"
|
||||
],
|
||||
|
||||
"hyprland/window#bottom": {
|
||||
"max-length": 80,
|
||||
"separate-outputs": true,
|
||||
"format": "\uf2d0 {title}",
|
||||
"rewrite": {
|
||||
"": "\uf2d0 Desktop"
|
||||
}
|
||||
},
|
||||
|
||||
"custom/notification": {
|
||||
"exec": "[ -f /tmp/waybar-notif ] && echo \"\uf0f3 $(cat /tmp/waybar-notif)\" || echo ''",
|
||||
"interval": 2,
|
||||
"format": "{}",
|
||||
"max-length": 80,
|
||||
"on-click": "rm -f /tmp/waybar-notif"
|
||||
},
|
||||
|
||||
"disk": {
|
||||
"format": "\uf0a0 {specific_free:.0f} GB frei ({percentage_used}%)",
|
||||
"unit": "GB",
|
||||
"path": "/",
|
||||
"interval": 30
|
||||
},
|
||||
|
||||
"network#speed": {
|
||||
"format": "\uf019 {bandwidthDownBytes} \uf093 {bandwidthUpBytes}",
|
||||
"interval": 2,
|
||||
"tooltip-format": "{ifname}: {ipaddr}"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
width=500
|
||||
height=400
|
||||
location=center
|
||||
show=drun
|
||||
prompt=Apps
|
||||
filter_rate=100
|
||||
allow_markup=true
|
||||
no_actions=true
|
||||
halign=fill
|
||||
orientation=vertical
|
||||
content_halign=fill
|
||||
insensitive=true
|
||||
allow_images=true
|
||||
image_size=24
|
||||
gtk_dark=true
|
||||
term=kitty
|
||||
key_escape=Escape
|
||||
Reference in New Issue
Block a user