i3wm for window generator and Planet Coaster bindings

This commit is contained in:
2020-07-05 19:24:22 -04:00
parent dd1b7376c1
commit f93e7739ba
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#! /bin/bash
# A script to make creating i3wm window actions easier.
info=$(xprop)
title=$(echo "$info" | grep "WM_NAME(STRING)" | cut -d "\"" -f2 | cut -d "\"" -f1)
class=$(echo "$info" | grep "WM_CLASS(STRING)" | cut -d "\"" -f2 | cut -d "\"" -f1)
echo for_window [class=\"$class\" title=\"$title\"]