Skip to content

Commit

Permalink
xmonad
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay committed Mar 3, 2024
1 parent 2bd413d commit a14f669
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions home/.config/xmonad/xmonad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import XMonad.Actions.FloatKeys
import XMonad.Actions.FloatSnap
import XMonad.Actions.GridSelect
import XMonad.Actions.GroupNavigation
import XMonad.Actions.MessageFeedback (tryMessage_)
import XMonad.Actions.Navigation2D
import XMonad.Actions.Promote (promote)
import qualified XMonad.Actions.Search as S
Expand Down Expand Up @@ -73,7 +72,6 @@ import XMonad.Layout.LayoutCombinators
import XMonad.Layout.Minimize
import XMonad.Layout.MultiToggle
import XMonad.Layout.MultiToggle.Instances
import XMonad.Layout.Named
import XMonad.Layout.NoBorders
import XMonad.Layout.IM
import XMonad.Layout.PerScreen
Expand Down Expand Up @@ -205,7 +203,6 @@ myShowWNameTheme = def
}


-- gimpLayout = named "Gimp" $ withIM (0.130) (Role "gimp-toolbox") $ (simpleDrawer 0.2 0.2 (Role "gimp-dock") `onRight` Full)
myLayout = showWorkspaceName
$ onWorkspace "float" floatWorkSpace
$ fullscreenFloat -- fixes floating windows going full screen, while retaining "bounded" fullscreen
Expand Down Expand Up @@ -403,7 +400,7 @@ myKeys =
zipKey1 "M-S-" dirKeys dirs windowSwap True ++
zipKey0 "M-C-" dirKeys dirs (sendMessage . pullGroup) ++
[ ("M-" ++ m ++ [k], f i)
| (i, k) <- zip myWorkspaces "uiop"
| (i, k) <- zip myWorkspaces "uiop["
, (f, m) <- [ (windows . W.greedyView, "")
, (windows . liftM2 (.) W.view W.shift, "S-")
]
Expand Down Expand Up @@ -445,9 +442,6 @@ myKeys =

----- Resize

, ("M-[", sendMessage $ ExpandTowards L)
, ("M-]", sendMessage $ ExpandTowards R)

, ("M-S-<L>", withFocused (keysResizeWindow (-30,0) (0,0))) --shrink float at right
, ("M-S-<R>", withFocused (keysResizeWindow (30,0) (0,0))) --expand float at right
, ("M-S-<D>", withFocused (keysResizeWindow (0,30) (0,0))) --expand float at bottom
Expand Down Expand Up @@ -706,7 +700,7 @@ wsEmacs = "emacs"

wsFloat = "float"
wsGimp = "gimp"
wsWechat = "wechat"
wsTmp = "tmp"
wsInkscape = "inkscape"
wsMail = "mail"

Expand All @@ -717,7 +711,7 @@ myProjects =
, Project wsIM "~" . Just $ spawn (alacritty "irc")
, Project wsEmacs "~" . Just $ spawn "LC_CTYPE=zh_CN.UTF-8 emacs"

, Project wsWechat "/tmp" . Just $ spawn "alacritty -t zsh -e zsh -ic \"tmux new -As weechat\""
, Project wsTmp "/tmp" . Just $ spawn "true"
, Project wsMail "/tmp" . Just $ spawn (alacritty "neomutt")
, Project wsGimp "/tmp" . Just $ spawn "gimp"
, Project wsInkscape "/tmp" . Just $ spawn "inkscape"
Expand Down

0 comments on commit a14f669

Please sign in to comment.