Add basic default configuration
This commit is contained in:
parent
45425c91d1
commit
4e6e0cad5e
25
INSTALL.md
25
INSTALL.md
@ -47,13 +47,28 @@ in their respective subdirectories:
|
|||||||
# ./build.sh install
|
# ./build.sh install
|
||||||
```
|
```
|
||||||
|
|
||||||
## Session
|
|
||||||
|
|
||||||
Xmd includes several scripts to facilitate using it as a desktop environment. It
|
|
||||||
can be installed using `./install.sh` in the `session` directory.
|
|
||||||
|
|
||||||
## Glue
|
## Glue
|
||||||
|
|
||||||
Xmd includes some utility scripts to provide a standard interface for things
|
Xmd includes some utility scripts to provide a standard interface for things
|
||||||
like screenshotting. These can be installed using `./install.sh` in the `glue`
|
like screenshotting. These can be installed using `./install.sh` in the `glue`
|
||||||
directory.
|
directory.
|
||||||
|
|
||||||
|
## Session
|
||||||
|
|
||||||
|
Xmd includes several scripts to facilitate using it as a desktop environment. It
|
||||||
|
can be installed using `./install.sh` in the `session` directory. Note that
|
||||||
|
without a configuration in place, the session scripts don't really do anything
|
||||||
|
useful. The next section of this document describes how to install a default
|
||||||
|
configuration.
|
||||||
|
|
||||||
|
## Default configuration
|
||||||
|
|
||||||
|
A default configuration can be installed by running `./install.sh` in the
|
||||||
|
`defaults` directory. It contains:
|
||||||
|
|
||||||
|
- An MWM configuration
|
||||||
|
- .xinitrc and .xsession files
|
||||||
|
- Default startup items
|
||||||
|
- MWM
|
||||||
|
- XMPanel
|
||||||
|
- Default panel replicants
|
||||||
|
4
defaults/Xmd/panel/10 Terminal.replicant
Normal file
4
defaults/Xmd/panel/10 Terminal.replicant
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[Launcher]
|
||||||
|
Name=Terminal
|
||||||
|
Exec=uxterm
|
||||||
|
Icon=Terminal
|
2
defaults/Xmd/panel/80 Battery.replicant
Normal file
2
defaults/Xmd/panel/80 Battery.replicant
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[Battery]
|
||||||
|
Interval=2
|
3
defaults/Xmd/panel/90 Clock.replicant
Normal file
3
defaults/Xmd/panel/90 Clock.replicant
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[Clock]
|
||||||
|
Type=Digital
|
||||||
|
Format=%a, %b %d\n%H:%M
|
1
defaults/Xmd/startup/mwm.sh
Executable file
1
defaults/Xmd/startup/mwm.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
mwm
|
1
defaults/Xmd/startup/panel.sh
Executable file
1
defaults/Xmd/startup/panel.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
xmpanel
|
5
defaults/install.sh
Executable file
5
defaults/install.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
. ../scripts/flags.sh
|
||||||
|
mkdir -p ~/.Xmd
|
||||||
|
cp misc/* ~
|
||||||
|
cp Xmd/* ~/.Xmd
|
74
defaults/misc/.mwmrc
Normal file
74
defaults/misc/.mwmrc
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
Menu DefaultRootMenu
|
||||||
|
{
|
||||||
|
"Root Menu" f.title
|
||||||
|
"Terminal" f.exec "uxterm &"
|
||||||
|
"Shuffle Up" f.circle_up
|
||||||
|
"Shuffle Down" f.circle_down
|
||||||
|
"Refresh" f.refresh
|
||||||
|
"Pack Icons" f.pack_icons
|
||||||
|
no-label f.separator
|
||||||
|
"Screen Shot" f.exec "screenshot selection clipboard"
|
||||||
|
no-label f.separator
|
||||||
|
"Restart MWM" f.restart
|
||||||
|
"Quit..." f.exec "xmd-end-session"
|
||||||
|
}
|
||||||
|
|
||||||
|
Menu DefaultWindowMenu
|
||||||
|
{
|
||||||
|
Restore _R Shift Mod4<Key>m f.restore
|
||||||
|
Move _M Mod4<Key>g f.move
|
||||||
|
Size _S Mod4<Key>s f.resize
|
||||||
|
Minimize _n Mod4<Key>h f.minimize
|
||||||
|
Maximize _x Mod4<Key>m f.maximize
|
||||||
|
no-label f.separator
|
||||||
|
"Screen Shot" _e Alt Ctrl<Key>Print f.exec "screenshot window clipboard"
|
||||||
|
no-label f.separator
|
||||||
|
Close _C Mod4<Key>q f.kill
|
||||||
|
}
|
||||||
|
|
||||||
|
Keys DefaultKeyBindings
|
||||||
|
{
|
||||||
|
Mod4<Key>Escape window|icon f.post_wmenu
|
||||||
|
Mod4<Key>Tab root|icon|window f.next_key
|
||||||
|
Mod4 Shift<Key>Tab root|icon|window f.prev_key
|
||||||
|
Mod4<Key>Right root|icon|window f.next_key window
|
||||||
|
Mod4<Key>Left root|icon|window f.prev_key window
|
||||||
|
<Key>Tab icon f.next_key icon
|
||||||
|
Shift<Key>Tab icon f.prev_key icon
|
||||||
|
<Key>Right icon f.next_key icon
|
||||||
|
<Key>Left icon f.prev_key icon
|
||||||
|
Alt Shift Ctrl<Key>exclam root|icon|window f.set_behavior
|
||||||
|
Mod4 Shift<Key>r root|icon|window f.restart
|
||||||
|
Mod4 Shift<Key>q root|icon|window f.quit_mwm
|
||||||
|
Mod4<Key>Return root|icon|window f.exec "uxterm &"
|
||||||
|
Mod4<Key>R root|icon|window f.exec "rofi -show run &"
|
||||||
|
Mod4<Key>space root|icon|window f.exec "rofi -show drun &"
|
||||||
|
<Key>Return icon f.restore
|
||||||
|
<Key>space icon f.post_wmenu
|
||||||
|
|
||||||
|
<Key>XF86MonBrightnessUp root|icon|window f.exec "brightnessctl s --exponent=10 +5%"
|
||||||
|
<Key>XF86MonBrightnessDown root|icon|window f.exec "brightnessctl s --exponent=10 5%-"
|
||||||
|
<Key>XF86AudioRaiseVolume root|icon|window f.exec "pamixer -i 2"
|
||||||
|
<Key>XF86AudioLowerVolume root|icon|window f.exec "pamixer -d 2"
|
||||||
|
Mod4<Key>period root|icon|window f.exec "pamixer -i 2"
|
||||||
|
Mod4<Key>comma root|icon|window f.exec "pamixer -d 2"
|
||||||
|
|
||||||
|
<Key>Print root|icon|window f.exec "screenshot"
|
||||||
|
Ctrl<Key>Print root|icon|window f.exec "screenshot clipboard"
|
||||||
|
Shift<Key>Print root|icon|window f.exec "screenshot selection"
|
||||||
|
Shift Ctrl<Key>Print root|icon|window f.exec "screenshot selection clipboard"
|
||||||
|
Alt<Key>Print icon|window f.exec "screenshot window"
|
||||||
|
|
||||||
|
Mod4<Key>grave window f.next_key icon
|
||||||
|
Mod4<Key>grave root|icon f.next_key window
|
||||||
|
}
|
||||||
|
|
||||||
|
Buttons DefaultButtonBindings
|
||||||
|
{
|
||||||
|
<Btn1Down> icon|frame f.raise
|
||||||
|
<Btn3Down> icon|frame f.post_wmenu
|
||||||
|
<Btn1Down> root f.menu DefaultRootMenu
|
||||||
|
Mod4<Btn1Down> window|icon f.move
|
||||||
|
Mod4<Btn2Down> window|icon f.lower
|
||||||
|
Mod4<Btn3Down> window|icon f.resize
|
||||||
|
}
|
1
defaults/misc/.xinitrc
Normal file
1
defaults/misc/.xinitrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
. ~/.xsession
|
1
defaults/misc/.xsession
Normal file
1
defaults/misc/.xsession
Normal file
@ -0,0 +1 @@
|
|||||||
|
exec dbus-run-session xmd
|
Loading…
Reference in New Issue
Block a user