Replace tmuxp with smug
This commit is contained in:
parent
712f6865da
commit
a5c4e40331
|
@ -12,7 +12,7 @@ select_action() {
|
|||
}
|
||||
|
||||
launch_session() {
|
||||
bash -c "tmuxp load ~/.tmuxp/$1.yaml"
|
||||
tmux send "smug start $1 2&>1 > /dev/null" ENTER
|
||||
}
|
||||
|
||||
execute_action() {
|
|
@ -288,8 +288,8 @@ bindsym Shift+Print exec slurp | grim -g - - | wl-copy
|
|||
bindsym $mod+f exec ~/.local/share/scripts/finder
|
||||
# recurrent action launcher
|
||||
bindsym $mod+Shift+a exec ~/.local/share/scripts/recurrent-actions
|
||||
# tmuxp session menu
|
||||
bindsym $mod+Shift+s exec ~/.local/share/scripts/tmuxp-session
|
||||
# tmux session menu
|
||||
bindsym $mod+Shift+s exec ~/.local/share/scripts/tmux-session
|
||||
# power menu
|
||||
bindsym $mod+Shift+p exec ~/.local/share/scripts/power-menu
|
||||
|
||||
|
@ -325,7 +325,7 @@ exec wl-paste -t text --watch clipman store --max-items=50
|
|||
exec kanshi
|
||||
# tmux
|
||||
assign [app_id="tmux"] $workspace1
|
||||
exec kitty --class tmux -- tmuxp load ~/.tmuxp/local.yaml
|
||||
exec kitty --class tmux -- smug start local
|
||||
# firefox
|
||||
assign [app_id="firefox"] $workspace2
|
||||
exec firefox
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
session: hpc
|
||||
|
||||
windows:
|
||||
- name: canvas
|
||||
layout: tiled
|
||||
commands:
|
||||
- ssh hpc
|
||||
panes:
|
||||
- type: vertical
|
||||
commands:
|
||||
- ssh hpc
|
||||
|
||||
- name: monitor
|
||||
commands:
|
||||
- ssh -t hpc "htop"
|
|
@ -0,0 +1,15 @@
|
|||
session: idlab
|
||||
|
||||
windows:
|
||||
- name: canvas
|
||||
layout: tiled
|
||||
commands:
|
||||
- ssh idlab
|
||||
panes:
|
||||
- type: vertical
|
||||
commands:
|
||||
- ssh idlab
|
||||
|
||||
- name: monitor
|
||||
commands:
|
||||
- ssh -t idlab "htop"
|
|
@ -0,0 +1,40 @@
|
|||
session: local
|
||||
|
||||
windows:
|
||||
- name: admin
|
||||
layout : tiled
|
||||
commands:
|
||||
- su
|
||||
panes:
|
||||
- type: horizontal
|
||||
commands:
|
||||
- su
|
||||
|
||||
- name: canvas
|
||||
layout : tiled
|
||||
commands:
|
||||
- clear
|
||||
panes:
|
||||
- type: horizontal
|
||||
commands:
|
||||
- clear
|
||||
|
||||
- name: docs
|
||||
commands:
|
||||
- man zfs
|
||||
panes:
|
||||
- type: vertical
|
||||
commands:
|
||||
- man nix-shell
|
||||
|
||||
- name: music
|
||||
commands:
|
||||
- ncmpcpp
|
||||
|
||||
- name: mail
|
||||
commands:
|
||||
- neomutt
|
||||
|
||||
- name: stream
|
||||
commands:
|
||||
- clear
|
|
@ -0,0 +1,24 @@
|
|||
session: zion
|
||||
|
||||
windows:
|
||||
- name: admin
|
||||
layout : tiled
|
||||
commands:
|
||||
- ssh root@zion
|
||||
panes:
|
||||
- type: vertical
|
||||
commands:
|
||||
- ssh root@zion
|
||||
|
||||
- name: canvas
|
||||
layout : tiled
|
||||
commands:
|
||||
- ssh zion
|
||||
panes:
|
||||
- type: vertical
|
||||
commands:
|
||||
- ssh zion
|
||||
|
||||
- name: monitor
|
||||
commands:
|
||||
- ssh -t zion "htop"
|
|
@ -1,13 +0,0 @@
|
|||
session_name: hpc
|
||||
suppress_history: false
|
||||
|
||||
windows:
|
||||
- window_name: canvas
|
||||
layout: even-vertical
|
||||
panes:
|
||||
- ssh hpc
|
||||
- ssh hpc
|
||||
|
||||
- window_name: monitor
|
||||
panes:
|
||||
- ssh -t hpc "htop"
|
|
@ -1,13 +0,0 @@
|
|||
session_name: idlab
|
||||
suppress_history: false
|
||||
|
||||
windows:
|
||||
- window_name: canvas
|
||||
layout: even-vertical
|
||||
panes:
|
||||
- ssh idlab
|
||||
- ssh idlab
|
||||
|
||||
- window_name: monitor
|
||||
panes:
|
||||
- ssh -t idlab "htop"
|
|
@ -1,34 +0,0 @@
|
|||
session_name: local
|
||||
suppress_history: false
|
||||
|
||||
windows:
|
||||
- window_name: admin
|
||||
focus: true
|
||||
layout: even-vertical
|
||||
panes:
|
||||
- su
|
||||
- su
|
||||
|
||||
- window_name: canvas
|
||||
layout: even-vertical
|
||||
panes:
|
||||
- null
|
||||
- null
|
||||
|
||||
- window_name: docs
|
||||
layout: even-horizontal
|
||||
panes:
|
||||
- man zfs
|
||||
- man nix-shell
|
||||
|
||||
- window_name: music
|
||||
panes:
|
||||
- ncmpcpp
|
||||
|
||||
- window_name: mail
|
||||
panes:
|
||||
- neomutt
|
||||
|
||||
- window_name: stream
|
||||
panes:
|
||||
- null
|
|
@ -1,20 +0,0 @@
|
|||
session_name: zion
|
||||
suppress_history: false
|
||||
|
||||
windows:
|
||||
- window_name: admin
|
||||
focus: true
|
||||
layout: even-vertical
|
||||
panes:
|
||||
- ssh root@zion
|
||||
- ssh root@zion
|
||||
|
||||
- window_name: canvas
|
||||
layout: even-vertical
|
||||
panes:
|
||||
- ssh zion
|
||||
- ssh zion
|
||||
|
||||
- window_name: monitor
|
||||
panes:
|
||||
- ssh -t zion "htop"
|
Loading…
Reference in New Issue