Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many different changes, details in commit messages #8

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
PREFIX ?= /usr/local
MANDIR ?= $(PREFIX)/share/man
BIN ?= nowm
PREFIX ?= /usr/local
DESKTOP ?= /usr/share/xsessions
MANDIR ?= $(PREFIX)/share/man
BIN ?= nowm

install:
@echo "Installing $(BIN) to $(PREFIX)/bin"
@mkdir -p $(PREFIX)/bin
@mkdir -p $(MANDIR)/man1

@cp -p bin/$(BIN) $(PREFIX)/bin/
@cp -p man/$(BIN).1 $(MANDIR)/man1/

@cp -p src/$(BIN) $(PREFIX)/bin/
@chmod 755 $(PREFIX)/bin/$(BIN)

@echo "Installing $(BIN).1 to $(MANDIR)/man1"
@mkdir -p $(MANDIR)/man1
@cp -p src/$(BIN).1 $(MANDIR)/man1/

@echo "Installing $(BIN).desktop to $(DESKTOP)"
@mkdir -p $(DESKTOP)
@cp -p src/$(BIN).desktop $(DESKTOP)/


uninstall:
@rm -rf $(PREFIX)/bin/$(BIN)
@rm -rf $(MANDIR)/man1/$(BIN).1*
@rm -rf $(DESKTOP)/$(BIN).desktop
@echo "Uninstalled $(BIN)"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ A dead simple tool to managing windows from the [tty](https://en.wikipedia.org/w
Option 1: using `curl`

```sh
curl https://raw.githubusercontent.com/K4zoku/nowm/master/bin/nowm > ~/.local/bin/nowm
curl https://raw.githubusercontent.com/K4zoku/nowm/master/src/nowm > ~/.local/bin/nowm
chmod +x ~/.local/bin/nowm
```

Option 2: using `git`

```sh
git clone https://github.com/K4zoku/nowm.git ~/.local/share/nowm
ln -s ~/.local/share/nowm/bin/nowm ~/.local/bin/nowm
ln -s ~/.local/share/nowm/src/nowm ~/.local/bin/nowm
```

#### 📦 Package manager
Expand Down
74 changes: 0 additions & 74 deletions bin/nowm

This file was deleted.

3 changes: 0 additions & 3 deletions examples/autostart

This file was deleted.

5 changes: 5 additions & 0 deletions examples/hotkeys/autostart
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

# Stop running SXHKD and start new instance
pkill -x sxhkd
sxhkd -c "${NOWM_CONFIG_HOME}/sxhkdrc" &
18 changes: 9 additions & 9 deletions examples/sxhkdrc → examples/hotkeys/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@

# terminal
super + Return
urxvt
urxvt

# reload sxhkd configuration files
super + Escape
pkill -USR1 -x sxhkd
pkill -USR1 -x sxhkd

################
# NOWM HOTKEYS #
################

# [nowm] logout
super + alt + q
nowm logout
nowm logout

# [nowm] move
super + {Left,Down,Up,Right}
nowm move_relative {-4 0, 0 4, 0 -4, 4 0}
nowm move_relative {-10 0, 0 10, 0 -10, 10 0}

# [nowm] resize
super + {a,s,w,d}
nowm resize_relative {-4 0, 0 4, 0 -4, 4 0}
super + {h,j,k,l}
nowm resize_relative {-10 0, 0 10, 0 -10, 10 0}

# [nowm] window close
super + w
nowm close
alt + q
nowm close

# [nowm] focus
~button1
nowm pointer_focus
nowm pointer_focus
42 changes: 0 additions & 42 deletions man/nowm.1

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.1",
"description": "Managing window without a window manager",
"global": "true",
"scripts": ["bin/nowm"],
"files": ["man/nowm.1"],
"scripts": ["src/nowm"],
"files": ["src/nowm.1", "src/nowm.desktop"],
"install": "make install"
}
Loading