Add templating with profiles
- workstation - laptop
This commit is contained in:
44
config.yaml
44
config.yaml
@@ -37,14 +37,54 @@ dotfiles:
|
|||||||
f_gdbinit:
|
f_gdbinit:
|
||||||
src: gdbinit
|
src: gdbinit
|
||||||
dst: ~/.gdbinit
|
dst: ~/.gdbinit
|
||||||
|
f_xinitrc:
|
||||||
|
src: xinitrc
|
||||||
|
dst: ~/.xinitrc
|
||||||
profiles:
|
profiles:
|
||||||
marc:
|
laptop:
|
||||||
|
include:
|
||||||
|
- bash
|
||||||
|
- vim
|
||||||
|
- x11
|
||||||
|
- i3
|
||||||
|
- font
|
||||||
|
- git
|
||||||
|
- gdb
|
||||||
|
workstation:
|
||||||
|
include:
|
||||||
|
- bash
|
||||||
|
- vim
|
||||||
|
- x11
|
||||||
|
- i3
|
||||||
|
- font
|
||||||
|
- git
|
||||||
|
- gdb
|
||||||
|
minimal:
|
||||||
|
include:
|
||||||
|
- bash
|
||||||
|
- vim
|
||||||
|
|
||||||
|
# Packages to be used above
|
||||||
|
bash:
|
||||||
dotfiles:
|
dotfiles:
|
||||||
- f_bashrc
|
- f_bashrc
|
||||||
|
vim:
|
||||||
|
dotfiles:
|
||||||
- f_vimrc
|
- f_vimrc
|
||||||
- f_gitconfig
|
x11:
|
||||||
|
dotfiles:
|
||||||
- f_xresources
|
- f_xresources
|
||||||
|
- f_xinitrc
|
||||||
|
i3:
|
||||||
|
dotfiles:
|
||||||
- f_config
|
- f_config
|
||||||
- f_i3status_config
|
- f_i3status_config
|
||||||
|
font:
|
||||||
|
dotfiles:
|
||||||
- f_inconsolata-regular.ttf
|
- f_inconsolata-regular.ttf
|
||||||
|
git:
|
||||||
|
dotfiles:
|
||||||
|
- f_gitconfig
|
||||||
|
gdb:
|
||||||
|
dotfiles:
|
||||||
- f_gdbinit
|
- f_gdbinit
|
||||||
|
|||||||
@@ -188,8 +188,7 @@ bindsym Ctrl+Shift+2 exec --no-startup-id setxkbmap de
|
|||||||
new_window 1pixel
|
new_window 1pixel
|
||||||
|
|
||||||
|
|
||||||
{%@@ if exists('/home/mthomas') @@%}
|
{%@@ if profile == "workstation" @@%}
|
||||||
# CONFIG FOR WORK
|
|
||||||
# Locking
|
# Locking
|
||||||
bindsym $mod+Shift+b exec "xlock -mode blank -startCmd /share/bin/isweg -endCmd /share/bin/isda"
|
bindsym $mod+Shift+b exec "xlock -mode blank -startCmd /share/bin/isweg -endCmd /share/bin/isda"
|
||||||
|
|
||||||
@@ -213,8 +212,7 @@ bindsym $mod+Ctrl+1 move workspace to output $monitor1
|
|||||||
bindsym $mod+Ctrl+2 move workspace to output $monitor2
|
bindsym $mod+Ctrl+2 move workspace to output $monitor2
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
|
|
||||||
{%@@ if exists('/home/marc') @@%}
|
{%@@ if profile == "laptop" @@%}
|
||||||
# CONFIG FOR HOME
|
|
||||||
# Locking
|
# Locking
|
||||||
bindsym $mod+Shift+b exec "xlock -mode matrix"
|
bindsym $mod+Shift+b exec "xlock -mode matrix"
|
||||||
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ set colorcolumn=80
|
|||||||
|
|
||||||
" Numbers at the left side
|
" Numbers at the left side
|
||||||
set number
|
set number
|
||||||
:highlight LineNr ctermfg=gray "color
|
:highlight LineNr ctermfg=white "color
|
||||||
"set relativenumber
|
"set relativenumber
|
||||||
|
|
||||||
" Parathesis highlighting
|
" Parathesis highlighting
|
||||||
|
|||||||
10
dotfiles/xinitrc
Executable file
10
dotfiles/xinitrc
Executable file
@@ -0,0 +1,10 @@
|
|||||||
|
export TERM="xterm-256color"
|
||||||
|
|
||||||
|
xrdb -load $HOME/.Xresources
|
||||||
|
|
||||||
|
{%@@ if profile == "workstation" @@%}
|
||||||
|
/share/bin/isda
|
||||||
|
~/bin/.keyboard.scm &
|
||||||
|
xrandr --output DVI-I-1 --auto --right-of VGA-1
|
||||||
|
exec i3
|
||||||
|
{%@@ endif @@%}
|
||||||
Reference in New Issue
Block a user