-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes, remove i3lock, I just use xlock
- Loading branch information
James Gillman
committed
Jan 9, 2024
1 parent
a2b71bd
commit 81f924e
Showing
5 changed files
with
232 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
ModulePath /usr/X11R6/lib/X11/fvwm | ||
|
||
########################### | ||
# General configurations. # | ||
########################### | ||
EdgeResistance 250 10 | ||
EdgeScroll 0 0 | ||
ClickTime 750 | ||
|
||
DeskTopSize 3x3 | ||
ColormapFocus FollowsMouse | ||
|
||
#################################### | ||
# Window style and configurations. # | ||
# https://www.w3schools.com/colors/colors_palettes.asp 2017 Pallettes, bottom right # | ||
#################################### | ||
HilightColor #ffffff #405d27 | ||
MenuStyle #ffffff #405d27 #1e1e1e fixed fvwm | ||
|
||
Style "*" BorderWidth 5, HandleWidth 5 | ||
Style "*" Color #ffffff/#3e4444 | ||
Style "*" FocusFollowsMouse | ||
Style "*" RandomPlacement, SmartPlacement | ||
|
||
Style "Fvwm*" NoTitle, Sticky, WindowListSkip | ||
|
||
############################# | ||
# Initialization functions. # | ||
############################# | ||
AddToFunc InitFunction "I" Module FvwmPager 0 0 | ||
+ "I" exec feh --bg-fill ~/.config/images/wallpaper.png | ||
AddToFunc RestartFunction "I" Module FvwmPager 0 0 | ||
+ "I" exec feh --bg-fill ~/.config/images/wallpaper.png | ||
|
||
########## | ||
# Pager. # | ||
########## | ||
*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* | ||
*FvwmPagerBack black | ||
*FvwmPagerFore white | ||
*FvwmPagerHilight #2d2d2d | ||
*FvwmPagerGeometry 100x100-1-1 | ||
*FvwmPagerLabel 0 "OpenBSD" | ||
*FvwmPagerSmallFont 5x8 | ||
|
||
########## | ||
# Menus. # | ||
########## | ||
AddToMenu RootMenu "OpenBSD" Title | ||
+ "XTerm" exec xterm -e '/usr/local/bin/fish' | ||
+ "Dev Folder" exec xterm -e 'cd ./dev/ && /usr/local/bin/fish' | ||
+ "Ports Folder" exec xterm -e 'cd /usr/ports/ && /usr/local/bin/fish' | ||
+ "" Nop | ||
+ "Chromium" exec chrome | ||
+ "File Manager" exec thunar | ||
+ "Volume" Popup VolumeMenu | ||
+ "" Nop | ||
+ "Utilities" Popup UtilitiesMenu | ||
+ "" Nop | ||
+ "Restart FVWM" Restart fvwm | ||
+ "Lock screen" exec xlock | ||
+ "Logout" FvwmForm QuitVerify | ||
+ "Reboot" FvwmForm RebootVerify | ||
+ "Shutdown" FvwmForm ShutdownVerify | ||
|
||
# Window operations for the centre mouse button. | ||
AddToMenu Global-Window-Ops "Window Ops" Title | ||
+ "Move" Move-or-Raise2 | ||
+ "Resize" Resize-or-Raise2 | ||
+ "Raise" Raise | ||
+ "Lower" Lower | ||
+ "(De)Iconify" Iconify | ||
+ "(Un)Stick" Stick | ||
+ "(Un)Maximize" maximize_func | ||
+ "" Nop | ||
+ "Delete" Delete | ||
+ "Close" Close | ||
+ "Destroy" Destroy | ||
+ "" Nop | ||
+ "Refresh Screen" Refresh | ||
|
||
# Window operations for the top left of every window. | ||
AddToMenu Window-Ops "Move" Move-or-Raise | ||
+ "Resize" Resize-or-Raise | ||
+ "Raise/Lower" RaiseLower | ||
+ "Iconify" Iconify | ||
+ "(Un)Stick" Stick | ||
+ "" Nop | ||
+ "Delete" Delete | ||
+ "Close" Close | ||
+ "Destroy" Destroy | ||
|
||
# Utilities Menu. | ||
AddToMenu UtilitiesMenu "Utilities" Title | ||
+ "About System" exec xterm -hold neofetch | ||
+ "ARandR" exec arandr | ||
+ "Calculator" exec xcalc | ||
+ "Screenshot" exec scrot -s | ||
+ | ||
|
||
# Volume menu. | ||
AddToMenu VolumeMenu "Volume Control" Title | ||
+ "Mute" exec sndioctl output.mute=! | ||
+ "Volume 100%%" exec sndioctl output.level=1 | ||
+ "Volume 90%%" exec sndioctl output.level=.9 | ||
+ "Volume 80%%" exec sndioctl output.level=.8 | ||
+ "Volume 70%%" exec sndioctl output.level=.7 | ||
+ "Volume 60%%" exec sndioctl output.level=.6 | ||
+ "Volume 50%%" exec sndioctl output.level=.5 | ||
+ "Volume 40%%" exec sndioctl output.level=.4 | ||
+ "Volume 30%%" exec sndioctl output.level=.3 | ||
+ "Volume 20%%" exec sndioctl output.level=.2 | ||
+ "Volume 10%%" exec sndioctl output.level=.1 | ||
+ "Volume 0%%" exec sndioctl output.level=0 | ||
|
||
######################### | ||
# Mouse configurations. # | ||
######################### | ||
# Button Context Modifi Function | ||
Mouse 1 R A Menu RootMenu Nop | ||
Mouse 2 R A Menu Global-Window-Ops Nop | ||
Mouse 3 R A WindowList | ||
|
||
# Title bar options (minimise, maximise, close). | ||
# Button Context Modifi Function | ||
Mouse 0 1 A Menu Window-Ops Close | ||
Mouse 0 2 A Close | ||
Mouse 0 4 A Maximize-Func | ||
Mouse 0 6 A Iconify | ||
|
||
# Button 1 configurations for frame/sides, icons, and on top. | ||
# Button Context Modifi Function | ||
Mouse 1 FS A Resize-or-Raise | ||
Mouse 1 I A Move-or-Iconify | ||
Mouse 1 T A Move-or-Raise | ||
|
||
# Button 2 configuration. | ||
Mouse 2 FST A Menu Window-Ops Nop | ||
|
||
############## | ||
# Functions. # | ||
############## | ||
AddToFunc Move-or-Raise "I" Raise | ||
+ "M" Move | ||
+ "D" Maximize | ||
|
||
AddToFunc Move-or-Raise2 "M" Raise | ||
+ "M" Move | ||
+ "D" Lower | ||
|
||
AddToFunc Maximize-Func "C" Maximize 100 100 | ||
|
||
AddToFunc Move-or-Iconify "I" Raise | ||
+ "M" Move | ||
+ "D" Iconify | ||
|
||
AddToFunc Resize-or-Raise "I" Raise | ||
+ "M" Resize | ||
+ "D" Lower | ||
|
||
AddToFunc Resize-or-Raise2 "M" Raise | ||
+ "M" Resize | ||
+ "D" Lower | ||
|
||
AddToFunc Iconify-and-Raise "I" Iconify | ||
+ "I" Raise | ||
|
||
####################### | ||
# Keyboard shortcuts. # | ||
####################### | ||
|
||
# to do... | ||
|
||
######################################################## | ||
# Confirmation pages for logout, reboot, and shutdown. # | ||
######################################################## | ||
*QuitVerifyGrabServer | ||
*QuitVerifyWarpPointer | ||
*QuitVerifyCommand Beep | ||
*QuitVerifyLine center | ||
*QuitVerifyText "Do you really want to logout?" | ||
*QuitVerifyLine expand | ||
*QuitVerifyButton quit "Logout" ^M | ||
*QuitVerifyCommand Quit | ||
*QuitVerifyButton quit "Cancel" ^[ | ||
*QuitVerifyCommand Nop | ||
Style "QuitVerify" NoTitle, NoHandles, BorderWidth 3 | ||
|
||
*RebootVerifyGrabServer | ||
*RebootVerifyWarpPointer | ||
*RebootVerifyCommand Beep | ||
*RebootVerifyLine center | ||
*RebootVerifyText "Do you really want to reboot?" | ||
*RebootVerifyLine expand | ||
*RebootVerifyButton quit "Reboot" ^M | ||
*RebootVerifyCommand exec /usr/bin/doas /sbin/reboot | ||
*RebootVerifyButton quit "Cancel" ^[ | ||
*RebootVerifyCommand Nop | ||
Style "RebootVerify" NoTitle, NoHandles, BorderWidth 3 | ||
|
||
*ShutdownVerifyGrabServer | ||
*ShutdownVerifyWarpPointer | ||
*ShutdownVerifyCommand Beep | ||
*ShutdownVerifyLine center | ||
*ShutdownVerifyText "Do you really want to shutdown?" | ||
*ShutdownVerifyLine expand | ||
*ShutdownVerifyButton quit "Shutdown" ^M | ||
*ShutdownVerifyCommand exec /usr/bin/doas /sbin/shutdown -hp now | ||
*ShutdownVerifyButton quit "Cancel" ^[ | ||
*ShutdownVerifyCommand Nop | ||
Style "ShutdownVerify" NoTitle, NoHandles, BorderWidth 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
TerminalEmulator=xterm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters