diff --git a/clipurr/src/clipurr.nim b/clipurr/src/clipurr.nim index 5431161..4704b32 100644 --- a/clipurr/src/clipurr.nim +++ b/clipurr/src/clipurr.nim @@ -4,6 +4,9 @@ import std/[strutils,os,db_sqlite,osproc] const CLIP_DB = WM_TOOLS_DIR & ".clipurr_cache.sqlite" const KEEP_ITEMS = 20 +proc openDBConn(): DBConn +let db = openDBConn() + proc addClip(str: var string) proc killOldRunningProcesses() = @@ -42,7 +45,8 @@ proc openDBConn(): DBConn = return db proc clearHistory() = - let db = openDBConn() +# let db = openDBConn() + defer: db.close() try: db.exec(sql"drop table if exists clip_items") @@ -50,6 +54,8 @@ proc clearHistory() = echo getCurrentExceptionMsg() proc maintainDB() = + return # order by and offset doesn't work unless certain sqlite compile time options set + # will create a different way to do this let db = openDBConn() try: db.exec(sql"""BEGIN""") @@ -75,10 +81,10 @@ proc unescapeClip(str: string): string = proc readClipFile(): seq[string] = var clips: seq[string] = @[] - let db = openDBConn() +# let db = openDBConn() defer: db.close() try: - for row in db.fastRows(sql"select distinct(clip) from clip_items order by timestamp desc"): + for row in db.fastRows(sql"select distinct(clip) from clip_items order by timestamp desc LIMIT ?", KEEP_ITEMS): var str = unescapeClip(row[0]) clips.add(str) except: @@ -92,7 +98,6 @@ proc addClip(str: var string) = var t = str[1..3] echo "Is a ", $t, " file , not storing" str = "[" & t & " Image] (not stored)" - let db = openDBConn() defer: db.close() try: db.exec(sql"""BEGIN""") diff --git a/globurrl.nim b/globurrl.nim index 0b43702..2e41da7 100644 --- a/globurrl.nim +++ b/globurrl.nim @@ -34,7 +34,7 @@ type x*: int y*: int -const WM_TOOLS_DIR* = getHomeDir() & "Nextcloud/.wm_tools/" +const WM_TOOLS_DIR* = getHomeDir() & ".wm_tools/" const background* = "#000000" const backgroundalt* = "#bb222222" const backgroundalt2* = "#bb333333" diff --git a/i3-tree-example.txt b/i3-tree-example.txt new file mode 100644 index 0000000..a8e3c3b --- /dev/null +++ b/i3-tree-example.txt @@ -0,0 +1,1567 @@ +{ + "id": 94129106588304, + "type": "root", + "orientation": "horizontal", + "scratchpad_state": "none", + "percent": 1, + "urgent": false, + "marks": [], + "focused": false, + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 0, + "y": 0, + "width": 5543, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "root", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106590816, + "type": "output", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.25, + "urgent": false, + "marks": [], + "focused": false, + "layout": "output", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 0, + "y": 0, + "width": 13440, + "height": 37800 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "__i3", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106591264, + "type": "con", + "orientation": "horizontal", + "scratchpad_state": "none", + "percent": 1, + "urgent": false, + "marks": [], + "focused": false, + "output": "__i3", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "content", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106591712, + "type": "workspace", + "orientation": "none", + "scratchpad_state": "none", + "percent": 1, + "urgent": false, + "marks": [], + "focused": false, + "output": "__i3", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "__i3_scratch", + "window_icon_padding": -1, + "num": -1, + "window": null, + "window_type": null, + "nodes": [], + "floating_nodes": [ + { + "id": 94129107129280, + "type": "floating_con", + "orientation": "horizontal", + "scratchpad_state": "fresh", + "percent": null, + "urgent": false, + "marks": [], + "focused": false, + "output": "__i3", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 6268, + "y": 18583, + "width": 904, + "height": 634 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": null, + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129107128832, + "type": "con", + "orientation": "none", + "scratchpad_state": "none", + "percent": 1, + "urgent": false, + "marks": [], + "focused": false, + "output": "__i3", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": 2, + "rect": { + "x": 4131, + "y": 223, + "width": 904, + "height": 634 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 2, + "y": 2, + "width": 900, + "height": 630 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 900, + "height": 630 + }, + "name": "~/N/B/L/d/startup", + "window_icon_padding": -1, + "window": 106954754, + "window_type": "normal", + "window_properties": { + "class": "Alacritty", + "instance": "Alacritty", + "machine": "wildepc.wilde.local", + "title": "~/N/B/L/d/startup", + "transient_for": null + }, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "user_on", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129107128832 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "focus": [ + 94129107129280 + ], + "fullscreen_mode": 1, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129106591712 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129106591264 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + }, + { + "id": 94129106600176, + "type": "output", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.25, + "urgent": false, + "marks": [], + "focused": false, + "layout": "output", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 0, + "y": 0, + "width": 1680, + "height": 1050 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "HDMI-2", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106600624, + "type": "dockarea", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.3333333333333333, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-2", + "layout": "dockarea", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 0, + "y": 0, + "width": 1680, + "height": 0 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "topdock", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [ + { + "dock": 2, + "insert_where": 2 + } + ] + }, + { + "id": 94129106603888, + "type": "con", + "orientation": "horizontal", + "scratchpad_state": "none", + "percent": 0.3333333333333333, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-2", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 0, + "y": 0, + "width": 1680, + "height": 1050 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "content", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106604336, + "type": "workspace", + "orientation": "horizontal", + "scratchpad_state": "none", + "percent": 1, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-2", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 0, + "y": 0, + "width": 1680, + "height": 1050 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "3", + "window_icon_padding": -1, + "num": 3, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106604784, + "type": "con", + "orientation": "none", + "scratchpad_state": "none", + "percent": 1, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-2", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": 2, + "rect": { + "x": 0, + "y": 0, + "width": 1680, + "height": 1050 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 2, + "y": 2, + "width": 1676, + "height": 1046 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 838, + "height": 1048 + }, + "name": "Inbox (5 unread) — Evolution", + "window_icon_padding": -1, + "window": 23068690, + "window_type": "normal", + "window_properties": { + "class": "Evolution", + "instance": "evolution", + "window_role": "EShellWindow-94511705663248", + "machine": "wildepc.wilde.local", + "title": "Inbox (5 unread) — Evolution", + "transient_for": null + }, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129106604784 + ], + "fullscreen_mode": 1, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129106604336 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + }, + { + "id": 94129106613392, + "type": "dockarea", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.3333333333333333, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-2", + "layout": "dockarea", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 0, + "y": 1050, + "width": 1680, + "height": 0 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "bottomdock", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [ + { + "dock": 3, + "insert_where": 2 + } + ] + } + ], + "floating_nodes": [], + "focus": [ + 94129106603888, + 94129106600624, + 94129106613392 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + }, + { + "id": 94129106619360, + "type": "output", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.25, + "urgent": false, + "marks": [], + "focused": false, + "layout": "output", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 3623, + "y": 0, + "width": 1920, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "HDMI-1", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106619840, + "type": "dockarea", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.3333333333333333, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-1", + "layout": "dockarea", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 3623, + "y": 0, + "width": 1920, + "height": 0 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "topdock", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [ + { + "dock": 2, + "insert_where": 2 + } + ] + }, + { + "id": 94129106623136, + "type": "con", + "orientation": "horizontal", + "scratchpad_state": "none", + "percent": 0.3333333333333333, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-1", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 3623, + "y": 0, + "width": 1920, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "content", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106623616, + "type": "workspace", + "orientation": "horizontal", + "scratchpad_state": "none", + "percent": 1, + "urgent": true, + "marks": [], + "focused": false, + "output": "HDMI-1", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 3623, + "y": 0, + "width": 1920, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "6", + "window_icon_padding": -1, + "num": 6, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106624096, + "type": "con", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.5, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-1", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": 2, + "rect": { + "x": 3623, + "y": 0, + "width": 960, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 2, + "y": 2, + "width": 956, + "height": 1076 + }, + "geometry": { + "x": 4584, + "y": 1, + "width": 958, + "height": 1078 + }, + "name": "SchildiChat [1] | Hugo Bobbins", + "window_icon_padding": -1, + "window": 25165827, + "window_type": "normal", + "window_properties": { + "class": "SchildiChat", + "instance": "schildichat", + "window_role": "browser-window", + "machine": "wildepc.wilde.local", + "title": "SchildiChat [1] | Hugo Bobbins", + "transient_for": null + }, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + }, + { + "id": 94129106627408, + "type": "con", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.5, + "urgent": true, + "marks": [], + "focused": false, + "output": "HDMI-1", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": 2, + "rect": { + "x": 4583, + "y": 0, + "width": 960, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 2, + "y": 2, + "width": 956, + "height": 1076 + }, + "geometry": { + "x": 4584, + "y": 1, + "width": 958, + "height": 1078 + }, + "name": "Telegram (6)", + "window_icon_padding": -1, + "window": 20971526, + "window_type": "normal", + "window_properties": { + "class": "TelegramDesktop", + "instance": "telegram-desktop", + "machine": "wildepc.wilde.local", + "title": "Telegram (6)", + "transient_for": null + }, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129106624096, + 94129106627408 + ], + "fullscreen_mode": 1, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129106623616 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + }, + { + "id": 94129106639200, + "type": "dockarea", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.3333333333333333, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-1", + "layout": "dockarea", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 3623, + "y": 1080, + "width": 1920, + "height": 0 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "bottomdock", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [ + { + "dock": 3, + "insert_where": 2 + } + ] + } + ], + "floating_nodes": [], + "focus": [ + 94129106623136, + 94129106619840, + 94129106639200 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + }, + { + "id": 94129106645168, + "type": "output", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.25, + "urgent": false, + "marks": [], + "focused": false, + "layout": "output", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 1703, + "y": 0, + "width": 1920, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "HDMI-0", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106645648, + "type": "dockarea", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.3333333333333333, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-0", + "layout": "dockarea", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 1703, + "y": 0, + "width": 1920, + "height": 0 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "topdock", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [ + { + "dock": 2, + "insert_where": 2 + } + ] + }, + { + "id": 94129106648944, + "type": "con", + "orientation": "horizontal", + "scratchpad_state": "none", + "percent": 0.3333333333333333, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-0", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 1703, + "y": 0, + "width": 1920, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "content", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106649424, + "type": "workspace", + "orientation": "horizontal", + "scratchpad_state": "none", + "percent": 0.5, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-0", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 1703, + "y": 0, + "width": 1920, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "1", + "window_icon_padding": -1, + "num": 1, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106491840, + "type": "con", + "orientation": "none", + "scratchpad_state": "none", + "percent": 1, + "urgent": false, + "marks": [], + "focused": true, + "output": "HDMI-0", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": 2, + "rect": { + "x": 1703, + "y": 0, + "width": 1920, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 2, + "y": 2, + "width": 1916, + "height": 1076 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 900, + "height": 630 + }, + "name": "~/N/B/L/d/startup", + "window_icon_padding": -1, + "window": 50331650, + "window_type": "normal", + "window_properties": { + "class": "Alacritty", + "instance": "Alacritty", + "machine": "wildepc.wilde.local", + "title": "~/N/B/L/d/startup", + "transient_for": null + }, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129106491840 + ], + "fullscreen_mode": 1, + "sticky": false, + "floating": "auto_off", + "swallows": [] + }, + { + "id": 94129106655904, + "type": "workspace", + "orientation": "horizontal", + "scratchpad_state": "none", + "percent": 0.5, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-0", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 1703, + "y": 0, + "width": 1920, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "2", + "window_icon_padding": -1, + "num": 2, + "window": null, + "window_type": null, + "nodes": [ + { + "id": 94129106659680, + "type": "con", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.46458333333333324, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-0", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": 2, + "rect": { + "x": 1703, + "y": 0, + "width": 892, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 2, + "y": 2, + "width": 888, + "height": 1076 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 956, + "height": 1050 + }, + "name": "(5) !Null — Mozilla Firefox", + "window_icon_padding": -1, + "window": 65011757, + "window_type": "normal", + "window_properties": { + "class": "firefox", + "instance": "Navigator", + "window_role": "browser", + "machine": "wildepc.wilde.local", + "title": "(5) !Null — Mozilla Firefox", + "transient_for": null + }, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + }, + { + "id": 94129107085600, + "type": "con", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.5354166666666667, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-0", + "layout": "splith", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": 2, + "rect": { + "x": 2595, + "y": 0, + "width": 1028, + "height": 1080 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 2, + "y": 2, + "width": 1024, + "height": 1076 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 900, + "height": 630 + }, + "name": "~/D/pmenu", + "window_icon_padding": -1, + "window": 85983234, + "window_type": "normal", + "window_properties": { + "class": "Alacritty", + "instance": "Alacritty", + "machine": "wildepc.wilde.local", + "title": "~/D/pmenu", + "transient_for": null + }, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "user_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129107085600, + 94129106659680 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129106649424, + 94129106655904 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + }, + { + "id": 94129106671488, + "type": "dockarea", + "orientation": "none", + "scratchpad_state": "none", + "percent": 0.3333333333333333, + "urgent": false, + "marks": [], + "focused": false, + "output": "HDMI-0", + "layout": "dockarea", + "workspace_layout": "default", + "last_split_layout": "splith", + "border": "pixel", + "current_border_width": -1, + "rect": { + "x": 1703, + "y": 1080, + "width": 1920, + "height": 0 + }, + "deco_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "window_rect": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "geometry": { + "x": 0, + "y": 0, + "width": 0, + "height": 0 + }, + "name": "bottomdock", + "window_icon_padding": -1, + "window": null, + "window_type": null, + "nodes": [], + "floating_nodes": [], + "focus": [], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [ + { + "dock": 3, + "insert_where": 2 + } + ] + } + ], + "floating_nodes": [], + "focus": [ + 94129106648944, + 94129106645648, + 94129106671488 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] + } + ], + "floating_nodes": [], + "focus": [ + 94129106645168, + 94129106600176, + 94129106619360, + 94129106590816 + ], + "fullscreen_mode": 0, + "sticky": false, + "floating": "auto_off", + "swallows": [] +} diff --git a/screenshuurt/screenshuurt.nimble b/screenshurrt/screenshurrt.nimble similarity index 100% rename from screenshuurt/screenshuurt.nimble rename to screenshurrt/screenshurrt.nimble diff --git a/screenshuurt/src/screenshurrt.nim b/screenshurrt/src/screenshurrt.nim similarity index 100% rename from screenshuurt/src/screenshurrt.nim rename to screenshurrt/src/screenshurrt.nim diff --git a/urr_example.mp4 b/urr_example.mp4 deleted file mode 100644 index f735dec..0000000 Binary files a/urr_example.mp4 and /dev/null differ