Use zellij for terminal multiplexing by default
This commit is contained in:
parent
4f373b4ddf
commit
de81eb4119
4 changed files with 10 additions and 4 deletions
|
|
@ -60,7 +60,6 @@ sway-backgrounds \
|
||||||
swayidle \
|
swayidle \
|
||||||
swaylock \
|
swaylock \
|
||||||
syncthing \
|
syncthing \
|
||||||
tmux \
|
|
||||||
udisks2 \
|
udisks2 \
|
||||||
unar \
|
unar \
|
||||||
unrar-free \
|
unrar-free \
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ input type:touchpad {
|
||||||
#
|
#
|
||||||
# Start a terminal
|
# Start a terminal
|
||||||
bindsym $launch+Return exec $term
|
bindsym $launch+Return exec $term
|
||||||
bindsym $launch+t exec $term
|
bindsym $launch+t exec $term zellij attach --create main
|
||||||
|
|
||||||
# Start Emacs
|
# Start Emacs
|
||||||
bindsym $launch+e exec emacs
|
bindsym $launch+e exec emacs
|
||||||
|
|
|
||||||
7
.config/zellij/layouts/sway.kdl
Normal file
7
.config/zellij/layouts/sway.kdl
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
layout {
|
||||||
|
pane {
|
||||||
|
name "sway"
|
||||||
|
command "sway"
|
||||||
|
args "--unsupported-gpu"
|
||||||
|
}
|
||||||
|
}
|
||||||
4
.profile
4
.profile
|
|
@ -37,5 +37,5 @@ export PYTHON_KEYRING_BACKEND="keyring.backends.null.Keyring"
|
||||||
export XDG_CURRENT_DESKTOP="sway"
|
export XDG_CURRENT_DESKTOP="sway"
|
||||||
. "$HOME/.cargo/env"
|
. "$HOME/.cargo/env"
|
||||||
|
|
||||||
# If running from tty1 start sway inside a tmux session
|
# If running from tty1 start sway inside a zellij session
|
||||||
[ "$(tty)" = "/dev/tty1" ] && exec tmux new-session "sway --unsupported-gpu"
|
[ "$(tty)" = "/dev/tty1" ] && exec zellij --layout sway --session sway
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue