我的fvwm配置

我的fvwm配置 用了gnome和xfce,还是有些厌了,摆弄了两天fvwm,发现虽然配置起来有点麻烦,但用起来还是它最贴心,而且占资源极少,系统使用过程中内存一直只用了五六十兆。我的鼠标左键坏了,但是通过配置fvwm,只用鼠标右键也可以完成大多数工作了。下面是我的截图和配置文件: #################jiqingsfvwm2rc#2008-07-08############

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE稳定放心使用
 

用了gnome和xfce,还是有些厌了,摆弄了两天fvwm,发现虽然配置起来有点麻烦,但用起来还是它最贴心,而且占资源极少,系统使用过程中内存一直只用了五六十兆。
我的鼠标左键坏了,但是通过配置fvwm,只用鼠标右键也可以完成大多数工作了。

下面是我的截图和配置文件:

 

my fvwm screenshot################
# jiqing’s fvwm2rc
# 2008-07-08
###########################

###########
# Set environmnet variables
#############################
SetEnv fvwm_wallpapers $[FVWM_USERDIR]/wallpapers
SetEnv fvwm_images $[FVWM_USERDIR]/images
ImagePath $[fvwm_images]

##########
# DeskTop
##############################
DesktopName 0 Debian Linux
DeskTopSize 2×2
EdgeScroll 0 0

# Meta+F1 Page0(左上角)
Key F1 A M GotoPage 0 0
# Meta+F2 Page1(右上角)
Key F2 A M GotoPage 1 0
# Meta+F3 Page2(左下角)
Key F3 A M GotoPage 0 1
# Meta+F4 Page3(右下角)
Key F4 A M GotoPage 1 1

#############
# window behaviour
#################################
# Style * FocusFollowsMouse
# 鼠标经过时获得焦点,鼠标单击焦点窗体时窗体升至最前面。
Style * SloppyFocus, MouseFocusClickRaises
# 窗体出现时尽量不挡住其它的窗体
Style * TileCascadePlacement

##########
# window colorsets
###########################
Colorset 3 fg #101060, bg #e6e7d7
Colorset 4 fg Black, bg #a6a797
Colorset 5 fg White, bg Black

#####
# Window Decor
###########
#DestroyDecor MyDecor
#AddToDecor   MyDecor
#+ TitleStyle LeftJustified Height 18
#+ ButtonStyle 1 ActiveUp Vector 4 30×30@3 60×60@3 60×30@4 30×60@3 — Flat
#+ ButtonStyle 1 ActiveDown Vector 4 30×30@3 60×60@3 60×30@4 30×60@3 — Flat
#+ ButtonStyle 1 Inactive Vector 4 30×30@3 60×60@3 60×30@4 30×60@3 — Flat
#+ ButtonStyle 3 ActiveUp Vector 5 30×60@3 60×60@3 60×50@3 30×50@3 30×60@3 — Flat
#+ ButtonStyle 3 ActiveDown Vector 5 30×60@3 60×60@3 60×50@3 30×50@3 30×60@3 — Flat
#+ ButtonStyle 3 Inactive Vector 5 30×60@3 60×60@3 60×50@3 30×50@3 30×60@3 — Flat
#+ ButtonStyle 5 ActiveUp Vector 7 30×30@3 30×60@3 60×60@3 60×30@3 30×30@3 30×35@3 60×35@3 — Flat
#+ ButtonStyle 5 ActiveDown Vector 7 30×30@3 30×60@3 60×60@3 60×30@3 30×30@3 30×35@3 60×35@3 — Flat
#+ ButtonStyle 5 Inactive Vector 7 30×30@3 30×60@3 60×60@3 60×30@3 30×30@3 30×35@3 60×35@3 — Flat
#+ TitleStyle — Flat
#+ BorderStyle Simple — NoInset Flat
#+ ButtonStyle All — UseTitleStyle

############
# window looks
##########################
#Style * UseDecor MyDecor
#Style * MWMBorder, FirmBorder
Style * Colorset 4
Style * HilightColorset 3
Style * BorderColorset 5
Style * HilightBorderColorset 4
Style * Font “xft:Bitstream Vera Sans:size=10:style=Bold:antialias=True”
Style * Button 6, Button 4, Button 2

###############
# 窗体上的按扭,复制自高德纳的配置文件
#########################################
Mouse 0 2 A Close
ButtonStyle 2 Vector 7 /
   65×15@0 25×55@1 45×55@0 35×85@1 75×45@0 55×45@1 65×15@0
ButtonStyle 2 – MWMDecorMenu

# At the right, a button that iconifies the window; we draw a small square
Mouse 0 6 A Iconify
ButtonStyle 6 Vector 5 40×40@1 60×40@1 60×60@0 40×60@0 40×40@1
ButtonStyle 6 – MWMDecorMin

