How can I always spawn mpv with no borders in Xmonad?
0
votes
1
answer
449
views
I'm having an issue with
mpv
because of the xmonad
borders and I'd like to be able to always start mpv
, floating, with no borders at all, and also to keep the functionality of mpv
keybindings as is by default.
**Note: I know that as my current .xmonad
config file is, I can go full screen in mpv
with meta+b
then meta+f
but I'd like to be able to use only the default f
keybinding from mpv
to do go full screen and have no borders. The last method currently doesn't work.**
#### Would that be possible?
If yes, how do I need to modify my .xmonad
config file?
This is my current .xmonad confhg file
import System.IO
import System.Exit
import XMonad
import XMonad.Hooks.SetWMName
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageHelpers(doFullFloat, doCenterFloat, isFullscreen, isDialog)
import XMonad.Config.Desktop
import XMonad.Config.Azerty
import XMonad.Util.Run(spawnPipe)
import XMonad.Actions.SpawnOn
import XMonad.Util.EZConfig (additionalKeys, additionalMouseBindings)
import XMonad.Actions.CycleWS
import XMonad.Hooks.UrgencyHook
import qualified Codec.Binary.UTF8.String as UTF8
import XMonad.Layout.Spacing
import XMonad.Layout.Gaps
import XMonad.Layout.ResizableTile
import XMonad.Layout.NoBorders
import XMonad.Layout.Fullscreen (fullscreenFull)
import XMonad.Layout.Cross(simpleCross)
import XMonad.Layout.Spiral(spiral)
import XMonad.Layout.ThreeColumns
import XMonad.Layout.MultiToggle
import XMonad.Layout.MultiToggle.Instances
import XMonad.Layout.IndependentScreens
import XMonad.Layout.CenteredMaster(centerMaster)
import Graphics.X11.ExtraTypes.XF86
import qualified XMonad.StackSet as W
import qualified Data.Map as M
import qualified Data.ByteString as B
import Control.Monad (liftM2)
import qualified DBus as D
import qualified DBus.Client as D
myStartupHook = do
spawn "$HOME/.xmonad/scripts/autostart.sh"
setWMName "LG3D"
-- colours
normBord = "#4c566a"
focdBord = "#5e81ac"
fore = "#DEE3E0"
back = "#282c34"
winType = "#c678dd"
--mod4Mask= super key
--mod1Mask= alt key
--controlMask= ctrl key
--shiftMask= shift key
myModMask = mod4Mask
encodeCChar = map fromIntegral . B.unpack
myFocusFollowsMouse = True
myBorderWidth = 2
myWorkspaces = ["\61612","\61899","\61947","\61635","\61502","\61501","\61705","\61564","\62150","\61872"]
--myWorkspaces = ["1","2","3","4","5","6","7","8","9","10"]
--myWorkspaces = ["I","II","III","IV","V","VI","VII","VIII","IX","X"]
myBaseConfig = desktopConfig
-- window manipulations
myManageHook = composeAll . concat $
[ [isDialog --> doCenterFloat]
, [className =? c --> doCenterFloat | c doFloat | t doFloat | r doIgnore | i title =? x resource =? x) --> doShiftAndGo "\61612" | x title =? x resource =? x) --> doShiftAndGo "\61899" | x title =? x resource =? x) --> doShiftAndGo "\61947" | x title =? x resource =? x) --> doShiftAndGo "\61635" | x title =? x resource =? x) --> doShiftAndGo "\61502" | x title =? x resource =? x) --> doShiftAndGo "\61501" | x title =? x resource =? x) --> doShiftAndGo "\61705" | x title =? x resource =? x) --> doShiftAndGo "\61564" | x title =? x resource =? x) --> doShiftAndGo "\62150" | x title =? x resource =? x) --> doShiftAndGo "\61872" | x focus w >> mouseMoveWindow w >> windows W.shiftMaster))
-- mod-button2, Raise the window to the top of the stack
, ((modMask, 2), (\w -> focus w >> windows W.shiftMaster))
-- mod-button3, Set the window to floating mode and resize by dragging
, ((modMask, 3), (\w -> focus w >> mouseResizeWindow w >> windows W.shiftMaster))
]
Asked by techsk8
(703 rep)
Mar 26, 2022, 12:06 AM
Last activity: Apr 6, 2022, 04:58 AM
Last activity: Apr 6, 2022, 04:58 AM