• 16 Posts
  • 71 Comments
Joined 1 year ago
cake
Cake day: June 18th, 2023

help-circle
  • I just want you to know you weren’t screaming into the void. Look at my new main.py:

    
    from pathlib import PurePath
    
    
    from Layout import Layout
    
    
    DEFAULT_FOLDER = PurePath("/home", "mike", "bg")
    WATERMARK_DIR = Path(Path(os.getcwd()).parent, "assets", "img")
    
    
    def main() -> Layout:
        return Layout()
    
    if __name__ == "__main__":
        main()
    

    (I know I still need to change those folder defaults, but I am still riding the high of getting all that layout stuff into Layout.py and it working. I spent a couple hours today struggling, wondering why I was just getting a blank screen, when i realized i forgot to call .grid() on the frame that held all the widgets! So it was just rendering a blank window. )


















  • I have a T560 and i run debian with sway. It serves the dual purpose of getting me more comfortable in the terminal (i even use power shell on my windowa desk top a lot more now), and it runs much better than KDE or gnome did. Im missing some obvious quality of life settings like easily adjusting the power settings (it never sleeps, just turns off the screen and locks). But again, im trying to get more comfortable using the terminal so for me its more of a “take the training wheels off” thing.






  • In case this thread turns up a google search, or anyone is keeping score, I think I more or less managed to achieve what I wanted by putting this is in my config:

    assign [class="Firefox-esr"]  "2"
    exec wezterm -e cmus
     exec swaymsg [app_id="org.wezfurlong.wezterm"] focus
     exec swaymsg move container to workspace "10"
     exec firefox
    

    the only thing i don’t love is that if quit cmus, it closes the window instead of bringing me back to the shell. maybe i have so chain commands or something, i don’t know. i’m happy to have made it this far. Another thing is I don’t know if it’s possible to distinguish between the specific instance of wezterm that’s running cmus, and the other one i want running on workspace 1.