mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 09:15:34 +00:00
9 lines
304 B
Bash
Executable File
9 lines
304 B
Bash
Executable File
#! /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\"]
|