# Next to that, a button with a big square; this one maximizes the window.
# (More precisely, if you double-click, the window goes to full screen size;
# if you single-click, it goes to full height but keeps its width.
# But if the window was already in “maximized” state, it goes back to normal.
# If you try to drag this button, it unconditionally goes to full width.)
# Mouse 0 4 A Maximize-Function
Mouse 3 4 A Maximize 100 100
Mouse 1 4 A Maximize 0 100
ButtonStyle 4 Vector 5 20×20@1 80×20@1 80×80@0 20×80@0 20×20@1
#AddtoFunc Maximize-Function “C” Maximize 100 100
#+                           “D” Maximize 0 100
#+                           “M” Function Go-Max
#AddtoFunc Go-Max  “I” Current (Maximized) Maximize
#+                 “I” Maximize 100 100
ButtonStyle 4 – MWMDecorMax

# 在窗体标题栏单击提升窗体,拖动移动窗体
Mouse 3 T C FvwmMoveOrRaise

DestroyFunc FvwmMoveOrRaise
AddToFunc FvwmMoveOrRaise “M” Move
+ “C” Raise

# 在图标上单击移动图标,双击使图标恢复为窗体
Mouse 0 I A FvwmMoveOrIconify

DestroyFunc FvwmMoveOrIconify
AddToFunc FvwmMoveOrIconify “M” Move
+ “D” Iconify

# 在窗口标题栏上向上滚动鼠标,收起窗口
#Mouse 4 T A FvwmWindowShade True
# 在窗口标题栏上向下滚动鼠标,展开窗口
#Mouse 5 T A FvwmWindowShade False

#########
# menu colorsets
################################
Colorset 7 fg Black, bg #e6e7d7, sh Black, hi #202070
Colorset 8 fg DarkRed, bg #e6e7d7, sh Black, hi #202070

##########
# menu styles
#################################
MenuStyle * PopupDelayed, PopupDelay 300, PopdownImmediately
MenuStyle * Popupoffset -5 100, TitleWarpoff
MenuStyle * BorderWidth 2
#MenuStyle * PopupAsSubmenu, HoldSubmenus, SubmenusRight
MenuStyle * MenuColorset 7
MenuStyle * ActiveFore
MenuStyle * ActiveColorset 8
MenuStyle * Font “xft:Bitstream Vera Sans:size=12:style=Bold:antialias=True”

###############
# 菜单
###################################
DestroyMenu FvwmRootMenu
AddToMenu FvwmRootMenu “Root Menu” Title
+ “uxterm%xterm.png%” Exec exec /usr/bin/uxterm
+ “uxterm(Big)%xterm.png%” /
  Exec exec /usr/bin/uxterm -fs 18 -geometry 60×40
+ “Gnome Terminal%term.png%”/
  Exec exec /usr/bin/gnome-terminal –geometry 76×22
+ “” Nop
+ “Debian%debian.png%” Popup “/Debian”
+ “” Nop
+ “Restart FVWM” Restart
+ “Quit FVWM” Quit

###########
# Pager and Buttons colorset
###############################
Colorset 10 fg OrangeRed, bg GreenYellow
Colorset 11 fg DarkRed, bg LightGoldenrodYellow

#############
# FvwmPager
######################
Style “FvwmPager” NoTitle, !Handles, !Borders, Sticky, WindowListSkip, /
  CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry 96×96-0-0
*FvwmPager: Colorset * 11
*FvwmPager: HilightColorset * 10

###########
# FvwmButtons
###############################
Style “FvwmButtons” NoTitle, NoHandles, BorderWidth 0, Sticky,/
  WindowListSkip,CirculateSkip, StaysOnBottom, FixedPosition, /
  FixedSize, !Iconifiable

DestroyModuleConfig MyButtons: *
*MyButtons: Geometry 96×528-0+0
*MyButtons: Back LightGoldenrodYellow
*MyButtons: Rows 11
*MyButtons: Columns 2
#*MyButtons: Frame 0
*MyButtons: (2×2, Swallow(UseOld,Respawn) /
  XClock “Exec exec xclock -geometry 96×96+0+0 -bg LightGoldenrodYellow”)
*MyButtons: (2×2, Swallow(UseOld,Respawn) /
  XLoad “Exec xload -nolabel -geometry 96×96+0+0 -bg LightGoldenrodYellow -fg red”)
*MyButtons: (1×1, Icon vim.xpm, /
Action “Exec exec /usr/bin/gvim -geometry 72×40”)
*MyButtons: (1×1, Icon emacs.png,/
Action “Exec exec /usr/bin/emacs -geometry 72×40”)
*MyButtons: (1×1, Icon fm.png, Action “Exec exec /usr/bin/thunar”)
*MyButtons: (1×1, Icon browser.png,Action “Exec exec /usr/bin/epiphany”)
*MyButtons: (1×1, Icon music.xpm, Action “Exec exec /usr/bin/rhythmbox”)
*MyButtons: (1×1, Icon movie.xpm, Action “Exec exec /usr/bin/gmplayer”)
*MyButtons: (1×1, Icon dict.xpm, Action “Exec exec /usr/bin/stardict”)
*MyButtons: (1×1, Icon help.png,Action “Exec exec /usr/bin/kdissert”)
# 要注意virtual box的大小写
*MyButtons: (1×1, Icon vbox.png, Action “Exec exec /usr/bin/VirtualBox”)
*MyButtons: (1×1, Icon game.xpm, Action “Exec exec /usr/games/gnibbles”)
*MyButtons: (2×2, Swallow “FvwmPager”, “FvwmPager 0 0”)

