feat(dunst): add dunst

This commit is contained in:
Artur Manuel 2025-01-08 10:56:55 +00:00
commit b872a68632
15 changed files with 489 additions and 1 deletions

View file

@ -0,0 +1,486 @@
# 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 = 400
# The height of a single notification, excluding the frame.
# dynamic height from 0 to 300
# height = (0, 300)
# constant height of 300
height = 400
# 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 = (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 = "#ffffff"
# 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 14
# 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 = 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
### 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 ###
# 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.
# * 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 = "#161616"
foreground = "#f2f4f8"
timeout = 10
# Icon for notifications with low urgency
default_icon = dialog-information
[urgency_normal]
background = "#161616"
foreground = "#ffffff"
timeout = 10
override_pause_level = 30
# Icon for notifications with normal urgency
default_icon = dialog-information
[urgency_critical]
background = "#ee5396"
foreground = "#525252"
frame_color = "#525252"
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,3 @@
profile {
output HDMI-A-1 mode 1920x1080@100Hz
}

View file

@ -0,0 +1,104 @@
# vim:ft=kitty
## name: Carbonfox
## author: EdenEast
## license: MIT
## upstream: https://github.com/EdenEast/nightfox.nvim/blob/main/extra/carbonfox/kitty.conf
## blurb: Carbonfox theme from the neovim colorscheme nightfox.nvim.
#: All the settings below are colors, which you can choose to modify, or use the
#: defaults. You can also add non-color based settings if needed but note that
#: these will not work with using kitty @ set-colors with this theme. For a
#: reference on what these settings do see https://sw.kovidgoyal.net/kitty/conf/
#: The basic colors
foreground #f2f4f8
background #161616
selection_foreground #f2f4f8
selection_background #2a2a2a
#: Cursor colors
cursor #f2f4f8
cursor_text_color #161616
#: URL underline color when hovering with mouse
url_color #25be6a
#: kitty window border colors and terminal bell colors
active_border_color #78a9ff
inactive_border_color #535353
bell_border_color #3ddbd9
# visual_bell_color none
#: OS Window titlebar colors
# wayland_titlebar_color system
# macos_titlebar_color system
#: Tab bar colors
active_tab_foreground #0c0c0c
active_tab_background #78a9ff
inactive_tab_foreground #6e6f70
inactive_tab_background #2a2a2a
# tab_bar_background none
# tab_bar_margin_color none
#: Colors for marks (marked text in the terminal)
# mark1_foreground black
# mark1_background #98d3cb
# mark2_foreground black
# mark2_background #f2dcd3
# mark3_foreground black
# mark3_background #f274bc
#: The basic 16 colors
#: black
color0 #282828
color8 #484848
#: red
color1 #ee5396
color9 #f16da6
#: green
color2 #25be6a
color10 #46c880
#: yellow
color3 #ebcb8b
color11 #f0d399
#: blue
color4 #78a9ff
color12 #8cb6ff
#: magenta
color5 #be95ff
color13 #c8a5ff
#: cyan
color6 #33b1ff
color14 #52bdff
#: white
color7 #dfdfe0
color15 #e4e4e5
#: You can set the remaining 240 colors as color16 to color255.
color16 #3ddbd9
color17 #ff7eb6

View file

@ -0,0 +1,15 @@
include current-theme.conf
font_family monospace
bold_font auto
italic_font auto
bold_italic_font auto
font_size 14.0
disable_ligatures always
wayland_titlebar_color background
confirm_os_window_close 0
enable_audio_bell no
close_on_child_death no
window_padding_width 8

View file

@ -0,0 +1,4 @@
# BEGIN_KITTY_THEME
# Tokyo Night
include current-theme.conf
# END_KITTY_THEME

View file

@ -0,0 +1,35 @@
from theme import load_theme
config.load_autoconfig()
oxocarbon = {
"base00": "#161616",
"base01": "#262626",
"base02": "#393939",
"base03": "#525252",
"base04": "#dde1e6",
"base05": "#f2f4f8",
"base06": "#ffffff",
"base07": "#08bdba",
"base08": "#3ddbd9",
"base09": "#78a9ff",
"base0A": "#ee5396",
"base0B": "#33b1ff",
"base0C": "#ff7eb6",
"base0D": "#42be65",
"base0E": "#be95ff",
"base0F": "#82cfff",
}
load_theme(c, oxocarbon)
c.colors.webpage.preferred_color_scheme = "dark"
c.tabs.position = "left"
c.tabs.width = 36
c.fonts.default_size = "14pt"
c.fonts.default_family = "sans-serif"
c.tabs.padding = {
"bottom": 2,
"left": 3,
"right": 3,
"top": 2,
}

View file

@ -0,0 +1,91 @@
def load_theme(c, palette):
c.colors.completion.fg = palette["base05"]
c.colors.completion.odd.bg = palette["base01"]
c.colors.completion.even.bg = palette["base00"]
c.colors.completion.category.fg = palette["base0A"]
c.colors.completion.category.bg = palette["base00"]
c.colors.completion.category.border.top = palette["base00"]
c.colors.completion.category.border.bottom = palette["base00"]
c.colors.completion.item.selected.fg = palette["base05"]
c.colors.completion.item.selected.bg = palette["base02"]
c.colors.completion.item.selected.border.top = palette["base02"]
c.colors.completion.item.selected.border.bottom = palette["base02"]
c.colors.completion.item.selected.match.fg = palette["base0B"]
c.colors.completion.match.fg = palette["base0B"]
c.colors.completion.scrollbar.fg = palette["base05"]
c.colors.completion.scrollbar.bg = palette["base00"]
c.colors.contextmenu.disabled.bg = palette["base01"]
c.colors.contextmenu.disabled.fg = palette["base04"]
c.colors.contextmenu.menu.bg = palette["base00"]
c.colors.contextmenu.menu.fg = palette["base05"]
c.colors.contextmenu.selected.bg = palette["base02"]
c.colors.contextmenu.selected.fg = palette["base05"]
c.colors.downloads.bar.bg = palette["base00"]
c.colors.downloads.start.fg = palette["base00"]
c.colors.downloads.start.bg = palette["base0D"]
c.colors.downloads.stop.fg = palette["base00"]
c.colors.downloads.stop.bg = palette["base0C"]
c.colors.downloads.error.fg = palette["base08"]
c.colors.hints.fg = palette["base00"]
c.colors.hints.bg = palette["base0A"]
c.colors.hints.match.fg = palette["base05"]
c.colors.keyhint.fg = palette["base05"]
c.colors.keyhint.suffix.fg = palette["base05"]
c.colors.keyhint.bg = palette["base00"]
c.colors.messages.error.fg = palette["base00"]
c.colors.messages.error.bg = palette["base08"]
c.colors.messages.error.border = palette["base08"]
c.colors.messages.warning.fg = palette["base00"]
c.colors.messages.warning.bg = palette["base0E"]
c.colors.messages.warning.border = palette["base0E"]
c.colors.messages.info.fg = palette["base05"]
c.colors.messages.info.bg = palette["base00"]
c.colors.messages.info.border = palette["base00"]
c.colors.prompts.fg = palette["base05"]
c.colors.prompts.border = palette["base00"]
c.colors.prompts.bg = palette["base00"]
c.colors.prompts.selected.bg = palette["base02"]
c.colors.prompts.selected.fg = palette["base05"]
c.colors.statusbar.normal.fg = palette["base0B"]
c.colors.statusbar.normal.bg = palette["base00"]
c.colors.statusbar.insert.fg = palette["base00"]
c.colors.statusbar.insert.bg = palette["base0D"]
c.colors.statusbar.passthrough.fg = palette["base00"]
c.colors.statusbar.passthrough.bg = palette["base0C"]
c.colors.statusbar.private.fg = palette["base00"]
c.colors.statusbar.private.bg = palette["base01"]
c.colors.statusbar.command.fg = palette["base05"]
c.colors.statusbar.command.bg = palette["base00"]
c.colors.statusbar.command.private.fg = palette["base05"]
c.colors.statusbar.command.private.bg = palette["base00"]
c.colors.statusbar.caret.fg = palette["base00"]
c.colors.statusbar.caret.bg = palette["base0E"]
c.colors.statusbar.caret.selection.fg = palette["base00"]
c.colors.statusbar.caret.selection.bg = palette["base0D"]
c.colors.statusbar.progress.bg = palette["base0D"]
c.colors.statusbar.url.fg = palette["base05"]
c.colors.statusbar.url.error.fg = palette["base08"]
c.colors.statusbar.url.hover.fg = palette["base05"]
c.colors.statusbar.url.success.http.fg = palette["base0C"]
c.colors.statusbar.url.success.https.fg = palette["base0B"]
c.colors.statusbar.url.warn.fg = palette["base0E"]
c.colors.tabs.bar.bg = palette["base00"]
c.colors.tabs.indicator.start = palette["base0D"]
c.colors.tabs.indicator.stop = palette["base0C"]
c.colors.tabs.indicator.error = palette["base08"]
c.colors.tabs.odd.fg = palette["base05"]
c.colors.tabs.odd.bg = palette["base01"]
c.colors.tabs.even.fg = palette["base05"]
c.colors.tabs.even.bg = palette["base00"]
c.colors.tabs.pinned.even.bg = palette["base0C"]
c.colors.tabs.pinned.even.fg = palette["base07"]
c.colors.tabs.pinned.odd.bg = palette["base0B"]
c.colors.tabs.pinned.odd.fg = palette["base07"]
c.colors.tabs.pinned.selected.even.bg = palette["base02"]
c.colors.tabs.pinned.selected.even.fg = palette["base05"]
c.colors.tabs.pinned.selected.odd.bg = palette["base02"]
c.colors.tabs.pinned.selected.odd.fg = palette["base05"]
c.colors.tabs.selected.odd.fg = palette["base05"]
c.colors.tabs.selected.odd.bg = palette["base02"]
c.colors.tabs.selected.even.fg = palette["base05"]
c.colors.tabs.selected.even.bg = palette["base02"]

View file

@ -0,0 +1,94 @@
#!/bin/sh
mod="Super"
riverctl spawn kanshi
riverctl spawn "swaybg -i $HOME/.local/share/wallpapers/07.jpg -m fill"
riverctl spawn "$HOME/.config/river/scripts/waybar.sh"
riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river"
riverctl map normal "$mod"+Shift Return spawn kitty
riverctl map normal "$mod" P spawn "rofi -show drun"
riverctl map normal "$mod" S spawn "$HOME/.config/river/scripts/screenshot.sh savecopy"
riverctl map normal "$mod" Q close
riverctl map normal "$mod"+Shift E exit
riverctl map normal "$mod"+Shift C spawn "$HOME/.config/river/init"
riverctl map normal "$mod" J focus-view next
riverctl map normal "$mod" K focus-view previous
riverctl map normal "$mod"+Shift J swap next
riverctl map normal "$mod"+Shift K swap previous
riverctl map normal "$mod" Period focus-output next
riverctl map normal "$mod" Comma focus-output previous
riverctl map normal "$mod"+Shift Period send-to-output next
riverctl map normal "$mod"+Shift Comma send-to-output previous
riverctl map normal "$mod" Return zoom
riverctl map normal "$mod" H send-layout-cmd rivercarro "main-ratio -0.05"
riverctl map normal "$mod" L send-layout-cmd rivercarro "main-ratio +0.05"
riverctl map normal "$mod"+Shift H send-layout-cmd rivercarro "main-count +1"
riverctl map normal "$mod"+Shift L send-layout-cmd rivercarro "main-count -1"
riverctl map normal "$mod"+Alt H move left 100
riverctl map normal "$mod"+Alt J move down 100
riverctl map normal "$mod"+Alt K move up 100
riverctl map normal "$mod"+Alt L move right 100
riverctl map normal "$mod"+Alt+Control H snap left
riverctl map normal "$mod"+Alt+Control J snap down
riverctl map normal "$mod"+Alt+Control K snap up
riverctl map normal "$mod"+Alt+Control L snap right
riverctl map normal "$mod"+Alt+Shift H resize horizontal -100
riverctl map normal "$mod"+Alt+Shift J resize vertical 100
riverctl map normal "$mod"+Alt+Shift K resize vertical -100
riverctl map normal "$mod"+Alt+Shift L resize horizontal 100
riverctl map-pointer normal "$mod" BTN_LEFT move-view
riverctl map-pointer normal "$mod" BTN_RIGHT resize-view
riverctl map-pointer normal "$mod" BTN_MIDDLE toggle-float
for i in $(seq 1 9); do
tags=$((1 << (i - 1)))
riverctl map normal "$mod" "$i" set-focused-tags "$tags"
riverctl map normal "$mod"+Shift "$i" set-view-tags "$tags"
riverctl map normal "$mod"+Control "$i" toggle-focused-tags "$tags"
riverctl map normal "$mod"+Shift+Control "$i" toggle-view-tags "$tags"
done
all_tags=$(((1 << 32) - 1))
riverctl map normal "$mod" 0 set-focused-tags "$all_tags"
riverctl map normal "$mod"+Shift 0 set-view-tags "$all_tags"
riverctl map normal "$mod" Space toggle-float
riverctl map normal "$mod" F toggle-fullscreen
riverctl map normal "$mod" Up send-layout-cmd rivercarro "main-location top"
riverctl map normal "$mod" Right send-layout-cmd rivercarro "main-location right"
riverctl map normal "$mod" Down send-layout-cmd rivercarro "main-location bottom"
riverctl map normal "$mod" Left send-layout-cmd rivercarro "main-location left"
riverctl declare-mode passthrough
riverctl map normal "$mod" F11 enter-mode passthrough
riverctl map passthrough "$mod" F11 enter-mode normal
for mode in normal locked; do
riverctl map "$mode" None XF86Eject spawn 'eject -T'
riverctl map "$mode" None XF86AudioRaiseVolume spawn 'pamixer -i 5'
riverctl map "$mode" None XF86AudioLowerVolume spawn 'pamixer -d 5'
riverctl map "$mode" None XF86AudioMute spawn 'pamixer --toggle-mute'
riverctl map "$mode" None XF86AudioMedia spawn 'playerctl play-pause'
riverctl map "$mode" None XF86AudioPlay spawn 'playerctl play-pause'
riverctl map "$mode" None XF86AudioPrev spawn 'playerctl previous'
riverctl map "$mode" None XF86AudioNext spawn 'playerctl next'
riverctl map "$mode" None XF86MonBrightnessUp spawn 'brightnessctl set +5%'
riverctl map "$mode" None XF86MonBrightnessDown spawn 'brightnessctl set 5%-'
done
# hacky way of making everything have borders
riverctl rule-add ssd
riverctl background-color 0x00000000
riverctl border-color-focused 0xbe95ffff
riverctl border-color-unfocused 0x00000000
riverctl keyboard-layout -options compose:ralt us
riverctl set-repeat 50 300
riverctl xcursor-theme "Simp1e-Adw-Dark"
riverctl default-layout rivercarro
rivercarro -inner-gaps 8 -outer-gaps 10 -no-smart-gaps &

