dotfiles

Config files for various applications.
git clone git://git.stephanospavlou.info/dotfiles.git
Log | Files | Refs

.twmrc (2090B)


      1 # steph's .twmrc
      2 # Last updated: Oct 24 2021
      3 
      4 #-------------------------------------------------------------#
      5 # Cursors													  #
      6 #-------------------------------------------------------------#
      7 Cursors
      8 {
      9 	Frame	"left_ptr"
     10 	Title	"left_ptr"
     11 	Icon	"left_ptr"
     12 	Menu	"left_ptr"
     13 	Button	"hand"
     14 }
     15 
     16 #-------------------------------------------------------------#
     17 # Actions													  #
     18 #-------------------------------------------------------------#
     19 MoveDelta 3
     20 Function "move-or-lower" { f.move f.deltastop f.lower }
     21 Function "move-or-raise" { f.move f.deltastop f.raise }
     22 Function "move-or-iconify" { f.move f.deltastop f.iconify }
     23 
     24 Button1 = : root : f.menu "main"
     25 Button1 = m : window|icon : f.function "move-or-lower"
     26 Button1 = : title : f.function "move-or-raise"
     27 Button1 = : icon : f.function "move-or-iconify"
     28 
     29 #-------------------------------------------------------------#
     30 # Menus settings											  #
     31 #-------------------------------------------------------------#
     32 menu "main"
     33 {
     34 	"twm"			f.title
     35 	"Web browsers"	f.menu "browsers"
     36 	"Terminals"		f.menu "terminals"
     37 	"Applications"	f.menu "applications"
     38 	""				f.nop
     39 	"Restart twm"	f.restart
     40 	"Quit twm"		f.quit
     41 	""				f.nop
     42 	"Reboot"		f.exec "sudo reboot"	
     43 	"Shutdown"		f.exec "sudo shutdown now"
     44 }
     45 
     46 menu "browsers"
     47 {
     48 	"firefox"		f.exec "firefox &"
     49 	"brave"			f.exec "brave &"
     50 }
     51 
     52 menu "terminals"
     53 {
     54 	"xterm"			f.exec "xterm &"
     55 	"alacritty"		f.exec "alacritty &"
     56 }
     57 
     58 menu "applications"
     59 {
     60 	"xclock"		f.exec "xclock -digital -brief -update 1 -twelve &"
     61 }
     62 
     63 #-------------------------------------------------------------#
     64 #	Title bar buttons										  #
     65 #-------------------------------------------------------------#
     66 NoDefaults
     67 
     68 RightTitleButton	"/home/drake/.twmresources/maximize.xbm" = f.fullzoom
     69 RightTitleButton	"/home/drake/.twmresources/minimize.xbm" = f.iconify
     70 RightTitleButton	"/home/drake/.twmresources/close.xbm" = f.delete
     71 
     72 TitleButtonBorderWidth 0
     73 
     74 #-------------------------------------------------------------#
     75 #	Colors, fonts and styles								  #
     76 #-------------------------------------------------------------#
     77