Add-ToPath "$env:src\agenda" -optional # command line chart utility edthedev\chart
Add-ToPath "$env:src\todolist" -optional # todo list utility edthedev\todolist
+# krew for K8S pluginsa - specifically vtrl
+Add-ToPath "$HOME/.krew/bin"
# $env:path+=";C:\Program Files\Git\bin"
# $env:path+=";C:\Program Files (x86)\Microsoft VS Code\"
left: 0
width: 1
height: 1
- refreshInterval: 60
type: cmdrunner
at_laptop:
title: "At My Laptop"
left: 1
width: 1
height: 1
- refreshInterval: 60
type: cmdrunner
on_deck:
title: "On Deck"
height: 1
refreshInterval: 60
type: cmdrunner
- project1:
- title: "Project 1 - December Trip"
+ project2:
+ title: "Project 2 - DeGoogle"
cmd: "todo-txt"
- args: ["list", "+dectrip"]
- enabled: true
+ args: ["list", "+degoogle"]
+ enabled: false
position:
top: 2
- left: 0
+ left: 1
width: 1
height: 1
+ type: cmdrunner
refreshInterval: 60
+ legacy:
+ title: "Project 1 - legacy"
+ cmd: "todo-txt"
+ args: ["list", "+legacy"]
+ enabled: true
+ position:
+ top: 2
+ left: 0
+ width: 1
+ height: 1
type: cmdrunner
- project2:
- title: "Project 2 - Open Shift"
+ refreshInterval: 60
+ books:
+ title: "Project 2 - DeGoogle"
cmd: "todo-txt"
- args: ["list", "+degoogle"]
+ args: ["list", "+books"]
enabled: true
position:
top: 2
left: 1
width: 1
height: 1
- refreshInterval: 60
type: cmdrunner
+ refreshInterval: 60
proj_list:
title: "Project List"
cmd: "todo-txt"
left: 1
width: 1
height: 1
- refreshInterval: 60
type: cmdrunner
# Stay awake to allow large transfers to complete
# without permanently giving up battery saving features
-function Invoke-StayAwake() {
+function Invoke-StayAwakeWindows() {
param($minutes=90)
$wsh = New-Object -ComObject WScript.Shell
do{
# Thank you to http://www.zhornsoftware.co.uk/caffeine/
}
-Export-ModuleMember -Function Invoke-StayAwake
\ No newline at end of file
+Export-ModuleMember -Function Invoke-StayAwakeWindows
+
+function Invoke-StayAwake() {
+ param($minutes=90)
+ do{
+ "Staying awake for $minutes minutes"
+ systemd-inhibit sleep 60
+ $minutes-=1;
+ }until($minutes -lt 0)
+}
+
+Export-ModuleMember -Function Invoke-StayAwake
+++ /dev/null
-param($minutes=90)
-$wsh = New-Object -ComObject WScript.Shell
-do{
- "Staying awake for $minutes minutes"
- $minutes-=1;
- # Send Shift+F15
- $wsh.SendKeys('+{F15}')
- Start-Sleep -seconds 59
-}until($minutes -lt 0)
-# Thank you to http://www.zhornsoftware.co.uk/caffeine/