Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- settings
- {
- priority=1
- exclude.where = !process.is_explorer
- showdelay = 200
- // Options to allow modification of system items
- modify.remove.duplicate=1
- tip.enabled=true
- }
- theme
- {
- name="modern"
- dark=auto
- view = view.compact
- background
- {
- color=auto
- opacity=50
- effect=default
- }
- image.align=2
- }
- import 'imports/images.nss'
- menu(title='Run' type='file' find='.exe|.ps1|.bat' mode='single' image=\uE0D6)
- {
- $tip_run_admin=["\xE1A7 Press SHIFT key to run " + this.title + " as administrator", tip.warning, 1.0]
- $has_admin=key.shift() or key.rbutton()
- // Run with CMD
- item(
- mode='single'
- type='file'
- where=sel.file.ext!='.ps1'
- title='Run in Command Prompt'
- image
- admin=has_admin
- tip=tip_run_admin
- cmd-prompt=`/K TITLE Command Prompt &ver& PUSHD "@sel.dir" & @sel.name`
- //cmd='cmd.exe'
- //args='/K TITLE Command Prompt &ver& PUSHD "@sel.dir" & @sel.name'
- )
- // Run with PS
- item(
- mode='single'
- type='file'
- where=sel.file.ext!='.bat'
- title='Run in Powershell'
- image
- admin=has_admin
- tip=tip_run_admin
- cmd-ps=`-noexit -command Set-Location -LiteralPath '@sel.dir';"./@sel.file.name"`
- //cmd='powershell.exe'
- //args='-noexit -command cd -LiteralPath "@sel.dir\."; "./@sel.file.name"'
- )
- }
- modify(find='Run' parent='Run' position='top')
- modify(find='Edit' position='top')
- modify(find='Open' position='top')
- // system
- menu(title='System' position='bottom' sep='before' image=\uE167)
- {
- separator
- item(mode='single' type='file' find='.exe|.ps1|.bat' image=\uE1E2
- title='Install "@sel.file.name" as an Application'
- cmd=path.lnk.create('@user.startmenu\Programs\@(sel.name + ".lnk")', sel.path))
- item(type='file|dir|back.dir|drive' title='Take Ownership' image=[\uE194,#f00] admin
- cmd args='/K takeown /f "@sel.path" @if(sel.type==1,null,"/r /d y") && icacls "@sel.path" /grant *S-1-5-32-544:F @if(sel.type==1,"/c /l","/t /c /l /q")')
- menu(type='file|dir|back.dir' mode="single" title='Attributes' image=\uE066)
- {
- $atrr = io.attributes(sel.path)
- item(title='Hidden' checked=io.attribute.hidden(atrr)
- cmd args='/c ATTRIB @if(io.attribute.hidden(atrr),"-","+")H "@sel.path"' window=hidden)
- item(title='System' checked=io.attribute.system(atrr)
- cmd args='/c ATTRIB @if(io.attribute.system(atrr),"-","+")S "@sel.path"' window=hidden)
- item(title='Read-Only' checked=io.attribute.readonly(atrr)
- cmd args='/c ATTRIB @if(io.attribute.readonly(atrr),"-","+")R "@sel.path"' window=hidden)
- item(title='Archive' checked=io.attribute.archive(atrr)
- cmd args='/c ATTRIB @if(io.attribute.archive(atrr),"-","+")A "@sel.path"' window=hidden)
- separator
- item(title="CREATED" keys=io.dt.created(sel.path, 'y/m/d') cmd=io.dt.created(sel.path,2000,1,1))
- item(title="MODIFIED" keys=io.dt.modified(sel.path, 'y/m/d') cmd=io.dt.modified(sel.path,2000,1,1))
- item(title="ACCESSED" keys=io.dt.accessed(sel.path, 'y/m/d') cmd=io.dt.accessed(sel.path,2000,1,1))
- }
- item(type='*' title='Empty recycle-bin' position='bottom' image=\uE0CE
- cmd='powershell.exe' args='-command Clear-RecycleBin;exit')
- item(title=title.run image=\uE14B position='bottom' cmd='shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}')
- menu(title=title.go_to type='*' where=window.is_taskbar||sel.count mode=mode.multiple position='bottom' sep='before' image=\uE14A)
- {
- item(title='Temp' cmd=user.temp)
- item(title='AppData' cmd=user.appdata)
- item(title='LocalAppData' cmd=user.localappdata)
- item(title='Startmenu' cmd=user.startmenu)
- item(title='Profile (@user.name)' cmd=user.dir)
- separator
- item(title='Users' cmd=sys.users)
- item(title='Windows' cmd=sys.dir)
- item(title='System32' cmd=sys.bin)
- item(title='ProgramData' cmd=sys.programdata)
- item(title='Program Files' cmd=sys.prog)
- item(title='Program Files x86' cmd=sys.prog32)
- }
- }
- modify(find='Run' position=indexof('Open', 1))
- modify(find="What's using" parent='System')
- modify(find="Restore" parent='System')
- modify(find="Create Shortcut" parent='System')
- menu(title='Operations' type='file|dir' mode='multiple' sep='before' image=\uE181)
- {}
- menu(title=title.copy_path parent='Operations' image=\uE0AC )
- {
- item(where=sel.count > 1 title='Copy (@sel.count) items selected' cmd=command.copy(sel(false, "\n")))
- item(mode="single" title=@sel.path tip=sel.path cmd=command.copy(sel.path))
- item(mode="single" where=@sel.parent.len>3 title=sel.parent cmd=@command.copy(sel.parent))
- separator
- item(mode="single" type='file|dir|back.dir' title=sel.file.name cmd=command.copy(sel.file.name))
- item(mode="single" type='file' where=sel.file.len != sel.file.title.len title=@sel.file.title cmd=command.copy(sel.file.title))
- }
- menu(
- title='Terminal'
- type='Back|Desktop'
- where=(sel.count or wnd.is_taskbar or wnd.is_edit)
- image=icon.run_with_powershell)
- {
- $tip_run_admin=["\xE1A7 Press SHIFT key to run " + this.title + " as administrator", tip.warning, 1.0]
- $has_admin=key.shift() or key.rbutton()
- item(
- title="Open Command Prompt here"
- tip=tip_run_admin
- admin=has_admin
- image
- cmd-prompt=`/K TITLE Command Prompt &ver& PUSHD "@sel.dir"`
- )
- item(
- title="Open Powershell here"
- admin=has_admin
- tip=tip_run_admin
- image
- cmd-ps=`-noexit -command Set-Location -LiteralPath '@sel.dir'`
- )
- }
- // submenu everything except...
- menu(title='Windows' position=indexof('System', 1) mode='multiple' image=\uE1B7){}
- modify(parent='Windows'
- where=!this.name(
- 'Open',
- "Open in",
- "Open with",
- "Open file location",
- "Open folder location",
- "Edit",
- "NanaZip",
- "New",
- "Properties",
- "More GpgEx options"
- )
- )
- modify(find='nanazip' title='Archive' parent='Operations' image=\uE288)
- modify(find='More GpgEx options' parent='Operations' title='GpgEX' image=\uE19C)
- modify(find='properties' position=indexof('Windows', 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement