dotfiles

my shiny new dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

commit a81d9d631a3f696fb08a7fee7c42abf18e1e4029
parent 3b0b1ed190ba291f55c9de985c5dce31025cc13d
Author: Jake Koroman <jakekoroman@gmail.com>
Date:   Wed, 28 Feb 2024 20:00:25 -0500

new scripts

Diffstat:
Ascripts/accept_rdp_cert | 8++++++++
Ascripts/rdp | 8++++++++
Ascripts/rdpmenu | 7+++++++
Ascripts/weather | 3+++
4 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/scripts/accept_rdp_cert b/scripts/accept_rdp_cert @@ -0,0 +1,8 @@ +#!/bin/sh + +if test -z $1; then + echo "Usage: ./accept_rdp_cert <server_name>" + exit 1 +fi + +xfreerdp /v:$1 /u:koromanjadmin /d:MILTONHYDRO diff --git a/scripts/rdp b/scripts/rdp @@ -0,0 +1,8 @@ +#!/bin/sh + +if test -z "$1"; then + echo "Usage: ./rdp <server_name>" + exit +fi + +cat ~/.config/freerdp/.pass | xfreerdp /v:"$1" /u:koromanjadmin /d:MILTONHYDRO /size:1920x1080 /dynamic-resolution /from-stdin diff --git a/scripts/rdpmenu b/scripts/rdpmenu @@ -0,0 +1,7 @@ +#!/bin/bash + +readarray -t servers < ~/.rdpmenu + +server=$(printf '%s\n' "${servers[@]}" | wmenu -p "Server" -i -l 4) + +[[ ! -z "$server" ]] && rdp "$server.miltonhydro.com" diff --git a/scripts/weather b/scripts/weather @@ -0,0 +1,3 @@ +#!/bin/sh + +curl -s "wttr.in/cambridge+canada?lang=fr&0" | sed 's/cambridge+canada/Cambridge/g'