New stuff for the debian machine
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 15 Jul 2023 23:07:30 -0400 |
parents |
ea20ba30c05a
|
children |
3934552a572f
|
branches/tags |
(none) |
files |
dunstrc stumpwmrc xsessionrc |
Changes
--- a/dunstrc Sat Jul 15 19:37:43 2023 -0400
+++ b/dunstrc Sat Jul 15 23:07:30 2023 -0400
@@ -7,6 +7,7 @@
# geometry = "x5"
idle_threshold = 60
geometry = "300x5-15+30"
+ gap_size=4
alignment = left
show_age_threshold = 60
sticky_history = yes
@@ -19,13 +20,8 @@
startup_notification = true
# dmenu = "/usr/bin/dmenu -p dunst: -nb #FFFFFF -nf #000000 -sb #94DBFF -sf #000000"
browser = xdg-open
-
-[shortcuts]
- close_all = ctrl+BackSpace
-
-[frame]
- width = 3
- color = "#000000"
+ frame_width = 1
+ frame_color = "#000000"
[urgency_low]
background = "#ffffff"
--- a/stumpwmrc Sat Jul 15 19:37:43 2023 -0400
+++ b/stumpwmrc Sat Jul 15 23:07:30 2023 -0400
@@ -465,6 +465,10 @@
(when-let-window (win "^Zoom -.*")
(kill-window win)))
+(defcommand clear-notifications () ()
+ (run-shell-command "dunstctl close-all"))
+
+
;;;; Terminal Fonts -----------------------------------------------------------
(defcommand reload-terminal-font-size ()
@@ -680,6 +684,7 @@
("H-V" "vlc")
("H-4" "budget")
("H-$" "spend")
+ ("C-BackSpace" "clear-notifications")
)
(define-top-keys ;; clipboard
@@ -846,6 +851,9 @@
(round (? sensors "amdgpu-pci-4500" "edge" "temp1_input"))
(round (? sensors "amdgpu-pci-4500" "junction" "temp2_input"))
(round (? sensors "amdgpu-pci-4500" "mem" "temp3_input"))))
+ (:gro (format nil "[CPU ~D°C] [GPU ~D°C]"
+ (round (? sensors "thinkpad-isa-0000" "CPU" "temp1_input"))
+ (round (? sensors "amdgpu-pci-0600" "edge" "temp1_input"))))
(t "?")))
(defun sensors (&aux (now (get-internal-real-time)))
@@ -898,7 +906,7 @@
;; battery and brightness for laptops
(hostcase
- ((:mobius :alephnull :papyrifera)
+ ((:gro)
'("(B %B)"
" (BR "
(:eval (princ-to-string (brightness)))
@@ -930,7 +938,7 @@
;; (defvar *dropbox*
;; (run-shell-command "~/.dropbox-dist/dropboxd"))
-(defvar *dunst*
+#+no(defvar *dunst*
(run-shell-command "/usr/bin/dunst -conf ~/.dunstrc"))
(when (probe-file "/home/sjl/.stumpwmrc.local")
--- a/xsessionrc Sat Jul 15 19:37:43 2023 -0400
+++ b/xsessionrc Sat Jul 15 23:07:30 2023 -0400
@@ -21,7 +21,10 @@
xcape -t 200 -e 'Control_L=Escape;Shift_L=Shift_L|9;Shift_R=Shift_R|0'
xautolock -time 30 -locker /home/sjl/src/dotfiles/bin/lock-screen &
-# /usr/bin/dunst -config $HOME/.dunstrc &
+# turn off heart-attack-inducing pc speaker beep
+xset -b
+
+/usr/bin/dunst -config $HOME/.dunstrc &
# Fix the fucking GTK scrolling bullshit
# God bless you https://mmk2410.org/2018/02/15/scrolling-doesnt-work-in-gtk-3-apps-in-stumpwm/