aboutsummaryrefslogtreecommitdiff
path: root/src/Rahm/Desktop
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-04-11 22:40:34 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:46 -0600
commit45fcba1681f4fda4f4ed380f00a8b6fbea681a59 (patch)
treefc9d3baf13a11eea83ea86fb28f5bcea7fca3566 /src/Rahm/Desktop
parente5c89fe04061392cf102bb5286bbd203b81099de (diff)
downloadrde-45fcba1681f4fda4f4ed380f00a8b6fbea681a59.tar.gz
rde-45fcba1681f4fda4f4ed380f00a8b6fbea681a59.tar.bz2
rde-45fcba1681f4fda4f4ed380f00a8b6fbea681a59.zip
Add right click to move current window to a workspace.
Diffstat (limited to 'src/Rahm/Desktop')
-rw-r--r--src/Rahm/Desktop/Layout/ReinterpretMessage.hs4
-rw-r--r--src/Rahm/Desktop/XMobarLog.hs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Rahm/Desktop/Layout/ReinterpretMessage.hs b/src/Rahm/Desktop/Layout/ReinterpretMessage.hs
index 98bf779..8f6a78d 100644
--- a/src/Rahm/Desktop/Layout/ReinterpretMessage.hs
+++ b/src/Rahm/Desktop/Layout/ReinterpretMessage.hs
@@ -20,7 +20,7 @@ class DoReinterpret (k :: t) where
-- Data construct for association a DoReinterpret function with a concrete
-- construct that can be used in the LayoutModifier instance.
--
--- It wolud be nice to have ReinterpretMessage hold the function as a value
+-- It would be nice to have ReinterpretMessage hold the function as a value
-- rather than delegate to this kind-instance, however, it won't work because
-- LayoutModifiers have to be Read-able and Show-able, and functions are neither
-- of those, so a value-level function may not be a member of a LayoutModifier,
@@ -35,7 +35,7 @@ instance (DoReinterpret k) =>
handleMessOrMaybeModifyIt self message = do
- -- Delegates to the reinterpretMessage function associatied with the
+ -- Delegates to the reinterpretMessage function associated with the
-- type-variable k.
newMessage <- reinterpretMessage (ofProxy self) message
case newMessage of
diff --git a/src/Rahm/Desktop/XMobarLog.hs b/src/Rahm/Desktop/XMobarLog.hs
index 0f67ed4..4b266c1 100644
--- a/src/Rahm/Desktop/XMobarLog.hs
+++ b/src/Rahm/Desktop/XMobarLog.hs
@@ -65,7 +65,7 @@ xMobarLogHook (XMobarLog xmproc) = do
toAction [ch] | (ch >= 'A' && ch <= 'Z') ||
(ch >= 'a' && ch <= 'z') ||
(ch >= '0' && ch <= '9') =
- printf "<action=`xdotool key 'Hyper_L+g' '%s'`>%s</action>" [ch] [ch]
+ printf "<action=`xdotool key 'Hyper_L+g' '%s'` button=1><action=`xdotool key 'Hyper_L+Shift_L+g' '%s'` button=3>%s</action></action>" [ch] [ch] [ch]
toAction ch = ch
-- Truncate an XMobar string to the provided number of _visible_ characters.