From 4f447eaf067aacae0953803ec8811f72975b428a Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Fri, 24 Sep 2021 15:54:30 +0200 Subject: [PATCH] Remove unused tmux config from launcher --- modules/graphical/sway/launcher.nix | 1 - modules/graphical/sway/launcher.zsh | 10 +--------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/modules/graphical/sway/launcher.nix b/modules/graphical/sway/launcher.nix index 1c1b4d1d..b25cc276 100644 --- a/modules/graphical/sway/launcher.nix +++ b/modules/graphical/sway/launcher.nix @@ -36,7 +36,6 @@ let pass slurp sway - tmuxinator zsh ; inherit emojiList; diff --git a/modules/graphical/sway/launcher.zsh b/modules/graphical/sway/launcher.zsh index 5820ef15..5425277f 100644 --- a/modules/graphical/sway/launcher.zsh +++ b/modules/graphical/sway/launcher.zsh @@ -96,14 +96,6 @@ systemctl_options() { echo systemctl suspend } -tmuxinator_options() { - ls ~/.config/tmuxinator | sed "s/\.yml$//" | sed "s/^/tmuxinator /" -} - -tmuxinator() { - @sway@/bin/swaymsg exec "@kitty@/bin/kitty -e @tmuxinator@/bin/tmuxinator start $1" -} - windows_options() { @sway@/bin/swaymsg -t get_tree | @jq@/bin/jq -r 'recurse(.nodes[]?)|recurse(.floating_nodes[]?)|select(.layout=="none")|select(.app_id!="launcher")|select(.type=="con"),select(.type=="floating_con")|(if .app_id then .app_id else .window_properties.class end)+": "+.name+" ("+(.id|tostring)+")"' | sed "s/^/windows /" } @@ -113,7 +105,7 @@ windows() { @sway@/bin/swaymsg \[con_id="$window"\] focus } -CHOSEN=$(cat <(windows_options) <(tmuxinator_options) <(ssh_options) <(systemctl_options) <(pass_options) <(run_options) <(record_options) <(calc_options) <(emoji_options) | @fzy@/bin/fzy --lines 36 | tail -n1) +CHOSEN=$(cat <(windows_options) <(ssh_options) <(systemctl_options) <(pass_options) <(run_options) <(record_options) <(calc_options) <(emoji_options) | @fzy@/bin/fzy --lines 40 | tail -n1) if [ -n "$CHOSEN" ] then