added K8s, ohmyzsh-themps, neofetch und zabai
This commit is contained in:
15
yabai/scripts/defeat-teams.sh
Executable file
15
yabai/scripts/defeat-teams.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
# Works for yabai >= 4.0
|
||||
|
||||
echo "Running $(basename "$0")"
|
||||
focused_app=$(yabai -m query --windows --window)
|
||||
is_invis_teams_noti=$(echo "$focused_app" | jq '.title == "Microsoft Teams Notification" and .frame.h == 0')
|
||||
echo "Invisible teams window selected: $is_invis_teams_noti"
|
||||
|
||||
if $is_invis_teams_noti; then
|
||||
focused_display_id=$(echo "$focused_app" | jq '.display')
|
||||
visible_space_id=$(yabai -m query --spaces --display $focused_display_id | jq 'map(select(."is-visible" == true))[0].index')
|
||||
available_windows=$(yabai -m query --windows --display $focused_display_id | jq --argjson space $visible_space_id 'map(select(.space == $space))')
|
||||
recent_window_id=$(echo "$available_windows" | jq 'map(select(.title | contains("Microsoft Teams Notification") | not))[0].id')
|
||||
yabai -m window --focus $recent_window_id
|
||||
fi
|
||||
44
yabai/yabairc
Executable file
44
yabai/yabairc
Executable file
@@ -0,0 +1,44 @@
|
||||
# default layout (can be bsp, stack or float)
|
||||
yabai -m config layout bsp
|
||||
|
||||
# new window spawns to the right if vertical split, or bottom if horizontal split
|
||||
yabai -m config window_placement second_child
|
||||
|
||||
# padding set to 12px
|
||||
yabai -m config top_padding 10
|
||||
yabai -m config bottom_padding 10
|
||||
yabai -m config left_padding 10
|
||||
yabai -m config right_padding 10
|
||||
yabai -m config window_gap 10
|
||||
|
||||
# -- mouse settings --
|
||||
yabai -m config focus_follows_mouse off
|
||||
yabai -m config mouse_follows_focus off
|
||||
|
||||
# modifier for clicking and dragging with mouse
|
||||
yabai -m config mouse_modifier alt
|
||||
# set modifier + left-click drag to move window
|
||||
yabai -m config mouse_action1 move
|
||||
# set modifier + right-click drag to resize window
|
||||
yabai -m config mouse_action2 resize
|
||||
|
||||
# when window is dropped in center of another window, swap them (on edges it will split it)
|
||||
yabai -m mouse_drop_action swap
|
||||
|
||||
|
||||
# disable specific apps
|
||||
yabai -m rule --add app="^System Settings$" manage=off
|
||||
yabai -m rule --add app="^Calculator$" manage=off
|
||||
yabai -m rule --add app="^Karabiner-Elements$" manage=off
|
||||
yabai -m rule --add app="^QuickTime Player$" manage=off
|
||||
|
||||
yabai -m signal --add \
|
||||
event=application_activated \
|
||||
app="^Microsoft Teams$" \
|
||||
action='${HOME}/.config/yabai/scripts/defeat-teams.sh'
|
||||
|
||||
yabai -m signal --add \
|
||||
event=window_focused \
|
||||
app="^Microsoft Teams$" \
|
||||
title="^Microsoft Teams Notification$" \
|
||||
action='${HOME}/.config/yabai/scripts/defeat-teams.sh'
|
||||
Reference in New Issue
Block a user