# || TWM Config || # --|| Metadata ||-- # # Default (Hyperbola rebranding) # # by Jayvee Enaguas (The Harvett Vault/HarvettFox96) # # # --|| Appearance ||-- # ----|| Global ||---- # ------|| General ||------ NoGrabServer # ------|| Styling ||------ # Colour: Color {# General: DefaultBackground "white" DefaultForeground "black" # Window: TitleBackground "silver" TitleForeground "black" BorderColor "gray50" BorderTileBackground "gray50" BorderTileForeground "gray50" # Icon: IconBackground "silver" IconForeground "black" IconBorderColor "gray50" # Icon Manager: IconManagerBackground "black" IconManagerForeground "white" IconManagerHighlight "silver" # Menu MenuTitleBackground "silver" MenuTitleForeground "black" MenuBackground "white" MenuForeground "black" MenuBorderColor "gray50" MenuShadowColor "black"} # Text: TitleFont "fixed" ResizeFont "fixed" IconFont "fixed" IconManagerFont "fixed" MenuFont "fixed" # Cursor: Cursors {Title "left_ptr" Frame "left_ptr" Button "hand2" Resize "sizing" Select "crosshair" Destroy "X_cursor" Menu "left_ptr" Icon "hand2" IconMgr "hand2"} # ----|| Window ||---- # ------|| General ||------ RandomPlacement RestartPreviousState OpaqueMove DecorateTransients NoTitleFocus # ------|| Styling ||------ # Geometry: BorderWidth 1 ButtonIndent 0 # ----|| Icon ||---- # ------|| General ||------ IconifyByUnmapping # ------|| Styling ||------ # Geometry: IconBorderWidth 1 # ----|| Icon Manager ||---- # ------|| General ||------ ShowIconManager SortIconManager NoCaseSensitive # ------|| Placement ||------ IconManagerGeometry "320+16+16" 2 # ----|| Menu ||---- # ------|| Styling ||------ # Geometry: MenuBorderWidth 1 # ------|| Placement ||------ # --------|| Main ||-------- menu "main" {"Main" f.title "Window" f.menu "window" "Icon Manager" f.menu "iconmgr2" "----" f.nop "TWM" f.menu "twm" "System" f.menu "system"} # --------|| Applications ||-------- menu "apps" {"Applications" f.title "Terminal (xterm)" !"xterm &" "----" f.nop "Calculator (xcalc)" !"xcalc &" "Magnifier (xmag)" f.function "xmag" "Process Manager (top)" !"xterm -T top -e top &" "Process Manager (htop)" !"xterm -T htop -e htop &" "X Resources Editor (editres)" !"editres &"} # --------|| TWM ||-------- menu "twm" {"TWM" f.title "Restart" f.restart "Exit" f.quit} # --------|| System ||-------- menu "system" {"System" f.title "Lock" f.function "lock-screen" "----" f.nop "Shutdown" !"doas poweroff &" "Restart" !"doas reboot &" "Suspend" f.function "suspend" "Hibernate" f.function "hibernate"} # --------|| Window ||-------- menu "window" {"Window" f.title "Minimize" f.iconify "Maximize" f.fullzoom "Move" f.move "Resize" f.resize "----" f.nop "Info" f.identify "----" f.nop "Close" f.delete "Kill" f.destroy} # --------|| Icon Manager ||-------- menu "iconmgr1" {"Icon Manager" f.title "Close" f.delete "Kill" f.destroy} # --------|| Icon Manager Toggler ||------ menu "iconmgr2" {"Icon Manager" f.title "Show" f.showiconmgr "Hide" f.hideiconmgr} # --|| Tweaks ||-- # ----|| Window ||---- NoTitle {"TWM Icon Manager" "conky" "gkrellm" "oclock" "xeyes" "Taskbar" "panel" "tint2" "stalonetray"} # ----|| Icon Manager ||---- IconManagerDontShow {"conky" "gkrellm" "Taskbar" "panel" "tint2" "stalonetray"} # --|| Functions ||-- # ----|| Global ||---- Function "move-or-raise" {f.move f.deltastop f.raise} Function "move-or-lower" {f.move f.deltastop f.lower} Function "move-or-iconify" {f.move f.deltastop f.iconify} # ----|| Session ||---- Function "lock-screen" {!"[[ -x $(command -v xtrlock) ]] && xtrlock -b || slock &"} Function "suspend" {!"doas zzz -nz &"} Function "hibernate" {!"doas zzz -nZ &"} # ----|| Accessbility ||---- Function "xmag" {!"xmag -source 96x64 -mag 4 &"} # --|| Bindings ||-- # ----|| Desktop ||---- Button1= :root: f.menu "apps" Button3= :root: f.menu "main" # ----|| Window ||---- Button1= :title|icon: f.function "move-or-raise" Button2= :title: f.fullzoom Button3= :title: f.menu "window" Button1=m :title|window: f.function "move-or-raise" Button2=m :title|window: f.iconify Button3=m :title|window: f.resize # ----|| Icon/Icon Manager ||---- Button1= :icon: f.function "move-or-iconify" Button1= :iconmgr: f.iconify Button2= :iconmgr: f.delete Button3= :iconmgr: f.menu "iconmgr1" # ----|| Session ||---- "r"=control|mod4 :all: f.restart "q"=control|mod4 :all: f.quit "l"=mod4 :all: f.function "lock-screen" "z"=control|mod4 :all: f.function "suspend" "z"=control|m|mod4 :all: f.function "hibernate" # ----|| Window ||---- "Down"=mod4 :title|window: f.iconify "Up" =mod4 :title|window: f.fullzoom "F4" =m :title|window: f.delete # ----|| Icon Manager ||---- "d"=mod4 :all: f.showiconmgr # ----|| Applications` ||---- "t"=mod4 :all: !"xterm &" # ----|| Accessibility ||---- "m"=mod4 :all: f.function "xmag"