2015-10-06 18:17:50 +11:00
|
|
|
```
|
|
|
|
The skriptkontrol.sh script was quickly written to pimp a FVWM default
|
|
|
|
environment on OpenBSD. If you run it automatically at startup, the first
|
|
|
|
and only one "dialog box" displayed, will allow you to choose either your
|
|
|
|
cpu computes at high (default) performances, or at the lowest level the
|
|
|
|
APMD offers. I found this trivial change quite useful while using a laptop.
|
|
|
|
Clearly, it depends on what kind of processor or laptop you're using.
|
|
|
|
|
2015-11-29 10:02:49 +11:00
|
|
|
********************************* FVWMrc ***************************************
|
2015-10-06 18:17:50 +11:00
|
|
|
|
|
|
|
Note : I noticed a thin "edge effect" left behind an upgrade from a version
|
2015-10-06 18:19:57 +11:00
|
|
|
of OpenBSD to another : the title of the fvwm's Pager remains the same.
|
2015-10-06 18:22:23 +11:00
|
|
|
So, if you do have already customized it, you should have a $HOME/.fvmrc
|
2015-12-14 18:18:37 +11:00
|
|
|
(else, you can % cp /usr/X11R6/lib/X11/fvwm/.fvwmrc ~/.fvwmrc), in
|
2015-10-06 18:17:50 +11:00
|
|
|
which you can find a line similar to the following one :
|
|
|
|
|
|
|
|
*FvwmPagerLabel 0 "OpenBSD 5.6"
|
|
|
|
|
2015-10-06 18:23:41 +11:00
|
|
|
for example. It just needs to be corrected by hand, thus at the next start
|
2015-10-06 18:17:50 +11:00
|
|
|
of a fvwm session, the title of the Pager will match with your current
|
|
|
|
system's version.
|
|
|
|
|
2015-11-29 10:02:49 +11:00
|
|
|
If you wonder what my X environment looks like, you could check both the
|
|
|
|
screenshot attached at this git, and my .fvwmrc. In that one, I tried to
|
|
|
|
get a convenient behavior from FVWM, as well as to disable some annoying
|
|
|
|
(IMHO) default features.
|
|
|
|
|
|
|
|
********************************** Nedit ***************************************
|
|
|
|
|
|
|
|
Assuming tough hackers (or the relative complement of {those insane} in
|
|
|
|
{lads and lasses}) don't touch anything else than Vi(m) or Emacs (which I
|
|
|
|
used to handle for a while, even now occasionally), this part deals with those
|
2015-12-14 18:24:45 +11:00
|
|
|
who could be interested in setting Nedit up. I reckon this GUI editor seduced
|
2015-11-29 10:02:49 +11:00
|
|
|
me, mainly because of its simplicity, and the fact it was build on ``Motif''
|
2015-12-14 18:24:45 +11:00
|
|
|
libs. As far as it manages regex... and block selection !
|
2015-11-29 10:02:49 +11:00
|
|
|
|
|
|
|
|
|
|
|
The following lines are just a selection concerning Preferences from my
|
|
|
|
~/.nedit/nedit.rc :
|
|
|
|
|
2015-12-02 20:26:59 +11:00
|
|
|
nedit.smartIndentInitCommon: Default
|
2015-12-02 20:28:26 +11:00
|
|
|
! automatic wraping every 80 cols
|
2015-11-29 10:02:49 +11:00
|
|
|
nedit.autoWrap: Newline
|
2015-12-02 20:26:59 +11:00
|
|
|
nedit.wrapMargin: 80
|
|
|
|
nedit.showWrapMargin: Always
|
|
|
|
|
2015-11-29 10:02:49 +11:00
|
|
|
nedit.autoIndent: Auto
|
|
|
|
nedit.autoSave: True
|
|
|
|
nedit.openInTab: True
|
|
|
|
nedit.saveOldVersion: False
|
|
|
|
nedit.showMatching: Delimiter
|
|
|
|
nedit.matchSyntaxBased: True
|
|
|
|
nedit.highlightSyntax: True
|
|
|
|
nedit.backlightChars: False
|
|
|
|
nedit.searchDialogs: False
|
|
|
|
nedit.beepOnSearchWrap: False
|
|
|
|
nedit.retainSearchDialogs: False
|
|
|
|
nedit.searchWraps: True
|
|
|
|
nedit.stickyCaseSenseButton: True
|
|
|
|
nedit.repositionDialogs: True
|
|
|
|
nedit.autoScroll: False
|
|
|
|
nedit.appendLF: True
|
|
|
|
nedit.sortOpenPrevMenu: True
|
|
|
|
nedit.statisticsLine: True
|
|
|
|
nedit.iSearchLine: False
|
|
|
|
nedit.sortTabs: False
|
|
|
|
nedit.tabBar: True
|
|
|
|
nedit.tabBarHideOne: True
|
|
|
|
nedit.toolTips: True
|
|
|
|
nedit.globalTabNavigate: False
|
|
|
|
nedit.lineNumbers: True
|
|
|
|
nedit.pathInWindowsMenu: True
|
|
|
|
nedit.warnFileMods: True
|
|
|
|
nedit.warnRealFileMods: True
|
|
|
|
nedit.warnExit: True
|
|
|
|
nedit.searchMethod: Literal
|
2015-12-02 20:26:59 +11:00
|
|
|
! comfortable frame
|
2015-11-29 10:02:49 +11:00
|
|
|
nedit.textRows: 24
|
2015-12-02 20:26:59 +11:00
|
|
|
nedit.textCols: 82
|
2015-11-29 10:02:49 +11:00
|
|
|
nedit.tabDistance: 4
|
|
|
|
nedit.emulateTabs: 0
|
|
|
|
nedit.insertTabs: True
|
|
|
|
nedit.textFont: -*-courier-medium-r-normal--*-120-*-*-*-iso8859-1
|
|
|
|
nedit.boldHighlightFont: -*-courier-bold-r-normal--*-120-*-*-*-iso8859-1
|
|
|
|
nedit.italicHighlightFont: -*-courier-medium-o-normal--*-120-*-*-*-iso8859-1
|
|
|
|
nedit.boldItalicHighlightFont: -*-courier-bold-o-normal--*-120-*-*-*-iso8859-1
|
|
|
|
nedit.textFgColor: black
|
|
|
|
nedit.textBgColor: beige
|
|
|
|
nedit.selectFgColor: black
|
|
|
|
nedit.selectBgColor: rgb:cc/cc/cc
|
|
|
|
nedit.hiliteFgColor: red
|
|
|
|
nedit.hiliteBgColor: red
|
2015-12-02 20:26:59 +11:00
|
|
|
! nice line number
|
2015-11-29 10:02:49 +11:00
|
|
|
nedit.lineNoFgColor: darkcyan
|
|
|
|
nedit.cursorFgColor: black
|
|
|
|
nedit.wrapMarginForeground: black
|
|
|
|
nedit.smartTags: True
|
|
|
|
nedit.prefFileRead: True
|
2015-12-02 20:26:59 +11:00
|
|
|
! to identify it easily in FvwmWinList
|
|
|
|
nedit.titleFormat: Nedit - {%c} [%s] %f (%S) - %d
|
2015-11-29 10:02:49 +11:00
|
|
|
|
2015-10-06 18:17:50 +11:00
|
|
|
|
|
|
|
--
|
2015-11-29 10:02:49 +11:00
|
|
|
|
|
|
|
My P^HKorn shell PS1 is the next one :
|
2015-10-06 18:17:50 +11:00
|
|
|
|
|
|
|
PROMPITO="\u##\$:\h:\w:\n>>"
|
|
|
|
PS1="$(printf "\033[0;36m%s\033[0;37m " $PROMPITO)"
|
|
|
|
|
|
|
|
# to be added within $HOME/.kshrc, obviously.
|
|
|
|
```
|