Skip to content

Commit 9ed04e7

Browse files
committed
wsaction: remove
1 parent f47b4fe commit 9ed04e7

3 files changed

Lines changed: 2 additions & 38 deletions

File tree

completions/caelestia.fish

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set -l seen '__fish_seen_subcommand_from'
22
set -l has_opt '__fish_contains_opt'
33

4-
set -l commands shell toggle workspace-action scheme screenshot record clipboard emoji-picker wallpaper pip
4+
set -l commands shell toggle scheme screenshot record clipboard emoji-picker wallpaper pip
55
set -l not_seen "not $seen $commands"
66

77
# Disable file completions
@@ -13,7 +13,6 @@ complete -c caelestia -s 'h' -l 'help' -d 'Show help'
1313
# Subcommands
1414
complete -c caelestia -n $not_seen -a 'shell' -d 'Start the shell or message it'
1515
complete -c caelestia -n $not_seen -a 'toggle' -d 'Toggle a special workspace'
16-
complete -c caelestia -n $not_seen -a 'workspace-action' -d 'Exec a dispatcher in the current group'
1716
complete -c caelestia -n $not_seen -a 'scheme' -d 'Manage the colour scheme'
1817
complete -c caelestia -n $not_seen -a 'screenshot' -d 'Take a screenshot'
1918
complete -c caelestia -n $not_seen -a 'record' -d 'Start a screen recording'
@@ -75,10 +74,6 @@ complete -c caelestia -n "$seen shell && $seen notifs && not $seen clear" -a 'cl
7574
set -l commands communication music specialws sysmon todo
7675
complete -c caelestia -n "$seen toggle && not $seen drawers && not $seen $commands" -a "$commands" -d 'toggle'
7776

78-
# Workspace action
79-
set -l commands workspace workspacegroup movetoworkspace movetoworkspacegroup
80-
complete -c caelestia -n "$seen workspace-action && not $seen $commands" -a "$commands" -d 'action'
81-
8277
# Scheme
8378
set -l commands list get set
8479
set -l not_seen "$seen scheme && not $seen $commands"

src/caelestia/parser.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import argparse
22

3-
from caelestia.subcommands import clipboard, emoji, pip, record, scheme, screenshot, shell, toggle, wallpaper, wsaction
3+
from caelestia.subcommands import clipboard, emoji, pip, record, scheme, screenshot, shell, toggle, wallpaper
44
from caelestia.utils.paths import wallpapers_dir
55
from caelestia.utils.scheme import get_scheme_names, scheme_variants
66
from caelestia.utils.wallpaper import get_wallpaper
@@ -35,19 +35,6 @@ def parse_args() -> (argparse.ArgumentParser, argparse.Namespace):
3535
"workspace", choices=["communication", "music", "sysmon", "specialws", "todo"], help="the workspace to toggle"
3636
)
3737

38-
# Create parser for workspace-action opts
39-
ws_action_parser = command_parser.add_parser(
40-
"workspace-action", help="execute a Hyprland workspace dispatcher in the current group"
41-
)
42-
ws_action_parser.set_defaults(cls=wsaction.Command)
43-
ws_action_parser.add_argument(
44-
"-g", "--group", action="store_true", help="whether to execute the dispatcher on a group"
45-
)
46-
ws_action_parser.add_argument(
47-
"dispatcher", choices=["workspace", "movetoworkspace"], help="the dispatcher to execute"
48-
)
49-
ws_action_parser.add_argument("workspace", type=int, help="the workspace to pass to the dispatcher")
50-
5138
# Create parser for scheme opts
5239
scheme_parser = command_parser.add_parser("scheme", help="manage the colour scheme")
5340
scheme_command_parser = scheme_parser.add_subparsers(title="subcommands")

src/caelestia/subcommands/wsaction.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)