View file

@ -0,0 +1,38 @@
#!/usr/bin/env bash
# shellcheck disable=SC1091
source "$HOME/.config/user-dirs.dirs"
case "$1" in
"copy")
GEOM="$(slurp)"
if [ "$GEOM" == "" ]; then
grim - | wl-copy
else
grim -g "$GEOM" - | wl-copy
fi
echo "Screenshot copied."
;;
"save")
GEOM="$(slurp)"
if [ "$GEOM" == "" ]; then
grim "$OUT"
else
grim -g "$GEOM" "$OUT"
fi
echo "Screenshot saved. $OUT"
;;
"savecopy")
GEOM="$(slurp)"
if [ "$GEOM" == "" ]; then
grim - | wl-copy
else
grim -g "$GEOM" - | wl-copy
fi
wl-copy <"$OUT"
echo "Screenshot saved and copied. $OUT"
;;
*)
echo "Not done!"
;;
esac

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
pid="$(pidof waybar)"
if [[ -z $pid ]]; then
exec waybar &
fi

View file

@ -0,0 +1,3 @@
:root {
--font: "Monospace";
}

View file

@ -0,0 +1,32 @@
{
"position": "top",
"height": 0,
"spacing": 16,
"modules-left": ["mpris"],
"modules-center": ["river/tags"],
"modules-right": ["wireplumber", "clock"],
"mpris": {
"format": "{player_icon} {dynamic}",
"format-paused": "{status_icon} <i>{dynamic}</i>",
"interval": 1,
"dynamic-len": 52,
"player-icons": {
"default": "▶",
"mpv": "🎵",
},
"status-icons": {
"paused": "",
"paused": "⏸",
},
},
"clock": {
"format": " {:%H:%M}",
"tooltip-format": "{:%A, %B %d, %Y}",
},
"wireplumber": {
"format": "{icon} {volume}%",
"format-muted": "",
"on-click": "helvum",
"format-icons": ["", "", ""],
},
}

View file

@ -0,0 +1,36 @@
* {
all: unset;
font-size: 18px;
color: #f2f4f8;
}
window#waybar {
background: #0c0c0c;
}
tooltip {
background: #161616;
}
.modules-left,
.modules-right {
background: #161616;
padding: 0px 12px;
}
.modules-center {
background: #161616;
}
#tags button {
padding: 8px 16px;
transition: 0.2s;
}
#tags button:hover {
padding: 8px 28px;
}
#tags button.focused {
background: #282828;
}

View file

@ -0,0 +1,51 @@
{
inputs,
pkgs,
config,
...
}: {
alqueva.users.artur = {
shell = config.programs.xonsh.package;
tmpfiles = {
".config/qutebrowser/config.py" = ./configs/qutebrowser/config.py;
".config/qutebrowser/theme" = ./configs/qutebrowser/theme;
".config/vesktop/themes/system24.theme.css" = pkgs.fetchurl {
url = "https://raw.githubusercontent.com/refact0r/system24/refs/heads/main/theme/system24.theme.css";
hash = "sha256-WJYNWeo1DdgOh7cFne6QSEHQagqapFznqWfeoCsqM+8=";
};
".config/vesktop/settings/quickCss.css" = ./configs/vesktop/quickCss.css;
".config/kanshi/" = ./configs/kanshi;
".config/river/" = ./configs/river;
".config/kitty/" = ./configs/kitty;
".config/waybar/" = ./configs/waybar;
".config/dunst/" = ./configs/dunst;
".local/share/wallpapers" = "${inputs.wallpkgs.packages.${pkgs.system}.nature}/share/wallpapers/nature";
};
packages = builtins.attrValues {
inherit
(pkgs)
wget
vesktop
mpv
imv
amberol
fractal
nicotine-plus
nautilus
librewolf
playerctl
geary
qutebrowser
dunst
;
};
groups = [
"wheel"
"video"
"audio"
"networkmanager"
"input"
"libvirtd"
];
};
}