Compare commits
3 commits
a57d569e66
...
53498b8cd3
| Author | SHA1 | Date | |
|---|---|---|---|
| 53498b8cd3 | |||
| 16125211fe | |||
| 816480d36f |
7 changed files with 101 additions and 512 deletions
|
|
@ -86,6 +86,10 @@ tocado.
|
||||||
| Impr Pant | Captura de pantalla completa con `maim` |
|
| Impr Pant | Captura de pantalla completa con `maim` |
|
||||||
| Shift+Impr Pant | Captura de una región |
|
| Shift+Impr Pant | Captura de una región |
|
||||||
|
|
||||||
|
Las teclas de audio (y los clics en VOL de la barra) usan el script `volumen`
|
||||||
|
(`home/.local/bin/volumen`): cambia el volumen con `wpctl`, refresca slstatus
|
||||||
|
y muestra una notificación con el nivel.
|
||||||
|
|
||||||
Las capturas se guardan en `~/Imágenes/Capturas`, se copian al portapapeles y
|
Las capturas se guardan en `~/Imágenes/Capturas`, se copian al portapapeles y
|
||||||
muestran una notificación.
|
muestran una notificación.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,3 @@
|
||||||
# Get the aliases and functions
|
# Get the aliases and functions
|
||||||
[ -f $HOME/.bashrc ] && . $HOME/.bashrc
|
[ -f $HOME/.bashrc ] && . $HOME/.bashrc
|
||||||
|
|
||||||
|
|
||||||
# Added by Antigravity CLI installer
|
|
||||||
export PATH="/home/alejandro/.local/bin:$PATH"
|
|
||||||
|
|
|
||||||
18
home/.bashrc
18
home/.bashrc
|
|
@ -5,15 +5,10 @@
|
||||||
# --- 1. Entorno y Rutas ---
|
# --- 1. Entorno y Rutas ---
|
||||||
# Priorizar binarios locales y scripts de usuario
|
# Priorizar binarios locales y scripts de usuario
|
||||||
export PATH="$HOME/.local/bin:/usr/local/bin:$PATH"
|
export PATH="$HOME/.local/bin:/usr/local/bin:$PATH"
|
||||||
export PATH="$HOME/.config/emacs/bin:$PATH"
|
|
||||||
export PATH=$PATH:$HOME/.local/share/flatpak/exports/bin
|
|
||||||
export XDG_DATA_DIRS=$HOME/.local/share/flatpak/exports/share:$XDG_DATA_DIRS
|
|
||||||
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
|
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Cargar Nix (Asegura que los comandos de Nix funcionen si entras sin X11)
|
# Cargar Nix (Asegura que los comandos de Nix funcionen si entras sin X11)
|
||||||
if [ -e /etc/profile.d/nix.sh ]; then
|
if [ -e /etc/profile.d/nix.sh ]; then
|
||||||
. /etc/profile.d/nix.sh
|
. /etc/profile.d/nix.sh
|
||||||
|
|
@ -33,7 +28,6 @@ NC='\[\e[0m\]' # Sin color
|
||||||
# Formato: usuario@maquina:~/directorio$ (en colores)
|
# Formato: usuario@maquina:~/directorio$ (en colores)
|
||||||
PS1="${GREEN}\u@\h${NC}:${BLUE}\w${NC}\$ "
|
PS1="${GREEN}\u@\h${NC}:${BLUE}\w${NC}\$ "
|
||||||
|
|
||||||
|
|
||||||
# --- 3. Aliases Base (Comodidad y Seguridad) ---
|
# --- 3. Aliases Base (Comodidad y Seguridad) ---
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias ll='ls -lh' # Lista detallada humana
|
alias ll='ls -lh' # Lista detallada humana
|
||||||
|
|
@ -48,7 +42,6 @@ alias rm='rm -i'
|
||||||
alias cp='cp -i'
|
alias cp='cp -i'
|
||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
|
|
||||||
|
|
||||||
# --- 4. Aliases para Void Linux (xbps) ---
|
# --- 4. Aliases para Void Linux (xbps) ---
|
||||||
# Te ahorrarán teclear 'xbps-lo-que-sea' 40 veces al día
|
# Te ahorrarán teclear 'xbps-lo-que-sea' 40 veces al día
|
||||||
alias xi='sudo xbps-install' # Instalar paquete
|
alias xi='sudo xbps-install' # Instalar paquete
|
||||||
|
|
@ -57,10 +50,7 @@ alias xq='xbps-query -Rs' # Buscar paquete en el repositorio
|
||||||
alias xl='xbps-query -l' # Listar paquetes instalados
|
alias xl='xbps-query -l' # Listar paquetes instalados
|
||||||
alias xr='sudo xbps-remove -R' # Eliminar paquete y sus huérfanos
|
alias xr='sudo xbps-remove -R' # Eliminar paquete y sus huérfanos
|
||||||
|
|
||||||
alias data='sshfs alejandro@10.0.0.10:/var/storage/PUBLIC ~/DATA/'
|
|
||||||
alias esp32='sudo chmod a+rw /dev/ttyUSB0'
|
alias esp32='sudo chmod a+rw /dev/ttyUSB0'
|
||||||
alias factorio='~/Games/Factorio_Linux/factorio/bin/x64/factorio'
|
|
||||||
alias cstrike=' ~/Games/HLCS/cstrike.sh'
|
|
||||||
|
|
||||||
# --- 5. Funciones Útiles ---
|
# --- 5. Funciones Útiles ---
|
||||||
|
|
||||||
|
|
@ -87,13 +77,5 @@ ex() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# opencode
|
|
||||||
export PATH=/home/alejandro/.opencode/bin:$PATH
|
|
||||||
|
|
||||||
|
|
||||||
# Added by Antigravity CLI installer
|
|
||||||
export PATH="/home/alejandro/.local/bin:$PATH"
|
|
||||||
export PATH="$PATH:$HOME/.local/share/flatpak/exports/bin"
|
|
||||||
|
|
||||||
# Forzar IPv4 en Nix (IPv6 del sistema está roto)
|
# Forzar IPv4 en Nix (IPv6 del sistema está roto)
|
||||||
export NIX_CURL_FLAGS=-4
|
export NIX_CURL_FLAGS=-4
|
||||||
|
|
|
||||||
|
|
@ -1,514 +1,77 @@
|
||||||
# See dunst(5) for all configuration options
|
# dunst: notificaciones con la paleta Everforest y Fira Code, a juego con
|
||||||
|
# dwm (borde de 2 px, verde en lo normal) y picom (esquinas de 8 px).
|
||||||
|
# Solo se ponen las opciones que cambian respecto a los valores por defecto;
|
||||||
|
# la referencia completa está en /etc/dunst/dunstrc y en man 5 dunst.
|
||||||
|
|
||||||
[global]
|
[global]
|
||||||
### Display ###
|
# Arriba a la derecha, justo debajo de la barra de dwm (21 px + hueco)
|
||||||
|
|
||||||
# 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 top right corner
|
|
||||||
origin = top-right
|
origin = top-right
|
||||||
|
offset = (8, 29)
|
||||||
|
width = (280, 380)
|
||||||
|
height = (0, 200)
|
||||||
|
notification_limit = 5
|
||||||
|
gap_size = 6
|
||||||
|
separator_height = 0
|
||||||
|
|
||||||
# Offset from the origin
|
font = Fira Code 10
|
||||||
# NOTE: Dunst from version 1.11 and older use this alternative notation
|
|
||||||
# offset = 10x50
|
|
||||||
offset = (10, 50)
|
|
||||||
|
|
||||||
# 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
|
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"
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
# Alignment of message text.
|
|
||||||
# Possible values are "left", "center" and "right".
|
|
||||||
alignment = left
|
alignment = left
|
||||||
|
|
||||||
# Vertical alignment of message text and icon.
|
|
||||||
# Possible values are "top", "center" and "bottom".
|
|
||||||
vertical_alignment = center
|
vertical_alignment = center
|
||||||
|
ellipsize = end
|
||||||
# Show age of message if message is older than show_age_threshold
|
|
||||||
# seconds.
|
|
||||||
# Set to -1 to disable.
|
|
||||||
show_age_threshold = 60
|
show_age_threshold = 60
|
||||||
|
|
||||||
# Specify where to make an ellipsis in long lines.
|
padding = 12
|
||||||
# Possible values are "start", "middle" and "end".
|
horizontal_padding = 14
|
||||||
ellipsize = middle
|
text_icon_padding = 12
|
||||||
|
frame_width = 2
|
||||||
|
corner_radius = 8
|
||||||
|
|
||||||
# Ignore newlines '\n' in notifications.
|
icon_theme = "Papirus-Dark, Adwaita"
|
||||||
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
|
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
|
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
|
min_icon_size = 32
|
||||||
|
max_icon_size = 64
|
||||||
|
icon_corner_radius = 6
|
||||||
|
|
||||||
# Scale larger icons down to this size, set to 0 to disable
|
progress_bar = true
|
||||||
max_icon_size = 128
|
progress_bar_height = 8
|
||||||
|
progress_bar_frame_width = 1
|
||||||
|
progress_bar_corner_radius = 4
|
||||||
|
progress_bar_min_width = 250
|
||||||
|
progress_bar_max_width = 350
|
||||||
|
highlight = "#a7c080"
|
||||||
|
|
||||||
# Paths to default icons (only necessary when not using recursive icon lookup)
|
stack_duplicates = true
|
||||||
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
|
sticky_history = yes
|
||||||
|
history_length = 30
|
||||||
|
|
||||||
# Maximum amount of notifications kept in history
|
# Colores en formato rgb:rr/gg/bb: dunst trata "#" como comentario
|
||||||
history_length = 20
|
dmenu = /usr/local/bin/dmenu -p dunst: -fn "Fira Code:size=11" -nb rgb:2d/35/3b -nf rgb:d3/c6/aa -sb rgb:a7/c0/80 -sf rgb:2d/35/3b
|
||||||
|
|
||||||
### Misc/Advanced ###
|
|
||||||
|
|
||||||
# dmenu path.
|
|
||||||
dmenu = /usr/bin/dmenu -p dunst:
|
|
||||||
|
|
||||||
# Browser for opening urls in context menu.
|
|
||||||
browser = /usr/bin/xdg-open
|
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 = 0
|
|
||||||
|
|
||||||
# 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_left_click = close_current
|
||||||
mouse_middle_click = do_action, close_current
|
mouse_middle_click = do_action, close_current
|
||||||
mouse_right_click = close_all
|
mouse_right_click = close_all
|
||||||
|
|
||||||
# Experimental features that may or may not work correctly. Do not expect them
|
# Baja prioridad: borde gris, como una ventana sin foco
|
||||||
# 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]
|
[urgency_low]
|
||||||
# IMPORTANT: colors have to be defined in quotation marks.
|
background = "#2d353b"
|
||||||
# Otherwise the "#" and following would be interpreted as a comment.
|
foreground = "#859289"
|
||||||
background = "#222222"
|
frame_color = "#475258"
|
||||||
foreground = "#888888"
|
timeout = 5
|
||||||
timeout = 10
|
|
||||||
# Icon for notifications with low urgency
|
|
||||||
default_icon = dialog-information
|
|
||||||
|
|
||||||
|
# Normal: borde verde, como la ventana con foco
|
||||||
[urgency_normal]
|
[urgency_normal]
|
||||||
background = "#285577"
|
background = "#2d353b"
|
||||||
foreground = "#ffffff"
|
foreground = "#d3c6aa"
|
||||||
timeout = 10
|
frame_color = "#a7c080"
|
||||||
override_pause_level = 30
|
timeout = 8
|
||||||
# Icon for notifications with normal urgency
|
|
||||||
default_icon = dialog-information
|
|
||||||
|
|
||||||
|
# Crítica: borde y barra en rojo; no se cierra sola
|
||||||
[urgency_critical]
|
[urgency_critical]
|
||||||
background = "#900000"
|
background = "#2d353b"
|
||||||
foreground = "#ffffff"
|
foreground = "#d3c6aa"
|
||||||
frame_color = "#ff0000"
|
frame_color = "#e67e80"
|
||||||
|
highlight = "#e67e80"
|
||||||
timeout = 0
|
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
|
|
||||||
# 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"
|
|
||||||
#
|
|
||||||
|
|
|
||||||
41
home/.local/bin/volumen
Executable file
41
home/.local/bin/volumen
Executable file
|
|
@ -0,0 +1,41 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Cambia el volumen o silencia la salida o el micro (PipeWire), refresca
|
||||||
|
# slstatus y lo muestra en una notificación que se sustituye a sí misma.
|
||||||
|
# Uso: volumen subir|bajar|silenciar|micro
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
subir) wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+ ;;
|
||||||
|
bajar) wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- ;;
|
||||||
|
silenciar) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;;
|
||||||
|
micro) wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle ;;
|
||||||
|
*) echo "uso: volumen subir|bajar|silenciar|micro" >&2; exit 1 ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
pkill -USR1 -x slstatus
|
||||||
|
|
||||||
|
if [ "$1" = micro ]; then
|
||||||
|
if wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | grep -q MUTED; then
|
||||||
|
icono=microphone-sensitivity-muted texto="Silenciado"
|
||||||
|
else
|
||||||
|
icono=microphone-sensitivity-high texto="Activado"
|
||||||
|
fi
|
||||||
|
exec notify-send -t 2000 -h string:x-dunst-stack-tag:micro \
|
||||||
|
-i "$icono" "Micrófono" "$texto"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# wpctl get-volume da algo como "Volume: 0.35 [MUTED]"
|
||||||
|
estado=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
|
||||||
|
vol=$(echo "$estado" | awk '{ printf "%d", $2 * 100 + 0.5 }')
|
||||||
|
case $estado in
|
||||||
|
*MUTED*) icono=audio-volume-muted texto="Silenciado" ;;
|
||||||
|
*)
|
||||||
|
if [ "$vol" -eq 0 ]; then icono=audio-volume-muted
|
||||||
|
elif [ "$vol" -lt 34 ]; then icono=audio-volume-low
|
||||||
|
elif [ "$vol" -lt 67 ]; then icono=audio-volume-medium
|
||||||
|
else icono=audio-volume-high
|
||||||
|
fi
|
||||||
|
texto="$vol %"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
exec notify-send -t 2000 -h string:x-dunst-stack-tag:volumen \
|
||||||
|
-h "int:value:$vol" -i "$icono" "Volumen" "$texto"
|
||||||
|
|
@ -18,9 +18,9 @@ PAQUETES="
|
||||||
|
|
||||||
xorg xinit setxkbmap xrandr dbus elogind polkit
|
xorg xinit setxkbmap xrandr dbus elogind polkit
|
||||||
picom dunst libnotify feh maim xclip
|
picom dunst libnotify feh maim xclip
|
||||||
pipewire wireplumber libspa-bluetooth alsa-pipewire pavucontrol
|
pipewire wireplumber libspa-bluetooth alsa-pipewire rtkit pavucontrol
|
||||||
NetworkManager bluez blueman acpid chrony
|
NetworkManager bluez blueman acpid chrony
|
||||||
font-firacode nerd-fonts-symbols-ttf
|
font-firacode nerd-fonts-symbols-ttf papirus-icon-theme
|
||||||
|
|
||||||
gnupg pinentry-gtk
|
gnupg pinentry-gtk
|
||||||
firefox thunderbird neovim git fuse-sshfs unzip
|
firefox thunderbird neovim git fuse-sshfs unzip
|
||||||
|
|
|
||||||
|
|
@ -79,12 +79,14 @@ static const char *termcmd[] = { "st", NULL };
|
||||||
static const char *clipcmd[] = { "clipmenu", "-fn", dmenufont, "-nb", col_bg, "-nf", col_fg, "-sb", col_accent, "-sf", col_accent_fg, NULL };
|
static const char *clipcmd[] = { "clipmenu", "-fn", dmenufont, "-nb", col_bg, "-nf", col_fg, "-sb", col_accent, "-sf", col_accent_fg, NULL };
|
||||||
static const char *lockcmd[] = { "slock", NULL };
|
static const char *lockcmd[] = { "slock", NULL };
|
||||||
|
|
||||||
/* Audio: tras cada cambio se avisa a slstatus (SIGUSR1) para que refresque la barra al momento */
|
/* Tras cambiar algo de la barra se avisa a slstatus (SIGUSR1) para que la refresque al momento */
|
||||||
#define STATUSREFRESH "; pkill -USR1 -x slstatus"
|
#define STATUSREFRESH "; pkill -USR1 -x slstatus"
|
||||||
#define VOLUPCMD "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+" STATUSREFRESH
|
/* Audio: el script volumen (home/.local/bin) cambia el volumen con wpctl,
|
||||||
#define VOLDOWNCMD "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-" STATUSREFRESH
|
* refresca slstatus y lo muestra en una notificación */
|
||||||
#define VOLMUTECMD "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" STATUSREFRESH
|
#define VOLUPCMD "volumen subir"
|
||||||
#define MICMUTECMD "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle" STATUSREFRESH
|
#define VOLDOWNCMD "volumen bajar"
|
||||||
|
#define VOLMUTECMD "volumen silenciar"
|
||||||
|
#define MICMUTECMD "volumen micro"
|
||||||
#define VOLUP SHCMD(VOLUPCMD)
|
#define VOLUP SHCMD(VOLUPCMD)
|
||||||
#define VOLDOWN SHCMD(VOLDOWNCMD)
|
#define VOLDOWN SHCMD(VOLDOWNCMD)
|
||||||
#define VOLMUTE SHCMD(VOLMUTECMD)
|
#define VOLMUTE SHCMD(VOLMUTECMD)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue