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

[Feature request] switch tag faster #249

Closed
tianxiayu007 opened this issue Apr 18, 2020 · 4 comments
Closed

[Feature request] switch tag faster #249

tianxiayu007 opened this issue Apr 18, 2020 · 4 comments

Comments

@tianxiayu007
Copy link

i read nearly all the doc, but don't find tag switch hotkeys, is this feature exists?
since there is view switch like Monitor_activateView(0, -1),Monitor_activateView(0, +1),
i suggest add function like Monitor_activateTag(0, -1), Monitor_activateTag(0, +1), then i can use hotkeys like #n, #p to switch to next or previous tag. because it type easily than #1,#2, etc..

@schkr
Copy link

schkr commented Apr 23, 2020

Win + <Tag Number>

Config_hotkey=#^1::Monitor_toggleWindowTag(1) - For monitor 1 and so on....

Forgive me if I don't understand; I'm not sure what your question/Feature request is??

Or you're referring to something like this?

;; Monitor management
Config_hotkey=#,::Manager_activateMonitor(0, +1)
Config_hotkey=#.::Manager_activateMonitor(0, -1)
Config_hotkey=#+,::Manager_setWindowMonitor(0, +1)
Config_hotkey=#+.::Manager_setWindowMonitor(0, -1)
Config_hotkey=#^+,::Manager_setViewMonitor(0, +1)
Config_hotkey=#^+.::Manager_setViewMonitor(0, -1)
;;
Config_hotkey=#!PgDn::Manager_setWindowMonitor(1,0)
Config_hotkey=#!End::Manager_setWindowMonitor(2,0)
Config_hotkey=#!Delete::Manager_setWindowMonitor(3,0)
Config_hotkey=#!Insert::Manager_setWindowMonitor(4,0)
Config_hotkey=#!Home::Manager_setWindowMonitor(5,0)
Config_hotkey=#!PgUp::Manager_setWindowMonitor(6,0)

;; Switch To Monitor
Config_hotkey=#PgDn::Manager_activateMonitor(1,0)
Config_hotkey=#End::Manager_activateMonitor(2,0)
Config_hotkey=#Delete::Manager_activateMonitor(3,0)
Config_hotkey=#Insert::Manager_activateMonitor(4,0)
Config_hotkey=#Home::Manager_activateMonitor(5,0)
Config_hotkey=#PgUp::Manager_activateMonitor(6,0)

@tianxiayu007
Copy link
Author

tianxiayu007 commented Apr 23, 2020

Win + <Tag Number>

Config_hotkey=#^1::Monitor_toggleWindowTag(1) - For monitor 1 and so on....

Forgive me if I don't understand; I'm not sure what your question/Feature request is??

Or you're referring to something like this?

;; Monitor management
Config_hotkey=#,::Manager_activateMonitor(0, +1)
Config_hotkey=#.::Manager_activateMonitor(0, -1)
Config_hotkey=#+,::Manager_setWindowMonitor(0, +1)
Config_hotkey=#+.::Manager_setWindowMonitor(0, -1)
Config_hotkey=#^+,::Manager_setViewMonitor(0, +1)
Config_hotkey=#^+.::Manager_setViewMonitor(0, -1)
;;
Config_hotkey=#!PgDn::Manager_setWindowMonitor(1,0)
Config_hotkey=#!End::Manager_setWindowMonitor(2,0)
Config_hotkey=#!Delete::Manager_setWindowMonitor(3,0)
Config_hotkey=#!Insert::Manager_setWindowMonitor(4,0)
Config_hotkey=#!Home::Manager_setWindowMonitor(5,0)
Config_hotkey=#!PgUp::Manager_setWindowMonitor(6,0)

;; Switch To Monitor
Config_hotkey=#PgDn::Manager_activateMonitor(1,0)
Config_hotkey=#End::Manager_activateMonitor(2,0)
Config_hotkey=#Delete::Manager_activateMonitor(3,0)
Config_hotkey=#Insert::Manager_activateMonitor(4,0)
Config_hotkey=#Home::Manager_activateMonitor(5,0)
Config_hotkey=#PgUp::Manager_activateMonitor(6,0)

while i'm not saying multi-monitor case. Now i just have one monitor,with 4 tags configured(that's say 4 workspace), although i can change workspace with #1,#2,#3..etc, i still what to switch workspace without know specific workspace number,that's, treat workspace lik a stack,i can active workspace with #n,#p

@schkr
Copy link

schkr commented Apr 23, 2020

Config_hotkey=#H::Monitor_activateView(0,+1)

0 = Current Monitor (since your only using 1 monitor)
+1 = Next Tag Number
-1 = Previous Tag Number
#H = Arbitrary Hotkeys

This works for me. Check if you're overlapping hotkeys with other applications.

_activateView=Tag Number
_activateMonitor=Monitor Number

@tianxiayu007
Copy link
Author

Config_hotkey=#H::Monitor_activateView(0,+1)

0 = Current Monitor (since your only using 1 monitor)
+1 = Next Tag Number
-1 = Previous Tag Number
#H = Arbitrary Hotkeys

This works for me. Check if you're overlapping hotkeys with other applications.

_activateView=Tag Number
_activateMonitor=Monitor Number

Absolutely correct! 😍
i didn't try this function when see its name as activateView but not activeTag 😂

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