Add ssh tunnel stuff

This commit is contained in:
2025-11-14 23:13:49 +01:00
parent 34faa25d3a
commit 78542a3c83
3 changed files with 25 additions and 5 deletions

View File

@@ -178,7 +178,7 @@ binds {
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; } Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
} }
workspace "emtpy" { workspace "music" {
open-on-output "Dell Inc. DELL S2722QC 2HHZH24" open-on-output "Dell Inc. DELL S2722QC 2HHZH24"
} }
workspace "chat" { workspace "chat" {
@@ -197,10 +197,15 @@ window-rule {
open-focused false open-focused false
} }
window-rule {
match app-id="com.github.th_ch.youtube_music"
open-on-workspace "music"
}
window-rule { window-rule {
match app-id="discord" match app-id="discord"
match app-id="vesktop" match app-id="vesktop"
match app-id="com.github.th_ch.youtube_music" match app-id="slack"
open-on-workspace "chat" open-on-workspace "chat"
} }

View File

@@ -21,8 +21,14 @@ fi
current_session=$(tmux display-message -p "#S") current_session=$(tmux display-message -p "#S")
if ! tmux has-session "-t=$selected_name" 2> /dev/null; then if ! tmux has-session "-t=$selected_name" 2> /dev/null; then
if [[ "$selected" == "$HOME/work/new" ]]; then
selected_name="work"
ssh_tunnel="ssh zroux@localhost -p 2222 -D 6666"
tmux new-session -ds "$selected_name" -c "$selected" -e "CMD=$ssh_tunnel"
else
tmux new-session -ds "$selected_name" -c "$selected" -e "CMD=$EDITOR ." tmux new-session -ds "$selected_name" -c "$selected" -e "CMD=$EDITOR ."
tmux new-window -dt "$selected_name:1" -c "$selected" -e "CMD=" tmux new-window -dt "$selected_name:1" -c "$selected" -e "CMD="
fi
fi fi
tmux switch-client -t "$selected_name" tmux switch-client -t "$selected_name"

View File

@@ -37,7 +37,16 @@ in {
# Gnome-control-center can only be launched if XDG_CURRENT_DESKTOP is GNOME. # Gnome-control-center can only be launched if XDG_CURRENT_DESKTOP is GNOME.
gnome-control-center = wrapProgram super.gnome-control-center ["gnome-control-center"] "--set XDG_CURRENT_DESKTOP GNOME"; gnome-control-center = wrapProgram super.gnome-control-center ["gnome-control-center"] "--set XDG_CURRENT_DESKTOP GNOME";
slack = enableWayland super.slack ["slack"]; # i can't get this to work /shrug
# slack = super.symlinkJoin {
# name = super.slack.name;
# paths = [super.slack];
# buildInputs = [super.makeWrapper];
# postBuild = ''
# wrapProgram $out/bin/slack --add-flags "--disable-smooth-scrolling"
# substituteInPlace ${super.slack}/share/applications/slack.desktop --replace ${super.slack} $out
# '';
# };
discord = enableWayland super.discord ["discord" "Discord"]; discord = enableWayland super.discord ["discord" "Discord"];
vesktop = enableWayland super.vesktop ["vesktop"]; vesktop = enableWayland super.vesktop ["vesktop"];
youtube-music = enableWayland super.youtube-music ["youtube-music"]; youtube-music = enableWayland super.youtube-music ["youtube-music"];