From 6a2e075cf65548ab5423c51b4b43064acf5578fb Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 11 Jan 2023 21:49:47 -0500 Subject: Update zeta-work screenlayout --- dot_screenlayout/executable_zeta-work.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 dot_screenlayout/executable_zeta-work.sh diff --git a/dot_screenlayout/executable_zeta-work.sh b/dot_screenlayout/executable_zeta-work.sh old mode 100755 new mode 100644 index b73a836..8666d94 --- a/dot_screenlayout/executable_zeta-work.sh +++ b/dot_screenlayout/executable_zeta-work.sh @@ -1,2 +1,2 @@ #!/bin/sh -xrandr --output eDP-1 --mode 1920x1080 --pos 1600x0 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --primary --mode 1600x1200 --pos 0x0 --rotate normal +xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output DP2 --off --output HDMI1 --off --output HDMI2 --mode 1920x1200 --pos 1920x0 --rotate normal --output VIRTUAL1 --off -- cgit v1.2.3 From a68473b40908f01301d9af6216dc30e68d8c789c Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 11 Jan 2023 22:03:18 -0500 Subject: install multitail on openbsd --- packages-openbsd | 1 + 1 file changed, 1 insertion(+) diff --git a/packages-openbsd b/packages-openbsd index 1618aa3..c686394 100644 --- a/packages-openbsd +++ b/packages-openbsd @@ -23,6 +23,7 @@ keychain-- latexmk-- lbdb-- mplayer-- +multitail-- mupdf-- muttprint-- ncmpcpp-- -- cgit v1.2.3 From 00b1095f20e1f2e6732f06ba14a62cd2df868d0d Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 11 Jan 2023 22:03:54 -0500 Subject: xterm on openbsd, and default to work layout --- executable_dot_xinitrc.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executable_dot_xinitrc.tmpl b/executable_dot_xinitrc.tmpl index dd5d8b5..ca3bc62 100644 --- a/executable_dot_xinitrc.tmpl +++ b/executable_dot_xinitrc.tmpl @@ -35,7 +35,7 @@ case `uname` in [ -d /usr/local/share/fonts/spleen ] && xset +fp /usr/local/share/fonts/spleen/ redshift & ${HOME}/bin/icd - urxvtd -q -f -o & + ${HOME}/.screenlayout/{{ .chezmoi.hostname }}-work.sh exec cwm ;; -- cgit v1.2.3 From 3159350231b2986f91ae0ba93dc84d44b3fe2d8c Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 13 Jan 2023 15:22:16 -0500 Subject: template-ify xmonad config --- dot_xmonad/xmonad.hs | 423 ---------------------------------------------- dot_xmonad/xmonad.hs.tmpl | 423 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 423 insertions(+), 423 deletions(-) delete mode 100644 dot_xmonad/xmonad.hs create mode 100644 dot_xmonad/xmonad.hs.tmpl diff --git a/dot_xmonad/xmonad.hs b/dot_xmonad/xmonad.hs deleted file mode 100644 index ed227f6..0000000 --- a/dot_xmonad/xmonad.hs +++ /dev/null @@ -1,423 +0,0 @@ -{-# OPTIONS_GHC -W -fwarn-unused-imports -fno-warn-missing-signatures -O2 #-} -import Control.Monad (liftM2) -import Data.Map (fromList, toList, union) -import System.Environment (getEnv, setEnv) -import System.IO (hPutStrLn) -import XMonad -import XMonad.Actions.CopyWindow (copy, kill1, killAllOtherCopies) -import XMonad.Actions.CycleWS (moveTo, nextWS, emptyWS, WSType(Not) - , prevWS, shiftToNext, shiftToPrev, toggleWS) -import XMonad.Actions.DynamicWorkspaces (addWorkspacePrompt, removeWorkspace - , renameWorkspace, selectWorkspace - , withWorkspace) -import XMonad.Actions.GridSelect (HasColorizer, GSConfig, buildDefaultGSConfig - , defaultColorizer, goToSelected - , gridselectWorkspace, gs_navigate, navNSearch) -import XMonad.Actions.Submap (submap) -import XMonad.Hooks.DynamicLog (dzenColor, dynamicLogWithPP - , ppCurrent, ppVisible, ppSep, ppHidden - , ppUrgent, ppTitle, ppExtras - , ppOrder, ppOutput, trim, wrap) -import XMonad.Hooks.ManageDocks (avoidStruts, docks, docksEventHook - , ToggleStruts(ToggleStruts)) -import XMonad.Hooks.ManageHelpers (isFullscreen, doFullFloat) -import XMonad.Hooks.UrgencyHook (focusUrgent) -import XMonad.Layout.Accordion (Accordion(Accordion)) -import XMonad.Layout.Dishes (Dishes(Dishes)) -import XMonad.Layout.FixedColumn (FixedColumn(FixedColumn)) -import XMonad.Layout.Grid (Grid(Grid)) -import XMonad.Layout.LimitWindows (limitWindows) -import XMonad.Layout.Magnifier (magnifiercz') -import XMonad.Layout.MultiToggle (mkToggle, single, Toggle(Toggle)) -import XMonad.Layout.MultiToggle.Instances (StdTransformers(MIRROR)) -import XMonad.Layout.NoBorders (smartBorders) -import XMonad.Layout.NoFrillsDecoration (activeBorderColor, activeColor - , activeTextColor, decoHeight, fontName - , inactiveBorderColor, inactiveColor - , inactiveTextColor, urgentColor - , urgentTextColor) -import XMonad.Layout.PerWorkspace (onWorkspace) -import XMonad.Layout.ResizableTile (ResizableTall(ResizableTall)) -import XMonad.Layout.Tabbed (shrinkText, tabbed) -import XMonad.Layout.ThreeColumns (ThreeCol(ThreeColMid)) -import XMonad.Layout.ToggleLayouts (toggleLayouts, ToggleLayout(ToggleLayout)) -import XMonad.Layout.WindowNavigation (Navigate(Move)) -import XMonad.Prompt (fgColor, bgColor, XPPosition(Bottom), height, font - , position, promptBorderWidth) -import XMonad.Prompt.Shell (shellPrompt) -import XMonad.Util.Loggers (date, logCmd) -import XMonad.Util.Run (spawnPipe) -import XMonad.Util.Themes (theme, themeAuthor, themeDescription, ThemeInfo(TI) - , themeName) -import XMonad.Util.Types (Direction1D(Next, Prev), Direction2D(L, R, U, D)) -import XMonad.StackSet (shiftMaster, greedyView, shift) - ---------------- --- BINDINGS ---------------- - -myMod = mod4Mask -- windows key -myCtrl = controlMask -myTerminal = "urxvtc" - --- Mouse bindings: default actions bound to mouse events -myMouseBindings (XConfig {XMonad.modMask = modMask}) = fromList $ - -- mod-button1 %! Set the window to floating mode and move by dragging - [ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w - >> windows shiftMaster)) - -- mod-button2 %! Raise the window to the top of the stack - , ((modMask, button2), (\w -> focus w >> windows shiftMaster)) - -- mod-button3 %! Set the window to floating mode and resize by dragging - , ((modMask, button3), (\w -> focus w >> mouseResizeWindow w - >> windows shiftMaster)) - -- you may also bind events to the mouse scroll wheel (button4 and button5) - , ((modMask, button5), (\_ -> moveTo Next (Not emptyWS))) - , ((modMask, button4), (\_ -> moveTo Prev (Not emptyWS))) - -- scroll wheel click, bottom right corner on trackball - , ((modMask, 6), (\w -> focus w >> kill)) - , ((modMask, 8), (\w -> focus w >> kill)) - ] - -mykeys _ = [ - ((myMod, xK_Left), prevWS) - , ((myMod, xK_Right), nextWS) - , ((myMod .|. shiftMask, xK_Left), shiftToPrev >> prevWS) - , ((myMod .|. shiftMask, xK_Right), shiftToNext >> nextWS) - , ((myMod, xK_a), toggleWS) - , ((myMod, xK_z), shellPrompt myXPConfig) - , ((myMod, xK_g), goToSelected myGSConfig) - , ((myMod .|. shiftMask, xK_m), sendMessage $ Toggle MIRROR) - , ((myMod .|. shiftMask, xK_g), gridselectWorkspace myGSConfig greedyView) - , ((myMod, xK_x), sendMessage ToggleStruts) - , ((myMod, xK_F1), spawn "${HOME}/.screenlayout/`hostname`-work.sh") - , ((myMod, xK_F2), spawn "${HOME}/.screenlayout/`hostname`-home.sh") - , ((myMod, xK_F3), spawn "${HOME}/.screenlayout/`hostname`-solo.sh") - , ((myMod, xK_F4), spawn "sleep 0.5 && xset dpms force suspend") - , ((myMod, xK_F5), spawn "sleep 0.5 && xset dpms force off") - , ((myMod, xK_F6), spawn "sleep 0.5 && ${HOME}/bin/icd && ${HOME}/bin/mice.sh") - , ((myMod, xK_Up), spawn "sleep 0.5 && b u") - , ((myMod, xK_Down), spawn "sleep 0.5 && b d") - , ((myMod, xK_l), spawn "slock xset dpms force off") - , ((myMod .|. myCtrl .|. shiftMask, xK_Right), sendMessage $ Move R) - , ((myMod .|. myCtrl .|. shiftMask, xK_Left), sendMessage $ Move L) - , ((myMod .|. myCtrl .|. shiftMask, xK_Up), sendMessage $ Move U) - , ((myMod .|. myCtrl .|. shiftMask, xK_Down), sendMessage $ Move D) - , ((myMod, xK_BackSpace), focusUrgent) - , ((myMod, xK_s), sendMessage $ ToggleLayout) - , ((myMod, xK_b), submap . fromList $ - [ ((m, k), f) - | m <- [0, myMod] - , (k, f) <- [ (xK_a, addWorkspacePrompt myXPConfig) - , (xK_c, withWorkspace myXPConfig - (windows . copy)) - , (xK_d, kill1) - , (xK_k, removeWorkspace) - , (xK_m, withWorkspace myXPConfig - (windows . shift)) - , (xK_o, killAllOtherCopies) - , (xK_r, renameWorkspace myXPConfig) - , (xK_s, selectWorkspace myXPConfig) - ] - ] - )] - -dvorakify kl = fromList $ map (\((m, k), d) -> ((m, dk k), d)) $ toList kl - where - dk :: KeySym -> KeySym - dk k | k == xK_grave = xK_dollar - | k == xK_asciitilde = xK_asciitilde - - | k == xK_1 = xK_ampersand - | k == xK_exclam = xK_percent - - | k == xK_2 = xK_bracketleft - | k == xK_at = xK_7 - - | k == xK_3 = xK_braceleft - | k == xK_numbersign = xK_5 - - | k == xK_4 = xK_braceright - | k == xK_dollar = xK_3 - - | k == xK_5 = xK_parenleft - | k == xK_percent = xK_1 - - | k == xK_6 = xK_equal - | k == xK_asciicircum = xK_9 - - | k == xK_7 = xK_asterisk - | k == xK_ampersand = xK_0 - - | k == xK_8 = xK_parenright - | k == xK_asterisk = xK_2 - - | k == xK_9 = xK_plus - | k == xK_parenleft = xK_4 - - | k == xK_0 = xK_bracketright - | k == xK_parenright = xK_6 - - | k == xK_minus = xK_exclam - | k == xK_underscore = xK_8 - - | k == xK_equal = xK_numbersign - | k == xK_plus = xK_grave - - | k == xK_q = xK_semicolon -- upper row, left side - | k == xK_Q = xK_colon - - | k == xK_w = xK_comma - | k == xK_W = xK_less - - | k == xK_e = xK_period - | k == xK_E = xK_greater - - | k == xK_bracketleft = xK_slash -- upper row, top right - | k == xK_braceleft = xK_question - - | k == xK_bracketright = xK_at - | k == xK_braceright = xK_asciicircum - - | k == xK_R = xK_P - | k == xK_T = xK_Y - | k == xK_Y = xK_F - | k == xK_U = xK_G - | k == xK_I = xK_C - | k == xK_O = xK_R - | k == xK_P = xK_L - | k == xK_A = xK_A - | k == xK_S = xK_O - | k == xK_D = xK_E - | k == xK_F = xK_U - | k == xK_G = xK_I - | k == xK_H = xK_D - | k == xK_J = xK_H - | k == xK_K = xK_T - | k == xK_L = xK_N - | k == xK_Z = xK_quotedbl - | k == xK_X = xK_Q - | k == xK_C = xK_J - | k == xK_V = xK_K - | k == xK_B = xK_X - | k == xK_N = xK_B - | k == xK_M = xK_M - - | k == xK_r = xK_p - | k == xK_t = xK_y - | k == xK_y = xK_f - | k == xK_u = xK_g - | k == xK_i = xK_c - | k == xK_o = xK_r - | k == xK_p = xK_l - | k == xK_a = xK_a - | k == xK_s = xK_o - | k == xK_d = xK_e - | k == xK_f = xK_u - | k == xK_g = xK_i - | k == xK_h = xK_d - | k == xK_j = xK_h - | k == xK_k = xK_t - | k == xK_l = xK_n - | k == xK_z = xK_apostrophe - | k == xK_x = xK_q - | k == xK_c = xK_j - | k == xK_v = xK_k - | k == xK_b = xK_x - | k == xK_n = xK_b - | k == xK_m = xK_m - - | k == xK_comma = xK_w -- bottom right - | k == xK_less = xK_W - - | k == xK_period = xK_v - | k == xK_greater = xK_V - - | k == xK_slash = xK_z - | k == xK_question = xK_Z - - | otherwise = k - -------------- --- THEMES -------------- - --- Color names are easier to remember: -colorBlack = "#000000" -colorOrange = "#ff7701" --- colorDarkGray = "#171717" --- colorPink = "#e3008d" -colorGreen = "#00aa4a" -colorBlue = "#008dd5" -colorYellow = "#fee100" -colorWhite = "#cfbfad" --- colorBrightGreen = "#00FF00" -colorRed = "#FF0000" - -xftFont = "Inconsolata:size=8" - -newTheme :: ThemeInfo -newTheme = TI "" "" "" def - -rakTheme :: ThemeInfo -rakTheme = - newTheme { themeName = "rakTheme" - , themeAuthor = "Ryan Kavanagh" - , themeDescription = "Small decorations: orange and blue theme" - , theme = def { activeColor = colorBlack - , inactiveColor = colorBlack - , activeBorderColor = colorOrange - , inactiveBorderColor = colorBlack - , activeTextColor = colorOrange - , inactiveTextColor = colorBlue - , urgentColor = colorRed - , urgentTextColor = colorYellow - , decoHeight = 13 - , fontName = "Inconsolata" - } - } - -myTheme = theme rakTheme - -myXPConfig = def { - fgColor = "white" - , bgColor = "black" - , promptBorderWidth = 0 - , position = Bottom - , height = 15 - , font = "xft:" ++ xftFont - } - ------------------ --- LAYOUTS ------------------ - --- My workspaces - -myWorkspaces = ["term", "web", "chatter", "reading", "gnus", "music", "LaTeX", "work", "radio"] - ++ (map show [9..20]) - --- smartBorders removes borders when there's no ambiguity -myLayout = mkToggle (single MIRROR) (smartBorders $ toggleLayouts Full - $ avoidStruts perWS) - where - -- Per workspace layout selection. - perWS = onWorkspace "term" (myTall ||| customRyan) $ - onWorkspace "web" (tabbed shrinkText myTheme - ||| mySplit ||| myTCM) $ - onWorkspace "LaTeX" latexFirst $ - customRyan - - -- Each of these allows toggling through a set of layouts - -- in the same logical order, but from a different starting point. - customRyan = myGrid ||| myDish ||| Accordion ||| myCode - ||| myFixed ||| myTall - latexFirst = myFixed ||| customRyan - - -- This is a three column mode, with the master in the middle. - myTCM = ThreeColMid 1 (3/100) (1/2) - -- This is a tall-like layout with magnification. - -- The master window is fixed at 80 columns wide, making this good - -- for coding. Limited to 3 visible windows at a time to ensure all - -- are a good size. - myCode = limitWindows 3 $ magnifiercz' 1.4 $ FixedColumn 1 20 80 10 - - -- Stack with one large master window. - -- It's easy to overflow a stack to the point that windows are too - -- small, so only show first 5. - myDish = limitWindows 5 $ Dishes nmaster ratio - where - -- The default number of windows in the master pane - nmaster = 1 - -- Default proportion of screen occupied by other panes - ratio = 1/5 - - -- Split screen, optimized for web browsing. - mySplit = magnifiercz' 1.4 $ Tall nmaster delta ratio - where - -- The default number of windows in the master pane - nmaster = 1 - -- Percent of screen to increment by when resizing panes - delta = 3/100 - -- Default proportion of screen occupied by master pane - ratio = 60/100 - - -- Standard grid. - myGrid = Grid - - myFixed = FixedColumn 1 20 80 10 - - myTall = ResizableTall nmaster delta ratio [50/100] - where - nmaster = 1 - delta = 3/100 - ratio = 1/2 - -------------------- --- STATUS BAR -------------------- - -statusBarCmd = "dzen2" ++ - " -dock" ++ - " -bg '" ++ colorBlack ++ "'" ++ - " -fg '" ++ colorBlue ++ "'" ++ - " -sa c" ++ - " -fn '" ++ xftFont ++ "'" ++ - " -w 925 -x 0 -y 0 -ta l -e ''" - --- dynamiclog pretty printer for dzen -mPP h = def - { ppCurrent = dzenColor colorOrange colorBlack - , ppVisible = dzenColor colorGreen colorBlack - , ppHidden = dzenColor colorBlue colorBlack - , ppUrgent = dzenColor colorRed colorBlack . wrap "[" "]" - , ppSep = dzenColor "grey60" colorBlack " ^r(1x8) " - , ppTitle = dzenColor colorWhite colorBlack . trim - , ppOrder = \(ws:l:t:d:b:o) -> [b,d,ws,l,t] ++ o - , ppExtras = [date "%H:%M:%S", batteryCheck] - , ppOutput = hPutStrLn h - } - where - batteryCheck = logCmd ("${HOME}/.dzen/battery.sh") - ---------------------- --- GENERAL CONFIG --------------------- - -myGSConfig :: HasColorizer a => GSConfig a -myGSConfig = (buildDefaultGSConfig defaultColorizer) { gs_navigate = navNSearch } - -myManageHook = composeAll . concat $ - [ [ className =? c --> doFloat | c <- floats] - , [ className =? c --> viewShift "web" | c <- web] - , [ className =? c --> viewShift "chatter" | c <- chatter] - , [ className =? c --> viewShift "music" | c <- music] - , [ isFullscreen --> doFullFloat ] - ] - where - viewShift = doF . liftM2 (.) greedyView shift - floats = ["MPlayer"] - web = ["Firefox", "Firefox-esr", "Navigator", "google-chrome", "Google-chrome"] - chatter = ["slack", "Slack"] - music = ["pavucontrol", "Pavucontrol"] - -myConfig dzenPipe = docks $ def { - workspaces = myWorkspaces - , modMask = myMod - , terminal = myTerminal - , normalBorderColor = inactiveBorderColor myTheme - , focusedBorderColor = activeBorderColor myTheme - , borderWidth = 1 - , layoutHook = myLayout - , manageHook = manageHook def <+> myManageHook - , mouseBindings = myMouseBindings - , keys = \x -> (fromList $ mykeys x) - `union` dvorakify (keys def x) - , logHook = dynamicLogWithPP $ mPP dzenPipe - } - -main = do - dzenPipe <- spawnPipe statusBarCmd - path <- getEnv "PATH" - home <- getEnv "HOME" - setEnv "PATH" (home ++ "/bin:" ++ path) - xmonad $ myConfig dzenPipe diff --git a/dot_xmonad/xmonad.hs.tmpl b/dot_xmonad/xmonad.hs.tmpl new file mode 100644 index 0000000..ac70ae8 --- /dev/null +++ b/dot_xmonad/xmonad.hs.tmpl @@ -0,0 +1,423 @@ +{-# OPTIONS_GHC -W -fwarn-unused-imports -fno-warn-missing-signatures -O2 #-} +import Control.Monad (liftM2) +import Data.Map (fromList, toList, union) +import System.Environment (getEnv, setEnv) +import System.IO (hPutStrLn) +import XMonad +import XMonad.Actions.CopyWindow (copy, kill1, killAllOtherCopies) +import XMonad.Actions.CycleWS (moveTo, nextWS, emptyWS, WSType(Not) + , prevWS, shiftToNext, shiftToPrev, toggleWS) +import XMonad.Actions.DynamicWorkspaces (addWorkspacePrompt, removeWorkspace + , renameWorkspace, selectWorkspace + , withWorkspace) +import XMonad.Actions.GridSelect (HasColorizer, GSConfig, buildDefaultGSConfig + , defaultColorizer, goToSelected + , gridselectWorkspace, gs_navigate, navNSearch) +import XMonad.Actions.Submap (submap) +import XMonad.Hooks.DynamicLog (dzenColor, dynamicLogWithPP + , ppCurrent, ppVisible, ppSep, ppHidden + , ppUrgent, ppTitle, ppExtras + , ppOrder, ppOutput, trim, wrap) +import XMonad.Hooks.ManageDocks (avoidStruts, docks, docksEventHook + , ToggleStruts(ToggleStruts)) +import XMonad.Hooks.ManageHelpers (isFullscreen, doFullFloat) +import XMonad.Hooks.UrgencyHook (focusUrgent) +import XMonad.Layout.Accordion (Accordion(Accordion)) +import XMonad.Layout.Dishes (Dishes(Dishes)) +import XMonad.Layout.FixedColumn (FixedColumn(FixedColumn)) +import XMonad.Layout.Grid (Grid(Grid)) +import XMonad.Layout.LimitWindows (limitWindows) +import XMonad.Layout.Magnifier (magnifiercz') +import XMonad.Layout.MultiToggle (mkToggle, single, Toggle(Toggle)) +import XMonad.Layout.MultiToggle.Instances (StdTransformers(MIRROR)) +import XMonad.Layout.NoBorders (smartBorders) +import XMonad.Layout.NoFrillsDecoration (activeBorderColor, activeColor + , activeTextColor, decoHeight, fontName + , inactiveBorderColor, inactiveColor + , inactiveTextColor, urgentColor + , urgentTextColor) +import XMonad.Layout.PerWorkspace (onWorkspace) +import XMonad.Layout.ResizableTile (ResizableTall(ResizableTall)) +import XMonad.Layout.Tabbed (shrinkText, tabbed) +import XMonad.Layout.ThreeColumns (ThreeCol(ThreeColMid)) +import XMonad.Layout.ToggleLayouts (toggleLayouts, ToggleLayout(ToggleLayout)) +import XMonad.Layout.WindowNavigation (Navigate(Move)) +import XMonad.Prompt (fgColor, bgColor, XPPosition(Bottom), height, font + , position, promptBorderWidth) +import XMonad.Prompt.Shell (shellPrompt) +import XMonad.Util.Loggers (date, logCmd) +import XMonad.Util.Run (spawnPipe) +import XMonad.Util.Themes (theme, themeAuthor, themeDescription, ThemeInfo(TI) + , themeName) +import XMonad.Util.Types (Direction1D(Next, Prev), Direction2D(L, R, U, D)) +import XMonad.StackSet (shiftMaster, greedyView, shift) + +--------------- +-- BINDINGS +--------------- + +myMod = mod4Mask -- windows key +myCtrl = controlMask +myTerminal = {{ if (eq .chezmoi.os "linux") }}"urxvtc"{{ else }}"xterm"{{ end }} + +-- Mouse bindings: default actions bound to mouse events +myMouseBindings (XConfig {XMonad.modMask = modMask}) = fromList $ + -- mod-button1 %! Set the window to floating mode and move by dragging + [ ((modMask, button1), (\w -> focus w >> mouseMoveWindow w + >> windows shiftMaster)) + -- mod-button2 %! Raise the window to the top of the stack + , ((modMask, button2), (\w -> focus w >> windows shiftMaster)) + -- mod-button3 %! Set the window to floating mode and resize by dragging + , ((modMask, button3), (\w -> focus w >> mouseResizeWindow w + >> windows shiftMaster)) + -- you may also bind events to the mouse scroll wheel (button4 and button5) + , ((modMask, button5), (\_ -> moveTo Next (Not emptyWS))) + , ((modMask, button4), (\_ -> moveTo Prev (Not emptyWS))) + -- scroll wheel click, bottom right corner on trackball + , ((modMask, 6), (\w -> focus w >> kill)) + , ((modMask, 8), (\w -> focus w >> kill)) + ] + +mykeys _ = [ + ((myMod, xK_Left), prevWS) + , ((myMod, xK_Right), nextWS) + , ((myMod .|. shiftMask, xK_Left), shiftToPrev >> prevWS) + , ((myMod .|. shiftMask, xK_Right), shiftToNext >> nextWS) + , ((myMod, xK_a), toggleWS) + , ((myMod, xK_z), shellPrompt myXPConfig) + , ((myMod, xK_g), goToSelected myGSConfig) + , ((myMod .|. shiftMask, xK_m), sendMessage $ Toggle MIRROR) + , ((myMod .|. shiftMask, xK_g), gridselectWorkspace myGSConfig greedyView) + , ((myMod, xK_x), sendMessage ToggleStruts) + , ((myMod, xK_F1), spawn "${HOME}/.screenlayout/`hostname`-work.sh") + , ((myMod, xK_F2), spawn "${HOME}/.screenlayout/`hostname`-home.sh") + , ((myMod, xK_F3), spawn "${HOME}/.screenlayout/`hostname`-solo.sh") + , ((myMod, xK_F4), spawn "sleep 0.5 && xset dpms force suspend") + , ((myMod, xK_F5), spawn "sleep 0.5 && xset dpms force off") + , ((myMod, xK_F6), spawn "sleep 0.5 && ${HOME}/bin/icd && ${HOME}/bin/mice.sh") + , ((myMod, xK_Up), spawn "sleep 0.5 && b u") + , ((myMod, xK_Down), spawn "sleep 0.5 && b d") + , ((myMod, xK_l), spawn {{ if (eq .chezmoi.os "linux") }}"slock xset dpms force off"{{ else }}"xlock"{{ end }}) + , ((myMod .|. myCtrl .|. shiftMask, xK_Right), sendMessage $ Move R) + , ((myMod .|. myCtrl .|. shiftMask, xK_Left), sendMessage $ Move L) + , ((myMod .|. myCtrl .|. shiftMask, xK_Up), sendMessage $ Move U) + , ((myMod .|. myCtrl .|. shiftMask, xK_Down), sendMessage $ Move D) + , ((myMod, xK_BackSpace), focusUrgent) + , ((myMod, xK_s), sendMessage $ ToggleLayout) + , ((myMod, xK_b), submap . fromList $ + [ ((m, k), f) + | m <- [0, myMod] + , (k, f) <- [ (xK_a, addWorkspacePrompt myXPConfig) + , (xK_c, withWorkspace myXPConfig + (windows . copy)) + , (xK_d, kill1) + , (xK_k, removeWorkspace) + , (xK_m, withWorkspace myXPConfig + (windows . shift)) + , (xK_o, killAllOtherCopies) + , (xK_r, renameWorkspace myXPConfig) + , (xK_s, selectWorkspace myXPConfig) + ] + ] + )] + +dvorakify kl = fromList $ map (\((m, k), d) -> ((m, dk k), d)) $ toList kl + where + dk :: KeySym -> KeySym + dk k | k == xK_grave = xK_dollar + | k == xK_asciitilde = xK_asciitilde + + | k == xK_1 = xK_ampersand + | k == xK_exclam = xK_percent + + | k == xK_2 = xK_bracketleft + | k == xK_at = xK_7 + + | k == xK_3 = xK_braceleft + | k == xK_numbersign = xK_5 + + | k == xK_4 = xK_braceright + | k == xK_dollar = xK_3 + + | k == xK_5 = xK_parenleft + | k == xK_percent = xK_1 + + | k == xK_6 = xK_equal + | k == xK_asciicircum = xK_9 + + | k == xK_7 = xK_asterisk + | k == xK_ampersand = xK_0 + + | k == xK_8 = xK_parenright + | k == xK_asterisk = xK_2 + + | k == xK_9 = xK_plus + | k == xK_parenleft = xK_4 + + | k == xK_0 = xK_bracketright + | k == xK_parenright = xK_6 + + | k == xK_minus = xK_exclam + | k == xK_underscore = xK_8 + + | k == xK_equal = xK_numbersign + | k == xK_plus = xK_grave + + | k == xK_q = xK_semicolon -- upper row, left side + | k == xK_Q = xK_colon + + | k == xK_w = xK_comma + | k == xK_W = xK_less + + | k == xK_e = xK_period + | k == xK_E = xK_greater + + | k == xK_bracketleft = xK_slash -- upper row, top right + | k == xK_braceleft = xK_question + + | k == xK_bracketright = xK_at + | k == xK_braceright = xK_asciicircum + + | k == xK_R = xK_P + | k == xK_T = xK_Y + | k == xK_Y = xK_F + | k == xK_U = xK_G + | k == xK_I = xK_C + | k == xK_O = xK_R + | k == xK_P = xK_L + | k == xK_A = xK_A + | k == xK_S = xK_O + | k == xK_D = xK_E + | k == xK_F = xK_U + | k == xK_G = xK_I + | k == xK_H = xK_D + | k == xK_J = xK_H + | k == xK_K = xK_T + | k == xK_L = xK_N + | k == xK_Z = xK_quotedbl + | k == xK_X = xK_Q + | k == xK_C = xK_J + | k == xK_V = xK_K + | k == xK_B = xK_X + | k == xK_N = xK_B + | k == xK_M = xK_M + + | k == xK_r = xK_p + | k == xK_t = xK_y + | k == xK_y = xK_f + | k == xK_u = xK_g + | k == xK_i = xK_c + | k == xK_o = xK_r + | k == xK_p = xK_l + | k == xK_a = xK_a + | k == xK_s = xK_o + | k == xK_d = xK_e + | k == xK_f = xK_u + | k == xK_g = xK_i + | k == xK_h = xK_d + | k == xK_j = xK_h + | k == xK_k = xK_t + | k == xK_l = xK_n + | k == xK_z = xK_apostrophe + | k == xK_x = xK_q + | k == xK_c = xK_j + | k == xK_v = xK_k + | k == xK_b = xK_x + | k == xK_n = xK_b + | k == xK_m = xK_m + + | k == xK_comma = xK_w -- bottom right + | k == xK_less = xK_W + + | k == xK_period = xK_v + | k == xK_greater = xK_V + + | k == xK_slash = xK_z + | k == xK_question = xK_Z + + | otherwise = k + +------------- +-- THEMES +------------- + +-- Color names are easier to remember: +colorBlack = "#000000" +colorOrange = "#ff7701" +-- colorDarkGray = "#171717" +-- colorPink = "#e3008d" +colorGreen = "#00aa4a" +colorBlue = "#008dd5" +colorYellow = "#fee100" +colorWhite = "#cfbfad" +-- colorBrightGreen = "#00FF00" +colorRed = "#FF0000" + +xftFont = "Inconsolata:size=8" + +newTheme :: ThemeInfo +newTheme = TI "" "" "" def + +rakTheme :: ThemeInfo +rakTheme = + newTheme { themeName = "rakTheme" + , themeAuthor = "Ryan Kavanagh" + , themeDescription = "Small decorations: orange and blue theme" + , theme = def { activeColor = colorBlack + , inactiveColor = colorBlack + , activeBorderColor = colorOrange + , inactiveBorderColor = colorBlack + , activeTextColor = colorOrange + , inactiveTextColor = colorBlue + , urgentColor = colorRed + , urgentTextColor = colorYellow + , decoHeight = 13 + , fontName = "Inconsolata" + } + } + +myTheme = theme rakTheme + +myXPConfig = def { + fgColor = "white" + , bgColor = "black" + , promptBorderWidth = 0 + , position = Bottom + , height = 15 + , font = "xft:" ++ xftFont + } + +----------------- +-- LAYOUTS +----------------- + +-- My workspaces + +myWorkspaces = ["term", "web", "chatter", "reading", "gnus", "music", "LaTeX", "work", "radio"] + ++ (map show [9..20]) + +-- smartBorders removes borders when there's no ambiguity +myLayout = mkToggle (single MIRROR) (smartBorders $ toggleLayouts Full + $ avoidStruts perWS) + where + -- Per workspace layout selection. + perWS = onWorkspace "term" (myTall ||| customRyan) $ + onWorkspace "web" (tabbed shrinkText myTheme + ||| mySplit ||| myTCM) $ + onWorkspace "LaTeX" latexFirst $ + customRyan + + -- Each of these allows toggling through a set of layouts + -- in the same logical order, but from a different starting point. + customRyan = myGrid ||| myDish ||| Accordion ||| myCode + ||| myFixed ||| myTall + latexFirst = myFixed ||| customRyan + + -- This is a three column mode, with the master in the middle. + myTCM = ThreeColMid 1 (3/100) (1/2) + -- This is a tall-like layout with magnification. + -- The master window is fixed at 80 columns wide, making this good + -- for coding. Limited to 3 visible windows at a time to ensure all + -- are a good size. + myCode = limitWindows 3 $ magnifiercz' 1.4 $ FixedColumn 1 20 80 10 + + -- Stack with one large master window. + -- It's easy to overflow a stack to the point that windows are too + -- small, so only show first 5. + myDish = limitWindows 5 $ Dishes nmaster ratio + where + -- The default number of windows in the master pane + nmaster = 1 + -- Default proportion of screen occupied by other panes + ratio = 1/5 + + -- Split screen, optimized for web browsing. + mySplit = magnifiercz' 1.4 $ Tall nmaster delta ratio + where + -- The default number of windows in the master pane + nmaster = 1 + -- Percent of screen to increment by when resizing panes + delta = 3/100 + -- Default proportion of screen occupied by master pane + ratio = 60/100 + + -- Standard grid. + myGrid = Grid + + myFixed = FixedColumn 1 20 80 10 + + myTall = ResizableTall nmaster delta ratio [50/100] + where + nmaster = 1 + delta = 3/100 + ratio = 1/2 + +------------------- +-- STATUS BAR +------------------- + +statusBarCmd = "dzen2" ++ + " -dock" ++ + " -bg '" ++ colorBlack ++ "'" ++ + " -fg '" ++ colorBlue ++ "'" ++ + " -sa c" ++ + " -fn '" ++ xftFont ++ "'" ++ + " -w 925 -x 0 -y 0 -ta l -e ''" + +-- dynamiclog pretty printer for dzen +mPP h = def + { ppCurrent = dzenColor colorOrange colorBlack + , ppVisible = dzenColor colorGreen colorBlack + , ppHidden = dzenColor colorBlue colorBlack + , ppUrgent = dzenColor colorRed colorBlack . wrap "[" "]" + , ppSep = dzenColor "grey60" colorBlack " ^r(1x8) " + , ppTitle = dzenColor colorWhite colorBlack . trim + , ppOrder = \(ws:l:t:d:b:o) -> [b,d,ws,l,t] ++ o + , ppExtras = [date "%H:%M:%S", batteryCheck] + , ppOutput = hPutStrLn h + } + where + batteryCheck = logCmd ("${HOME}/.dzen/battery.sh") + +--------------------- +-- GENERAL CONFIG +-------------------- + +myGSConfig :: HasColorizer a => GSConfig a +myGSConfig = (buildDefaultGSConfig defaultColorizer) { gs_navigate = navNSearch } + +myManageHook = composeAll . concat $ + [ [ className =? c --> doFloat | c <- floats] + , [ className =? c --> viewShift "web" | c <- web] + , [ className =? c --> viewShift "chatter" | c <- chatter] + , [ className =? c --> viewShift "music" | c <- music] + , [ isFullscreen --> doFullFloat ] + ] + where + viewShift = doF . liftM2 (.) greedyView shift + floats = ["MPlayer"] + web = ["Firefox", "Firefox-esr", "Navigator", "google-chrome", "Google-chrome"] + chatter = ["slack", "Slack"] + music = ["pavucontrol", "Pavucontrol"] + +myConfig dzenPipe = docks $ def { + workspaces = myWorkspaces + , modMask = myMod + , terminal = myTerminal + , normalBorderColor = inactiveBorderColor myTheme + , focusedBorderColor = activeBorderColor myTheme + , borderWidth = 1 + , layoutHook = myLayout + , manageHook = manageHook def <+> myManageHook + , mouseBindings = myMouseBindings + , keys = \x -> (fromList $ mykeys x) + `union` dvorakify (keys def x) + , logHook = dynamicLogWithPP $ mPP dzenPipe + } + +main = do + dzenPipe <- spawnPipe statusBarCmd + path <- getEnv "PATH" + home <- getEnv "HOME" + setEnv "PATH" (home ++ "/bin:" ++ path) + xmonad $ myConfig dzenPipe -- cgit v1.2.3 From 6910a5eacecbf21d55ed16ecaaa7c14cf8e06b4b Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 13 Jan 2023 15:26:25 -0500 Subject: Set ft=xdefaults for xresources --- dot_Xresources.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dot_Xresources.tmpl b/dot_Xresources.tmpl index 98d59ca..6047e5c 100644 --- a/dot_Xresources.tmpl +++ b/dot_Xresources.tmpl @@ -73,3 +73,5 @@ XConsole.text.geometry: 480x130 XConsole.verbose: true XConsole*iconic: true XConsole*font: fixed + +! vim: set ft=xdefaults: -- cgit v1.2.3 From ef4057489886c33f48b0b2c6cff6296f52a9824f Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 13 Jan 2023 15:26:32 -0500 Subject: xlock xresources --- dot_Xresources.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dot_Xresources.tmpl b/dot_Xresources.tmpl index 6047e5c..993f9ad 100644 --- a/dot_Xresources.tmpl +++ b/dot_Xresources.tmpl @@ -33,7 +33,9 @@ Xft.hinting: 1 Xft.hintstyle: hintfull Xft.rgba: rgb -XLock*logoutButton: -1 +XLock.dpmsoff: 10 +XLock.lockdelay: 0 +XLock.logoutButton: -1 Xpdf*fileFilterStyle: filter_hidden_files -- cgit v1.2.3 From 7b842566f599f619021ac0d257a9463d2fbbd5d0 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 13 Jan 2023 15:29:40 -0500 Subject: Switch openbsd to xmonad --- executable_dot_xinitrc.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executable_dot_xinitrc.tmpl b/executable_dot_xinitrc.tmpl index ca3bc62..9a62e84 100644 --- a/executable_dot_xinitrc.tmpl +++ b/executable_dot_xinitrc.tmpl @@ -36,7 +36,7 @@ case `uname` in redshift & ${HOME}/bin/icd ${HOME}/.screenlayout/{{ .chezmoi.hostname }}-work.sh - exec cwm + exec xmonad ;; Linux) -- cgit v1.2.3 From 23848591e3c6b8e69c2ef48dca501edc3b7ce47d Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 13 Jan 2023 15:29:54 -0500 Subject: openbsd xidle --- executable_dot_xinitrc.tmpl | 1 + 1 file changed, 1 insertion(+) diff --git a/executable_dot_xinitrc.tmpl b/executable_dot_xinitrc.tmpl index 9a62e84..9ad3c74 100644 --- a/executable_dot_xinitrc.tmpl +++ b/executable_dot_xinitrc.tmpl @@ -36,6 +36,7 @@ case `uname` in redshift & ${HOME}/bin/icd ${HOME}/.screenlayout/{{ .chezmoi.hostname }}-work.sh + xidle -delay 2 -se -timeout 180 -program "/usr/X11R6/bin/xlock" & exec xmonad ;; -- cgit v1.2.3 From c5802cbd7c7276e22b1016318da2d98c79a3e8e0 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 13 Jan 2023 17:24:34 -0500 Subject: get xmonad working on openbsd --- .chezmoiignore | 2 ++ dot_xmonad/executable_build | 13 +++++++++++++ dot_xmonad/xmonad-config.cabal | 13 +++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 dot_xmonad/executable_build create mode 100644 dot_xmonad/xmonad-config.cabal diff --git a/.chezmoiignore b/.chezmoiignore index a96780b..87cf0af 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -14,6 +14,8 @@ crontab {{- if ne .chezmoi.os "openbsd" }} # only install if on openbsd .urxvt/perl +.xmonad/build +.xmonad/xmonad-config.cabal {{- end }} # files in home diff --git a/dot_xmonad/executable_build b/dot_xmonad/executable_build new file mode 100644 index 0000000..fa37a66 --- /dev/null +++ b/dot_xmonad/executable_build @@ -0,0 +1,13 @@ +#!/bin/ksh -eu + +output_file="${1}" + +if [ "${output_file}" -nt xmonad.hs ] && [ "${output_file}" -nt /usr/local/bin/xmonad ]; then + echo "${output_file}" is newer than xmonad.hs + exit 0 +fi + +cabal v2-install exe:xmonad-config --overwrite-policy=always --install-method=copy + +[ -e "${output_file}" ] && mv -f "${output_file}" "${output_file}.old" +install "${HOME}/.cabal/bin/xmonad-config" "${output_file}" diff --git a/dot_xmonad/xmonad-config.cabal b/dot_xmonad/xmonad-config.cabal new file mode 100644 index 0000000..87e58cf --- /dev/null +++ b/dot_xmonad/xmonad-config.cabal @@ -0,0 +1,13 @@ +cabal-version: 2.4 + +name: xmonad-config +version: 0.1.0.0 +synopsis: XMonad config +author: Greg Steuck +maintainer: xmonad@nest.cx + +executable xmonad-config + main-is: xmonad.hs + build-depends: base, containers, xmonad, xmonad-contrib + hs-source-dirs: . + default-language: Haskell2010 -- cgit v1.2.3 From a87ab1fa25da76eabd0240851fb67e9a16c86796 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 25 Jan 2023 11:04:03 -0500 Subject: rename screenlayouts for zeta to match hostname semantics on openbsd --- dot_screenlayout/executable_zeta-home.sh | 2 -- dot_screenlayout/executable_zeta-solo.sh | 2 -- dot_screenlayout/executable_zeta-work.sh | 2 -- dot_screenlayout/executable_zeta.rak.ac-home.sh | 2 ++ dot_screenlayout/executable_zeta.rak.ac-solo.sh | 2 ++ dot_screenlayout/executable_zeta.rak.ac-work.sh | 2 ++ 6 files changed, 6 insertions(+), 6 deletions(-) delete mode 100755 dot_screenlayout/executable_zeta-home.sh delete mode 100755 dot_screenlayout/executable_zeta-solo.sh delete mode 100644 dot_screenlayout/executable_zeta-work.sh create mode 100755 dot_screenlayout/executable_zeta.rak.ac-home.sh create mode 100755 dot_screenlayout/executable_zeta.rak.ac-solo.sh create mode 100644 dot_screenlayout/executable_zeta.rak.ac-work.sh diff --git a/dot_screenlayout/executable_zeta-home.sh b/dot_screenlayout/executable_zeta-home.sh deleted file mode 100755 index b4c76e9..0000000 --- a/dot_screenlayout/executable_zeta-home.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -xrandr --output eDP-1 --mode 1920x1080 --pos 0x1080 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-2 --off diff --git a/dot_screenlayout/executable_zeta-solo.sh b/dot_screenlayout/executable_zeta-solo.sh deleted file mode 100755 index 18b58ed..0000000 --- a/dot_screenlayout/executable_zeta-solo.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -xrandr --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --off --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-2 --off diff --git a/dot_screenlayout/executable_zeta-work.sh b/dot_screenlayout/executable_zeta-work.sh deleted file mode 100644 index 8666d94..0000000 --- a/dot_screenlayout/executable_zeta-work.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output DP2 --off --output HDMI1 --off --output HDMI2 --mode 1920x1200 --pos 1920x0 --rotate normal --output VIRTUAL1 --off diff --git a/dot_screenlayout/executable_zeta.rak.ac-home.sh b/dot_screenlayout/executable_zeta.rak.ac-home.sh new file mode 100755 index 0000000..b4c76e9 --- /dev/null +++ b/dot_screenlayout/executable_zeta.rak.ac-home.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output eDP-1 --mode 1920x1080 --pos 0x1080 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-2 --off diff --git a/dot_screenlayout/executable_zeta.rak.ac-solo.sh b/dot_screenlayout/executable_zeta.rak.ac-solo.sh new file mode 100755 index 0000000..18b58ed --- /dev/null +++ b/dot_screenlayout/executable_zeta.rak.ac-solo.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output HDMI-2 --off --output HDMI-1 --off --output DP-1 --off --output eDP-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-2 --off diff --git a/dot_screenlayout/executable_zeta.rak.ac-work.sh b/dot_screenlayout/executable_zeta.rak.ac-work.sh new file mode 100644 index 0000000..8666d94 --- /dev/null +++ b/dot_screenlayout/executable_zeta.rak.ac-work.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP1 --off --output DP2 --off --output HDMI1 --off --output HDMI2 --mode 1920x1200 --pos 1920x0 --rotate normal --output VIRTUAL1 --off -- cgit v1.2.3 From 74746398832d1b8f0986a776ddfcaac23327cd6d Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Wed, 25 Jan 2023 14:54:40 -0500 Subject: lbdbrc update for mutt aliases and no gpg on openbsd --- dot_lbdb/lbdbrc | 3 --- dot_lbdb/lbdbrc.tmpl | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 dot_lbdb/lbdbrc create mode 100644 dot_lbdb/lbdbrc.tmpl diff --git a/dot_lbdb/lbdbrc b/dot_lbdb/lbdbrc deleted file mode 100644 index b9bb0b2..0000000 --- a/dot_lbdb/lbdbrc +++ /dev/null @@ -1,3 +0,0 @@ -KEEP_DUPES="yes" -METHODS="m_inmail m_gpg m_muttalias" -MUTTALIAS_FILES="~/.mutt/aliases.rc ~/.mutt/aliases-cmu.rc" diff --git a/dot_lbdb/lbdbrc.tmpl b/dot_lbdb/lbdbrc.tmpl new file mode 100644 index 0000000..148bdbe --- /dev/null +++ b/dot_lbdb/lbdbrc.tmpl @@ -0,0 +1,3 @@ +KEEP_DUPES="yes" +METHODS="m_inmail {{ if (not (eq .chezmoi.os "openbsd")) }}m_gpg {{ end }}m_muttalias" +MUTTALIAS_FILES="aliases.rc accounts/rkavanag.alumni.cmu.edu/alias.rc accounts/ryank.mail.cs.mcgill.ca/alias.rc" -- cgit v1.2.3