Feeling Feline Virtual Window Manager ;-)

find your keys,

xmodmap -pm

Super_L is probably mapped to mod4. Then M is Alt etc… (/Modifiers is any in the manual).

git clone https://github.com/yaoguai/fvwm-min.git
cd fvwm-min
make
make install

cd ~/.fvwm
mv config config.dist
sed '
s#x-terminal-emulator#/usr/bin/terminator#g;
/ClickToFocus/d;
/xsetroot/d;
' config.dist > config
cat >> config

# PIERRE ADDON

# Alt+move on the application window ==> Move
# Alt+double click on the app window ==> Maximize
addtofunc appwindow
+ M move
+ D maximize
mouse 1 W M appwindow
mouse 3 W M resize

Style * ResizeOpaque
# the window to move may be as big as the screen area
OpaqueMoveSize 100

# Alt+1,2,3,4 to switch pages on a virtual desktop

# fr keyboard (check with xev)
#key ampersand A M gotopage 0 0
#key eacute A M gotopage 0 1
#key quotedbl A M gotopage 1 0
#key apostrophe A M gotopage 1 1

# ru/us keyboard (check with xev)
key 1 A M gotopage 0 0
key 2 A M gotopage 0 1
key 3 A M gotopage 0 2
key 4 A M gotopage 0 3
key 5 A M gotopage 0 4
key 6 A M gotopage 0 5

# Alt+Q to close a window, etc.
key q           A M Close
key k           A M Destroy
key grave       A M Maximize
key left        A M Maximize 50 100
key right       A M tileright
key up          A M tileup
key down        A M tiledown

AddToFunc tileright
+ I Maximize 50 100
+ I Move screen w 50 0

AddToFunc tileup
+ I Maximize 50 50
+ I Move screen w 50 0

AddToFunc tiledown
+ I Maximize 50 50
+ I Move screen w 50 50

# move windows around...
#http://www.fvwmforums.org/phpBB3/viewtopic.php?t=2095
key 1 A 4 MoveToPage 0 0
key 2 A 4 MoveToPage 0 1
key 3 A 4 MoveToPage 0 2
key 4 A 4 MoveToPage 0 3
key 5 A 4 MoveToPage 0 4
key 6 A 4 MoveToPage 0 5

#get focus on newly created windows
Style * FPGrabFocus

#force raise by clicking in a window.  lives well along with sloppy focus
Style * ClickToFocusRaises

EOF

cp styles/base/cde styles/user/
vi styles/user/cdea

#   1 - Inactive Windows
#   2 - Active Window
#   3 - Inactive Windows Borders
#   4 - Active Windows Borders
#Colorset 1 fg white, bg #afbdc07ac200
Colorset 2 fg white, bg #cc0068006f00
#Colorset 3 fg white, bg #afbdc07ac200
#Colorset 4 fg white, bg #cc0068006f00

#ColorSet 2 fg \#ffffff, bg \#e9a069, hi \#f0d0b9, sh \#795030

ln -sf styles/user/cdea mystyle
FvwmCommand Restart

cd ~/
cat > .Xresources <<-EOF
XTerm*background:dimgray                                                                                   
XTerm*foreground:white                                                                                     
XTerm*font:fixed                                                                                           
XTerm*geometry:80x55                                                                                       
!XTerm*scrollBar_right:1                                                                                   
XTerm*scrollBar:0
EOF

References


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun