|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
I'm simple:
Code:
xterm -bg black -fg white -fa Inconsolata-10 +sb https://github.com/ibara/oksh/blob/master/profile With the PS1 line uncommented and the bind -m line removed. And tmux(1) always running. Literally with the defaults. Like I said, I'm simple. Last edited by J65nko; 16th August 2022 at 01:42 AM. Reason: Changed 'fg' tot '-fg' |
|
||||
~/.kshrc:
Code:
. /etc/ksh.kshrc alias su='/usr/bin/su' alias doas='/usr/bin/doas' alias passwd='/usr/bin/passwd' alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' alias .....='cd ../../../..' alias ......='cd ../../../../..' set -o emacs PS1='\h: \w \[\033[01;31m\]${?#0}\[\033[00m\]\$ ' alias tcp='doas tcpdump -o -a -q -i iwn0' alias tcpe='doas tcpdump -o -a -q -i em0' alias pfmon='doas tcpdump -nei pflog0' Code:
XTerm*vt100.cursorBlink: true XTerm*vt100.faceName: monospace:pixelsize=10 XTerm*vt100.allowBoldFonts: false XTerm*vt100.scrollBar: false XTerm*vt100.cursorUnderLine: true ! *customization: -color ! BunsenLabs colours *.foreground: #bfbfbf *.background: #2e3436 ! Black *.color0: #000000 *.color8: #666666 ! Red *.color1: #9e1828 *.color9: #cf6171 ! Green *.color2: #aece92 *.color10: #c5f779 ! Yellow *.color3: #968a38 *.color11: #fff796 ! Blue *.color4: #414171 *.color12: #4186be ! Magenta *.color5: #963c59 *.color13: #cf9ebe !Cyan *.color6: #418179 *.color14: #71bebe ! White *.color7: #bebebe *.color15: #ffffff *.cursorColor: #00ff00 Code:
case "$KSH_VERSION" in *MIRBSD*) ;; *) export ENV="$HOME/.kshrc" ;; esac export PAGER=most export EDITOR='9 ed' export VISUAL=vim export BROWSER=chrome [ "$(tty)" = "/dev/ttyC0" ] && exec xinit -- -nolisten tcp -tst print 9 fortune print
__________________
Are you infected with Wetiko? Last edited by Head_on_a_Stick; 20th October 2017 at 05:56 AM. Reason: changed $BROWSER |
|
||||
Quote:
I don't know if that will be helpful, just FYI. I am still tinkering with my setup but this is the current state: ~/.profile Code:
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:. export PATH HOME TERM export VISUAL=emacs export HISTFILE=$HOME/.ksh_history export HISTSIZE=1000 export ENV=$HOME/.kshrc Code:
. /etc/ksh.kshrc alias ls="ls -F" alias la="ls -a" alias ll="ls -lrt" Code:
set -g history-limit 2000 set-option -g status-bg white set-option -g status-fg black new-session -n $HOST set -g status-right-length 44 set -g status-right '#H #(date +"%Y-%m-%d %a %H:%M")' Code:
export ENV=$HOME/.kshrc xset +fp /usr/local/share/fonts/freefont xset +fp /usr/local/share/fonts/Liberation xset +fp /usr/local/share/fonts/linuxlibertine xset +fp /usr/local/share/fonts/terminus xset +fp /usr/local/share/fonts/ubuntu xset +fp /usr/local/share/fonts/ghostscript xset -b & xset b off & xsetroot -solid grey20 & dwm Code:
XTerm*loginShell:true XTerm*vt100.faceName: terminus:pixelsize=14 XTerm*vt100.scrollBar: false *.foreground: #bbbbbb *.background: #222222 Code:
if [ "$DISPLAY" = ":0" -o "$DISPLAY" = ":0.0" ] then # xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail xsetroot -solid grey20 fi Last edited by hanzer; 22nd October 2017 at 06:09 PM. |
|
||||
Quote:
~/.kshrc Code:
. /etc/ksh.kshrc PS1='$USER@$HOST:$PWD:! '"$PS1S" alias ls="ls -F" alias la="ls -a" alias ll="ls -alrt" |
|
||||
Thanks but it seems to "stick" for my desktop:
Code:
Puffy: ~ $ echo $EDITOR 9 ed Puffy: ~ $ echo $VISUAL vim Puffy: ~ $ doas vipw 4607 Code:
synclient vertedgescroll=1 verttwofingerscroll=0 horizedgescroll=1 horizscrolldelta=10 xset s 300 -dpms until false; do xsetroot -name "Battery: $(apm -l)% • $(date +"%Y-%m-%d • %H:%M")"; sleep 60; done & xsetroot -solid "#2e3436" exec dwm
__________________
Are you infected with Wetiko? |
|
||||
Uh oh, these EDITOR/VISUAL variables might be one of those funky legacy backwater entanglement kind of things.
Hmm, I want emacs-mode for ksh command completion and command-line editing (use the arrow keys to move the cursor on the command-line and scroll through command history), but I want to specify vi to an application program that uses an environment variable to determine which editor to launch. How would that be done? Ref: stackexchange Cool. I would also prefer that configuration but the USB mouse disconnects almost immediately if X isn't running. To get it to reconnect, I have unplug it, wait at least ten seconds then plug it back in. I take it you don't have this problem? |
|
||||
Quote:
Code:
set -o emacs Quote:
Code:
uhidev0 at uhub3 port 2 configuration 1 interface 0 "PixArt Microsoft USB Optical Mouse" rev 1.10/1.00 addr 3 uhidev0: iclass 3/1 ums0 at uhidev0: 3 buttons, Z dir wsmouse2 at ums0 mux 0 Code:
Puffy: ~ $ cat /home/empty/.config/fontconfig/fonts.conf <?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <match target="font"> <edit mode="assign" name="rgba"> <const>rgb</const> </edit> </match> <match target="font"> <edit mode="assign" name="hinting"> <bool>true</bool> </edit> </match> <match target="font"> <edit mode="assign" name="hintstyle"> <const>hintslight</const> </edit> </match> <match target="font"> <edit mode="assign" name="antialias"> <bool>true</bool> </edit> </match> <match target="font"> <edit mode="assign" name="lcdfilter"> <const>lcddefault</const> </edit> </match> <alias> <family>monospace</family> <prefer><family>Dina</family></prefer> </alias> <alias> <family>serif</family> <prefer><family>Luxi Serif</family></prefer> </alias> <alias> <family>sans-serif</family> <prefer><family>Luxi Sans</family></prefer> </alias> </fontconfig> Puffy: ~ $ Code:
Puffy: ~ $ for f in monospace sans-serif serif; do fc-match $f; done DinaMedium10.pcf.gz: "Dina" "Regular" luxisr.ttf: "Luxi Sans" "Regular" luxirr.ttf: "Luxi Serif" "Regular" Puffy: ~ $
__________________
Are you infected with Wetiko? Last edited by Head_on_a_Stick; 23rd October 2017 at 06:16 AM. Reason: corrected link to port, I can't remember the tags, sorry |
|
|||
Ibara
I run the same with -fg green -bg black and a font size of 12 Last edited by frcc; 23rd October 2017 at 12:34 PM. Reason: point response |
|
|||
Never really thought about altering things - I tend to use it as it comes.
__________________
Linux since 1999, & also a BSD user. |
|
||||
Quote:
Quote:
Quote:
Last edited by hanzer; 23rd October 2017 at 09:27 PM. Reason: make grammer and speling more good ;) |
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD Router & Wireless AP setup | chigurh | OpenBSD General | 14 | 7th April 2015 06:56 PM |
OpenBSD Multiple VPN Setup | Dr-D | OpenBSD Security | 10 | 7th April 2014 10:50 AM |
OpenBSD VPN Setup | Dr-D | OpenBSD Security | 2 | 4th April 2014 01:23 PM |
OpenBSD how to start (basic setup) | wesley | Guides | 4 | 18th July 2012 06:29 PM |
how setup arpwatch for OpenBSD | mfaridi | OpenBSD Packages and Ports | 1 | 11th December 2008 05:22 PM |