Thursday, October 24, 2019

Re: When will be created a great desktop experience for OpenBSD?

Hello Ropers

I do use it to the point that i can not stand another WM,
to answer your question: you could launch apps by
(a) installing dmenu(1)
(b) $firefox &
(c) i kind of wrote a script that does what dmenu but using sh.
(d) configuring &HOME/.fvwmrc to use shortcuts or a menu. (
https://github.com/solisman/termenu)

be my guest to try it (or not)



# .fvwmrc - fv window manager configuration script
# Manuel Solis, 24.04.2019
# This config file is based on Version: Ingo Schwarze, 22.11.2010
# and the bare bones sample .fvwm2rc file for fvwm-2
# +++ Key bindings added for window organization and navigation
# Note: this config file invoques base and a few third party tools,
# Consider run pkg_add ImageMagick,transset-df

########################################################################
# standard settings
########################################################################
# paths
ModulePath /usr/X11R6/lib/X11/fvwm
PixmapPath /usr/X11R6/include/X11/pixmaps
IconPath /usr/X11R6/include/X11/bitmaps

# screens
EdgeResistance 250 10
EdgeScroll 0 0
DeskTopSize 3x3

# windows
ColormapFocus FollowsMouse
WindowFont -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
IconFont -adobe-Inconsolata-bold-r-*-*-10-*-*-*-*-*-*-*
HilightColor white navy

# General style options
Style "*" NoTitle, \
FocusFollowsMouse, \
MWMFunctions, MWMDecor, HintOverride, \
DecorateTransient, NoPPosition, \
BorderWidth 7, HandleWidth 7, \
Icon page.xpm, IconBox -70 1 -1 -140, IconFill t r, \
SmartPlacement, SloppyFocus, \
ForeColor White, BackColor black
MenuStyle "*" fvwm, ActiveFore white, Foreground white, Background black,
HilightBack blue

########################################################################
# Styles for applications
########################################################################
Style "Fvwm*" Sticky, WindowListSkip, BorderWidth 2,
CirculateSkipIcon, CirculateSkip
Style "XTerm" Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140
Style "*lock" NoHandles, Sticky, WindowListSkip, StaysOnTop
Style "FvwmPager" StaysOnTop,WindowListSkip, CirculateSkipIcon,
CirculateSkip
Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus
Style "xconsole" Icon rterm.xpm, WindowListSkip, CirculateSkipIcon,
CirculateSkip
Style "termbar" NoTitle, NoHandles, WindowListSkip, StaysOnTop,
Sticky, CirculateSkipIcon, CirculateSkip
Style "termenu" NoTitle, NoHandles, WindowListSkip, StaysOnTop,
Sticky, CirculateSkipIcon, CirculateSkip

########################################################################
# Place apps in pager
########################################################################
Style "*Xfe*" StartsOnPage 0 1
Style "*Chromi*" StartsOnPage 0 1
Style "Mozilla Firefox" StartsOnPage 1 1
Style "*Iridium" StartsOnPage 1 2
Style "*LibreOf*" StartsOnPage 2 0
Style "*GNU Ima*" StartsOnPage 2 1
Style "*Thunderbird*" StartsOnPage 2 1

########################################################################
# pager
########################################################################
*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmPagerBack #2d2d2d
*FvwmPagerFore white
*FvwmPagerHilight darkblue
*FvwmPagerGeometry 80x60-3-35 #80x60-1-1
*FvwmPagerLabel 0 "OpenBSD"
*FvwmPagerSmallFont 5x8

########################################################################
# menus
########################################################################

AddToMenu window "window" Title
+ "move%jmove.xpm%" Move
+ "resize%jresize.xpm%" Resize
+ "maximize%mini.maximize-horiz.xpm%" Maximize
+ "raise%jraise.xpm%" Raise
+ "lower%jlower.xpm%" Lower
+ "iconify%mini.iconify.xpm%" Iconify
+ "stick%mini.stick.xpm%" Stick
+ "" Nop
+ "list%jwindow.xpm%" WindowList
+ "" Nop
+ "refresh%mini.refresh.xpm%" RefreshWindow
+ "close%mini.winXX-close.xpm%" Close
+ "delete%mini.cut.xpm%" Delete
+ "destroy%mini.destroy.xpm%" Destroy

AddToMenu system "system" Title
+ "list%jwindow.xpm%" WindowList
+ "Xterm%mini.xterm.xpm%" Exec /usr/X11R6/bin/xterm
+ "xlock%mini.xlock.xpm%" Exec exec xlock -mode blank
+ "restart%mini.excl.xpm" Restart fvwm
+ "quit%mini.exit.xpm%" Quit

########################################################################
# mouse
########################################################################
ClickTime 750
# Alt + left click to move window
Mouse 0 W M Move-or-Raise

# on the wallpaper
Mouse 1 R A Nop
Mouse 3 R A Menu system Nop

# for other parts of the titlebar/window/borders:
Mouse 1 F A Resize-or-Raise
Mouse 1 TS A Move-or-Raise
Mouse 3 FS A Menu window Nop
Mouse 3 T A Lower

# in an icon
Mouse 1 I A Move-or-Iconify
Mouse 3 I A Iconify

########################################################################
# Key Bindings
########################################################################
# Control + Arrows to navigate between pages
Key Left A C Scroll -100 0
Key Right A C Scroll +100 +0
Key Up A C Scroll +0 -100
Key Down A C Scroll +0 +100

# Meta + Arrows to Left/Right Snap, Maximize and Iconify
Key Left A M SnapWin 0 0
Key Right A M SnapWin 50 0
Key Up A M Maximize 100 97
key Down A M Iconify

# Control + Meta + Arrows to Corner Snaps
Key Left A CM MiniSnapWin 0 46
Key Right A CM MiniSnapWin 50 0
Key Up A CM MiniSnapWin 0 0
key Down A CM MiniSnapWin 50 46

# Tab + Meta, Tab + Meta + Shift to circulate Focus
Key Tab A M Next [*] FocusAndWarp
Key Tab A SM WindowList FvwmWinList

# Meta + key to open misc applications
Key Return A M Exec /usr/X11R6/bin/xterm
Key F2 A M Exec /usr/X11R6/bin/xbacklight -set 20
Key F3 A M Exec /usr/X11R6/bin/xbacklight -set 90
Key F4 A M ExtMonitorON
Key F5 A M ExtMonitorOFF
Key F6 A M Exec /usr/bin/mixerctl outputs.master=0
Key F7 A M Exec /usr/bin/mixerctl outputs.master=120
Key F8 A M Exec /usr/bin/mixerctl outputs.master=240
Key k A M Exec setxkbmap -layout us
Key l A M Exec setxkbmap -layout es
Key m A M Move
Key x W M Delete
Key x I M Destroy
Key d RA M funcTermenu
Key i A M Exec /usr/local/bin/scrot '%Y%m%d_%H%M%S.png' -e 'mv $f ~/'
Key t A M Exec /usr/local/bin/transset-df -p -t 0.6

# Meta + Ctrl + Keys bindings to shutdown system or restart wm
Key p A CM Exec /usr/bin/doas shutdown -hp now
Key r A CM Restart /usr/X11R6/bin/fvwm

# Control + Meta + number to move window in pager
Key 1 WS CM MoveWinToPage 0 0
Key 2 WS CM MoveWinToPage 1 0
Key 3 WS CM MoveWinToPage 2 0
Key 4 WS CM MoveWinToPage 0 1
Key 5 WS CM MoveWinToPage 1 1
Key 6 WS CM MoveWinToPage 2 1
Key 7 WS CM MoveWinToPage 0 2
Key 8 WS CM MoveWinToPage 1 2
Key 9 WS CM MoveWinToPage 2 2

########################################################################
# Functions
########################################################################
# Init functions
AddToFunc StartFunction
+ "I" exec /usr/local/bin/feh --randomize --bg-fill
$HOME/Pictures/wallpaper*
+ "I" exec /usr/X11R6/bin/xset -b

AddToFunc InitFunction "I" Module FvwmPager 0 0
+ "I" exec /usr/X11R6/bin/xterm -geometry 212x1+0+1045 -fa Inconsolata -fs
11 -T termbar -e $HOME/code/termbar_msolis
+ "I" exec /usr/X11R6/bin/xcompmgr

AddToFunc RestartFunction "I" Module FvwmPager 0 0

# a few functions

AddToFunc funcTermenu "I" exec /usr/X11R6/bin/xterm -hold -geometry
212x1+0+0 -T termenu -e "$HOME/code/ksh/termenu"
+ "I" FocusAndWarp

AddToFunc Move-or-Raise "I" Raise
+ "M" Move
+ "D" Lower

AddToFunc Move-or-Iconify "I" Raise
+ "M" Move
+ "D" Iconify

AddToFunc Resize-or-Raise "I" Raise
+ "M" Resize
+ "D" Lower

AddToFunc FocusAndWarp "I" Focus
+ "I" WarpToWindow 20p 20p

AddToFunc SnapWin "I" Maximize 50 97
+ "I" Move $0 $1
+ "I" Focus

AddToFunc MiniSnapWin "I" Maximize 50 46
+ "I" Move $0 $1
+ "I" Focus

AddToFunc MoveWinToPage "I" MoveToPage $0 $1
+ "I" GotoPage $0 $1

AddToFunc ExtMonitorON "I" exec /usr/X11R6/bin/xrandr --output VGA1
--mode 1280x1024
+ "I" exec /usr/X11R6/bin/xrandr --output LVDS1 --auto --rotate normal
--pos 0x0 --output VGA1 --auto --mode 1280x1024 --left-of LVDS1

AddToFunc ExtMonitorOFF "I" exec /usr/X11R6/bin/xrandr --output VGA1 --off


El mar., 7 may. 2019 a las 17:34, ropers (<ropers@gmail.com>) escribió:

> Tangentially related: Does anyone here routinely use the default fvwm?
>
> Now for a really noobish question: Those that do, do you also launch
> graphical apps by typing something like this in xterm:
>
> $ firefox > /dev/null 2>&1 &
>
> or do you normally do something else that I've totally overlooked?
>
> (Again, this is about how people use stock default fvwm. If your
> answer begins with "install $this_other_launcher", it's probably not
> what I'm looking for, but thanks anyway.)
>
>

--
Lic. Manuel Solís Vázquez

No comments:

Post a Comment