Deploy scripts with stow

This commit is contained in:
2025-06-11 21:43:40 -04:00
parent 537f23077e
commit 9c0ade560c
29 changed files with 62 additions and 64 deletions

View File

@@ -0,0 +1,23 @@
[org.mate.panel.general]
default-layout='redmond'
[org.mate.desktop.font-rendering]
antialiasing='rgba'
hinting='slight'
#[org.mate.desktop.interface]
#font-name='Liberation Sans 10'
#document-font-name='Liberation Sans 10'
#monospace-font-name='Liberation Mono 10'
[org.mate.Marco.general]
side-by-side-tiling=true
num-workspaces=2
compositing-manager=false
[org.mate.media-handling]
automount=false
automount-open=false
[org.mate.screensaver]
lock-enabled=false

View File

@@ -0,0 +1,72 @@
#/usr/share/mate-panel/layouts/hartmanlab.layout
[Toplevel bottom]
expand=true
orientation=bottom
size=24
[Object mate-menu]
object-type=applet
toplevel-id=bottom
locked=true
position=0
applet-iid=MateMenuAppletFactory::MateMenuApplet
[Object separator]
object-type=separator
toplevel-id=bottom
locked=true
position=30
[Object firefox]
object-type=launcher
toplevel-id=bottom
locked=true
position=40
launcher-location=/usr/share/applications/firefox.desktop
[Object mate-terminal]
object-type=launcher
toplevel-id=bottom
locked=true
position=64
launcher-location=/usr/share/applications/mate-terminal.desktop
[Object caja]
object-type=launcher
toplevel-id=bottom
locked=true
position=88
launcher-location=/usr/share/applications/caja-browser.desktop
[Object window-list]
object-type=applet
toplevel-id=bottom
locked=true
position=112
applet-iid=WnckletFactory::WindowListApplet
[Object workspace-switcher]
object-type=applet
toplevel-id=bottom
locked=true
panel-right-stick=true
position=20
applet-iid=WnckletFactory::WorkspaceSwitcherApplet
[Object notification-area]
object-type=applet
toplevel-id=bottom
locked=true
panel-right-stick=true
position=10
applet-iid=NotificationAreaAppletFactory::NotificationArea
[Object clock]
object-type=applet
toplevel-id=bottom
locked=true
panel-right-stick=true
position=0
applet-iid=ClockAppletFactory::ClockApplet

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Notify all users on S.M.A.R.T errors
# Place in /usr/share/smartmontools/smartd_warning.d/ or use "DEVICESCAN -m @smartd-notify-all" in /etc/smartd.conf
# Copyright 2021-2025 Bryan C. Roessler
# Licensed under the Apache License, Version 2.0
IFS=$'\n'
for LINE in $(w -hs); do
USER=$(echo "$LINE" | awk '{print $1}')
USER_ID=$(id -u "$USER")
DISP_ID=$(echo "$LINE" | awk '{print $8}')
sudo su "$USER" DISPLAY="$DISP_ID" DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/"$USER_ID"/bus notify-send "S.M.A.R.T Error ($SMARTD_FAILTYPE) $SMARTD_MESSAGE" --icon=dialog-warning
done