new commands are mbs1, mbs2, mbs3 to swap between the three default choices (mbs1 restores your originals). here's the pinstall/explanation:
Code: Select all
#!/bin/sh
#microplugins/pinstall.sh
cp -f /root/.config/micro/bindings.json /root/.config/micro/bindings.json-00
cp -f /root/.config/micro/settings.json /root/.config/micro/settings.json-00
#cp -f /root/.config/micro/settings.json-11 /root/.config/micro/settings.json
#cp -f /root/.config/micro/bindings.json-11 /root/.config/micro/bindings.json
cp -f /root/.config/micro/bindings.json-12 /root/.config/micro/bindings.json
cp -f /root/.config/micro/settings.json-12 /root/.config/micro/settings.json
#activates set ..-12 by default, but your originals are the basis for the quickswitches (pet before this in bb insta-spin) and can be reactivated by mbs0 in a terminal. the set marked -11 is mbs1 and the default set is backed up as mbs2 (mbs = Micro's Bindings, Settings)
echo $'#!/bin/sh
cp -f /root/.config/micro/bindings.json-00 /root/.config/micro/bindings.json
cp -f /root/.config/micro/settings.json /root/.config/micro/settings.json-00
' > /root/my-applications/bin/mbs0
/root/my-applications/bin/mbs0
echo $'#!/bin/sh
cp -f /root/.config/micro/bindings.json-11 /root/.config/micro/bindings.json
cp -f /root/.config/micro/settings.json-11 /root/.config/micro/settings.json
' > /root/my-applications/bin/mbs1
/root/my-applications/bin/mbs1
echo $'#!/bin/sh
cp -f /root/.config/micro/bindings.json-12 /root/.config/micro/bindings.json
cp -f /root/.config/micro/settings.json-12 /root/.config/micro/settings.json
' > /root/my-applications/bin/mbs2
chmod 755/root/my-applications/bin/mbs2
#after running, run CtrlE > reload in micro. mbs1 (micro keyboard configuration 1) is your originals, 2 is a custom set without messing with multicursor functions, 3 uses those functions to replace some of the selection and navigation shortcuts that don't work/would otherwise be missing. short cuts/ changes from the original file or from 2 to 3 are :
#"CtrlW": "ShellMode",
#"AltW": "PreviousSplit",
#"Alt-e": "NextSplit",
#"CtrlH": "HSplit",
#"Alt-v": "VSplit",
#"Alt-x": "SelectToStart",
#"Alt-c": "CursorStart",
#"Alt-n": "CursorEnd",
#"Alt-m": "SelectToEnd",
#"Alt-p": "PastePrimary",
#"Alt-f": "SelectWordRight",
#"Alt-b": "SelectWordLeft",
#^ for forward and back
#"Alt-a": "SelectLeft",
#"Alt-s": "SelectRight",
#//tmux conflict --scroll back
#"F5": "SelectUp",
#"F6": "SelectDown",
#"F7": "SelectRight",
#"F8": "SaveAll",
#"F9": "SaveAs",
#"F10": "QuitAll",
#"F11": "DeleteWordLeft",
#"F12": "DeleteWordRight",
#// // "F10": "DeleteWordRight",
#"Alt-t": "command-edit:tabswitch "
#// "F7": "Find",
#//"Alt-n": "SpawnMultiCursor",
#//"Alt-m": "SpawnMultiCursorSelect",
#//"Alt-p": "RemoveMultiCursor",
#//"Alt-c": "RemoveAllMultiCursors",
#//"Alt-x": "SkipMultiCursor",
#//function keys plus original additions/changes to default
#// Integration with file managers
#//"CtrlF1": "SelectToStart",
#//"CtrlF2": "SelectUp",
#//"CtrlF3": "SelectDown",
#//"CtrlF4": "SelectToEnd",
#"F1": "SelectToStart",
#"F2": "SelectUp",
#"F3": "SelectDown",
#"F4": "SelectToEnd",
#keybindings 12 gives more of the navigation and selection controls back to the keyboard but you lose some multi cursor functions
#settings 12 has undo history enabled but is otherwise the same as 11
#
#delete word left delete word right have been move to f11 and f12
#shell mode and close all have been changed to ctrlw and f10 from f7 and f6. ctrlw, ctrle are shellmode, command mode
#the rationale behind the new xcnm combo is spatial mostly. alt plus c=cursor (start, since that was a missing keyboard shortcut), and on the inside of the same row n for (cursor to) end. one over on either side of those is select to start/end.
#
#-----
#settings 11 is same as last micro config containing pet i offered
#settings 12 has unlimited undo (save undo history. set option is the ctrlE toggle way of changing the file)
#
#***
#micro in terminal to launch--desktop file for further discussion (though which terminal, launching what files to start, tmuxed or no, etc)
#also updates mmv
#getmicro in terminal if you don't have it installed will download it for you and set permissions
#--puppus dogfellow, 1/23/20
-------
#(in short, not being able to bounce around in or highlight the document through the keyboard is somewhat annoying and is supposed to work with no fiddling around but doesn't, at least through the majority of terminal/pup/tmux combos i've tried it out in)
templates/examples of configuration quickswitches
set for 6 jwm variations, 3 for micro text editor (back up your defaults/import and store your mods) (a post in the mcc thread):
been working taking the spin to bionic (my machine running 6t4 is dead, a 32 bit laptop also recently died, i replaced them with two 64 bit desktops, both now running nwp'd pups. here's the work shop folder:Puppus Dogfellow wrote:ease of configuration is one of the joys of puppy, but it's also a way to mess up your system. script below makes copies of your jwm configuration in folders that each contain an import script--when you get a configuration or variation you like, go to one of the folders and click that to repopulate the switch with the new files. set for six jwm and three micro, but you can swap out the paths, files, and icon (names) below before you run it to incorporate whatever you find yourself tinkering with most. quickswitch-jm:
most programs seem to keep their configurations in /root/.config or in /opt, but pfind can help you find where a given program scatters its files (pfind>search system files). backups clobber the experimental live version of whatever you're working on, but the affected program usually would need to be restarted or reloaded for change to take effect. template i used for the desktop files puts the entries in desktop and utility--swap the line to mimic a location/entry of your choice by copying the Categories= line from the .desktop files in /usr/share/applications.Code: Select all
#!/bin/sh #examples of configuration quickswitches (add flexibility to your setups and safety to your experiments) mkdir -p /root/.config/micro/conf1 mkdir -p /root/.config/micro/conf2 mkdir -p /root/.config/micro/conf3 cp -f /root/.config/micro/settings.json /root/.config/micro/conf1/settings.json cp -f /root/.config/micro/bindings.json /root/.config/micro/conf1/bindings.json echo $'#!/bin/sh cp -f /root/.config/micro/conf1/settings.json /root/.config/micro/settings.json cp -f /root/.config/micro/conf1/bindings.json /root/.config/micro/bindings.json ' > /root/.config/micro/mcon1 chmod 755 /root/.config/micro/mcon1 echo $'#!/bin/sh cp -f /root/.config/micro/conf2/settings.json /root/.config/micro/settings.json cp -f /root/.config/micro/conf2/bindings.json /root/.config/micro/bindings.json ' > /root/.config/micro/mcon2 chmod 755 /root/.config/micro/mcon2 echo $'#!/bin/sh cp -f /root/.config/micro/conf3/settings.json /root/.config/micro/settings.json cp -f /root/.config/micro/conf3/bindings.json /root/.config/micro/bindings.json ' > /root/.config/micro/mcon3 chmod 755 /root/.config/micro/mcon3 #unlike the version in microplugins.pet, this set up isn't on PATH. work from the configuration directories themselves #and/or substitute /root/.config/micro/ for /root/my-applications/bin/ in the mcon scripts above. the ones below assume you're in the directory and have fiddled around with the configs to sufficient satisfaction that you'd want to be able to switch or revert to what you'd done to them. use this template to set other configs to come to you for easy modding echo $'#!/bin/sh cp -f /root/.config/micro/settings.json ./ cp -f /root/.config/micro/bindings.json ./ ' > /root/.config/micro/conf1/importcurrent chmod 755 /root/.config/micro/conf1/importcurrent echo $'#!/bin/sh cp -f /root/.config/micro/settings.json ./ cp -f /root/.config/micro/bindings.json ./ ' > /root/.config/micro/conf2/importcurrent chmod 755 /root/.config/micro/conf2/importcurrent echo $'#!/bin/sh cp -f /root/.config/micro/settings.json ./ cp -f /root/.config/micro/bindings.json ./ ' > /root/.config/micro/conf3/importcurrent chmod 755 /root/.config/micro/conf3/importcurrent #this section is three backups/switches for your micro editor configs #using the mcc icon/label maker for the desktop files and menu entries (thanks again technosaurus for txt2xpm) echo $'[Desktop Entry] Encoding=UTF-8 Name=mcon1 Icon=/root/puppy-reference/pixmaps/6tMiCon.xpm Comment=micro editor mconfiguration switcher Exec=/root/.mconfig/micro/mcon1 Terminal=false Type=Application Categories=X-Desktop;Utility GenericName=mconfig swapper ' > /usr/share/applications/mcon1.desktop echo $'[Desktop Entry] Encoding=UTF-8 Name=mcon2 Icon=/root/puppy-reference/pixmaps/7tMiCon.xpm Comment=micro editor mconfiguration switcher Exec=/root/.mconfig/micro/mcon2 Terminal=false Type=Application Categories=X-Desktop;Utility GenericName=mconfig swapper ' > /usr/share/applications/mcon2.desktop echo $'[Desktop Entry] Encoding=UTF-8 Name=mcon3 Icon=/root/puppy-reference/pixmaps/8tMiCon.xpm Comment=micro editor mconfiguration switcher Exec=/root/.mconfig/micro/mcon3 Terminal=false Type=Application Categories=X-Desktop;Utility GenericName=mconfig swapper ' > /usr/share/applications/mcon3.desktop #===================================================== #!/bin/sh mkdir -p /root/.jwm/cona/ echo $'#!/bin/sh cp -f /root/.jwm/jwmrc-personal ./ cp -f /etc/xdg/templates/_root_.jwmrc ./ ' > /root/.jwm/cona/importcurrent chmod 755 /root/.jwm/cona/importcurrent cp -f /root/.jwm/jwmrc-personal /root/.jwm/cona/jwmrc-personal cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/cona/_root_.jwmrc echo $'#!/bin/sh #jwmca #!/bin/sh cp -f /root/.jwm/cona/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc cp -f /root/.jwm/cona/jwmrc-personal /root/.jwm/jwmrc-personal fixmenus jwm -restart ' > /root/.jwm/jwmca chmod 755 /root/.jwm/jwmca #============================= #!/bin/sh mkdir -p /root/.jwm/conb/ echo $'#!/bin/sh cp -f /root/.jwm/jwmrc-personal ./ cp -f /etc/xdg/templates/_root_.jwmrc ./ ' > /root/.jwm/conb/importcurrent chmod 755 /root/.jwm/conb/importcurrent cp -f /root/.jwm/jwmrc-personal /root/.jwm/conb/jwmrc-personal cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/conb/_root_.jwmrc echo $'#!/bin/sh #jwmcb #!/bin/sh cp -f /root/.jwm/conb/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc cp -f /root/.jwm/conb/jwmrc-personal /root/.jwm/jwmrc-personal fixmenus jwm -restart ' > /root/.jwm/jwmcb chmod 755 /root/.jwm/jwmcb #============================= #!/bin/sh mkdir -p /root/.jwm/conc/ echo $'#!/bin/sh cp -f /root/.jwm/jwmrc-personal ./ cp -f /etc/xdg/templates/_root_.jwmrc ./ ' > /root/.jwm/conc/importcurrent chmod 755 /root/.jwm/conc/importcurrent cp -f /root/.jwm/jwmrc-personal /root/.jwm/conc/jwmrc-personal cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/conc/_root_.jwmrc echo $'#!/bin/sh #jwmcc #!/bin/sh cp -f /root/.jwm/conc/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc cp -f /root/.jwm/conc/jwmrc-personal /root/.jwm/jwmrc-personal fixmenus jwm -restart ' > /root/.jwm/jwmcc chmod 755 /root/.jwm/jwmcc #============================= #!/bin/sh mkdir -p /root/.jwm/cond/ echo $'#!/bin/sh cp -f /root/.jwm/jwmrc-personal ./ cp -f /etc/xdg/templates/_root_.jwmrc ./ ' > /root/.jwm/cond/importcurrent chmod 755 /root/.jwm/cond/importcurrent cp -f /root/.jwm/jwmrc-personal /root/.jwm/cond/jwmrc-personal cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/cond/_root_.jwmrc echo $'#!/bin/sh #jwmcd #!/bin/sh cp -f /root/.jwm/cond/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc cp -f /root/.jwm/cond/jwmrc-personal /root/.jwm/jwmrc-personal fixmenus jwm -restart ' > /root/.jwm/jwmcd chmod 755 /root/.jwm/jwmcd #============================= #!/bin/sh mkdir -p /root/.jwm/cone/ echo $'#!/bin/sh cp -f /root/.jwm/jwmrc-personal ./ cp -f /etc/xdg/templates/_root_.jwmrc ./ ' > /root/.jwm/cone/importcurrent chmod 755 /root/.jwm/cone/importcurrent cp -f /root/.jwm/jwmrc-personal /root/.jwm/cone/jwmrc-personal cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/cone/_root_.jwmrc echo $'#!/bin/sh #jwmce #!/bin/sh cp -f /root/.jwm/cone/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc cp -f /root/.jwm/cone/jwmrc-personal /root/.jwm/jwmrc-personal fixmenus jwm -restart ' > /root/.jwm/jwmce chmod 755 /root/.jwm/jwmce #============================= #!/bin/sh mkdir -p /root/.jwm/conf/ echo $'#!/bin/sh cp -f /root/.jwm/jwmrc-personal ./ cp -f /etc/xdg/templates/_root_.jwmrc ./ ' > /root/.jwm/conf/importcurrent chmod 755 /root/.jwm/conf/importcurrent cp -f /root/.jwm/jwmrc-personal /root/.jwm/conf/jwmrc-personal cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/conf/_root_.jwmrc echo $'#!/bin/sh #jwmcf #!/bin/sh cp -f /root/.jwm/conf/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc cp -f /root/.jwm/conf/jwmrc-personal /root/.jwm/jwmrc-personal fixmenus jwm -restart ' > /root/.jwm/jwmcf chmod 755 /root/.jwm/jwmcf #========================================= 0txpm "JWM-A" >/root/puppy-reference/pixmaps/0tjwmc.xpm 1txpm "JWM-B" >/root/puppy-reference/pixmaps/1tjwmc.xpm 2txpm "JWM-C" >/root/puppy-reference/pixmaps/2tjwmc.xpm 3txpm "JWM-D" >/root/puppy-reference/pixmaps/3tjwmc.xpm 4txpm "JWM-E" >/root/puppy-reference/pixmaps/4tjwmc.xpm 5txpm "JWM-F" >/root/puppy-reference/pixmaps/5tjwmc.xpm 6txpm "MiCon1" >/root/puppy-reference/pixmaps/6tMiCon.xpm 7txpm "MiCon2" >/root/puppy-reference/pixmaps/7tMiCon.xpm 8txpm "MiCon3" >/root/puppy-reference/pixmaps/8tMiCon.xpm echo $'[Desktop Entry] Encoding=UTF-8 Name=jwma Icon=/root/puppy-reference/pixmaps/0tjwmc.xpm Comment=your jwm settings pre-nwp Exec=/root/.jwm/jwmca Terminal=false Type=Application Categories=X-Desktop;Utility GenericName=config swapper ' > /usr/share/applications/jwmca.desktop echo $'[Desktop Entry] Encoding=UTF-8 Name=jwmb Icon=/root/puppy-reference/pixmaps/1tjwmc.xpm Comment=your jwm settings pre-nwp Exec=/root/.jwm/jwmcb Terminal=false Type=Application Categories=X-Desktop;Utility GenericName=config swapper ' > /usr/share/applications/jwmcb.desktop echo $'[Desktop Entry] Encoding=UTF-8 Name=jwmc Icon=/root/puppy-reference/pixmaps/2tjwmc.xpm Comment=your jwm settings pre-nwp Exec=/root/.jwm/jwmcc Terminal=false Type=Application Categories=X-Desktop;Utility GenericName=config swapper ' > /usr/share/applications/jwmcc.desktop echo $'[Desktop Entry] Encoding=UTF-8 Name=jwmd Icon=/root/puppy-reference/pixmaps/3tjwmc.xpm Comment=your jwm settings pre-nwp Exec=/root/.jwm/jwmcd Terminal=false Type=Application Categories=X-Desktop;Utility GenericName=config swapper ' > /usr/share/applications/jwmcd.desktop echo $'[Desktop Entry] Encoding=UTF-8 Name=jwme Icon=/root/puppy-reference/pixmaps/4tjwmc.xpm Comment=your jwm settings pre-nwp Exec=/root/.jwm/jwmce Terminal=false Type=Application Categories=X-Desktop;Utility GenericName=config swapper ' > /usr/share/applications/jwmce.desktop echo $'[Desktop Entry] Encoding=UTF-8 Name=jwmf Icon=/root/puppy-reference/pixmaps/5tjwmc.xpm Comment=your jwm settings pre-nwp Exec=/root/.jwm/jwmcf Terminal=false Type=Application Categories=X-Desktop;Utility GenericName=config swapper ' > /usr/share/applications/jwmcf.desktop fixmenus jwm -restart
--chose one each to represent the default set of color combos, but it seems the reference screen shot and all others from that service are gone, so...i guess that's something else to do.
anyway, enjoy/hope someone finds it useful/helpful
-pd
https://drive.google.com/drive/folders/ ... sp=sharing, and by nwp'd i mean has the nwp installed.
so it's six micro configs and another 6 jwm swaps, plus better keyboard control in micro.
enjoy.
--pd