diff --git a/de/home/.config/sway-de-utils/config.toml b/de/home/.config/sway-de-utils/config.toml index 7a67c7e..8f26770 100644 --- a/de/home/.config/sway-de-utils/config.toml +++ b/de/home/.config/sway-de-utils/config.toml @@ -102,12 +102,20 @@ suspend_cmd = ["systemctl", "suspend"] # command = "ssh-agent-handler.sh server-asus-n705fd 󱫋" [[profiles]] - name = "School" + name = "Housing" icon = "󰻺" [profiles.program_args] - browser = [ "School", "--new-window", "https://classes.lanecc.edu" ] - browser_newtab = [ "School", "--new-tab", "https://classes.lanecc.edu" ] - filemanager = [ "~/Documents/School/College/LaneCC/2026-01_Winter" ] + browser = [ "Housing", "--new-window", "https://eugenesca.com" ] + browser_newtab = [ "Housing", "--new-tab", "https://eugenesca.com" ] + filemanager = [ "~/Documents/Housing/SCA/" ] +[[profiles.scripts]] + name = "House Meeting Minutes" + icon = "" + command = "~/.config/sway-de-utils/scripts/housing/new-minutes.sh house" +[[profiles.scripts]] + name = "Board Meeting Minutes" + icon = "" + command = "~/.config/sway-de-utils/scripts/housing/new-minutes.sh board" [[profiles]] name = "Work" @@ -119,8 +127,8 @@ suspend_cmd = ["systemctl", "suspend"] [[profiles.scripts]] name = "LCC Links" icon = "" - command = "" + command = "~/.config/sway-de-utils/scripts/work/lanecc_links" [[profiles.scripts]] name = "Second Monitor" icon = "󰍺" - command = "" + command = "~/.config/sway-de-utils/scripts/work/2nd_monitor" diff --git a/de/home/.config/sway-de-utils/config.toml.bak b/de/home/.config/sway-de-utils/config.toml.bak deleted file mode 100644 index ca2f85e..0000000 --- a/de/home/.config/sway-de-utils/config.toml.bak +++ /dev/null @@ -1,121 +0,0 @@ -preserve_keyboard_order = false -window_icons = [ - ["󰖟"," — LibreWolf"], - [""," — Alacritty"], - [""," - VSCodium"], - [""," — Dolphin"] -] - -# Programs -[programs.filemanager] - name = "Dolphin" - command = "dolphin" - arguments = ["--new-window"] -[programs.browser] - name = "Librewolf" - command = "librewolf" -# arguments = ["--no-remote", "-P"] - arguments = ["-P"] -[programs.browser_newtab] - name = "Librewolf (New Tab)" - command = "librewolf" - arguments = ["-P"] - -[lock] -wallpaper_path = "~/.config/sway/assets/wallpaper" -blur = 10.0 -scale = 0.75 - -[[scripts]] - name = "Printer" - icon = "" - command = "librewolf-profile Penelope 'http://printer-hp-dj3630/'" -[[scripts]] - name = "Swap Workstation" - icon = "" - command = "notify-send 'todo!'" -[[scripts]] - name = "scrcpy" - icon = "" - command = "notify-send 'todo!'" - -# Profiles -[[profiles]] - name = "Penelope" - icon = "" -[profiles.program_args] - browser = [ "Penelope", "--new-window", "https://cloud.pogmom.me" ] - browser_newtab = [ "Penelope", "https://cloud.pogmom.me" ] - filemanager = [ "~/Documents" ] -[[profiles.scripts]] - name = "Light Toggle" - icon = "󱣝" - command = "hass-cli -a services -I area_id -i left_bedroom -d light -s toggle" -[[profiles.scripts]] - name = "Home Assistant" - icon = "󰟐" - command = "librewolf 'https://hass.pogmom.me'" -[[profiles.scripts]] - name = "Nextcloud" - icon = "" - command = "librewolf 'https://cloud.pogmom.me'" -[[profiles.scripts]] - name = "Mastodon" - icon = "󰫑" - command = "librewolf 'https://masto.pogmom.me'" -[[profiles.scripts]] - name = "Jellyfin" - icon = "" - command = "librewolf 'https://watch.pogmom.me'" - -[[profiles]] - name = "Development" - icon = "" -[profiles.program_args] - browser = [ "Development", "--new-window", "https://hass.pogmom.me" ] - browser_newtab = [ "Development", "--new-tab", "https://hass.pogmom.me" ] - filemanager = [ "~/Development" ] -[[profiles.scripts]] - name = "bridge-netgear-r8000" - icon = "󱂇" - command = "ssh-agent-handler.sh root@router-netgear-r8000 󱂇" -[[profiles.scripts]] - name = "bridge-netgear-r8000" - icon = "󰑩" - command = "ssh-agent-handler.sh root@bridge-netgear-r8000 󰑩" -[[profiles.scripts]] - name = "server-dell-7050sff-debian" - icon = "󰒍" - command = "ssh-agent-handler.sh pogmom@server-dell-7050sff-debian 󰒍" -[[profiles.scripts]] - name = "server-hp-y2z63av" - icon = "󰢋" - command = "ssh-agent-handler.sh pogmom@server-hp-y2z63av 󰢋" -#[[profiles.scripts]] -# name = "server-asus-n705fd" -# icon = "󱫋" -# command = "ssh-agent-handler.sh server-asus-n705fd 󱫋" - -[[profiles]] - name = "School" - icon = "󰻺" -[profiles.program_args] - browser = [ "School", "--new-window", "https://classes.lanecc.edu" ] - browser_newtab = [ "School", "--new-tab", "https://classes.lanecc.edu" ] - filemanager = [ "~/Documents/School/College/LaneCC/2026-01_Winter" ] - -[[profiles]] - name = "Work" - icon = "" -[profiles.program_args] - browser = [ "Work", "--new-window", "https://lanecc.edu" ] - browser_newtab = [ "Work", "--new-tab", "https://lanecc.edu" ] - filemanager = [ "~/Documents/Work/LaneCC" ] -[[profiles.scripts]] - name = "LCC Links" - icon = "" - command = "" -[[profiles.scripts]] - name = "Second Monitor" - icon = "󰍺" - command = "" diff --git a/de/home/.config/sway-de-utils/scripts/housing/new-minutes.sh b/de/home/.config/sway-de-utils/scripts/housing/new-minutes.sh new file mode 100755 index 0000000..1507e17 --- /dev/null +++ b/de/home/.config/sway-de-utils/scripts/housing/new-minutes.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +if [[ -z ${1} ]]; then + echo "meeting type not defined!" + notify-send "meeting type not defined!" + exit +fi + +minutes_dir="${HOME}/Documents/Housing/SCA/Meetings" +template_dir="${minutes_dir}/templates" + +case "$1" in +board) + meeting_type=Board + ;; +house) + meeting_type=House + ;; +*) + echo "invalid meeting type!" + notify-send "invalid meeting type!" + exit + ;; +esac + +year=$(date +%Y) +month=$(date +%m) +month_locale=$(date +%b) +day=$(date +%d) + +minutes_path="${minutes_dir}/${meeting_type} Meetings/${year}-${month}-${day}.wiki" +meeting_template="${template_dir}/${1}_meeting" + +printf '* %s %s, %s at the [house]\n' "${month_locale}" "${day}" "${year}" >"${minutes_path}" +cat "${meeting_template}" | tail -n+2 | sed 's/ //g' >>"${minutes_path}" + +cd "${template_dir}" +alacritty -e nvim "${minutes_path}" diff --git a/de/home/.config/sway-de-utils/scripts/work/2nd_monitor b/de/home/.config/sway-de-utils/scripts/work/2nd_monitor new file mode 100755 index 0000000..834a924 --- /dev/null +++ b/de/home/.config/sway-de-utils/scripts/work/2nd_monitor @@ -0,0 +1,17 @@ +#!/bin/bash + +connected_displays=$(swaymsg -rt get_outputs | jq -r .[].name) + +for display in {DP-7,DP-6,HDMI-A-1}; do + if [[ ${connected_displays} == *"${display}"* ]]; then + echo swaymsg workspace "39:" output "${display}" + fi +done + +swaymsg workspace number '39:' + +librewolf-profile Work 'https://library.lanecc.edu/' \ + 'https://inside.lanecc.edu/sites/default/files/pg/map_2024_ltr.pdf' \ + 'https://lanecc.libcal.com/allspaces' \ + 'https://library.lanecc.edu/study-rooms#maps' \ + 'https://my.livechatinc.com/home' diff --git a/de/home/.config/sway-de-utils/scripts/work/lanecc_links b/de/home/.config/sway-de-utils/scripts/work/lanecc_links new file mode 100755 index 0000000..c52322f --- /dev/null +++ b/de/home/.config/sway-de-utils/scripts/work/lanecc_links @@ -0,0 +1,9 @@ +#!/bin/bash + +librewolf-profile Work 'https://app.slack.com/client/' \ + 'https://mail.google.com/mail/u/0/#inbox' \ + 'https://na01.alma.exlibrisgroup.com/ng/?institute=01ALLIANCE_LANECC&auth=local' \ + 'https://calendar.google.com/calendar/u/0/r' \ + 'https://25live.collegenet.com/pro/lanecc#!/home/calendar' \ + 'https://titanprint.lanecc.edu/admin' \ + 'https://drive.google.com'