mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-06-30 01:02:02 +00:00
i3wm for window generator and Planet Coaster bindings
This commit is contained in:
8
scripts/i3wm-for-window-gen.sh
Normal file
8
scripts/i3wm-for-window-gen.sh
Normal 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\"]
|
Reference in New Issue
Block a user