]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Merge branch 'main' of github.com:edthedev/dotfiles
authorEdward Delaporte <delaport@illinois.edu>
Tue, 9 Jan 2024 14:33:48 +0000 (08:33 -0600)
committerEdward Delaporte <delaport@illinois.edu>
Tue, 9 Jan 2024 14:33:48 +0000 (08:33 -0600)
files/paths.ps1
files/wtfutil.config.yml
psmodules/file_management.psm1
psmodules/stay_awake.psm1 [deleted file]

index a314b470e0d7bfe25a4376833e3f82e08ab7cc5d..a381df8508a566501a9a42bd560dc304ab75cb47 100644 (file)
@@ -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\"
index 452eae88f9210cec51273b6dbb28116142052a5d..9a147523002c7adbc14029a90151ba748da3efcf 100644 (file)
@@ -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
 
 
index 3622885c75e91c9e717577a2b90f4a7adfb28135..0db210109ac3ca6fa2d4cab9b16dbf177d71ae0d 100644 (file)
@@ -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 (file)
index 40bc896..0000000
+++ /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/