Separate work and private configuration
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
492115cbd0
commit
9f29f25756
8 changed files with 104 additions and 72 deletions
2
install
2
install
|
@ -258,6 +258,6 @@ print_section "Creating issue file"
|
|||
< "/etc/hostname" tr '[:lower:]' '[:upper:]' | figlet -f big | sed "s/\\\\/\\\\\\\/g";
|
||||
echo -e "\\\r (\\\l)";
|
||||
echo '\e{reset}';
|
||||
} >> "/tmp/issue"
|
||||
} > "/tmp/issue"
|
||||
sudo install "/tmp/issue" "/etc/issue"
|
||||
print_log "Issue file created"
|
|
@ -17,11 +17,18 @@
|
|||
# the monitor names are different.
|
||||
NVIDIA_CHECK="$(xrandr | grep "eDP-1-1 connected")"
|
||||
if [ -z "${NVIDIA_CHECK}" ]; then
|
||||
LOCAL_I3_CONFIG="${XDG_CONFIG_HOME}/i3/config.intel"
|
||||
I3_SCREEN_CONFIG="${XDG_CONFIG_HOME}/i3/config.intel"
|
||||
else
|
||||
LOCAL_I3_CONFIG="${XDG_CONFIG_HOME}/i3/config.nvidia"
|
||||
I3_SCREEN_CONFIG="${XDG_CONFIG_HOME}/i3/config.nvidia"
|
||||
fi
|
||||
|
||||
cat "${LOCAL_I3_CONFIG}" "${XDG_CONFIG_HOME}/i3/config.base" > "${XDG_CONFIG_HOME}/i3/config"
|
||||
# Load different i3 configuration depending on if it's a work computer.
|
||||
if [ "${IS_WORK}" = "1" ]; then
|
||||
LOCAL_I3_CONFIG="${XDG_CONFIG_HOME}/i3/config.work"
|
||||
else
|
||||
LOCAL_I3_CONFIG="${XDG_CONFIG_HOME}/i3/config.private"
|
||||
fi
|
||||
|
||||
cat "${I3_SCREEN_CONFIG}" "${XDG_CONFIG_HOME}/i3/config.base" "${LOCAL_I3_CONFIG}" > "${XDG_CONFIG_HOME}/i3/config"
|
||||
|
||||
i3
|
|
@ -12,7 +12,8 @@
|
|||
|
||||
# Settings opacity rules
|
||||
opacity-rule = [
|
||||
"85:class_g = 'Nemo'"
|
||||
"85:class_g = 'Nemo'",
|
||||
"85:class_g = 'Thunar'"
|
||||
];
|
||||
|
||||
#inactive-dim = 0.25;
|
||||
|
|
|
@ -23,7 +23,7 @@ export XDG_BIN_HOME="${HOME}/.local/bin"
|
|||
export XDG_LOG_HOME="${HOME}/.local/log"
|
||||
export DOTFILES="${HOME}/dotfiles"
|
||||
|
||||
if [ "$(hostname)" = "odin" ]; then
|
||||
if [ "$(hostname)" = "loki" ]; then
|
||||
export IS_WORK="1"
|
||||
else
|
||||
export IS_WORK="0"
|
||||
|
|
|
@ -71,7 +71,9 @@ assign [class="Google-chrome-beta"] $workspace1
|
|||
assign [instance="cmus"] $workspace10
|
||||
assign [class="code-oss"] $workspace3
|
||||
assign [class="Nemo"] $workspace4
|
||||
assign [class="Thunar"] $workspace4
|
||||
assign [class="discord"] $workspace5
|
||||
assign [class="Riot"] $workspace5
|
||||
assign [class="Steam"] $workspace6
|
||||
assign [class="keepassxc"] $workspace8
|
||||
assign [class="vlc"] $workspace9
|
||||
|
@ -222,23 +224,6 @@ bindsym $mod+Control+Right exec --no-startup-id cmus-remote -n
|
|||
bindsym XF86AudioPrev exec --no-startup-id cmus-remote -r
|
||||
bindsym $mod+Control+Left exec --no-startup-id cmus-remote -r
|
||||
|
||||
|
||||
exec --no-startup-id "i3-msg 'workspace 10: ; \
|
||||
append_layout /home/severin/.config/i3/workspace-10.json; \
|
||||
exec termite -e cmus --name cmus; \
|
||||
exec termite -e cava --name cava; \
|
||||
exec sxiv -b -s f $HOME/.local/share/cmus/.cover'"
|
||||
|
||||
|
||||
exec --no-startup-id "i3-msg 'workspace 2: ; \
|
||||
append_layout /home/severin/.config/i3/workspace-2.json; \
|
||||
exec termite; \
|
||||
exec termite; \
|
||||
exec termite; \
|
||||
exec termite'"
|
||||
|
||||
exec --no-startup-id "i3-msg 'workspace 1: '"
|
||||
|
||||
###############################################################################
|
||||
# Startup applications #
|
||||
###############################################################################
|
||||
|
@ -261,8 +246,6 @@ exec_always --no-startup-id wallpaper
|
|||
exec autokey-gtk
|
||||
exec google-chrome-beta
|
||||
|
||||
exec discord
|
||||
exec nemo
|
||||
exec nemo
|
||||
exec Thunar
|
||||
exec Thunar
|
||||
exec keepassxc
|
||||
exec notable
|
||||
|
|
|
@ -66,7 +66,9 @@ assign [class="Google-chrome-beta"] $workspace1
|
|||
assign [instance="cmus"] $workspace10
|
||||
assign [class="code-oss"] $workspace3
|
||||
assign [class="Nemo"] $workspace4
|
||||
assign [class="Thunar"] $workspace4
|
||||
assign [class="discord"] $workspace5
|
||||
assign [class="Riot"] $workspace5
|
||||
assign [class="Steam"] $workspace6
|
||||
assign [class="keepassxc"] $workspace8
|
||||
assign [class="vlc"] $workspace9
|
||||
|
@ -217,47 +219,3 @@ bindsym $mod+Control+Right exec --no-startup-id cmus-remote -n
|
|||
bindsym XF86AudioPrev exec --no-startup-id cmus-remote -r
|
||||
bindsym $mod+Control+Left exec --no-startup-id cmus-remote -r
|
||||
|
||||
|
||||
exec --no-startup-id "i3-msg 'workspace 10: ; \
|
||||
append_layout /home/severin/.config/i3/workspace-10.json; \
|
||||
exec termite -e cmus --name cmus; \
|
||||
exec termite -e cava --name cava; \
|
||||
exec sxiv -b -s f $HOME/.local/share/cmus/.cover'"
|
||||
|
||||
|
||||
exec --no-startup-id "i3-msg 'workspace 2: ; \
|
||||
append_layout /home/severin/.config/i3/workspace-2.json; \
|
||||
exec termite; \
|
||||
exec termite; \
|
||||
exec termite; \
|
||||
exec termite'"
|
||||
|
||||
exec --no-startup-id "i3-msg 'workspace 1: '"
|
||||
|
||||
###############################################################################
|
||||
# Startup applications #
|
||||
###############################################################################
|
||||
# Start compton
|
||||
exec --no-startup-id compton -b
|
||||
|
||||
# Start polybar
|
||||
exec_always --no-startup-id $XDG_CONFIG_HOME/polybar/launch
|
||||
|
||||
# Start dunst
|
||||
exec --no-startup-id dunst
|
||||
|
||||
# Set resolution
|
||||
exec_always --no-startup-id resolution
|
||||
|
||||
# Set wallpaper
|
||||
exec_always --no-startup-id wallpaper
|
||||
|
||||
# Other applications
|
||||
exec autokey-gtk
|
||||
exec google-chrome-beta
|
||||
|
||||
exec discord
|
||||
exec nemo
|
||||
exec nemo
|
||||
exec keepassxc
|
||||
exec notable
|
||||
|
|
46
system/.config/i3/config.private
Normal file
46
system/.config/i3/config.private
Normal file
|
@ -0,0 +1,46 @@
|
|||
###############################################################################
|
||||
# Layouts #
|
||||
###############################################################################
|
||||
exec --no-startup-id "i3-msg 'workspace 10: ; \
|
||||
append_layout /home/severin/.config/i3/workspace-10.json; \
|
||||
exec termite -e cmus --name cmus; \
|
||||
exec termite -e cava --name cava; \
|
||||
exec sxiv -b -s f $HOME/.local/share/cmus/.cover'"
|
||||
|
||||
exec --no-startup-id "i3-msg 'workspace 2: ; \
|
||||
append_layout /home/severin/.config/i3/workspace-2.json; \
|
||||
exec termite; \
|
||||
exec termite; \
|
||||
exec termite; \
|
||||
exec termite'"
|
||||
|
||||
exec --no-startup-id "i3-msg 'workspace 1: '"
|
||||
|
||||
###############################################################################
|
||||
# Startup applications #
|
||||
###############################################################################
|
||||
# Start compton
|
||||
exec --no-startup-id compton -b
|
||||
|
||||
# Start polybar
|
||||
exec_always --no-startup-id $XDG_CONFIG_HOME/polybar/launch
|
||||
|
||||
# Start dunst
|
||||
exec --no-startup-id dunst
|
||||
|
||||
# Set resolution
|
||||
exec_always --no-startup-id resolution
|
||||
|
||||
# Set wallpaper
|
||||
exec_always --no-startup-id wallpaper
|
||||
|
||||
# Other applications
|
||||
exec autokey-gtk
|
||||
exec google-chrome-beta
|
||||
|
||||
exec riot-desktop
|
||||
exec discord
|
||||
exec Thunar
|
||||
exec Thunar
|
||||
exec keepassxc
|
||||
exec notable
|
37
system/.config/i3/config.work
Normal file
37
system/.config/i3/config.work
Normal file
|
@ -0,0 +1,37 @@
|
|||
###############################################################################
|
||||
# Layouts #
|
||||
###############################################################################
|
||||
exec --no-startup-id "i3-msg 'workspace 2: ; \
|
||||
append_layout /home/severin/.config/i3/workspace-2.json; \
|
||||
exec termite; \
|
||||
exec termite; \
|
||||
exec termite; \
|
||||
exec termite'"
|
||||
|
||||
exec --no-startup-id "i3-msg 'workspace 1: '"
|
||||
|
||||
###############################################################################
|
||||
# Startup applications #
|
||||
###############################################################################
|
||||
# Start compton
|
||||
exec --no-startup-id compton -b
|
||||
|
||||
# Start polybar
|
||||
exec_always --no-startup-id $XDG_CONFIG_HOME/polybar/launch
|
||||
|
||||
# Start dunst
|
||||
exec --no-startup-id dunst
|
||||
|
||||
# Set resolution
|
||||
exec_always --no-startup-id resolution
|
||||
|
||||
# Set wallpaper
|
||||
exec_always --no-startup-id wallpaper
|
||||
|
||||
# Other applications
|
||||
exec autokey-gtk
|
||||
exec google-chrome-beta
|
||||
|
||||
exec Thunar
|
||||
exec Thunar
|
||||
exec keepassxc
|
Loading…
Add table
Add a link
Reference in a new issue