1 |
slyfox 15/02/27 08:45:58 |
2 |
|
3 |
Added: xmonad-0.11-sample.patch xmonad-0.11-ghc-7.10.patch |
4 |
xmonad-check-repeat.patch |
5 |
Log: |
6 |
x11-wm/xmonad: fix sample (thanks to NP-Hardass) |
7 |
|
8 |
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 x11-wm/xmonad/files/xmonad-0.11-sample.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xmonad/files/xmonad-0.11-sample.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xmonad/files/xmonad-0.11-sample.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: xmonad-0.11-sample.patch |
17 |
=================================================================== |
18 |
Sun Jan 6 17:42:54 GMT 2013 Daniel Wagner <daniel@×××××××××××.com> |
19 |
* define the "help" string in the sample configuration bundled with xmonad |
20 |
diff -rN -u old-xmonad/man/xmonad.hs new-xmonad/man/xmonad.hs |
21 |
--- old-xmonad/man/xmonad.hs 2015-02-27 08:38:26.993365307 +0000 |
22 |
+++ new-xmonad/man/xmonad.hs 2015-02-27 08:38:27.046365303 +0000 |
23 |
@@ -280,3 +280,54 @@ |
24 |
logHook = myLogHook, |
25 |
startupHook = myStartupHook |
26 |
} |
27 |
+ |
28 |
+-- | Finally, a copy of the default bindings in simple textual tabular format. |
29 |
+help :: String |
30 |
+help = unlines ["The default modifier key is 'alt'. Default keybindings:", |
31 |
+ "", |
32 |
+ "-- launching and killing programs", |
33 |
+ "mod-Shift-Enter Launch xterminal", |
34 |
+ "mod-p Launch dmenu", |
35 |
+ "mod-Shift-p Launch gmrun", |
36 |
+ "mod-Shift-c Close/kill the focused window", |
37 |
+ "mod-Space Rotate through the available layout algorithms", |
38 |
+ "mod-Shift-Space Reset the layouts on the current workSpace to default", |
39 |
+ "mod-n Resize/refresh viewed windows to the correct size", |
40 |
+ "", |
41 |
+ "-- move focus up or down the window stack", |
42 |
+ "mod-Tab Move focus to the next window", |
43 |
+ "mod-Shift-Tab Move focus to the previous window", |
44 |
+ "mod-j Move focus to the next window", |
45 |
+ "mod-k Move focus to the previous window", |
46 |
+ "mod-m Move focus to the master window", |
47 |
+ "", |
48 |
+ "-- modifying the window order", |
49 |
+ "mod-Return Swap the focused window and the master window", |
50 |
+ "mod-Shift-j Swap the focused window with the next window", |
51 |
+ "mod-Shift-k Swap the focused window with the previous window", |
52 |
+ "", |
53 |
+ "-- resizing the master/slave ratio", |
54 |
+ "mod-h Shrink the master area", |
55 |
+ "mod-l Expand the master area", |
56 |
+ "", |
57 |
+ "-- floating layer support", |
58 |
+ "mod-t Push window back into tiling; unfloat and re-tile it", |
59 |
+ "", |
60 |
+ "-- increase or decrease number of windows in the master area", |
61 |
+ "mod-comma (mod-,) Increment the number of windows in the master area", |
62 |
+ "mod-period (mod-.) Deincrement the number of windows in the master area", |
63 |
+ "", |
64 |
+ "-- quit, or restart", |
65 |
+ "mod-Shift-q Quit xmonad", |
66 |
+ "mod-q Restart xmonad", |
67 |
+ "mod-[1..9] Switch to workSpace N", |
68 |
+ "", |
69 |
+ "-- Workspaces & screens", |
70 |
+ "mod-Shift-[1..9] Move client to workspace N", |
71 |
+ "mod-{w,e,r} Switch to physical/Xinerama screens 1, 2, or 3", |
72 |
+ "mod-Shift-{w,e,r} Move client to screen 1, 2, or 3", |
73 |
+ "", |
74 |
+ "-- Mouse bindings: default actions bound to mouse events", |
75 |
+ "mod-button1 Set the window to floating mode and move by dragging", |
76 |
+ "mod-button2 Raise the window to the top of the stack", |
77 |
+ "mod-button3 Set the window to floating mode and resize by dragging"] |
78 |
Sun Jan 6 17:44:14 GMT 2013 Daniel Wagner <daniel@×××××××××××.com> |
79 |
* use "modm" instead of "modMask" in the sample config |
80 |
diff -rN -u old-xmonad/man/xmonad.hs new-xmonad/man/xmonad.hs |
81 |
--- old-xmonad/man/xmonad.hs 2015-02-27 08:39:59.280358012 +0000 |
82 |
+++ new-xmonad/man/xmonad.hs 2015-02-27 08:39:59.333358007 +0000 |
83 |
@@ -129,7 +129,7 @@ |
84 |
, ((modm , xK_q ), spawn "xmonad --recompile; xmonad --restart") |
85 |
|
86 |
-- Run xmessage with a summary of the default keybindings (useful for beginners) |
87 |
- , ((modMask .|. shiftMask, xK_slash ), spawn ("echo \"" ++ help ++ "\" | xmessage -file -")) |
88 |
+ , ((modm .|. shiftMask, xK_slash ), spawn ("echo \"" ++ help ++ "\" | xmessage -file -")) |
89 |
] |
90 |
++ |
91 |
|
92 |
|
93 |
|
94 |
|
95 |
1.1 x11-wm/xmonad/files/xmonad-0.11-ghc-7.10.patch |
96 |
|
97 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xmonad/files/xmonad-0.11-ghc-7.10.patch?rev=1.1&view=markup |
98 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xmonad/files/xmonad-0.11-ghc-7.10.patch?rev=1.1&content-type=text/plain |
99 |
|
100 |
Index: xmonad-0.11-ghc-7.10.patch |
101 |
=================================================================== |
102 |
Fri May 2 06:57:43 BST 2014 Adam Vogt <vogt.adam@×××××.com> |
103 |
* derive Applicative instance for Query |
104 |
diff -rN -u old-xmonad/XMonad/Core.hs new-xmonad/XMonad/Core.hs |
105 |
--- old-xmonad/XMonad/Core.hs 2015-01-08 21:40:45.320979242 +0000 |
106 |
+++ new-xmonad/XMonad/Core.hs 2015-01-08 21:40:45.367979193 +0000 |
107 |
@@ -155,7 +155,7 @@ |
108 |
|
109 |
type ManageHook = Query (Endo WindowSet) |
110 |
newtype Query a = Query (ReaderT Window X a) |
111 |
- deriving (Functor, Monad, MonadReader Window, MonadIO) |
112 |
+ deriving (Functor, Applicative, Monad, MonadReader Window, MonadIO) |
113 |
|
114 |
runQuery :: Query a -> Window -> X a |
115 |
runQuery (Query m) w = runReaderT m w |
116 |
|
117 |
|
118 |
|
119 |
1.1 x11-wm/xmonad/files/xmonad-check-repeat.patch |
120 |
|
121 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xmonad/files/xmonad-check-repeat.patch?rev=1.1&view=markup |
122 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-wm/xmonad/files/xmonad-check-repeat.patch?rev=1.1&content-type=text/plain |
123 |
|
124 |
Index: xmonad-check-repeat.patch |
125 |
=================================================================== |
126 |
--- xmonad//XMonad/Core.hs 2010-09-05 05:11:42.000000000 +0400 |
127 |
+++ xmonad//XMonad/Core.hs 2010-09-18 07:59:14.000000000 +0400 |
128 |
@@ -65,6 +65,7 @@ |
129 |
, waitingUnmap :: !(M.Map Window Int) -- ^ the number of expected UnmapEvents |
130 |
, dragging :: !(Maybe (Position -> Position -> X (), X ())) |
131 |
, numberlockMask :: !KeyMask -- ^ The numlock modifier |
132 |
+ , keyPressed :: !KeyCode -- ^ keycode of the key being pressed if any |
133 |
, extensibleState :: !(M.Map String (Either String StateExtension)) |
134 |
-- ^ stores custom state information. |
135 |
-- |
136 |
--- xmonad//XMonad/Main.hsc 2010-09-05 05:11:42.000000000 +0400 |
137 |
+++ xmonad//XMonad/Main.hsc 2010-09-18 08:03:11.000000000 +0400 |
138 |
@@ -129,6 +129,7 @@ |
139 |
, mapped = S.empty |
140 |
, waitingUnmap = M.empty |
141 |
, dragging = Nothing |
142 |
+ , keyPressed = 0 |
143 |
, extensibleState = extState |
144 |
} |
145 |
allocaXEvent $ \e -> |
146 |
@@ -190,10 +191,15 @@ |
147 |
-- run window manager command |
148 |
handle (KeyEvent {ev_event_type = t, ev_state = m, ev_keycode = code}) |
149 |
| t == keyPress = withDisplay $ \dpy -> do |
150 |
- s <- io $ keycodeToKeysym dpy code 0 |
151 |
- mClean <- cleanMask m |
152 |
- ks <- asks keyActions |
153 |
- userCodeDef () $ whenJust (M.lookup (mClean, s) ks) id |
154 |
+ kp <- gets keyPressed |
155 |
+ if kp /= code then do |
156 |
+ modify $ \s -> s { keyPressed = code } |
157 |
+ s <- io $ keycodeToKeysym dpy code 0 |
158 |
+ mClean <- cleanMask m |
159 |
+ ks <- asks keyActions |
160 |
+ userCodeDef () $ whenJust (M.lookup (mClean, s) ks) id |
161 |
+ else return () |
162 |
+ | t == keyRelease = modify $ \s -> s { keyPressed = 0 } |
163 |
|
164 |
-- manage a new window |
165 |
handle (MapRequestEvent {ev_window = w}) = withDisplay $ \dpy -> do |