From 954ec5e583f9049eff9cdaffc14662ba85cd432a Mon Sep 17 00:00:00 2001 From: Jes Olson Date: Fri, 29 Dec 2023 10:07:06 -0600 Subject: [PATCH] berkeleymono! --- .config/foot/foot.ini | 2 +- .config/sway/config | 1 + .jira.d/config.yml | 38 ++++++++++++++++++++++++++++++++++++++ .profile | 1 + bin/zora/statusbar | 17 +++++++++-------- 5 files changed, 50 insertions(+), 9 deletions(-) create mode 100644 .jira.d/config.yml diff --git a/.config/foot/foot.ini b/.config/foot/foot.ini index ed619b7..a003f44 100644 --- a/.config/foot/foot.ini +++ b/.config/foot/foot.ini @@ -1,4 +1,4 @@ -font = monospace:size=12 +font = BerkeleyMono-Regular:monospace:size=12 [scrollback] lines = 50000 diff --git a/.config/sway/config b/.config/sway/config index 221aef0..24cb1d2 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -167,6 +167,7 @@ bar { # When the status_command prints a new line to stdout, swaybar updates. # The default just shows the current date and time. status_command statusbar + font Berkeley Mono Regular 11 pango_markup enabled colors { diff --git a/.jira.d/config.yml b/.jira.d/config.yml new file mode 100644 index 0000000..7329fac --- /dev/null +++ b/.jira.d/config.yml @@ -0,0 +1,38 @@ +endpoint: https://do-internal.atlassian.net +user: jolson +login: jolson@digitalocean.com +jira-deployment-type: cloud +authentication-method: api-token + +project: machines + +queries: + all: (assignee in membersOf("Machines-Configuration") or "Team[Team]" = 78222cae-690d-4584-975b-9e84aef003f4) AND status != Done + initiatives: (assignee in membersOf("Machines-Configuration") or "Team[Team]" = 78222cae-690d-4584-975b-9e84aef003f4) AND status != Done AND issuetype = Initiative + epics: (assignee in membersOf("Machines-Configuration") or "Team[Team]" = 78222cae-690d-4584-975b-9e84aef003f4) AND status != Done AND issuetype = Epic + issues: (assignee in membersOf("Machines-Configuration") or "Team[Team]" = 78222cae-690d-4584-975b-9e84aef003f4) AND status != Done + +custom-commands: + - name: epics + help: testing epic listy + options: + - name: abc + short: a + default: default + - name: day + type: ENUM + enum: + - Monday + - Tuesday + - Wednesday + - Thursday + - Friday + required: true + args: + - name: ARG + required: true + - name: MORE + repeat: true + script: | + echo COMMAND {{args.ARG}} --abc {{options.abc}} --day {{options.day}} {{range $more := args.MORE}}{{$more}} {{end}} + diff --git a/.profile b/.profile index 5482eb9..d0367f6 100644 --- a/.profile +++ b/.profile @@ -22,5 +22,6 @@ if [ "$(hostname)" = "zora" ]; then export KITCHEN_SSH_GATEWAY_USERNAME=jolson export DIGITALOCEAN_ACCESS_TOKEN="$(pa show cloud.digitalocean.com | head -1)" export DIGITALOCEAN_STAGE2_ACCESS_TOKEN="$(pa show stage2.cloud.digitalocean.com | head -1)" + export JIRA_API_TOKEN="$(pa show jira-api-token)" fi ## diff --git a/bin/zora/statusbar b/bin/zora/statusbar index bd6c304..0d80a95 100755 --- a/bin/zora/statusbar +++ b/bin/zora/statusbar @@ -9,18 +9,19 @@ do # wifi="$wifiname ($wifistrength%)" wifi="$wifiname" fi - vpn="off" + vpn="disconnected" if ip link ls gpd0 | grep -q UP; then - vpn="on" + vpn="connected" fi battery="$(cat /sys/class/power_supply/BAT0/capacity)%" # time=$(date +"%A %Y-%m-%d %I:%M %p") - pst_time=$(TZ=America/Los_Angeles date +"%I:%M PT ") - cst_time=$(TZ=America/Chicago date +"[%I:%M CT] ") - est_time=$(TZ=America/New_York date +"%I:%M ET ") - utc_time=$(date -u +"%H:%M UTC ") - time="$pst_time $cst_time $est_time $utc_time" + ymd="$(date +"%Y-%m-%d")" + pst_time=$(TZ=America/Los_Angeles date +"%I:%MPT") + cst_time=$(TZ=America/Chicago date +"[%I:%MCT]") + est_time=$(TZ=America/New_York date +"%I:%MET") + utc_time=$(date -u +"%H:%MUTC") + time="$pst_time/$cst_time/$est_time/$utc_time" # --date='TZ="America/New_York" - printf "%s | %s | %s\n" "wifi: ${wifi} vpn: $vpn" "bat: ${battery}" "${time}" + printf "wifi=%s vpn=%s bat=%s | %s %s\n" "$wifi" "$vpn" "$battery" "$time" "$ymd" sleep 10 done -- 2.51.2