EzekielEnns / Configs

a group of my personal config files, mostly for linux use
1 stars 0 forks source link

adding a switcher dmenue script #17

Open EzekielEnns opened 6 months ago

EzekielEnns commented 6 months ago

i wanna remove tab names....... cause its prettier maybe bind a dmenu switcher

EzekielEnns commented 6 months ago

https://gist.github.com/lirenlin/9892945?permalink_comment_id=4482499#gistcomment-4482499

https://stackoverflow.com/questions/41166119/i3wm-show-tabs-bar-only-if-mod-key-is-pressed

EzekielEnns commented 6 months ago

and for moving tabs: https://chat.openai.com/share/08214ee4-e251-4691-92a1-28efd2566d94

#!/bin/bash

# Get a list of windows in the current workspace
windows=$(i3-msg -t get_tree | jq -r '.. | objects | select(.window != null) | select(.workspace == "__focused__") | "\(.name)"')

# Use dmenu to display the window list and prompt the user to select one
selected_window=$(echo "$windows" | dmenu -i -p "Select a window:")

# Focus the selected window
i3-msg "[title=\"$selected_window\"] focus"