Shell commands for cscreen

This commit is contained in:
Ivan Malison 2016-08-16 21:20:15 -07:00
parent 7749a97787
commit a4ec8f17d1
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -183,3 +183,15 @@ function resistance_game_start {
sleep 4
say "everyone open their eyes"
}
function get_screen_by_index {
cscreen | head -n -1 | tail -n +2 | filter_by_column_value 2 "$1" | get_cols 1
}
function make_main_screen {
cscreen -i "$(get_screen_by_index "$1")" -p
}
function swap_main_screen {
make_main_screen 2
}