diff options
| author | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
|---|---|---|
| committer | Xander Swan <email> | 2025-12-03 10:00:41 -0500 |
| commit | 3711f22b6c37202ee25a5359e198a230788967c6 (patch) | |
| tree | 44120561e21cfa41fb09803a4fa2228fc65c2214 /.config/i3/shellutils.lua | |
| parent | 2bc298723af1360491c63ca55e846820ce65ddbc (diff) | |
Polybar
Diffstat (limited to '.config/i3/shellutils.lua')
| -rw-r--r-- | .config/i3/shellutils.lua | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/.config/i3/shellutils.lua b/.config/i3/shellutils.lua deleted file mode 100644 index cb27943..0000000 --- a/.config/i3/shellutils.lua +++ /dev/null @@ -1,16 +0,0 @@ -local shell_utils = {} - -local temp_file_path = "/tmp/i3luacommandouput" - -function shell_utils.get_output(command) - os.execute(command .. " > " .. temp_file_path .. " 2> " .. temp_file_path) - local file = io.open(temp_file_path, "r") - if file == nil then - error("Can't read output.") - end - local output = file:read() - file:close() - return output or "" -end - -return shell_utils
\ No newline at end of file |
