.twmrc | xclip

 #

# Default twm configuration file; needs to be kept small to conserve string

# space in systems whose compilers don't handle medium-sized strings.

#

# Sites should tailor this file, providing any extra title buttons, menus, etc.

# that may be appropriate for their environment.  For example, if most of the

# users were accustomed to uwm, the defaults could be set up not to decorate

# any windows and to use meta-keys.

#


NoGrabServer

RestartPreviousState

DecorateTransients

ShowIconManager

SortIconManager

IconifyByUnmapping

RandomPlacement

NoIconManagers


#NoTitle

#{

#"xdaliclock"

#}


TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"

ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"

MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"

IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"

IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"

#ClientBorderWidth


Color

{

    BorderColor "slategrey"

    DefaultBackground "rgb:2/a/9"

    DefaultForeground "gray85"

    TitleBackground "rgb:2/a/9"

    TitleForeground "gray85"

    MenuBackground "rgb:2/a/9"

    MenuForeground "gray85"

    MenuBorderColor "slategrey"

    MenuTitleBackground "gray70"

    MenuTitleForeground "rgb:2/a/9"

    IconBackground "rgb:2/a/9"

    IconForeground "gray85"

    IconBorderColor "gray85"

    IconManagerBackground "rgb:2/a/9"

    IconManagerForeground "gray85"

}


#

# Define some useful functions for motion-based actions.

#

MoveDelta 3

Function "move-or-lower" { f.move f.deltastop f.lower }

Function "move-or-raise" { f.move f.deltastop f.raise }

Function "move-or-iconify" { f.move f.deltastop f.iconify }


#

# Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish

#

Button1 = : root : f.menu "defops"


Button1 = m : window|icon : f.function "move-or-lower"

Button2 = m : window|icon : f.iconify

Button3 = m : window|icon : f.function "move-or-raise"


Button1 = : title : f.function "move-or-raise"

Button2 = : title : f.raiselower


Button1 = : icon : f.function "move-or-iconify"

Button2 = : icon : f.iconify


Button1 = : iconmgr : f.iconify

Button2 = : iconmgr : f.iconify


"F1" = : all : f.raiselower

"F2" = : all : f.iconify

"F3" = : all : f.exec "xrdb .Xdefaults"

"F4" = : all : f.refresh

"F5" = : all : f.restart

"F7" = : all : f.exec "rxvt -n skye -T skye -e ssh workmachine &"

"F8" = : all : f.exec "rxvt &"

"F9" = : all : f.warpto "emacs@"

"F9" = s : all : f.warpto "skye"

"F9" = c : all : f.warpto "Xpdf: notes/notes.pdf"

"F10" = : all : f.warpto "root"

"F10" = s : all : f.exec "rxvt -n root -T root -e su &"

"F11" = : all : f.warpto "lynx"

"F11" = s : all : f.warpto "galeon"

"F11" = c : all : f.exec "galeon -w http://www.google.com &"

"F11" = m : all : f.exec "firefox -new-window &"

"F12" =   : all : f.warpto "xclock"

"Print" =  : all : f.exec "flameshot gui &"


Button3 = : root : f.menu "TwmWindows"

#

# And a menus with the usual things

#

menu "defops"

{

"Twm" f.title

"..shells"       f.menu "shells"

"Xterm" f.exec "exec xterm &"

"Identify"      f.identify

"Source .twmrc"     f.twmrc

""                  f.beep

"Clock"             !"/usr/bin/xdaliclock  &"

"chromium"      f.exec "exec chromium &"

"Iconify" f.iconify

"Resize" f.resize

"Move" f.move

"Raise" f.raise

"Lower" f.lower

"" f.nop

"Focus" f.focus

"Unfocus" f.unfocus

"Show Iconmgr" f.showiconmgr

"Hide Iconmgr" f.hideiconmgr

"" f.nop

"" f.nop

"Kill" f.destroy

"Delete" f.delete

"" f.nop

"..Utilities"       f.menu "Utilities"

"..Preferences"     f.menu "Preferences"

"..Preferences1"    f.menu "Preferences1"

"Restart" f.restart

"Exit" f.quit

}



menu "shells" ("DarkSlateGray" : "gold1")

{

"shells"     ("DarkSlateGray" : "gold1") f.title

"uxterm" f.exec "uxterm -fg cyan -bg black -cr green &"

}


menu  "Preferences" {

"Preferences"   f.title

"Bell Loud"     !"xset b 80&"

"Bell Normal"   !"xset b on&"

"Bell Off"      !"xset b off&"

"Click Loud"    !"xset c 80&"

"Click Soft"    !"xset c on&"

"Click Off"     !"xset c off&"

"Lock On"       !"xset led on&"

"Lock Off"      !"xset led off&"

"Mouse Fast"    !"xset m 4 2&"

"Mouse Normal"  !"xset m 2 5&"

"Mouse Slow"    !"xset m 1 1&"

}



menu  "Preferences1" ("WhiteSmoke" : "HotPink" ) 

{

"Preferences"   ("DarkSlateGray" : "thistle") f.title

"Bell Loud"     ("DarkSlateGray" : "bisque1") !"xset b 80&"

"Bell Normal"   ("DarkSlateGray" : "bisque1") !"xset b on&"

"Bell Off"      ("DarkSlateGray" : "bisque1") !"xset b off&"

"Click Loud"    ("DarkSlateGray" : "azure1")  !"xset c 80&"

"Click Soft"    ("DarkSlateGray" : "azure1")  !"xset c on&"

"Click Off"     ("DarkSlateGray" : "azure1")  !"xset c off&"

"Lock On"                                     !"xset led on&"

"Lock Off"                                    !"xset led off&"

"Mouse Fast"    ("DarkSlateGray" : "gold1")   !"xset m 4 2&"

"Mouse Normal"  ("DarkSlateGray" : "gold1")   !"xset m 2 5&"

"Mouse Slow"    ("DarkSlateGray" : "gold1")   !"xset m 1 1&"

}



menu "Utilities" {

"Utilities"     f.title

""              f.beep

"Identify"      f.identify

"Source .twmrc" f.twmrc

""              f.beep

"Mail Box"      !"/usr/bin/X11/xbiff -display $DISPLAY&"

"Clock"         !"/usr/bin/X11/oclock -display $DISPLAY &"

"New Window"    !"/usr/bin/X11/xterm -ls -display $DISPLAY &"

"Phase of Moon" !"/usr/bin/X11/xphoon &"

""              f.beep

"news"          !"/usr/bin/X11/xhost news.mit.edu;

                    /usr/bin/X11/xterm -title news.mit.edu

                    -e rlogin news.mit.edu &"

"mintaka"       !"/usr/bin/X11/xhost mintaka.lcs.mit.edu;

                    /usr/bin/X11/xterm -title mintaka.lcs.mit.edu

                    -e rlogin mintaka.lcs.mit.edu &"

}


Comments

Popular posts from this blog

Uploading Firmware to "bricked" Netgear WNDR3800 from Linux with atftp after botched DD-WRT Firmware Upgrade.

sudo sh VMware-Remote-Console-12.0.4-21740317.x86_64.bundle -u vmware-vmrc

zabbix agent on gentoo