You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-52
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,6 @@ Just edit the "config.h" file. Save and
10
10
sudo make clean install
11
11
```
12
12
13
-
###A notification panel
14
-
One thing you miss sorely in dwm is a notification panel. Rather than creating one (which is invariably going to be only static), you can use gnome-panel with dwm by setting its float value correctly.
15
-
16
-
Also added the keybinding MOD+g to open gnome-panel. Just add the following lines:
You get the idea. Just make sure no key binding clashes occur.
37
25
38
-
###Suspend with lock
39
-
Putting the computer in sleep mode is essential for me. However it needs to come with screen locking for safety. Here is my hack for this need.
40
-
41
-
For putting to sleep, I am using "pm-utils". For screenlock "slock" from suckless.
42
-
43
-
Create a bash script as follows:
44
-
```
45
-
sudo pm-suspend ; slock
46
-
```
47
-
and put it in /usr/local/bin.
48
-
49
-
You should be able to see the script in dmenu.You can also map it to some keys as done before.
50
-
51
-
However there is a catch. As it stands we need to enter password for sudo which cannot be done as the command is not being execute in a terminal. The workaround is to add an entry in the sudoers file.
52
-
53
-
[Source](http://sohcahtoa.org.uk/pages/linux-dwm-window-manager-on-debian.html) for some of my info.
54
-
55
-
Open the file using:
56
-
```
57
-
sudo visudo
58
-
```
59
-
60
-
Don't let the name fool you, the editor is not vi/vim, it is nano.
61
-
Add an entry as given in the linked article or google. In the command alias section create an alias to /usr/sbin/pm-suspend.
62
-
63
-
Also, when you wake the computer from sleep, the screen is shown for a couple of seconds after which the slock kicks in. Also if you are using slock, there is no prompt for a password. It is just a black screen that turn blue as you start typing your password.
64
-
65
26
### Terminal(s)
66
27
67
28
So terminals are something I need aplenty.
68
29
69
30
Current keybindings:
70
31
71
-
Alt + Shift + <Enter> -- gnome-terminal / konsole
72
-
Alt + Shift + t -- xterm under tabbed
73
-
Alt + Shift + x -- xfce4-terminal
74
32
Alt + Shift + u -- urxvt
75
33
76
-
Adds easy keybindings for xterm. Note that xterm has not concepts of tabs (like in gnome-terminal) so I bound it with tabbed , another suckless product that provides tabbing feature to X based applications.
77
-
78
-
Though the above feature exists, I have moved to using tmux more often than not, so I am not really using this anymore.
34
+
urxvt with tmux is the only thing I am using these days.
79
35
80
36
Terminals had a problem of empty spaces around them. This has now been solved.
81
37
82
-
###Wishlist or TODO
38
+
###Dropdown terminal
83
39
84
-
* Remap terminal to some easy key (say Windows/Command).
85
-
* Remap dmenu to the menu key.
86
-
* Both the above depends on getting the X key code for the respective keys.
87
-
* Getter a better solution to the sleeplock hack.
88
-
* In general organize keybindings for applications vs dwm-related stuff.
89
-
* Modify xterm-tabbed key bindings to shadow gnome-defaults.
40
+
See [this](https://github.com/noctuid/tdrop) for an awesome terminal independent drop down setup. I use it with urxvt + tmux, which gives me everything needed.
90
41
91
42
###See also
92
43
My original [source](http://holymonkey.com/dwm-with-gnome-guide.html) of the gnome-panel idea.
93
44
The keybindings [source](http://srobb.net/dwm.html).
45
+
Some tutorials [here](http://forums.debian.net/viewtopic.php?f=16&t=65110) and elsewhere.
0 commit comments