Compare commits
10 commits
f011d83234
...
a9671d8390
Author | SHA1 | Date | |
---|---|---|---|
a9671d8390 | |||
ba911e65f1 | |||
1d957b7d2d | |||
80d4ec55be | |||
bb12cb6598 | |||
0ee6d2248b | |||
613a7930f3 | |||
f4524fcddd | |||
68563b5cda | |||
341a59b199 |
48
README
48
README
|
@ -1,48 +1,6 @@
|
||||||
dwm - dynamic window manager
|
# Pendragon - dynamic window manager
|
||||||
============================
|
pendragon is a config of dwm, which is an extremely fast, small, and dynamic window manager for X.
|
||||||
dwm is an extremely fast, small, and dynamic window manager for X.
|
|
||||||
|
|
||||||
|
# Configuration
|
||||||
Requirements
|
|
||||||
------------
|
|
||||||
In order to build dwm you need the Xlib header files.
|
|
||||||
|
|
||||||
|
|
||||||
Installation
|
|
||||||
------------
|
|
||||||
Edit config.mk to match your local setup (dwm is installed into
|
|
||||||
the /usr/local namespace by default).
|
|
||||||
|
|
||||||
Afterwards enter the following command to build and install dwm (if
|
|
||||||
necessary as root):
|
|
||||||
|
|
||||||
make clean install
|
|
||||||
|
|
||||||
|
|
||||||
Running dwm
|
|
||||||
-----------
|
|
||||||
Add the following line to your .xinitrc to start dwm using startx:
|
|
||||||
|
|
||||||
exec dwm
|
|
||||||
|
|
||||||
In order to connect dwm to a specific display, make sure that
|
|
||||||
the DISPLAY environment variable is set correctly, e.g.:
|
|
||||||
|
|
||||||
DISPLAY=foo.bar:1 exec dwm
|
|
||||||
|
|
||||||
(This will start dwm on display :1 of the host foo.bar.)
|
|
||||||
|
|
||||||
In order to display status info in the bar, you can do something
|
|
||||||
like this in your .xinitrc:
|
|
||||||
|
|
||||||
while xsetroot -name "`date` `uptime | sed 's/.*,//'`"
|
|
||||||
do
|
|
||||||
sleep 1
|
|
||||||
done &
|
|
||||||
exec dwm
|
|
||||||
|
|
||||||
|
|
||||||
Configuration
|
|
||||||
-------------
|
|
||||||
The configuration of dwm is done by creating a custom config.h
|
The configuration of dwm is done by creating a custom config.h
|
||||||
and (re)compiling the source code.
|
and (re)compiling the source code.
|
||||||
|
|
19
config.def.h
19
config.def.h
|
@ -95,13 +95,18 @@ static const Key keys[] = {
|
||||||
{ MODKEY, XK_F3, spawn, SHCMD("pamixer -i 5 -u && notify-send -u normal -a \"volume\" \"$(pamixer --get-volume-human)\"") },
|
{ MODKEY, XK_F3, spawn, SHCMD("pamixer -i 5 -u && notify-send -u normal -a \"volume\" \"$(pamixer --get-volume-human)\"") },
|
||||||
{ MODKEY, XK_F4, spawn, SHCMD("brightnessctl -d \"amdgpu_bl1\" set 10%- && notify-send -u normal -a \"brightness\" \"$(brightnessctl -d 'amdgpu_bl1' get)\"") },
|
{ MODKEY, XK_F4, spawn, SHCMD("brightnessctl -d \"amdgpu_bl1\" set 10%- && notify-send -u normal -a \"brightness\" \"$(brightnessctl -d 'amdgpu_bl1' get)\"") },
|
||||||
{ MODKEY, XK_F5, spawn, SHCMD("brightnessctl -d \"amdgpu_bl1\" set +10% && notify-send -u normal -a \"brightness\" \"$(brightnessctl -d 'amdgpu_bl1' get)\"") },
|
{ MODKEY, XK_F5, spawn, SHCMD("brightnessctl -d \"amdgpu_bl1\" set +10% && notify-send -u normal -a \"brightness\" \"$(brightnessctl -d 'amdgpu_bl1' get)\"") },
|
||||||
{ MODKEY, XK_F6, spawn, SHCMD("~/nixos/scripts/usb_guest.sh") },
|
{ MODKEY, XK_F6, spawn, SHCMD("$HOME/nixos/scripts/usb_guest.sh") },
|
||||||
{ MODKEY, XK_F7, spawn, SHCMD("~/nixos/scripts/susuwatari/client.sh") },
|
{ MODKEY, XK_F7, spawn, SHCMD("$HOME/nixos/scripts/susuwatari/client.sh") },
|
||||||
{ MODKEY, XK_F8, spawn, SHCMD("~/nixos/scripts/hdmi_paint.sh") },
|
{ MODKEY, XK_F8, spawn, SHCMD("$HOME/nixos/scripts/hdmi_paint.sh") },
|
||||||
{ MODKEY, XK_F9, spawn, SHCMD("~/nixos/scripts/screen_sleep.sh") },
|
{ MODKEY, XK_F9, spawn, SHCMD("$HOME/nixos/scripts/screen_sleep.sh") },
|
||||||
{ MODKEY, XK_Print, spawn, SHCMD("~/nixos/scripts/screenshot.sh") },
|
{ MODKEY, XK_Print, spawn, SHCMD("$HOME/nixos/scripts/screenshot.sh") },
|
||||||
{ MODKEY, XK_t, spawn, SHCMD("~/nixos/scripts/task_manager.sh") },
|
{ MODKEY, XK_t, spawn, SHCMD("$HOME/nixos/scripts/task_manager.sh") },
|
||||||
{ MODKEY, XK_n, spawn, SHCMD("~/nixos/scripts/notes.sh") },
|
{ MODKEY, XK_n, spawn, SHCMD("$HOME/nixos/scripts/notes.sh") },
|
||||||
|
{ MODKEY, XK_k, spawn, SHCMD("$HOME/nixos/scripts/code.sh") },
|
||||||
|
{ MODKEY, XK_s, spawn, SHCMD("$HOME/nixos/scripts/susuwatari_call.sh") },
|
||||||
|
{ MODKEY, XK_b, spawn, SHCMD("$HOME/nixos/scripts/bookmarks_get.sh") },
|
||||||
|
{ MODKEY|ShiftMask, XK_b, spawn, SHCMD("$HOME/nixos/scripts/bookmarks_add.sh") },
|
||||||
|
{ MODKEY, XK_p, spawn, SHCMD("$HOME/nixos/scripts/pass_get.sh") },
|
||||||
TAGKEYS( XK_ampersand, 0)
|
TAGKEYS( XK_ampersand, 0)
|
||||||
TAGKEYS( XK_eacute, 1)
|
TAGKEYS( XK_eacute, 1)
|
||||||
TAGKEYS( XK_quotedbl, 2)
|
TAGKEYS( XK_quotedbl, 2)
|
||||||
|
|
19
config.h
19
config.h
|
@ -95,13 +95,18 @@ static const Key keys[] = {
|
||||||
{ MODKEY, XK_F3, spawn, SHCMD("pamixer -i 5 -u && notify-send -u normal -a \"volume\" \"$(pamixer --get-volume-human)\"") },
|
{ MODKEY, XK_F3, spawn, SHCMD("pamixer -i 5 -u && notify-send -u normal -a \"volume\" \"$(pamixer --get-volume-human)\"") },
|
||||||
{ MODKEY, XK_F4, spawn, SHCMD("brightnessctl -d \"amdgpu_bl1\" set 10%- && notify-send -u normal -a \"brightness\" \"$(brightnessctl -d 'amdgpu_bl1' get)\"") },
|
{ MODKEY, XK_F4, spawn, SHCMD("brightnessctl -d \"amdgpu_bl1\" set 10%- && notify-send -u normal -a \"brightness\" \"$(brightnessctl -d 'amdgpu_bl1' get)\"") },
|
||||||
{ MODKEY, XK_F5, spawn, SHCMD("brightnessctl -d \"amdgpu_bl1\" set +10% && notify-send -u normal -a \"brightness\" \"$(brightnessctl -d 'amdgpu_bl1' get)\"") },
|
{ MODKEY, XK_F5, spawn, SHCMD("brightnessctl -d \"amdgpu_bl1\" set +10% && notify-send -u normal -a \"brightness\" \"$(brightnessctl -d 'amdgpu_bl1' get)\"") },
|
||||||
{ MODKEY, XK_F6, spawn, SHCMD("~/nixos/scripts/usb_guest.sh") },
|
{ MODKEY, XK_F6, spawn, SHCMD("$HOME/nixos/scripts/usb_guest.sh") },
|
||||||
{ MODKEY, XK_F7, spawn, SHCMD("~/nixos/scripts/susuwatari/client.sh") },
|
{ MODKEY, XK_F7, spawn, SHCMD("$HOME/nixos/scripts/susuwatari/client.sh") },
|
||||||
{ MODKEY, XK_F8, spawn, SHCMD("~/nixos/scripts/hdmi_paint.sh") },
|
{ MODKEY, XK_F8, spawn, SHCMD("$HOME/nixos/scripts/hdmi_paint.sh") },
|
||||||
{ MODKEY, XK_F9, spawn, SHCMD("~/nixos/scripts/screen_sleep.sh") },
|
{ MODKEY, XK_F9, spawn, SHCMD("$HOME/nixos/scripts/screen_sleep.sh") },
|
||||||
{ MODKEY, XK_Print, spawn, SHCMD("~/nixos/scripts/screenshot.sh") },
|
{ MODKEY, XK_Print, spawn, SHCMD("$HOME/nixos/scripts/screenshot.sh") },
|
||||||
{ MODKEY, XK_t, spawn, SHCMD("~/nixos/scripts/task_manager.sh") },
|
{ MODKEY, XK_t, spawn, SHCMD("$HOME/nixos/scripts/task_manager.sh") },
|
||||||
{ MODKEY, XK_n, spawn, SHCMD("~/nixos/scripts/notes.sh") },
|
{ MODKEY, XK_n, spawn, SHCMD("$HOME/nixos/scripts/notes.sh") },
|
||||||
|
{ MODKEY, XK_k, spawn, SHCMD("$HOME/nixos/scripts/code.sh") },
|
||||||
|
{ MODKEY, XK_s, spawn, SHCMD("$HOME/nixos/scripts/susuwatari_call.sh") },
|
||||||
|
{ MODKEY, XK_b, spawn, SHCMD("$HOME/nixos/scripts/bookmarks_get.sh") },
|
||||||
|
{ MODKEY|ShiftMask, XK_b, spawn, SHCMD("$HOME/nixos/scripts/bookmarks_add.sh") },
|
||||||
|
{ MODKEY, XK_p, spawn, SHCMD("$HOME/nixos/scripts/pass_get.sh") },
|
||||||
TAGKEYS( XK_ampersand, 0)
|
TAGKEYS( XK_ampersand, 0)
|
||||||
TAGKEYS( XK_eacute, 1)
|
TAGKEYS( XK_eacute, 1)
|
||||||
TAGKEYS( XK_quotedbl, 2)
|
TAGKEYS( XK_quotedbl, 2)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# dwm version
|
# dwm version
|
||||||
VERSION = "pendragon-1.8"
|
VERSION = "pendragon-1.9.4"
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue