Configuration files

This commit is contained in:
Mahmoud Gomaa authored and GitHub committed 2023-01-19 04:35:03 +02:00
1 parent 788ec5829b
commit 26b7dfd223
8 files changed
+970

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
menu(mode="multiple" title='&Develop' sep=sep.bottom image=\uE26E)
{
menu(mode="single" title='editors' image=\uE17A)
{
item(title='Visual Studio Code' image=[\uE272, #22A7F2] cmd='code' args='"@sel.path"')
separator
item(type='file' mode="single" title='Windows notepad' image cmd='@sys.bin\notepad.exe' args='"@sel.path"')
}
menu(mode="multiple" title='dotnet' image=\uE143)
{
item(title='run' cmd-line='/K dotnet run' image=\uE149)
item(title='watch' cmd-line='/K dotnet watch')
item(title='clean' image=\uE0CE cmd-line='/K dotnet clean')
separator
item(title='build debug' cmd-line='/K dotnet build')
item(title='build release' cmd-line='/K dotnet build -c release /p:DebugType=None')
menu(mode="multiple" sep="both" title='publish' image=\ue11f)
{
var { publish='dotnet publish -r win-x64 -c release --output "@sel.parent\publish" /p:CopyOutputSymbolsToPublishDirectory=false' }
item(title='publish sinale file' sep="after" cmd-line='/K @publish -p:PublishSingleFile=true --self-contained false')
item(title='framework-dependent deployment' cmd-line='/K @publish')
item(title='framework-dependent executable' cmd-line='/K @publish --self-contained false')
item(title='self-contained deployment' cmd-line='/K @publish --self-contained true')
item(title='single-file' cmd-line='/K @publish /p:PublishSingleFile=true /p:PublishTrimmed=false')
item(title='single-file-trimmed' cmd-line='/K @publish /p:PublishSingleFile=true /p:PublishTrimmed=true')
}
item(title='ef migrations add InitialCreate' cmd-line='/K dotnet ef migrations add InitialCreate')
item(title='ef database update' cmd-line='/K dotnet ef database update')
separator
item(title='help' image=\uE136 cmd-line='/k dotnet -h')
item(title='version' cmd-line='/k dotnet --info')
}
}
+77
View File
@@ -0,0 +1,77 @@
menu(where=sel.count>0 type='file|dir|drive|namespace|back' mode="multiple" title='File manage' image=\uE253)
{
menu(separator="after" title='Copy Path' image=icon.copy_path)
{
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" type='file' separator="before" find='.lnk' title='open file location')
separator
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))
item(mode="single" type='file' where=sel.file.ext.len>0 title=sel.file.ext cmd=command.copy(sel.file.ext))
}
menu(separator="after" image=\uE290 title=title.select)
{
item(title="All" image=icon.select_all cmd=command.select_all)
item(title="Invert" image=icon.invert_selection cmd=command.invert_selection)
item(title="None" image=icon.select_none cmd=command.select_none)
}
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")')
separator
menu(title="Show/Hide" image=icon.show_hidden_files)
{
item(title="System files" image=inherit cmd='@command.togglehidden')
item(title="File name extensions" image=icon.show_file_extensions cmd='@command.toggleext')
}
menu(type='file|dir|back.dir' mode="single" title='Attributes')
{
var { 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))
}
menu(mode="single" type='file' find='.dll|.ocx' separator="before" title='Register Server' image=\uea86)
{
item(title='Register' admin cmd='regsvr32.exe' args='@sel.path.quote' invoke="multiple")
item(title='Unregister' admin cmd='regsvr32.exe' args='/u @sel.path.quote' invoke="multiple")
}
menu(mode="single" type='back' expanded=true)
{
menu(separator="before" title='New Folder' image=icon.new_folder)
{
item(title='DateTime' cmd=io.dir.create(sys.datetime("ymdHMSs")))
item(title='Guid' cmd=io.dir.create(str.guid))
}
menu(title='New File' image=icon.new_file)
{
var { dt = sys.datetime("ymdHMSs")}
item(title='TXT' cmd=io.file.create('@(dt).txt', 'Hello World!'))
item(title='XML' cmd=io.file.create('@(dt).xml', '<root>Hello World!</root>'))
item(title='JSON' cmd=io.file.create('@(dt).json', '[]'))
item(title='HTML' cmd=io.file.create('@(dt).html', "<html>\n\t<head>\n\t</head>\n\t<body>Hello World!\n\t</body>\n</html>"))
}
}
item(where=!wnd.is_desktop title=title.folder_options image=icon.folder_options cmd=command.folder_options)
}
+61
View File
@@ -0,0 +1,61 @@
menu(type='*' where=window.is_taskbar||sel.count mode=mode.multiple title='Goto' sep=sep.both image=\uE14A)
{
menu(title='Folder' image=\uE1F4)
{
item(title='Windows' image=inherit cmd=sys.dir)
item(title='System' image=inherit cmd=sys.bin)
item(title='Program Files' image=inherit cmd=sys.prog)
item(title='Program Files x86' image=inherit cmd=sys.prog32)
item(title='ProgramData' image=inherit cmd=sys.programdata)
item(title='Applications' image=inherit cmd='shell:appsfolder')
item(title='Users' image=inherit cmd=sys.users)
separator
//item(title='@user.name@@@sys.name' vis=label)
item(title='Desktop' image=inherit cmd=user.desktop)
item(title='Downloads' image=inherit cmd=user.downloads)
item(title='Pictures' image=inherit cmd=user.pictures)
item(title='Documents' image=inherit cmd=user.documents)
item(title='Startmenu' image=inherit cmd=user.startmenu)
item(title='Profile' image=inherit cmd=user.dir)
item(title='AppData' image=inherit cmd=user.appdata)
item(title='Temp' image=inherit cmd=user.temp)
}
item(title=title.control_panel image=\uE0F3 cmd='shell:::{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}')
item(title='All Control Panel Items' image=\uE0F3 cmd='shell:::{ED7BA470-8E54-465E-825C-99712043E01C}')
item(title=title.run image=\uE14B cmd='shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0}')
menu(title=title.settings sep=sep.before image=\uE0F3)
{
// https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-settings-app
item(title='system' image=inherit cmd='ms-settings:')
item(title='about' image=inherit cmd='ms-settings:about')
item(title='your-info' image=inherit cmd='ms-settings:yourinfo')
item(title='system-info' image=inherit cmd-line='/K systeminfo')
item(title='search' cmd='search-ms:' image=inherit)
item(title='usb' image=inherit cmd='ms-settings:usb')
item(title='windows-update' image=inherit cmd='ms-settings:windowsupdate')
item(title='windows-defender' image=inherit cmd='ms-settings:windowsdefender')
menu(title='apps' image=inherit)
{
item(title='apps-features' image=inherit cmd='ms-settings:appsfeatures')
item(title='default-apps' image=inherit cmd='ms-settings:defaultapps')
item(title='optional-features' image=inherit cmd='ms-settings:optionalfeatures')
item(title='startup' image=inherit cmd='ms-settings:startup')
}
menu(title='personalization' image=inherit)
{
item(title='personalization' image=inherit cmd='ms-settings:personalization')
item(title='lockscreen' image=inherit cmd='ms-settings:lockscreen')
item(title='background' image=inherit cmd='ms-settings:personalization-background')
item(title='colors' image=inherit cmd='ms-settings:colors')
item(title='themes' image=inherit cmd='ms-settings:themes')
item(title='start' image=inherit cmd='ms-settings:personalization-start')
item(title='taskbar' image=inherit cmd='ms-settings:taskbar')
}
menu(title='network' image=inherit)
{
item(title='status' image=inherit cmd='ms-settings:network-status')
item(title='ethernet' image=inherit cmd='ms-settings:network-ethernet')
item(title='connections' image=inherit cmd='shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}')
}
}
}
File diff suppressed because it is too large. Load diff
+24
View File
@@ -0,0 +1,24 @@
shell
{
// static items
// Delete items by identifiers
item(mode=mode.multiple
where=this.id(id.restore_previous_versions,id.cast_to_device,id.give_access_to,id.include_in_library,id.print)
vis=vis.remove)
item(type='recyclebin' where=window.is_desktop and this.id==id.empty_recycle_bin pos=1 sep)
item(type='back' find=['shortcut', '/new'] vis=vis.remove)
item(find='unpin' pos=pos.bottom menu="Pin//Unpin")
item(find='pin' pos=pos.top menu="Pin//Unpin")
item(where=this.id==id.copy_as_path menu='file manage')
item(type='dir.back|drive.back' where=this.id==id.customize_this_folder pos=1 sep='top' menu='file manage')
item(find='"open in terminal"|"Open linux shell here"' pos=pos.bottom sep menu='Terminal')
item(find='open with visual studio' pos=1 menu='develop/editors')
//Move and organize
item(mode=mode.multiple find='scan with' menu=title.more_options)
item(mode=mode.multiple
where=this.id(id.send_to,id.share,id.create_shortcut,id.set_as_desktop_background,id.rotate_left,
id.rotate_right, id.map_network_drive,id.disconnect_network_drive,id.format, id.eject)
pos=1 menu=title.more_options)
}
+34
View File
@@ -0,0 +1,34 @@
menu(type="taskbar" vis=key.shift() pos=0 title=app.name image=\uE249)
{
item(title="config" image=\uE10A cmd=app.cfg)
item(title="manager" image=\uE0F3 admin cmd=app.exe)
item(title="directory" image=\uE0E8 cmd=app.dir)
item(title="version\t"+@app.ver vis=label col=1)
item(title="docs" image=\uE1C4 cmd='https://nilesoft.org/docs')
item(title="donate" image=\uE1A7 cmd='https://nilesoft.org/donate')
}
menu(where=@(isw11 and this.count == 0) type='taskbar' expanded=true)
{
menu(title="Apps" image=\uE254)
{
item(title='Paint' image=\uE116 cmd='mspaint')
item(title='Edge' image cmd='@sys.prog32\Microsoft\Edge\Application\msedge.exe')
item(title='Calculator' image=\ue1e7 cmd='calc.exe')
item(title=@str.res('regedit.exe,-16') image cmd='regedit.exe')
}
menu(title=title.windows image=\uE1FB)
{
item(title=title.cascade_windows cmd=command.cascade_windows)
item(title=title.Show_windows_stacked cmd=command.Show_windows_stacked)
item(title=title.Show_windows_side_by_side cmd=command.Show_windows_side_by_side)
sep
item(title=title.minimize_all_windows cmd=command.minimize_all_windows)
item(title=title.restore_all_windows cmd=command.restore_all_windows)
}
item(title=title.task_manager image=icon.task_manager cmd='taskmgr.exe')
item(title=title.taskbar_Settings sep=both image=icon.settings cmd='ms-settings:taskbar')
item(title=title.settings image=icon.settings(auto, @image.color1) cmd='ms-settings:')
item(title=title.desktop image=icon.desktop cmd=command.toggle_desktop)
item(vis=@key.shift() title=title.exit_explorer cmd=command.restart_explorer)
}
+6
View File
@@ -0,0 +1,6 @@
menu(type='*' where=(sel.count or wnd.is_taskbar or wnd.is_edit) title=title.terminal sep='top' image=icon.run_with_powershell)
{
item(title=title.command_prompt admin=key.shift() image cmd='cmd.exe' args='/K TITLE Command Prompt &ver& PUSHD "@sel.dir"')
item(title=title.windows_powershell admin=@key.shift() image cmd='powershell.exe' args='-noexit -command Set-Location -Path "@sel.dir\."')
item(where=sys.ver.major >= 10 title=title.Windows_Terminal admin=key.shift() image='@package.path("WindowsTerminal")\WindowsTerminal.exe' cmd='wt.exe' arg='-d "@sel.path\."')
}
+51
View File
@@ -0,0 +1,51 @@
shell
{
var
{
isw11=sys.is11
}
set
{
theme
{
name="modern"
background
{
//opacity=95
effect=0
}
image
{
align=2
}
item.prefix=auto
}
exclude.where = !process.is_explorer
showdelay=200
}
images import 'imports/images.nss'
static
{
import 'imports/static.nss'
item(where=this.title.length > 25 menu=title.more_options)
}
dynamic
{
menu(mode="multiple" title="Pin/Unpin" image=icon.pin) { }
menu(mode="multiple" title=title.more_options image=icon.more_options) { }
import 'imports/terminal.nss'
import 'imports/file-manage.nss'
import 'imports/develop.nss'
import 'imports/goto.nss'
import 'imports/taskbar.nss'
}
}