emacs update

added some custom mode line elements for now
This commit is contained in:
2021-09-16 19:09:56 +05:30
parent ddd2ae4efc
commit 677953529c
4 changed files with 120 additions and 26 deletions

View File

@@ -57,13 +57,13 @@ myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
spawn "flameshot full -p /home/natto/Pictures -d 10000")
, ((modMask, xK_p),
spawn "mpc toggle")
spawn "playerctl play-pause")
, ((modMask, xK_h),
spawn "mpc next")
spawn "playerctl next")
, ((modMask, xK_k),
spawn "mpc prev")
spawn "playerctl previous")
, ((modMask .|. shiftMask, xK_a),
spawn "mpc seek -00:00:05")
@@ -190,6 +190,37 @@ toggleFullscreen =
windows $ if isFullFloat then W.sink w else W.float w fullRect
--}}}
--{{{
--couldnt get fullScreenEventHook to work normally so using this for now
--source code: https://github.com/xmonad/xmonad-contrib/blob/v0.16/XMonad/Hooks/EwmhDesktops.hs
fullscreenFix :: XConfig a -> XConfig a
fullscreenFix c = c {
startupHook = startupHook c +++ setSupportedWithFullscreen
}
where x +++ y = mappend x y
setSupportedWithFullscreen :: X ()
setSupportedWithFullscreen = withDisplay $ \dpy -> do
r <- asks theRoot
a <- getAtom "_NET_SUPPORTED"
c <- getAtom "ATOM"
supp <- mapM getAtom ["_NET_WM_STATE_HIDDEN"
,"_NET_WM_STATE_FULLSCREEN"
,"_NET_NUMBER_OF_DESKTOPS"
,"_NET_CLIENT_LIST"
,"_NET_CLIENT_LIST_STACKING"
,"_NET_CURRENT_DESKTOP"
,"_NET_DESKTOP_NAMES"
,"_NET_ACTIVE_WINDOW"
,"_NET_WM_DESKTOP"
,"_NET_WM_STRUT"
]
io $ changeProperty32 dpy r a c propModeReplace (fmap fromIntegral supp)
setWMName "xmonad"
--}}}
main = do xmproc <- spawnPipe ("xmobar " ++ myXmobarrc)
xmonad $ docks $ ewmh def
{ borderWidth = myBorderWidth

View File

@@ -54,7 +54,8 @@ in
sox
qbittorrent
#tor-browser-bundle-bin
mpc_cli
#mpc_cli
playerctl
hexchat
luajit
mpv
@@ -86,6 +87,7 @@ in
dosbox
authy
unstable.premid
master.tauon
nbfc-linux
];