##############
# Functions
#############################
DestroyFunc StartFunction
AddToFunc StartFunction
+ “I” Module FvwmButtons MyButtons
#+ “I” Wait MyButtons

DestroyFunc InitFunction
AddToFunc InitFunction
+ I Exec exec fvwm-root -r $[fvwm_wallpapers]/wallpaper-grass.png
#+ I Nop

DestroyFunc RestartFunction
AddToFunc RestartFunction
+ I Nop

DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I KillModule FvwmButtons

################
# Mouse and key
##########################
# Nop表示鼠标双击时不做任何动作
Mouse 3 R A Menu FvwmRootMenu Nop
Mouse 1 R A WindowList

# 有F12按下时,显示内建菜单
Key F12 A A Menu MenuFvwmRoot
# 有F9按下时,显示自定义的根菜单
# Key F9 A N Menu FvwmRootMenu Nop 不知道这个为什么不行
Key F9 A A Menu FvwmRootMenu Nop
# 按下alt+tab时,显示窗口列表,并使选中的窗口获得焦点
#Key Tab A M WindowList Root c c NoDeskSort,SelectOnRelease Meta_L
# 可以用Key Tab A M -取消这一键绑定
Key Tab A M WindowList Root c c NoDeskSort
# 按下右边的窗口键时,启动一个uxterm
Key Super_R A A Exec exec uxterm
# 按下printscreen时,截图
Key Print A A Exec exec gnome-screenshot

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/186500.html原文链接:https://javaforall.net

(0)
上一篇 2022年10月3日 上午9:00
下一篇 2022年10月3日 上午9:00


相关推荐

  • MySQL8.0 – 新特性 – Descending Index

    MySQL8.0 – 新特性 – Descending Index前言在MySQL8.0之前的版本中,innodbbtree索引中的记录都是严格按照的key的顺序来存储的,但有些时候当我们需要倒序扫描时,效率就会很低。为了解决这个问题,从MySQL8.0版本开始支持在索引Key中倒序存储。你可以按照实际的sql负载来决定如何创建索引,例如你的查询中有Orderbyadesc,basc,就可以创建索引key…

    2025年6月28日
    5
  • 学习SyntaxHighlighter

    学习SyntaxHighlighter一款高亮显示各种格式的开源插件 下载地址 http alexgorbatch com SyntaxHighli download 下载后解压 demos 目录中有对应的例子 nbsp SyntaxHighli 的用法相对简单 官网原文如下 BasicStepsTo

    2026年3月17日
    2
  • vue 创建新项目

    vue 创建新项目1 vue 依赖于 npm 和 node 有因为 npm 依赖于 node 所以在新建项目前先安装好 node 也可以安装 nvm 后续方便切换 node 版本 打开 cmd 窗口 输出 node v 看看有无安装成功 有显示指定版本说明 node 安装成功 2 安装脚手架 vue cli 输入命令 npminstall g vue cli 接着用命令 vueversion 查看是否安装成功 3 新建项目 命令 vuecreate 项目名 4 创建成功 按照提示进入 vscode 切换到指定文件夹 执行 npmruns

    2025年7月3日
    5
  • 定点数和浮点数加减乘除运算详解【计算机组成原理】—真的建议收藏啊!!!

    定点数和浮点数加减乘除运算详解【计算机组成原理】—真的建议收藏啊!!!按时发散

    2026年3月19日
    1
  • PID控制详解[通俗易懂]

    PID控制详解[通俗易懂]PID控制详解一、PID控制简介PID(ProportionalIntegralDerivative)控制是最早发展起来的控制策略之一,由于其算法简单、鲁棒性好和可靠性高,被广泛应用于工业过程控制,尤其适用于可建立精确数学模型的确定性控制系统。在工程实际中,应用最为广泛的调节器控制规律为比例、积分、微分控制,简称PID控制,又称PID调节,它实际上是一种算法。PID控制器问…

    2022年6月10日
    54
  • 彻底理解position与anchorPoint

    彻底理解position与anchorPoint原文  http://www.cnblogs.com/benbenzhu/p/3615516.html引言相信初接触到CALayer的人都会遇到以下几个问题:  为什么修改anchorPoint会移动layer的位置? CALayer的position点是哪一点呢? anchorPoint与position有什么关系?我也迷惑过,找过网上的教程,

    2022年10月8日
    5

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号