Skip to content

Commit

Permalink
dunst -> wired-notify
Browse files Browse the repository at this point in the history
  • Loading branch information
kpa28-git committed Oct 10, 2024
1 parent 1a45bc2 commit cde7e0f
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .Xresources
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@

!! Global and Terminal Font Settings
!! (Set Monospace font alias in $XDG_CONFIG_HOME/fontconfig/fonts.conf)
*.font: Monospace:pixelsize=32:dpi:192:antialias:true:autohint:false:hinting:true; 32
*.font: Monospace:pixelsize=32:dpi:150:antialias:true:autohint:false:hinting:true; 32
Xft.antialias: true
Xft.autohint: false
Xft.hinting: true
Xft.hintstyle: hintfull
Xft.rgba: rgb

!! Global DPI
*dpi: 192
Xft.dpi: 192
*dpi: 150
Xft.dpi: 150

!! xst settings
st.termname: xst-256color
Expand Down
1 change: 1 addition & 0 deletions .config/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
!/sc-im/**
!/sxhkd/**
!/tmux/**
!/wired/**
!/yay/**
!/yazi/**
!/zathura/**
Expand Down
98 changes: 98 additions & 0 deletions .config/wired/wired.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
(
max_notifications: 5,
timeout: 10_000,
poll_interval: 16, // 16ms ~= 60hz / 7ms ~= 144hz.
// history_length: 20,
// replacing_enabled: true,
// replacing_resets_timeout: true,
min_window_width: 400,
min_window_height: 100,

debug: false,

layout_blocks: [
// Layout 1, when an image is present.
(
name: "root",
parent: "",
hook: Hook(parent_anchor: TR, self_anchor: TR),
offset: Vec2(x: -7.0, y: 7.0),
// render_criteria: [HintImage],
// https://github.com/Toqozz/wired-notify/wiki/NotificationBlock
params: NotificationBlock((
monitor: 0,
border_width: 3.0,
border_rounding: 3.0,
//background_color: Color(r: 0.15686, g: 0.15686, b: 0.15686, a: 1.0),
background_color: Color(hex: "#282828"),
border_color: Color(hex: "#ebdbb2"),
border_color_low: Color(hex: "#282828"),
border_color_critical: Color(hex: "#fb4934"),
border_color_paused: Color(hex: "#fabd2f"),

gap: Vec2(x: 0.0, y: 8.0),
notification_hook: Hook(parent_anchor: BL, self_anchor: TL),
)),
),

(
name: "image",
parent: "root",
hook: Hook(parent_anchor: TL, self_anchor: TL),
offset: Vec2(x: 0.0, y: 0.0),
// https://github.com/Toqozz/wired-notify/wiki/ImageBlock
params: ImageBlock((
image_type: Hint,
// We actually want 4px padding, but the border is 3px.
padding: Padding(left: 7.0, right: 0.0, top: 7.0, bottom: 7.0),
rounding: 3.0,
scale_width: 48,
scale_height: 48,
filter_mode: Lanczos3,
)),
),

(
name: "summary",
parent: "image",
hook: Hook(parent_anchor: MR, self_anchor: BL),
offset: Vec2(x: 0.0, y: 0.0),
// https://github.com/Toqozz/wired-notify/wiki/TextBlock
params: TextBlock((
text: "%s",
font: "Arial Bold 32",
ellipsize: Middle,
color: Color(hex: "#ebdbb2"),
color_hovered: Color(hex: "#fbf1c7"),
padding: Padding(left: 20.0, right: 20.0, top: 20.0, bottom: 0.0),
dimensions: (width: (min: 150, max: 300), height: (min: 0, max: 0)),
)),
),

(
name: "body",
parent: "summary",
hook: Hook(parent_anchor: BL, self_anchor: TL),
offset: Vec2(x: 0.0, y: -3.0),
// https://github.com/Toqozz/wired-notify/wiki/ScrollingTextBlock
params: ScrollingTextBlock((
text: "%b",
font: "Arial 32",
color: Color(hex: "#ebdbb2"),
color_hovered: Color(hex: "#fbf1c7"),
padding: Padding(left: 20.0, right: 20.0, top: 6.0, bottom: 20.0),
width: (min: 150, max: 300),
scroll_speed: 0.1,
lhs_dist: 35.0,
rhs_dist: 35.0,
scroll_t: 1.0,
)),
),
],
// https://github.com/Toqozz/wired-notify/wiki/Shortcuts
shortcuts: ShortcutsConfig (
notification_interact: 1,
notification_close: 2,
notification_action1: 3,
),
)
2 changes: 1 addition & 1 deletion .xinitrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ displayset

exec "$XDG_CONFIG_HOME/polybar/launch.sh" &
picom --config "$XDG_CONFIG_HOME/picom/picom.conf" & # picom for transparency and to reduce tearing
dunst & # dunst for notifications
wired & # notification daemon
xset r rate 300 50 & # Increase xrate, speeds up key input
xbanish & # Remove mouse cursor on keypress
redshift -l "$("$XDG_SCRIPT_HOME/apitools/geoloc" | tr ',' ':')" &
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ My [arch linux](https://archlinux.org/) / [bspwm](https://github.com/baskerville
* terminal: [alacritty](https://alacritty.org) || [xst](https://github.com/gnotclub/xst) (a [st](https://st.suckless.org) fork)
* status bar: [polybar](https://polybar.github.io)
* file manager: [yazi](https://github.com/sxyazi/yazi)
* notifications: [dunst](https://dunst-project.org)
* notifications: [wired-notify](https://github.com/Toqozz/wired-notify)
* launcher: [rofi](https://github.com/davatorium/rofi)
<!-- * music: [mpd](https://www.musicpd.org) && [ncmpcpp](https://github.com/ncmpcpp/ncmpcpp) -->
* video: [mpv](https://mpv.io)
Expand Down

0 comments on commit cde7e0f

Please sign in to comment.