Git Product home page Git Product logo

no-wm's Introduction

no-wm
	Use X11 without a window manager

components
	included
		x-alt-tab
		x-move-resize
		x-session
		x-focus-manager
	distributed with X11 
		xsel xprop xrdb xset xsetroot xwininfo
	key-daemons
		xbindkeys http://www.nongnu.org/xbindkeys/xbindkeys.html
		speckeysd http://www.jessies.org/~enh/software/x11/
		xchainkeys http://code.google.com/p/xchainkeys/
		sxhkd https://github.com/baskerville/sxhkd
		alttab https://github.com/sagb/alttab
	window-manipulators
		xdotool http://www.semicomplete.com/projects/xdotool/
		window http://www.jessies.org/~enh/software/x11/
	niceties
		unclutter http://unclutter.sourceforge.net/
		dmenu http://tools.suckless.org/dmenu/
		autocutsel http://www.nongnu.org/autocutsel/ 
	overview
		http://www.sbin.org/doc/Xlib/index_contents.html

procedure
	set up your ${HOME}/.xinitrc to be something like
		#!/bin/bash
		while ! xprop -root | grep -q Free; do sleep 1; done
		xrdb -merge ${HOME}/etc/Xresources
		xsetroot -solid black
		xset b off
		exec xterm &
		exec speckeysd ${HOME}/etc/speckeysd.conf &
		exec x-focus-manager &
		exec x-session
	and your ${HOME}/etc/speckeysd.conf to be like
		# Key names come from <X11/keysymdef.h> (remove the XK_ prefix).
		# MUST have a Tab separating the key-combo and command
		Alt-Tab	x-alt-tab
		Alt-Shift-Tab	x-alt-tab -1
		Alt-Return	x-banish push
		Alt-BackSpace	x-banish pop
		Alt-m	x-move-resize
		Alt-r	echo run | dmenu -fn 10x20 | exec bash -s
		Alt-s	surf "$( echo www.duckduckgo.com | dmenu )"
		Alt-t	urxvt & x-focus-topmost wait
		Alt-f	xdotool selectwindow windowsize 100% 100% windowmove 0 0

	then ${HOME}/etc/Xresources with the preferred window geometries
		R_x11*geometry: 1024x600+0+0
		XTerm*geometry: 1024x600+0+0
		URxvt*geometry: 1024x600+0+0
		surf*geometry: 1024x600+0+0


window managers bind orthogonals (keyboard shortcuts, window manipulation,
window decoration) which should remain separate. 

x-focus-manager is not needed when all your apps return focus properly. A
mis-behaving app can be fixed by calling x-alt-tab after it runs; however that
needs to be scripted as focus remains with a window that no longer exists.

no-wm's People

Contributors

patrickhaller avatar sagb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

no-wm's Issues

can't compile

I'm getting a bunch of "undefined reference to.." errors when i try to compile. It may have something to do with an update to GCC, im using 4.8.2. Is there something that needs to be added to the makefile? or a dependency? Using Ubuntu 13.10

update: I got the individual apps to compile from command prompt so that was a workaround. Might be interesting to know that I changed from Ubuntu to arch and everything compiled fine.

README typos?

In the README XResource section shouldn't xterm geometry be specified in characters rather than what looks like pixels?

set border

in no-wm have border but the color is black,whether i can change color border to white? what is file should i change?

Workspaces?

Hello,

Thanks for sharing your idea and implementation.

Just curious on how one can simulate workspaces when using no-wm?

Thanks

missing features

I love the x-alt-tab and x-move-resize programs, however there is no good way to close a program without using xkill or pkill. The issue with using xkill is that it kills the parent program, for example if you are using xkill to kill a popup browser window it will close the whole browser. The same with skype or pidgin windows. Another thing i've noticed is firefox menus wont work without a window manager. I love the minimalism though, great work!!!

Modifying for keyboard based focus?

This is a great project, but I have a need for keyboard based focus.

At a minimum alt-tab would focus on the last raised window and a new window would get focus upon creation.

I modified x-alt-tab for the first, but am having trouble with x-focus-manager for the second. I thought I could just use the window from CreateNotify events and give this focus, but that produces a bad window error. I am not very familiar with Xlib. Any suggestions?

Also, do you have any interest in incorporating these features once I get it working?

Thanks,

Rob

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.