obnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 9 days agoNoicelemmy.mlimagemessage-square117fedilinkarrow-up1422arrow-down19
arrow-up1413arrow-down1imageNoicelemmy.mlobnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 9 days agomessage-square117fedilink
minus-squareobnomus@lemmy.mlOPlinkfedilinkEnglisharrow-up5·7 days agoForgot to mention but only in fish shell.
minus-squareMountainaire@lemmy.worldlinkfedilinkarrow-up1·2 days agoWhat is the “fish shell?” Anyway, I’m gonna see if I can actually get this to work in any terminal through an external program…
minus-squareMountainaire@lemmy.worldlinkfedilinkarrow-up2·edit-21 day agoI figured it out, at least in Linux Mint: Install Keysharp (which includes installing Microsoft’s .NET 10 Runtime, but not SDK!) Put this in a .ks folder: !s::{ ; Press Alt+S to use sudo on the previous Terminal line KeyWait 's' If WinActive('ahk_exe gnome-terminal-server') Send 'sudo {!}{!}{Enter}' } Set it as a Startup Program with the command keysharp "(filepath)/(filename).ks" and it’ll always be ready to go!
Forgot to mention but only in fish shell.
What is the “fish shell?” Anyway, I’m gonna see if I can actually get this to work in any terminal through an external program…
Ah oki lol
I figured it out, at least in Linux Mint:
.ksfolder:Set it as a Startup Program with the command
keysharp "(filepath)/(filename).ks"and it’ll always be ready to go!