From: Edward Delaporte Date: Tue, 9 Jan 2024 14:33:48 +0000 (-0600) Subject: Merge branch 'main' of github.com:edthedev/dotfiles X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/614cd746cbe8a4c32ebf80e2321f245fa839ee43?hp=ad555c53846465565c8c983eacf2b481e553aecc Merge branch 'main' of github.com:edthedev/dotfiles --- diff --git a/files/paths.ps1 b/files/paths.ps1 index a314b47..a381df8 100644 --- a/files/paths.ps1 +++ b/files/paths.ps1 @@ -42,6 +42,8 @@ Add-ToPath "$env:src\chart" -optional # command line chart utility edthedev\char 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\" diff --git a/files/wtfutil.config.yml b/files/wtfutil.config.yml index 452eae8..9a14752 100644 --- a/files/wtfutil.config.yml +++ b/files/wtfutil.config.yml @@ -19,7 +19,6 @@ wtf: left: 0 width: 1 height: 1 - refreshInterval: 60 type: cmdrunner at_laptop: title: "At My Laptop" @@ -31,7 +30,6 @@ wtf: left: 1 width: 1 height: 1 - refreshInterval: 60 type: cmdrunner on_deck: title: "On Deck" @@ -45,30 +43,42 @@ wtf: 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" @@ -79,7 +89,6 @@ wtf: left: 1 width: 1 height: 1 - refreshInterval: 60 type: cmdrunner diff --git a/psmodules/file_management.psm1 b/psmodules/file_management.psm1 index 3622885..0db2101 100644 --- a/psmodules/file_management.psm1 +++ b/psmodules/file_management.psm1 @@ -46,7 +46,7 @@ Export-ModuleMember -Function Show-LargeFiles # 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{ @@ -59,4 +59,15 @@ function Invoke-StayAwake() { # 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 diff --git a/psmodules/stay_awake.psm1 b/psmodules/stay_awake.psm1 deleted file mode 100644 index 40bc896..0000000 --- a/psmodules/stay_awake.psm1 +++ /dev/null @@ -1,10 +0,0 @@ -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/