remove old scripts (mostly replaced by inline Lua)

This commit is contained in:
jfmonty2 committed 2026-10-02 10:00:16 -04:00
1 parent f27247fe9e
commit b8fc830342
5 files changed
+1 -59

No files matched your search

@@ -1,43 +0,0 @@
#!/usr/bin/python
import json
import subprocess
CONFIG = [
{'make': 'Samsung Electric Company', 'model': 'LS27A800U', 'position': 'left', 'workspace': 1},
{'make': 'Seanix Technology Inc', 'model': 'NX-EDG27X', 'position': 'center', 'workspace': 2},
{'make': 'BOE', 'model': '0x0BCA', 'position': 'right', 'workspace': 3},
]
p = subprocess.run(
['hyprctl', 'monitors', '-j'],
capture_output=True,
check=True,
encoding='utf-8'
)
monitors = json.loads(p.stdout)
# print('monitors:', monitors)
monitor_ids = {}
for mon in monitors:
for conf in CONFIG:
if conf['make'] == mon['make'] and conf['model'] == mon['model']:
monitor_ids[ conf['position'] ] = mon['id']
if len(monitor_ids) == len(CONFIG):
print('config matched, assigning:')
dispatches = []
for conf in CONFIG:
workspace = conf['workspace']
monitor_id = monitor_ids[ conf['position'] ]
# move workspace to desired monitor
dispatches.append(f"dispatch moveworkspacetomonitor {workspace} {monitor_id}")
# focus the workspace so that it's visible after moving
dispatches.append(f"workspace {workspace}")
cmd = ['hyprctl', '--batch', ' ; '.join(dispatches)]
print('\n'.join(cmd))
subprocess.run(cmd, check=True)
else:
print('config not matched')
-7
View File
@@ -1,7 +0,0 @@
#!/usr/bin/bash
# generate ids from 1-100, remove the ids of existing workspaces, take the
# first of the remaining numbers and you have the first available workspace id
FIRST_AVAILABLE=$(hyprctl workspaces -j | jq '[range(1; 100)] - map(.id) | .[0]')
hyprctl dispatch workspace $FIRST_AVAILABLE
@@ -1,8 +0,0 @@
#!/bin/bash
if [[ $(makoctl list) == '' ]]; then
makoctl restore
else
makoctl dismiss
fi
+1
View File
@@ -0,0 +1 @@
/home/joe/.local/share/JetBrains/Toolbox/scripts/datagrip
-1
View File
@@ -1 +0,0 @@
/usr/bin/zeditor