diff options
author | Neil <neil@ascii> | 2020-07-22 10:56:03 -0700 |
---|---|---|
committer | Neil <neil@ascii> | 2020-07-22 10:56:03 -0700 |
commit | f42407aa6c439096ffc3007bada5e47f0ce4280d (patch) | |
tree | f9ca21d1efcea32cccce13d566d5cc2f3cb4de66 | |
download | fvwm_hack-f42407aa6c439096ffc3007bada5e47f0ce4280d.tar.gz |
Start up commit
-rw-r--r-- | bkgrd.fvwm | 28 | ||||
-rw-r--r-- | config | 11 | ||||
-rw-r--r-- | funcs.fvwm | 41 | ||||
-rw-r--r-- | menus-std.fvwm | 86 | ||||
-rw-r--r-- | menus-var.fvwm | 33 | ||||
-rw-r--r-- | mouse.fvwm | 17 | ||||
-rw-r--r-- | pager.fvwm | 23 | ||||
-rw-r--r-- | style.fvwm | 54 | ||||
-rwxr-xr-x | symlinker.sh | 29 |
9 files changed, 322 insertions, 0 deletions
diff --git a/bkgrd.fvwm b/bkgrd.fvwm new file mode 100644 index 0000000..1e74726 --- /dev/null +++ b/bkgrd.fvwm @@ -0,0 +1,28 @@ + +###### Backgrounds ################################# + +DestroyModuleConfig FvwmBacker* + +InfoStoreAdd bkgrd /home/neil/wallpapers + + +###### Backgrounds ################################# + +DestroyModuleConfig FvwmBacker* + +InfoStoreAdd bkgrd /home/neil/wallpapers + +*FvwmBackerDesk 0 -solid darkgrey +*FvwmBackerDesk 1 -solid lightblue +*FvwmBackerDesk 2 -solid lightgreen +*FvwmBackerDesk 3 -solid lightgrey + +#*FvwmBacker: Command (Desk 0) Exec xli -onroot -fillscreen $[infostore.bkgrd]/japanese_garden___stairs-wallpaper-1680x1050.jpg +#*FvwmBacker: Command (Desk 1) Exec xli -onroot -fillscreen $[infostore.bkgrd]/dense_forest-wallpaper-1920x1080.jpg +#*FvwmBacker: Command (Desk 2) Exec xli -onroot -fillscreen $[infostore.bkgrd]/armenia_syunik_khustup_hayk_photography-wallpaper-1680x1050.jpg +#*FvwmBacker: Command (Desk 3) Exec xli -onroot -fillscreen $[infostore.bkgrd]/green_forest_7-wallpaper-1920x1080.jpg + +## this one works too (deprecated format) +#*FvwmBackerDesk 0 Exec xli -onroot -fillscreen /home/neil/wallpapers/steampunk_leagues.jpg + + diff --git a/config b/config new file mode 100644 index 0000000..d740435 --- /dev/null +++ b/config @@ -0,0 +1,11 @@ + +# order matters + +Read funcs.fvwm +Read style.fvwm +Read bkgrd.fvwm +Read mouse.fvwm +Read menus-std.fvwm +Read menus-var.fvwm +Read pager.fvwm + diff --git a/funcs.fvwm b/funcs.fvwm new file mode 100644 index 0000000..3861ec5 --- /dev/null +++ b/funcs.fvwm @@ -0,0 +1,41 @@ + +#Key Next A SCM Next [*] Focus +#Key Prior A SCM Prev [*] Focus + +AddToFunc StartFunction "I" Module FvwmButtons ++ "I" Module FvwmBacker + +AddToFunc InitFunction "I" Module FvwmButtons ++ "I" Module FvwmBacker + +AddToFunc RestartFunction "I" Module FvwmButtons ++ "I" Module FvwmBacker + +AddToFunc Move-or-Raise "I" Raise ++ "M" Move ++ "D" Lower + +AddToFunc Maximize-Func "M" Maximize 0 100 ++ "C" Maximize 0 80 ++ "D" Maximize 100 100 + +AddToFunc Move-or-Iconify "I" Raise ++ "M" Move ++ "D" Iconify + +AddToFunc Resize-or-Raise "I" Raise ++ "M" Resize ++ "D" Lower + +#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 + diff --git a/menus-std.fvwm b/menus-std.fvwm new file mode 100644 index 0000000..5038e76 --- /dev/null +++ b/menus-std.fvwm @@ -0,0 +1,86 @@ + +## standard/constant portion of menu config - same for all userids + +AddToMenu ScratchPad ++ "ScratchPad Add" Exec exec /home/neil/bin/spad.sh ++ "ScratchPad Display" Exec exec /home/neil/bin/spad.sh -d ++ "ScratchPad Clear" Exec exec /home/neil/bin/spad.sh -c ++ "ScratchPad OverWrite" Exec exec xclip -o > /tmp/spad ++ "ScratchPad JustGrab" Exec exec xclip -i /tmp/spad + +AddToMenu Fvwm-Options ++ "Fvwm Modules" Popup Module-Popup ++ "Fvwm Window Ops" Popup Window-Ops ++ "Fvwm Simple Config Ops" Popup Misc-Ops ++ "fvwm config symlinker" Exec exec ~neil/fvwm.linked/symlinker.sh ++ "" Nop ++ "Refresh Screen" Refresh ++ "Recapture Screen" Recapture + +AddToMenu Module-Popup "FvwmModules" Title ++ "Identify" Module FvwmIdent ++ "Talk" Module FvwmTalk ++ "" Nop ++ "Button-Bar" Module FvwmButtons ++ "Pager" Module FvwmPager 0 0 ++ "Pager (4 desks)" Module FvwmPager 0 3 ++ "WinList" Module FvwmWinList ++ "" Nop ++ "Banner" Module FvwmBanner ++ "Background" Module FvwmBacker ++ "AutoRaise" Module FvwmAuto 200 Raise Nop ++ "Stop AutoRaise" KillModule FvwmAuto ++ "" Nop ++ "IconBox" Module FvwmIconBox ++ "IconMan" Module FvwmIconMan + +AddToMenu Window-Ops "Window Ops" Title ++ "Move" Move ++ "Resize" Resize ++ "Raise" Raise ++ "Lower" Lower ++ "(De)Iconify" Iconify ++ "(Un)Stick" Stick ++ "(Un)Maximize" Maximize ++ "" Nop ++ "Delete" Delete ++ "Close" Close ++ "Destroy" Destroy ++ "" Nop ++ "Refresh Window" RefreshWindow + +AddToMenu Window-Ops2 "&Move" Move ++ "&Resize" Resize ++ "R&aise" Raise ++ "&Lower" Lower ++ "(De)&Iconify" Iconify ++ "(Un)&Stick" Stick ++ "(Un)Ma&ximize" Maximize ++ "" Nop ++ "&Delete" Delete ++ "&Close" Close ++ "Destroy" Destroy + +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 Quit-Verify ++ "No, Don't Quit" Nop ++ "" Nop ++ "Restart Fvwm" Restart fvwm ++ "Switch to i3" Restart i3 ++ "" Nop ++ "Yes, Really Quit" Quit + diff --git a/menus-var.fvwm b/menus-var.fvwm new file mode 100644 index 0000000..0a69a25 --- /dev/null +++ b/menus-var.fvwm @@ -0,0 +1,33 @@ + +## variable portion of fvwm menu config - differs between user-ids + +AddToMenu RootMenu ++ "XTerm" Exec exec xterm ++ "Big XTerm" Exec exec xterm -fa Monospace -fs 19 ++ "Firefox" Exec exec firefox ++ "" Nop ++ "ScratchPad" Popup ScratchPad ++ "Utilities" Popup Utilities ++ "Other WWW" Popup OtherBrowsers ++ "Fvwm Options" Popup Fvwm-Options ++ "" Nop ++ "Exit Fvwm" Popup Quit-Verify + +AddToMenu OtherBrowsers ++ "Chromium" Exec exec chromium ++ "Epiphany" Exec exec epiphany ++ "Opera" Exec exec opera ++ "Slimjet" Exec exec /opt/slimjet/flashpeak-slimjet + +AddToMenu Utilities "Utilities" Title ++ "LibreOffice Calc" Exec exec soffice --calc --splash-pipe=5 ++ "KeepassX" Exec exec keepassx ++ "PulseAudioControl" Exec exec pavucontrol ++ "HTop" Exec exec xterm -T HTop -n HTop -e htop ++ "" Nop ++ "showrgb" Exec exec xterm -e "showrgb|more" ++ "Calculator" Exec exec xcalc ++ "Xmag" Exec exec xmag ++ "" Nop ++ "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults + diff --git a/mouse.fvwm b/mouse.fvwm new file mode 100644 index 0000000..adbdd5b --- /dev/null +++ b/mouse.fvwm @@ -0,0 +1,17 @@ + +Mouse 1 R A Menu RootMenu Nop +Mouse 2 R A Menu Window-Ops Nop +Mouse 3 R A WindowList + +Mouse 0 1 A Menu Window-Ops2 Close +Mouse 0 2 A Maximize-Func +Mouse 0 4 A Iconify +Mouse 0 5 A Close + +Mouse 1 F A Resize-or-Raise +Mouse 1 TS A Move-or-Raise +Mouse 1 I A Move-or-Iconify +Mouse 2 I A Iconify +Mouse 2 FST A Menu Window-Ops2 Nop +Mouse 3 TSIF A RaiseLower + diff --git a/pager.fvwm b/pager.fvwm new file mode 100644 index 0000000..ee889b9 --- /dev/null +++ b/pager.fvwm @@ -0,0 +1,23 @@ + +FvwmPager 0 3 + +*FvwmIdentBack MidnightBlue +*FvwmIdentFore Yellow + +*FvwmPagerBack #908090 +*FvwmPagerFore #484048 +*FvwmPagerFont -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-* +*FvwmPagerFont none +*FvwmPagerHilight #cab3ca +*FvwmPagerGeometry -1-1 +*FvwmPagerLabel 0 "Main Desktop" +*FvwmPagerLabel 1 "Remote hosts" +*FvwmPagerSmallFont 5x8 +*FvwmPagerSmallFont none +*FvwmPagerBalloons All +*FvwmPagerBalloonBack Yellow +*FvwmPagerBalloonFore Black +*FvwmPagerBalloonYOffset +2 +*FvwmPagerBalloonBorderWidth 1 +*FvwmPagerBalloonBorderColor Black + diff --git a/style.fvwm b/style.fvwm new file mode 100644 index 0000000..d64ee53 --- /dev/null +++ b/style.fvwm @@ -0,0 +1,54 @@ + +############## global settings ############# +EdgeResistance 250 +EdgeScroll 100 100 +ClickTime 750 + +HilightColor black palevioletred +DeskTopSize 1x1 + +ColormapFocus FollowsMouse +WindowFont -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-* +IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* + +MenuStyle * "fvwm", Foreground "green", Background "grey60", Greyed "grey40", Font "-adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*" "AnimationOff" + +############ Style statements ################# + +Style "*" !Button 3 +Style "*" BorderWidth 7, HandleWidth 7 +Style "*" Icon unknown1.xpm +##### Style "*" Color lightgrey/dimgrey +Style "*" MWMFunctions, MWMDecor, HintOverride +Style "*" DecorateTransient, NoPPosition +## All non-XTerms go to lower right corner & stack vertically +Style "*" IconBox -70 535 -1 -20 +Style "*" FocusFollowsMouse +## Don't know if I prefer Active or Auto placement +## Style "*" ActivePlacement + +Style "Fvwm*" NoTitle, Sticky, WindowListSkip +Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip +Style "FvwmPager" StaysOnTop +## Might want a identifying banner on different Xephyrs +## Style "FvwmBanner" StaysOnTop +Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus + +## XTerms go to upper right corner & stack vertically +Style "XTerm" Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 530 + +Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus +Style "xman" Icon xman.xpm, RandomPlacement, ClickToFocus +Style "xmag" Icon mag_glass.xpm, RandomPlacement, ClickToFocus + +*FvwmScrollBack grey40 +*FvwmScrollFore green + +*FvwmWinListBack #908090 +*FvwmWinListFore Black +*FvwmWinListAction Click1 Iconify -1,Focus +*FvwmWinListAction Click2 Iconify +*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent +*FvwmWinListUseSkipList +*FvwmWinListGeometry +0-1 + diff --git a/symlinker.sh b/symlinker.sh new file mode 100755 index 0000000..b1fd01d --- /dev/null +++ b/symlinker.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +## execute this as some special user (e.g. dev, untrust,finan,...) +## it creates symlinks to ~neil/fvwm.linked/{*.fvwm|config} and +## also handles customized symlinks (which are local) as long as they follow +## the naming convention of STDNAME.xxxxx.custom (e.g. menu-var.untrust.custom) + +link_dir=~neil/fvwm.linked + +cd ~/.fvwm +for custom_name in *custom +do + if [ -e $custom_name ] + then + std_name=`echo $custom_name | cut -d. -f1` + ln -sf $custom_name ${std_name}.fvwm + fi +done + +for master_file in $link_dir/*.fvwm +do + link_name=`basename $master_file` + std_name=`echo $link_name | cut -d. -f1` + if [ -e ${std_name}*custom ]; then continue; fi ## don't overwrite custom links + ln -sf $master_file $link_name +done + +ln -sf $link_dir/config config + |