From 564d76d672cfab726055c94e761c223f45804ede Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 18 Dec 2021 06:28:05 -0700 Subject: [PATCH 1/4] working fonts \o/ --- .fvwmrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.fvwmrc b/.fvwmrc index 5f5e2c9..7b396dd 100644 --- a/.fvwmrc +++ b/.fvwmrc @@ -6,10 +6,9 @@ EdgeResistance 250 10 EdgeScroll 100 100 ClickTime 750 -WindowFont -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-* -IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* - -MenuStyle #000000 #ffffea #dedeff -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-* fvwm +WindowFont -adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1 +IconFont -adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1 +MenuStyle #000000 #ffffea #dedeff -adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1 fvwm DeskTopSize 2x2 @@ -19,6 +18,7 @@ AddToDecor flatness + ButtonStyle All ActiveUp (-- flat) Inactive (-- flat) + TitleStyle -- flat + BorderStyle -- HiddenHandles NoInset ++ WindowFont -adobe-helvetica-bold-r-normal-*-12-*-*-*-*-*-iso10646-1 # Default styles Style "*" UseDecor flatness From 1aaf0db4eb4f25f72b17b32fc9b516078b5d038d Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 18 Dec 2021 06:28:21 -0700 Subject: [PATCH 2/4] cleanup --- .fvwmrc | 173 +++++++++----------------------------------------------- 1 file changed, 27 insertions(+), 146 deletions(-) diff --git a/.fvwmrc b/.fvwmrc index 7b396dd..55160d0 100644 --- a/.fvwmrc +++ b/.fvwmrc @@ -33,11 +33,10 @@ Style "*" Color White/Gray30 Style "Fvwm*" NoTitle, Sticky, WindowListSkip Style "Fvwm*" BorderWidth 0, CirculateSkipIcon, CirculateSkip -Style "FvwmButtons" StaysOnTop Icon toolbox.xpm, ClickToFocus +Style "FvwmButtons" StaysOnTop, Icon toolbox.xpm # Styles for various common programs: -Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus -Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus +Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip Style "xconsole" Icon rterm.xpm, WindowListSkip, Sticky, IconBox 0 -10 -280 -1 # some simple default mouse bindings: @@ -107,89 +106,48 @@ AddToMenu RootMenu "Root Menu" Title + "Volume Control" Popup VolumeMenu + "Backlight Control" Popup BacklightMenu + "" Nop -+ "Fvwm Modules" Popup Module-Popup -+ "Fvwm Window Ops" Popup Window-Ops -+ "Fvwm Simple Config Ops" Popup Misc-Ops ++ "Identify" Module FvwmIdent + "" Nop + "Refresh Screen" Refresh -+ "Recapture Screen" Recapture + "Restart Fvwm" Restart fvwm + "" Nop + "Lock Screen" Exec exec xlock + "" Nop -+ "Save Desktop" Module FvwmSaveDesk -+ "" Nop + "Exit" Module FvwmForm QuitVerify -AddToMenu Misc-Ops "Misc Config Opts" Title -+ "Sloppy Focus" ChangeDefaultFocus SloppyFocus -+ "Click To Focus" ChangeDefaultFocus ClickToFocus -+ "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse -+ "" Nop -+ "Colormap Follows Mouse" ColormapFocus FollowsMouse -+ "Colormap Follows Focus" ColormapFocus FollowsFocus -+ "" Nop -+ "Full Paging ON" EdgeScroll 100 100 -+ "All Paging OFF" EdgeScroll 0 0 -+ "Horizontal Paging Only" EdgeScroll 100 0 -+ "Vertical Paging Only" EdgeScroll 0 100 -+ "Partial Paging" EdgeScroll 50 50 -+ "Full Paging && Edge Wrap" EdgeScroll 100000 100000 - AddToMenu Window-Ops "Window Ops" Title -+ "Move%mini.move.xpm%" Move -+ "Resize%mini.resize.xpm%" Resize -+ "Raise%mini.raise.xpm%" Raise -+ "Lower%mini.lower.xpm%" Lower -+ "(De)Iconify%mini.iconify.xpm%" Iconify -+ "(Un)Stick%mini.stick2.xpm%" Stick -+ "(Un)Maximize%mini.maximize.xpm%" Maximize ++ "Move" Move ++ "Resize" Resize ++ "Raise" Raise ++ "Lower" Lower ++ "(De)Iconify" Iconify ++ "(Un)Stick" Stick ++ "(Un)Maximize" Maximize + "" Nop -+ "Delete%mini.excl.xpm%" Delete -+ "Close%mini.cut.xpm%" Close -+ "Destroy%mini.destroy.xpm%" Destroy ++ "Delete" Delete ++ "Close" Close ++ "Destroy" Destroy + "" Nop -+ "Refresh Window%mini.refresh.xpm%" RefreshWindow ++ "Refresh Window" RefreshWindow -AddToMenu Window-Ops2 "&Move%mini.move.xpm%" Move -+ "&Resize%mini.resize.xpm%" Resize -+ "R&aise%mini.raise.xpm%" Raise -+ "&Lower%mini.lower.xpm%" Lower -+ "(De)&Iconify%mini.iconify.xpm%" Iconify -+ "(Un)&Stick%mini.stick2.xpm%" Stick -+ "(Un)Ma&ximize%mini.maximize.xpm%" Maximize +AddToMenu Window-Ops2 "&Move" Move ++ "&Resize" Resize ++ "R&aise" Raise ++ "&Lower" Lower ++ "(De)&Iconify" Iconify ++ "(Un)&Stick" Stick ++ "(Un)Ma&ximize" Maximize + "" Nop -+ "&Delete%mini.excl.xpm%" Delete -+ "&Close%mini.cut.xpm%" Close -+ "Destroy%mini.destroy.xpm%" Destroy ++ "&Delete" Delete ++ "&Close" Close ++ "Destroy" Destroy + "" Nop + "ScrollBar" Module FvwmScroll 2 2 + "Print" PrintFunction #+ "Print Reverse" PrintReverseFunction -AddToMenu Module-Popup "FvwmModules" Title -+ "Identify" Module FvwmIdent -+ "Talk" Module FvwmTalk -+ "" Nop -+ "Button-Bar" Module FvwmButtons -+ "Pager" Module FvwmPager 0 0 -+ "Pager (2 desks)" Module FvwmPager 0 1 -+ "WinList" Module FvwmWinList -+ "" Nop -+ "Banner" Module FvwmBanner -+ "ScrollBar" Module FvwmScroll 50 50 -+ "Background" Module FvwmBacker -+ "AutoRaise" Module FvwmAuto 200 Raise Nop -+ "Stop AutoRaise" KillModule FvwmAuto -+ "" Nop -+ "IconMan" Module FvwmIconMan - ######################## Sample Functions ########################## -AddToFunc MailFunction "I" Next [$0] Iconify -1 -+ "I" Next [$0] Focus -+ "I" None [$0] Exec $0 $1 - AddToFunc Move-or-Raise "I" Raise + "M" Move + "D" Lower @@ -237,40 +195,8 @@ AddToFunc ChangeDefaultFocus "I" Style "*" $0 Key Tab A M WindowList Root c c NoDeskSort, SelectOnRelease Meta_L Key Return A MC Exec /usr/X11R6/bin/xterm - -# press shift arrow + control anywhere, and move the pointer by 1% of a page -Key Left A SC CursorMove -1 0 -Key Right A SC CursorMove +1 +0 -Key Up A SC CursorMove +0 -1 -Key Down A SC CursorMove +0 +1 - -# press shift arrow + meta key, and move the pointer by 1/10 of a page -Key Left A SM CursorMove -10 +0 -Key Right A SM CursorMove +10 +0 -Key Up A SM CursorMove +0 -10 -Key Down A SM CursorMove +0 +10 - -# Keyboard accelerators -Key F1 A M Menu RootMenu -Key F2 A M Menu Window-Ops -Key F3 A M WindowList FvwmWinList -Key F4 A M Iconify -Key F5 A M Move -Key F6 A M Resize -Key F7 A M CirculateUp -Key F8 A M CirculateDown Key R A M Exec exec /usr/local/bin/rofi -show run - -#Page Up/Page Down keys are used to scroll by one desktop page -# in any context, press page up/down + control -# in root context, just pressing page up/down is OK -# -# I prefer the non-wrapping scroll. These are for example purposes only -#Key Next A C Scroll 100000 0 -#Key Next R N Scroll 100000 0 -#Key Prior A C Scroll -100000 0 -#Key Prior R N Scroll -100000 0 - +Key T A M Module FvwmRearrange -tile -mn 2 5 5 95 95 ################## FvwmButtons button-bar ################################ *FvwmButtonsGeometry 300x50-0-0 @@ -283,8 +209,8 @@ Key R A M Exec exec /usr/local/bin/rofi -show run ########################## Window-Identifier ############################### # Just choose colors and a fonts -*FvwmIdentBack MidnightBlue -*FvwmIdentFore Yellow +*FvwmIdentBack #ffffea +*FvwmIdentFore black ########################### Pager ######################################### *FvwmPagerBack Gray30 @@ -304,50 +230,6 @@ Key R A M Exec exec /usr/local/bin/rofi -show run *FvwmBackerDesk 0 -solid Grey30 *FvwmBackerDesk 1 -solid Grey50 -*FvwmScrollBack grey40 -*FvwmScrollFore green - -############################################################ -*FvwmIconBoxIconBack #cfcfcf -*FvwmIconBoxIconHiFore black -*FvwmIconBoxIconHiBack LightSkyBlue -*FvwmIconBoxBack #5f9ea0 -#*FvwmIconBoxFore blue -*FvwmIconBoxGeometry 5x1+0+0 -*FvwmIconBoxMaxIconSize 64x38 -*FvwmIconBoxSortIcons IconName -*FvwmIconBoxPadding 4 -*FvwmIconBoxLines 10 -*FvwmIconBoxSBWidth 11 -*FvwmIconBoxPlacement Left Top -*FvwmIconBoxPixmap fvwm.xpm -#*FvwmIconBoxHideSC Horizontal -*FvwmIconBoxSetWMIconSize -*FvwmIconBoxHilightFocusWin -#*FvwmIconBoxResolution Desk -*FvwmIconBoxMouse 1 Click RaiseLower -*FvwmIconBoxMouse 1 DoubleClick Iconify -*FvwmIconBoxMouse 2 Click Iconify -1, Focus -*FvwmIconBoxMouse 3 Click Module FvwmIdent -*FvwmIconBoxKey r RaiseLower -*FvwmIconBoxKey space Iconify -*FvwmIconBoxKey d Close -*FvwmIconBoxKey n Next -*FvwmIconBoxKey p Prev -*FvwmIconBoxKey h Left -*FvwmIconBoxKey j Down -*FvwmIconBoxKey k Up -*FvwmIconBoxKey l Right -# -# Icon file specifications -# -# Mostly, you don't have to specify icon files, as FvwmIconBox now -# reads icon files specified in Style commands. -# -*FvwmIconBox "Fvwm*" - - -# FvwmForm alias - query exit ala mwm -# begin items *QuitVerifyLine center *QuitVerifyText "Do you really want to exit FVWM?" *QuitVerifyLine expand @@ -356,4 +238,3 @@ Key R A M Exec exec /usr/local/bin/rofi -show run *QuitVerifyButton quit "Cancel" *QuitVerifyCommand Nop -m4_include('.fvwm2desk') . From 639deab69af08cc912036a820e48e26b5d6acecf Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 18 Dec 2021 06:37:15 -0700 Subject: [PATCH 3/4] more cleanup --- .fvwmrc | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/.fvwmrc b/.fvwmrc index 55160d0..cd50ba2 100644 --- a/.fvwmrc +++ b/.fvwmrc @@ -141,10 +141,6 @@ AddToMenu Window-Ops2 "&Move" Move + "&Delete" Delete + "&Close" Close + "Destroy" Destroy -+ "" Nop -+ "ScrollBar" Module FvwmScroll 2 2 -+ "Print" PrintFunction -#+ "Print Reverse" PrintReverseFunction ######################## Sample Functions ########################## @@ -172,24 +168,6 @@ AddToFunc Resize-or-Raise2 "M" Raise + "M" Resize + "D" Lower -AddToFunc PrintFunction "I" Raise -+ "I" Exec xdpr -id $w - -AddToFunc PrintReverseFunction "I" Raise -+ "I" Exec xdpr 1/2 -h -rv -id $w - -AddToFunc Iconify-and-Raise "I" Iconify -+ "I" Raise - -AddToFunc FocusAndWarp "I" Focus -+ "I" WarpToWindow 2p 2p - -AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 -+ "I" FocusAndWarp - -AddToFunc ChangeDefaultFocus "I" Style "*" $0 -+ "I" Recapture - ############################################################################ # Now some keyboard shortcuts. From 44dd5714ff198486bbf1c8be88a02418ff3db4cd Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sat, 18 Dec 2021 08:48:50 -0700 Subject: [PATCH 4/4] add IDE menu, change full and cascade sizes --- .fvwmrc | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.fvwmrc b/.fvwmrc index cd50ba2..39848dc 100644 --- a/.fvwmrc +++ b/.fvwmrc @@ -93,22 +93,27 @@ AddToMenu VolumeMenu "Volume Control" Title + "Volume 10%%" exec mixerctl -q outputs.master=20 + "Volume 0%%" exec mixerctl -q outputs.master=0 +AddToMenu IDEMenu "IDEs" Title ++ "Emacs" exec /usr/local/bin/emacs ++ "GoLand" exec /usr/local/bin/goland ++ "IntelliJ" exec /usr/local/bin/intellij + AddToMenu RootMenu "Root Menu" Title + "XTerm" Exec exec xterm + "Browser" Exec exec chrome -+ "Calculator" Exec exec xcalc + "Emacs" Exec exec /usr/local/bin/emacs + "" Nop ++ "IDEs" Popup IDEMenu ++ "" Nop + "Tile" Module FvwmRearrange -tile -mn 2 5 5 95 95 -+ "Tile Full" Module FvwmRearrange -tile -mn 2 1 1 99 99 -+ "Cascade" Module FvwmRearrange -cascade -resize 10 2 80 70 ++ "Tile Full" Module FvwmRearrange -tile -mn 2 3 3 97 97 ++ "Cascade" Module FvwmRearrange -cascade -resize 5 5 90 90 + "" Nop + "Volume Control" Popup VolumeMenu + "Backlight Control" Popup BacklightMenu + "" Nop + "Identify" Module FvwmIdent + "" Nop -+ "Refresh Screen" Refresh + "Restart Fvwm" Restart fvwm + "" Nop + "Lock Screen" Exec exec xlock @@ -127,8 +132,6 @@ AddToMenu Window-Ops "Window Ops" Title + "Delete" Delete + "Close" Close + "Destroy" Destroy -+ "" Nop -+ "Refresh Window" RefreshWindow AddToMenu Window-Ops2 "&Move" Move + "&Resize" Resize