From 944fc8685d4c1b2c6093fd3475d496b087e2f1ee Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 23 Dec 2024 02:41:40 -0600 Subject: builds and lists window names --- devilspie/scripts/awesome.lua | 46 ------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 devilspie/scripts/awesome.lua (limited to 'devilspie/scripts/awesome.lua') diff --git a/devilspie/scripts/awesome.lua b/devilspie/scripts/awesome.lua deleted file mode 100644 index dc11905..0000000 --- a/devilspie/scripts/awesome.lua +++ /dev/null @@ -1,46 +0,0 @@ --- Support Awesome 3.5 WM - -local posix = require("posix"); -local os = require("os"); - -local awesome = "/usr/bin/awesome-client" -if not posix.stat(awesome, "type") == "file" then - awesome = nil; -end - --- Check for tiling mode -function is_tiling() - if awesome then - return true; - end - return false; -end - --- Make window floating --- Parameters: state - true to make window floating, else make window tiled -function set_tile_floating( state ) - if not awesome then - return nil; - end - - if state then state = "true" else state = "false" end - - local xid = get_window_xid(); - - local command = "echo "; - command = command .. "'"; - command = command .. " local naughty = require(\"naughty\");"; - command = command .. " local awcl = require(\"awful.client\");"; - command = command .. " local client = require(\"client\");"; - command = command .. " for k, c in pairs( client.get() ) do"; - command = command .. " if c.window == " .. xid .. " then"; - command = command .. " awcl.floating.set(c, " .. state .. ");"; - command = command .. " end"; - command = command .. " end"; - command = command .. "'"; - command = command .. " | "; - command = command .. awesome; - - debug_print("Awesome floating: " .. command); - return os.execute( command ); -end -- cgit v1.2.3