Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

berryc send_to_workspace 0 sends to workspace 1 #182

Open
jgarte opened this issue Mar 27, 2022 · 3 comments
Open

berryc send_to_workspace 0 sends to workspace 1 #182

jgarte opened this issue Mar 27, 2022 · 3 comments

Comments

@jgarte
Copy link

jgarte commented Mar 27, 2022

berryc send_to_workspace 0 sends to workspace 1.

Is this the intended functionality?

It feels like everything is off by 1 which is a bit confusing.

I have the following in my sxhkdrc:

super + shift + {0-9}
    berryc send_to_workspace {0-9}
@JLErvin
Copy link
Owner

JLErvin commented Mar 27, 2022

What is the command in your sxhkdrc to switch workspace?

@jgarte
Copy link
Author

jgarte commented Mar 28, 2022

@JLErvin

Here's the whole sxhkdrc that I'm using with berry:

###

super + Return
	sakura

super + d
	dmenu_run

# make sxhkd reload its configuration files:
super + Escape
	pkill -USR1 -x sxhkd

### berry hotkeys

super + {h, j, k, l}
    berryc window_move {-50 0, 0 50, 0 -50, 50 0}

super + shift +  {h, j, k, l}
    berryc window_resize {-50 0, 0 50, 0 -50, 50 0}

super + {1-9}
    berryc switch_workspace {0-9}

super + shift + {0-9}
    berryc send_to_workspace {0-9}

super + m
    berryc window_monocle

super + f
    berryc fullscreen

super +  p
    berryc snap_right

super + o 
    berryc snap_left

super + n
    berryc toggle_decorations

super + Tab
    berryc cycle_focus

super + q
    berryc window_close

super + c
    berryc window_center

~button1
    berryc pointer_focus

@JLErvin
Copy link
Owner

JLErvin commented Mar 28, 2022

You seem to have an off-by-one bug in your configuration. Consider the following two mappings:

super + {1-9}
    berryc switch_workspace {0-9}

super + shift + {0-9}
    berryc send_to_workspace {0-9}

super+1 would switch to workspace 0, whereas super+shift+1 would send the window to workspace 1. You should modify these mappings such that they line up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants