hyprwm / contrib

Community scripts and utilities for Hypr projects
MIT License
295 stars 40 forks source link

Monitor Script. #17

Closed niksingh710 closed 1 year ago

niksingh710 commented 2 years ago

Simple Script is written in python3 That is using hyprctl to give the next monitor so that the user can cycle between these monitors easily.

fufexan commented 2 years ago

2 of the 3 functionalities of this script can be achieved with

  # cycle monitors
  bind = SUPERSHIFT, braceleft, focusmonitor, l
  bind = SUPERSHIFT, braceright, focusmonitor, r
niksingh710 commented 2 years ago

2 of the 3 functionalities of this script can be achieved with

  # cycle monitors
  bind = SUPERSHIFT, braceleft, focusmonitor, l
  bind = SUPERSHIFT, braceright, focusmonitor, r

yes doing that is possible but using one single shortcut to perform these actions make it feel seemless.

niksingh710 commented 2 years ago
  bind = SUPERSHIFT, braceleft, focusmonitor, l

what is braceleft is this a keyword or a dispatcher?

vaxerski commented 2 years ago

it's a key bruh

niksingh710 commented 2 years ago

it's a key bruh

Aah i guessed so.

This needs two key maps to cycle between monitors That's why I wrote this script to perform that in one key press.

edrex commented 1 year ago

monitor relative positioning +1 wraps around, allowing to cycle.

niksingh710 commented 1 year ago

Not needed anymore.