summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2021-03-11 01:38:21 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2021-03-11 01:40:45 +0100
commit1dac33d09fd8f63ce1de0a07d38e6c8470cd60e5 (patch)
tree8b300e558c65118dc4b9a6fce7d7283bb82afb46
parent482d934645a19e3b5001acfe50c83afb2158758d (diff)
downloaddotfiles-1dac33d09fd8f63ce1de0a07d38e6c8470cd60e5.tar.xz
twmrc: import the configuration file
-rw-r--r--twmrc239
-rwxr-xr-xxinitrc5
2 files changed, 243 insertions, 1 deletions
diff --git a/twmrc b/twmrc
new file mode 100644
index 0000000..3c0786b
--- /dev/null
+++ b/twmrc
@@ -0,0 +1,239 @@
+# -*- conf -*-
+#
+# anrxc's init file for twm 1.0.11 on VirtualBox GNU/Linux guest.
+#
+# This work is licensed under the Creative Commons Attribution
+# License: http://creativecommons.org/licenses/by/2.0/
+
+
+#
+# Base configuration
+# - if twm won't launch with UTF-8 locale ("unable to open fontset
+# <font set>") launch it with: LANG=C twm -f ${HOME}/.twmrc
+#
+NoDefaults
+NoGrabServer
+#RestartPreviousState
+DecorateTransients
+TitleFont "-xos4-terminus-*-*-*-*-*-120-*-*-*-*-*-*"
+ResizeFont "-xos4-terminus-*-*-*-*-*-120-*-*-*-*-*-*"
+MenuFont "-xos4-terminus-*-*-*-*-*-120-*-*-*-*-*-*"
+IconFont "-xos4-terminus-*-*-*-*-*-120-*-*-*-*-*-*"
+IconManagerFont "-xos4-terminus-*-*-*-*-*-120-*-*-*-*-*-*"
+#ClientBorderWidth
+DontMoveOff
+IconifyByUnmapping
+WarpUnmapped
+#RandomPlacement
+BorderWidth 1
+#ButtonIndent 2
+#NoHighlight
+#AutoRelativeResize
+##DefaultBackground
+#FramePadding 0
+##ForceIcons
+#NoRaiseOnMove
+#OpaqueMove
+MoveDelta3
+ShowIconManager
+#StartIconified { "someapp" }
+
+
+#
+# Apps with no decorations
+#
+NoTitle { "scratchpad" "TWM Icon Manager" }
+NoHighlight { "scratchpad" "TWM Icon Manager" }
+IconManagerDontShow { "scratchpad" "TWM Icon Manager" }
+
+
+#
+# Zenburn Theme
+#
+Color
+{
+ BorderColor "#6F6F6F"
+ DefaultBackground "#3F3F3F"
+ DefaultForeground "#DCDCCC"
+ TitleBackground "#1E2320"
+ TitleForeground "#F0DFAF"
+ MenuBackground "#3F3F3F"
+ MenuForeground "#DCDCCC"
+ MenuTitleBackground "#1E2320"
+ MenuTitleForeground "#F0DFAF"
+ IconBackground "#1E2320"
+ IconForeground "#F0DFAF"
+ IconBorderColor "#6F6F6F"
+ IconManagerBackground "#1E2320"
+ IconManagerForeground "#F0DFAF"
+}
+
+
+#
+# Mouse pointer theme
+# - corresponds to Xcursor pointers
+#
+# - if you want Windows 10 seamless integration
+# check https://www.gnome-look.org/p/1409346/
+Cursors
+{
+ Button "hand2"
+ Menu "left_ptr"
+ Title "left_ptr"
+ Frame "left_ptr"
+ Icon "left_ptr"
+ IconMgr "hand2"
+ Move "fleur"
+ Resize "plus"
+ Wait "watch"
+ Destroy "pirate"
+# Select "dot"
+}
+
+
+#
+# Icon theme
+#
+IconDirectory "~/.icons/twm/graham"
+LeftTitleButton "resize.xbm" = f.resize
+RightTitleButton "minimize.xbm" = f.iconify
+RightTitleButton "maximize.xbm" = f.fullzoom
+RightTitleButton "close.xbm" = f.delete
+
+
+#
+# Motion-based actions configuration
+#
+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 }
+
+
+#
+# Key and button binding configuration
+#
+Button1 = : root : f.menu "mainmenu"
+Button2 = : root : f.menu "defops"
+
+Button1 = c : window|icon : f.resize
+Button2 = c : window|icon : f.move
+Button3 = c : window|icon : f.iconify
+
+Button1 = s : window|icon : f.raise
+Button3 = s : window|icon : f.lower
+
+Button1 = : title : f.function "move-or-raise"
+Button2 = : title : f.raiselower
+Button3 = : title : f.function "move-or-lower"
+
+Button2 = c : title : f.delete
+Button3 = c : title : f.destroy
+
+Button1 = : icon : f.function "move-or-iconify"
+Button2 = : icon : f.iconify
+
+Button1 = : iconmgr : f.iconify
+Button2 = : iconmgr : f.iconify
+
+#
+# - Copy/paste
+# * VBoxClient clipboard malfunctions all the time, it's unreliable
+# with the cut buffer but even if using xclipboard to bridge the
+# buffers it gets stuck. This is a reliable workaround.
+#
+# - intercepting Ctrl-c doesn't feel right, use F1 for now
+#"c" = c : all : f.exec "xsel | xclip -selection clipboard"
+"F1" = : all : f.exec "xsel | xclip -selection clipboard"
+
+#
+# - Alt+Tab
+#
+WindowRing
+{
+ "Links"
+ "xterm"
+ "urxvt"
+ "screen"
+ "zsh"
+ "irssi"
+ "Alpine"
+ "scratchpad"
+}
+#
+"Tab" = m : all : f.warpring "next"
+"Tab" = m | s : all : f.warpring "prev"
+
+#
+# - Alt+Tilda
+# * scratchdrop aka. quaketerm
+#
+Function "launch-scratchpad"
+{
+ f.exec "LANG=en_US.UTF-8 xterm -T scratchpad -geometry 320x20+0+840 -e zsh &"
+ f.exec "xdotool mousemove 345 1000"
+ f.raise
+}
+"grave" = mod1 : all : f.function "launch-scratchpad"
+
+
+#
+# Menu(s) configuration
+#
+menu "mainmenu"
+{
+ "Applications" f.title
+ #
+ "Term Tiny" f.exec "LANG=en_US.UTF-8 xterm -geometry 100x20+0+0 -e zsh &"
+ "Term Small" f.exec "LANG=en_US.UTF-8 xterm -geometry 320x88+0+0 -e zsh &"
+ "Term Large" f.exec "LANG=en_US.UTF-8 xterm -geometry 426x118+0+0 -e zsh &"
+ "Term Scratch" f.exec "LANG=en_US.UTF-8 xterm -geometry 320x20+0+840 -T scratchpad -e zsh &"
+ "" f.nop
+ "Links" f.exec "LANG=en_US.UTF-8 xterm -geometry 320x88+0+0 -T Links -e links &"
+ "" f.nop
+ "Xcalc" f.exec "xcalc -rpn &"
+ "Xmodmap" f.exec "xmodmap ${HOME}/.Xmodmap && xmodmap ${HOME}/.Xmodmap"
+ "Xclipboard" f.exec "xclipboard &"
+ #"" f.nop
+ #"Submenu1" f.menu "submenu1_menu"
+ #"" f.nop
+ #"Submenu2" f.menu "submenu2_menu"
+ "" f.nop
+ "Logout" f.quit
+ "Restart" f.restart
+}
+
+#menu "submenu1_menu"
+#{
+# "Item1" f.exec "xterm -T 'Item1' -e /path/to/bin1 &"
+# "Item2" f.exec "xterm -T 'Item2' -e /path/to/bin2 &"
+#}
+
+#menu "submenu2_menu"
+#{
+# "Item1" f.exec "/path/to/bin1 &"
+# "Item2" f.exec "/path/to/bin2 &"
+#}
+
+menu "defops"
+{
+ "TWM" f.title
+ #
+ "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
+ "Kill" f.destroy
+ "Delete" f.delete
+ "" f.nop
+ "Refresh" f.refresh
+ "" f.nop
+ "Restart" f.restart
+ "Exit" f.quit
+}
diff --git a/xinitrc b/xinitrc
index 25e91d0..dbc6ac1 100755
--- a/xinitrc
+++ b/xinitrc
@@ -107,9 +107,12 @@ ogg123 -q "${HOME}/.local/share/gajim/sounds/voices/voice-system-activated.ogg"
# {{{ Window manager selection
case "$WM" in
- failsafe|twm)
+ failsafe)
exec twm
;;
+ twm)
+ LANG=C exec twm -f ${HOME}/.twmrc
+ ;;
fvwm)
exec fvwm2
;;