Add machine-specific configs for MPD
This commit is contained in:
parent
d1db306774
commit
8681e8a0da
3 changed files with 22 additions and 9 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
machine=$(hostname)
|
||||||
|
|
||||||
## Helper functions:
|
## Helper functions:
|
||||||
|
|
||||||
# This simple function saves a lot of keystrokes when editing this
|
# This simple function saves a lot of keystrokes when editing this
|
||||||
|
@ -224,26 +226,21 @@ hc unlock
|
||||||
|
|
||||||
herbstclient set tree_style '╾│ ├└╼─┐'
|
herbstclient set tree_style '╾│ ├└╼─┐'
|
||||||
|
|
||||||
## Monitors
|
|
||||||
# I have two monitors, each with a resolution of 1920x1080.
|
|
||||||
hc set_monitors 1920x1080+0+0
|
|
||||||
|
|
||||||
# Pad the first monitor to make room for mowedline and trayer.
|
# Pad the first monitor to make room for mowedline and trayer.
|
||||||
hc pad 0 0 0 16 16
|
hc pad 0 0 0 16 16
|
||||||
|
|
||||||
# Load layouts for the dev and web tags.
|
# Load layouts for the dev and web tags.
|
||||||
hc load dev '(split horizontal:0.580:1 (clients max:0) (clients vertical:0))'
|
|
||||||
hc load web '(clients max:0)'
|
hc load web '(clients max:0)'
|
||||||
|
|
||||||
# Make sure the "Emacs" frame is selected.
|
# Make sure the "Emacs" frame is selected.
|
||||||
hc focus_edge left
|
hc focus_edge left
|
||||||
|
|
||||||
# Lock each tag to its specific monitor.
|
|
||||||
lock-tag-to-monitor dev 0
|
|
||||||
lock-tag-to-monitor web 1
|
|
||||||
|
|
||||||
## Other configurations
|
## Other configurations
|
||||||
|
|
||||||
|
# Load a machine-specific configuration if it exists.
|
||||||
|
[ -x "${HOME}/.config/herbstluftwm/machines/${machine}.sh" ] \
|
||||||
|
&& source "${HOME}/.config/herbstluftwm/machines/${machine}.sh"
|
||||||
|
|
||||||
# Load any other configuration files in
|
# Load any other configuration files in
|
||||||
# $HOME/.config/herbstluftwm/autostart.d so other programs can
|
# $HOME/.config/herbstluftwm/autostart.d so other programs can
|
||||||
# configure parts of herbstluftwm to their needs (such as keybindings
|
# configure parts of herbstluftwm to their needs (such as keybindings
|
||||||
|
|
6
herbstluftwm/.config/herbstluftwm/machines/data.sh
Normal file
6
herbstluftwm/.config/herbstluftwm/machines/data.sh
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
## Monitors
|
||||||
|
hc set_monitors 1920x1080+0+0
|
||||||
|
|
||||||
|
hc load dev '(split horizontal:0.580:1 (clients max:0) (clients vertical:0))'
|
10
herbstluftwm/.config/herbstluftwm/machines/rincewind.sh
Executable file
10
herbstluftwm/.config/herbstluftwm/machines/rincewind.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
## Monitors
|
||||||
|
hc set_monitors 1920x1080+0+0 1200x1920+1920+0
|
||||||
|
|
||||||
|
hc load dev '(split horizontal:0.535:1 (clients max:0) (clients vertical:0))'
|
||||||
|
|
||||||
|
# Lock each tag to its specific monitor.
|
||||||
|
lock-tag-to-monitor dev 0
|
||||||
|
lock-tag-to-monitor web 0
|
Loading…
Reference in a new issue