diff options
| author | Jeff Carr <[email protected]> | 2024-12-23 00:45:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-23 00:45:14 -0600 |
| commit | 60d8edcb03660aecc5f2f36957b1939017ffde68 (patch) | |
| tree | c00ace4990dd22d61b87c21573caf5589bdcf6ea /devilspie/scripts/file-header.lua | |
| parent | 78cbaac691ce37fcda527fab6a56a0f8f7690789 (diff) | |
some lua thing. lists windows okay. notsure
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'devilspie/scripts/file-header.lua')
| -rw-r--r-- | devilspie/scripts/file-header.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/devilspie/scripts/file-header.lua b/devilspie/scripts/file-header.lua new file mode 100644 index 0000000..d38fa34 --- /dev/null +++ b/devilspie/scripts/file-header.lua @@ -0,0 +1,29 @@ +--[[ + This file is part of devilspie2 + Copyright (C) 2023 Darren Salt + + This is an example primarily intended for use in your own + configuration files etc. without causing licence contamination. + As such, no licence conditions are attached; it may be modified and + redistributed freely. Essentially, do what you want with it. + + That said, retaining proper attribution would be appreciated. +]] +-- Optional, but probably useful. (Technical feedback would be helpful.) +set_adjust_for_decoration(true) +-- Set up some variables containing likely-to-be-referenced values +win_class = get_window_class() +win_role = get_window_role() +win_name = get_window_name() +app_name = get_application_name() +ins_name = get_class_instance_name() +if ins_name == nil then ins_name = '[nil]' end +grp_name = get_class_group_name() +if grp_name == nil then grp_name = '[nil]' end +-- Debug output ("devilspie2 -d") +decorated = get_window_is_decorated() and "yes" or "no" +debug_print("\nName: '" .. win_name .. "'\nApp: '" .. app_name .. "'\nClass: " .. win_class .. "\nRole: <" .. win_role .. ">") +debug_print ("Process: '" .. get_process_name() .. "'\nDecorated: " .. decorated) +debug_print ("Instance: '" .. ins_name .. "' & '" .. grp_name .. "'") + +-- Add your stuff here! |
