diff --git a/dot_local/bin/executable_assign-workspace-monitors b/dot_local/bin/executable_assign-workspace-monitors deleted file mode 100644 index 3ae8746..0000000 --- a/dot_local/bin/executable_assign-workspace-monitors +++ /dev/null @@ -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') diff --git a/dot_local/bin/executable_new-workspace b/dot_local/bin/executable_new-workspace deleted file mode 100644 index b8eb539..0000000 --- a/dot_local/bin/executable_new-workspace +++ /dev/null @@ -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 diff --git a/dot_local/bin/executable_toggle-last-notification b/dot_local/bin/executable_toggle-last-notification deleted file mode 100644 index abfcd8c..0000000 --- a/dot_local/bin/executable_toggle-last-notification +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -if [[ $(makoctl list) == '' ]]; then - makoctl restore -else - makoctl dismiss -fi - diff --git a/dot_local/bin/symlink_datagrip b/dot_local/bin/symlink_datagrip new file mode 100644 index 0000000..2eb9ff6 --- /dev/null +++ b/dot_local/bin/symlink_datagrip @@ -0,0 +1 @@ +/home/joe/.local/share/JetBrains/Toolbox/scripts/datagrip diff --git a/dot_local/bin/symlink_zed b/dot_local/bin/symlink_zed deleted file mode 100644 index 974fdb0..0000000 --- a/dot_local/bin/symlink_zed +++ /dev/null @@ -1 +0,0 @@ -/usr/bin/zeditor