diff options
-rw-r--r-- | .config/dunst/dunstrc | 2 | ||||
-rw-r--r-- | .config/emacs/org/config.org | 1 | ||||
-rwxr-xr-x | .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 $/; + <FH> + }; + close(FH); + open(FH, '>', home() . '/tmp') or die $!; + print FH @lines; + close(FH); return; } |