dunst: update config
This commit is contained in:
parent
9fad534cc2
commit
05df8f5eb4
2 changed files with 30 additions and 22 deletions
|
|
@ -1,22 +1,30 @@
|
||||||
# TODO: i've literally never configured dunst ever since i first installed it (the rc was copypasted from somewhere i forgot im sorry), should play around with it later
|
{ config, pkgs, ... }:
|
||||||
{ config, ... }: {
|
let
|
||||||
|
historyScript = pkgs.writeShellScript "dunst_history.sh" ''
|
||||||
|
echo "$(date +%s):$DUNST_TIMESTAMP:$DUNST_APP_NAME:$DUNST_URGENCY:$DUNST_SUMMARY:$DUNST_BODY" >> ${config.xdg.dataHome}/dunst/history
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
systemd.user.tmpfiles.rules = [ "d ${config.xdg.dataHome}/dunst - - - -" ];
|
||||||
|
|
||||||
services.dunst = {
|
services.dunst = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
global = {
|
global = {
|
||||||
monitor = 0;
|
monitor = 0;
|
||||||
follow = "mouse";
|
follow = "mouse";
|
||||||
#geometry = "250x50-24+24";
|
width = 460;
|
||||||
geometry = "600x50-24+24";
|
origin = "top-right";
|
||||||
|
offset = "24x30";
|
||||||
|
notification_limit = 0;
|
||||||
indicate_hidden = true;
|
indicate_hidden = true;
|
||||||
shrink = true;
|
shrink = true;
|
||||||
separator_height = 0;
|
separator_height = 0;
|
||||||
padding = 16;
|
padding = 16;
|
||||||
horizontal_padding = 24;
|
horizontal_padding = 24;
|
||||||
frame_width = 2;
|
frame_width = 0;
|
||||||
sort = false;
|
sort = false;
|
||||||
idle_threshold = 120;
|
idle_threshold = 60;
|
||||||
font = "Open Sans 8";
|
font = "Open Sans 9";
|
||||||
line_height = 4;
|
line_height = 4;
|
||||||
markup = "full";
|
markup = "full";
|
||||||
format = "<b>%s</b>\\n%b";
|
format = "<b>%s</b>\\n%b";
|
||||||
|
|
@ -30,37 +38,32 @@
|
||||||
icon_position = "left";
|
icon_position = "left";
|
||||||
max_icon_size = 32;
|
max_icon_size = 32;
|
||||||
sticky_history = true;
|
sticky_history = true;
|
||||||
history_length = 20;
|
history_length = 100;
|
||||||
browser = "/run/current-system/sw/bin/firefox -new-tab";
|
browser = "${pkgs.brave}/bin/brave -new-tab";
|
||||||
always_run_script = true;
|
always_run_script = true;
|
||||||
title = "Dunst";
|
title = "Dunst";
|
||||||
class = "Dunst";
|
class = "Dunst";
|
||||||
corner_radius = 5;
|
corner_radius = 10;
|
||||||
};
|
|
||||||
|
|
||||||
shortcuts = {
|
script = historyScript.outPath;
|
||||||
close = "ctrl+space";
|
|
||||||
close_all = "ctrl+shift+space";
|
|
||||||
history = "ctrl+grave";
|
|
||||||
context = "ctrl+shift+period";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_low = {
|
urgency_low = {
|
||||||
background = "#2f343f";
|
background = "#12131b";
|
||||||
foreground = "#d8dee8";
|
foreground = "#d8dee8";
|
||||||
timeout = 2;
|
timeout = 3;
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_normal = {
|
urgency_normal = {
|
||||||
background = "#2f343f";
|
background = "#12131b";
|
||||||
foreground = "#d8dee8";
|
foreground = "#d8dee8";
|
||||||
timeout = 4;
|
timeout = 5;
|
||||||
};
|
};
|
||||||
|
|
||||||
urgency_critical = {
|
urgency_critical = {
|
||||||
background = "#2f343f";
|
background = "#12131b";
|
||||||
foreground = "#d8dee8";
|
foreground = "#d8dee8";
|
||||||
frame_color = "#bf616a";
|
# frame_color = "#bf616a";
|
||||||
timeout = 0;
|
timeout = 0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,11 @@ in {
|
||||||
services.sxhkd = {
|
services.sxhkd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
|
# Dunst (Notification daemon)
|
||||||
|
"super + {_,shift + }space" = "dunstctl close{_,-all}";
|
||||||
|
"super + grave" = "dunstctl history-pop";
|
||||||
|
"super + shift + period" = "dunstctl context";
|
||||||
|
|
||||||
# Rofi (App launcher)
|
# Rofi (App launcher)
|
||||||
"super + Return" = "rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'";
|
"super + Return" = "rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue