Just wondering since I know a lot of people quietly use a screen-area-select -> tesseract OCR -> clipboard shortcut.

  • I separate subjects of interest into different Firefox windows, in different workspaces – so I have an extension title them and a startup script parse text to ask the compositor to put them in the correct workspace (lets me restart more conveniently).
  • I have automatically-set different-orientation wallpapers for using my 2-in-1 depending on whether I use it in portrait or landscape (kind of just for looks, but I don’t think if anyone else adds a wallpaper change to their screen rotation keybind).
  • scrooge101@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    14 hours ago

    I also seperate Firefox on different workspaces, but only manually. How is the extension called? Having it automated would save me some seconds every reboot.

    • tankplanker@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      11 hours ago

      Sway (and i3) you can assign windows to workspaces based on any property that is available in the swaymsg tree. It can do parital matches, so for example if you wanted your Lemmy firefox window to always start on workspace 3 you could use:

      assign [title=“lemmy” app_id=“firefox”] workspace number $ws3

      Title can use regex so you can do some pretty neat matching if you need it.

    • fool@discuss.tchncs.deOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      6 hours ago

      edit: based on the other commenter I think I might be missing a simpler declarative way to do this. The following will be kept for posterity though


      The main idea is:

      1. Use Window Titler to add a title. For me, if I want it on workspace 7, I title the window “7”. (NOTE: The title will probably appear like [title], see below)
      2. Make a script that queries the window manager, and then dispatches a movement to the appropriate workspace. In Hyprland that might be hyprctl -j which gives
      ... json blahblah
      "title": "[7] What's a unique customization on your Linux machine you think no one else has? - tchncs — Mozilla Firefox"
      ... json blahblah
      

      but in Sway it might be something similar to using swaymsg. Only titled windows will have the bracket number thing so just regex that part

      1. Put it in autostart. Because Firefox takes a while to load on my junk machine I sleep for like 30 seconds to a minute before all the titles register.