Process tree list, i.e. to spot unusual sub-processes
$ ps -fauwwx| #!/bin/sh | |
| get_instance_line() { | |
| hyprctl instances | grep -i instance | |
| } | |
| INSTANCE_COUNT=$(get_instance_line | grep -c instance) | |
| if [ $INSTANCE_COUNT -eq "1" ]; then | |
| export HYPRLAND_INSTANCE_SIGNATURE=$(get_instance_line | grep -o -E '[a-zA-Z0-9_]+') |
| # 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 bottom_padding 4 | |
| yabai -m config right_padding 4 | |
| yabai -m config left_padding 4 | |
| yabai -m config top_padding 4 |
| # This needs a hyper key to be defined, i.e. in Karabiner-Elements | |
| # | |
| # | |
| # -- Changing Window Focus -- | |
| # | |
| # change window focus within space | |
| hyper - j : yabai -m window --focus south | |
| hyper - k : yabai -m window --focus north | |
| hyper - h : yabai -m window --focus west | |
| hyper - l : yabai -m window --focus east |
| #!/bin/bash | |
| # Change this line with the souce's name from `wpctl status` | |
| MICROPHONE_SOURCE_NAME="RØDE NT-USB+" | |
| MICROPHONE_SOURCE_DEFAULT_VOLUME="0.75" | |
| get_volume_line() { | |
| wpctl status | grep "$MICROPHONE_SOURCE_NAME" | grep -i vol | |
| } |
Process tree list, i.e. to spot unusual sub-processes
$ ps -fauwwx| #!/bin/sh | |
| # script is inspired by https://github.com/michalrus/git-hooks-code-autoformat | |
| patterns="\.java$" | |
| intellijFormatter="/Applications/IntelliJ IDEA.app/Contents/bin/format.sh" | |
| configpath="/Users/path/to/your/config.xml" | |
| root="$(git rev-parse --show-toplevel)" | |
| [ -d "$root" ] || exit 1 |
| select min_a - 1 + level | |
| from ( select min(id) min_a | |
| , max(id) max_a | |
| from tabledata | |
| ) | |
| connect by level <= max_a - min_a + 1 | |
| minus | |
| select id | |
| from tabledata | |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |