Skip to content

Commit b927109

Browse files
committed
Add show notes and configuration for Emacs Desktop Ep 6
1 parent 24224a7 commit b927109

File tree

3 files changed

+411
-0
lines changed

3 files changed

+411
-0
lines changed

README.org

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Here is a list of all the episode videos with links to the configuration we buil
3232
3. [[https://youtu.be/HGGU5Zvljj8][Optimizing Window Placement in EXWM]] ([[https://github.com/daviwil/emacs-from-scratch/blob/39f63fe133cd4c41e13bbd1551c6517162851411/Desktop.org#exwm-configuration][Code]], [[file:show-notes/Emacs-Desktop-03.org][Notes]])
3333
4. [[https://youtu.be/eF5NfVN411Q][Using Multiple Monitors in EXWM]] ([[https://github.com/daviwil/emacs-from-scratch/blob/5ebd390119a48cac6258843c7d5e570f4591fdd4/Desktop.org#exwm-configuration][Code]], [[file:show-notes/Emacs-Desktop-04.org][Notes]])
3434
5. [[https://youtu.be/usCfMstCZ7E][The Perfect Panel: Integrating Polybar with Emacs]] ([[https://github.com/daviwil/emacs-from-scratch/blob/75f1d4e08512c49ea073c26058df6d4cca3a0d6b/Desktop.org#panel-with-polybar][Code]], [[file:show-notes/Emacs-Desktop-05.org][Notes]])
35+
6. [[https://youtu.be/GX_LGfuojcE][Enabling Desktop Notifications with Dunst]] (Code, [[file:show-notes/Emacs-Desktop-06.org][Notes]])
3536

3637
** [[https://www.youtube.com/playlist?list=PLEoMzSkcN8oNvsrtk_iZSb94krGRofFjN][Emacs IDE]]
3738

desktop.el

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
(efs/start-panel)
3030

3131
;; Launch apps that will run in the background
32+
(efs/run-in-background "dunst")
3233
(efs/run-in-background "nm-applet")
3334
(efs/run-in-background "pasystray")
3435
(efs/run-in-background "blueman-applet"))
@@ -211,3 +212,15 @@
211212

212213
;; Update panel indicator when workspace changes
213214
(add-hook 'exwm-workspace-switch-hook #'efs/send-polybar-exwm-workspace)
215+
216+
(defun efs/disable-desktop-notifications ()
217+
(interactive)
218+
(start-process-shell-command "notify-send" nil "notify-send \"DUNST_COMMAND_PAUSE\""))
219+
220+
(defun efs/enable-desktop-notifications ()
221+
(interactive)
222+
(start-process-shell-command "notify-send" nil "notify-send \"DUNST_COMMAND_RESUME\""))
223+
224+
(defun efs/toggle-desktop-notifications ()
225+
(interactive)
226+
(start-process-shell-command "notify-send" nil "notify-send \"DUNST_COMMAND_TOGGLE\""))

0 commit comments

Comments
 (0)