From 527dd9a2aed1e108ced3da0356363f6a927ce48f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 8 Apr 2022 23:01:23 +0200 Subject: In progress --- .config/dunst/dunstrc | 2 +- .config/emacs/org/config.org | 1 - .local/bin/shutup | 17 ++++++++++++++--- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index 83d5ee9..0e985d9 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -113,7 +113,7 @@ # to find fitting options for rules. [espeak] - summary = "*" + summary = "*" # shutup script = /home/jozan/.local/bin/dunst_espeak.sh #[script-test] diff --git a/.config/emacs/org/config.org b/.config/emacs/org/config.org index 7237355..0b60bbf 100644 --- a/.config/emacs/org/config.org +++ b/.config/emacs/org/config.org @@ -179,7 +179,6 @@ ** header2 #+BEGIN_SRC emacs-lisp - (add-hook 'c-mode-hook 'auto-make-header) #+END_SRC ** Core packages diff --git a/.local/bin/shutup b/.local/bin/shutup index d5d7b46..47812bb 100755 --- a/.local/bin/shutup +++ b/.local/bin/shutup @@ -2,15 +2,26 @@ use strict; use warnings; -use File::HomeDir qw(home) +use File::HomeDir qw(home); use constant { - DUNSTRC_PATH => home() . '/.config/dunst/dunstrc' + DUNSTRC_PATH => home() . '/.config/dunst/dunstrc', NOTIFYSEND_PATH => '/usr/local/bin/notify-send' -} +}; sub main() { + my @lines; + + open(FH, '<', DUNSTRC_PATH) or die $!; + @lines = do { + local $/; + + }; + close(FH); + open(FH, '>', home() . '/tmp') or die $!; + print FH @lines; + close(FH); return; } -- cgit v1.2.3