How To Make Widgets In Qtile Clickable Events

Ғылым және технология

Пікірлер: 86

  • @warhawk_yt
    @warhawk_yt4 жыл бұрын

    Qtile is actually my preferred window manager. I use it daily.

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    A strong and respectable decision. :D

  • @warhawk_yt

    @warhawk_yt

    4 жыл бұрын

    DistroTube Yep haha. I also know a little python so it’s pretty easy to read the configuration file and find out what each function does or at least get an idea of what it does.

  • @ACodingWoof

    @ACodingWoof

    3 жыл бұрын

    Same

  • @brunburn3731
    @brunburn37314 жыл бұрын

    Tinkering really makes the wm feel like your own. Good vid DT

  • @MrAndrewKeyboards
    @MrAndrewKeyboards Жыл бұрын

    Hey Derek! I just want to post a comment in any of your Qtile videos, 'cuz I took the decision to switch from i3wm to Qtile THANKS TO YOU, and I'm delighted about it! Actually, I watched a few of your Qtile reviews before taking the decision (my i3wm is completely customized, so I thought I reached the end of the line with it) and then I wanted to try something... Without having a effing clue what I was missing out. Qtile is simply awesome, I loved the way I riced it, and it is sooooo simple to customize, with all those built-in widgets... i3wm is not a bad WM, but creators need to learn one or two lessons from Qtile's devs. Once I realized that there was no need of Polybar here... That was an instant crush! The rest of the functions, got me in love. Thanks for your vids, dude!

  • @GothicKin
    @GothicKin4 жыл бұрын

    me: *doesn't care about qtile* "Qtile is basically Xmonad in python" me: *cares a lot about qtile*

  • @deliriumcode
    @deliriumcode4 жыл бұрын

    Great find! Never used qtile but I can see with what I'm gonna play for the upcoming week. ;) Thank you!

  • @yousshim
    @yousshim4 жыл бұрын

    since all the function you used are just one line and only used as a callback once lambda function would be cleaner, something like this mouse_callbacks = {"Button1": lambda: qtile.cmd_spawn("dmenu_run")}

  • @shubhampawar7921

    @shubhampawar7921

    4 жыл бұрын

    I was just about to recommend this. Saves time to write a function

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Thanks for the tip. These worked just fine for me: mouse_callbacks = {'Button1': lambda qtile : qtile.cmd_spawn('dmenu_run')} mouse_callbacks = {'Button1': lambda qtile : qtile.cmd_spawn(myTerm + ' -e htop')}

  • @rockdie9522

    @rockdie9522

    3 жыл бұрын

    as for 0.17.0 " - mouse_callbacks no longer receives the qtile object as an argument (they receive no arguments); import it via `from libqtile import qtile` instead.' can you give a tip what changes should I do in order my callbacks work again?

  • @david.35mm51

    @david.35mm51

    3 жыл бұрын

    @@rockdie9522 Hey mate! After about 3 hours of try and error I finally came up with the solution (which is really dumb if you look at it) : 1. At the top of the config put: from libqtile import qtile 2. On the mouse_callbacks write this mouse_callbacks = {"Button1": lambda: qtile.cmd_spawn("the thing you want to launch")} That's it! hope it works for you. Here's my config if you want to check if there's something you'd like: github.com/david35mm/.files/blob/main/.config/qtile/config.py

  • @rockdie9522

    @rockdie9522

    3 жыл бұрын

    @@david.35mm51 Hey, thanks for sharing your config. I will give it a try, I think it’s cleaner than my solution. Here it is: def open_tolaunch(qtile): qtile.cmd_spawn(‘thingtolaunch’) widget.Foo(.... , mouse_callbacks={‘Button1’: open_Foo})

  • @andrewpalm2103
    @andrewpalm21034 жыл бұрын

    Very useful and informative. Thanks, Derek!

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Glad it was helpful!

  • @jaydlc7732
    @jaydlc77324 жыл бұрын

    I think the reason your pacman callback wasn't firing was because you were actually clicking on the "updates" textbox widget. The pacman widget itself is just the number of available updates or "N/A"

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Good catch!

  • @jaydlc7732

    @jaydlc7732

    4 жыл бұрын

    @@DistroTube I've had the same thing with some of the widgets I use. Looks like there is a "fmt" property you can pass to the widget so you could combine your three widgets for showing the updates into one possibly

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    ​@@jaydlc7732 I should look into that.

  • @thEClawtcl
    @thEClawtcl4 жыл бұрын

    Thank you for your videos, DT! You finally pushed me to try a tiling window manager, and due to some prior python experience I picked qtile. That plus qutebrowser makes for the most fun working environment I have ever used!

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Great to hear!

  • @f23anone82

    @f23anone82

    4 жыл бұрын

    Add ranger to that )

  • @thEClawtcl

    @thEClawtcl

    4 жыл бұрын

    @@f23anone82 Of course, ranger has become one of my favorites, too!

  • @waltereikrem
    @waltereikrem4 жыл бұрын

    qtile really is so much fun to work on. and the docs are just so good

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Every project should learn from the Qtile guys on how proper documentation is done.

  • @warhawk_yt

    @warhawk_yt

    4 жыл бұрын

    I can agree that they have really good documentation.

  • @waltereikrem

    @waltereikrem

    4 жыл бұрын

    @@DistroTube very true!

  • @rohandalavi4634
    @rohandalavi46344 жыл бұрын

    Great video buddy 👍

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi4 жыл бұрын

    Thank you, Derek. Very interesting.

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Glad you enjoyed it

  • @stm3252
    @stm32523 жыл бұрын

    Derek! I want to thank you for converting me from Bspwm to Qtile : It's the best window manager I ever tried. Don't start bashing me! Bspwm is a solid window manager, but I 'm more into dynamic window managers! Xmonad it good, too but It has a big learning curve, because I don't know Haskell and I don't have the time to learn it for now!

  • @DistroTube

    @DistroTube

    3 жыл бұрын

    Glad you enjoy it!

  • @torspedia
    @torspedia4 жыл бұрын

    Another reason to seriously look at Qtile :-)

  • @dustinmorse8497
    @dustinmorse84974 жыл бұрын

    I use Qtile as my daily driver. BTW DT, if you look at their git repo roadmap it looks like they are going to add the keybinding cheat sheet you talked about a month or so ago.

  • @daristotell

    @daristotell

    4 жыл бұрын

    That would be pretty sick. It would make qtile a no brainer recommendation for new comers imo.

  • @Stephen-wh7vl
    @Stephen-wh7vl3 жыл бұрын

    Thanks

  • @armynyus9123
    @armynyus91234 жыл бұрын

    My problem is that I'm 30 years with Python. In the company we sell only python products. I think I know now every detail of it. qtile would be just too simple... => I *have* to use dwm in order to show off internally :-)

  • @anshsrivastava1059
    @anshsrivastava10594 жыл бұрын

    I just got into qtile recently and this feature is a nice to have but not a game changer because twm users don't use their mouse much anyways. It is a cool feature however.

  • @MrChester114
    @MrChester1144 жыл бұрын

    I tried qtile for a while and switched to xmonad because whenever you toggle fullscreen in qtile it messes up window stack. Unless there is a solution I'm not aware of I won't use it.

  • @jrlepage
    @jrlepage3 жыл бұрын

    Noob question but how the heck do you get into your config files so fast? Had you already typed the vim command into terminal before recording so you just launched a terminal and hit up enter to run the last command or do you have your configs hot keyed? You always seem to do like two keystrokes and they’re up lol

  • @d_fens
    @d_fens3 жыл бұрын

    How did you configure autocompletion of python code and file path in the text editor (I assume it's emacs)??

  • @Slendernator
    @Slendernator4 жыл бұрын

    Can you do a video about Taffybar in Xmonad?

  • @thingsiplay
    @thingsiplay3 жыл бұрын

    I am currently struggling to make callbacks work. The documentation is not very clear about this or I don't find the needed information. So thank you for doing these videos, you help me a lot. Oh I see my mistake. I should have known this from when I was working with Qt5. I need to specify the name of the function without arguments. Edit: But strange, it does not work, but it should. Not sure whats wrong here.

  • @f23anone82
    @f23anone824 жыл бұрын

    How does one control multiple monitor setup with Qtile? I.e. turn off some monitors, select which monitor is to the left / right etc?

  • @linuxrant
    @linuxrant2 жыл бұрын

    I was looking for some time for such a video... Is there a way to add a real menu to the widget? I am searching for something that lists the installed applications, especially flatpaks, I am tired of constantly typing the flatpak run commands...

  • @visoneselektah
    @visoneselektah3 жыл бұрын

    Hi! I recently install qtile in my laptop and it's "awesome" xddd, but I have a couple issues I can't figure it out. The first one is about dual graphics amd/nvidia with the hdmi output wired to the nvidia card, I have the drivers installed, the configs seems right, but I still can't use the hdmi output. And the second is about the webcam config, I'm not able to change the resolution. Any tips would've been apreciated!!!!

  • @MichaelVash7886
    @MichaelVash78863 жыл бұрын

    Tried installing qtile on my Ubuntu mate install but just end up with a black screen even after trying something like your Config. Guess it's time to play with arcolinuxd with qtile in a VM to see if I can get something setup that I like.

  • @pinpox
    @pinpox4 жыл бұрын

    Hey @DistoTube, I'd like to try out Qtile, but there is one question that I wasn't able to answer from the docs: Does it support changing the number of screens? I'm looking to use it for my laptop, with the option to attach a second and third screen when at home. Is there a way to update the number of screens and bars shown?

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    I'm not sure how it handles plugging in an extra monitor to a laptop. Never tried it. But you could ask the qtile guys on their GitHub or if they have an IRC channel.

  • @_regnar_4189
    @_regnar_41894 ай бұрын

    Thanks you! I tried to find how to use it, but cant. In docs there's no one line how to use mouse_callbacks... They could specify, the the first value should be your mouse button, and after a column shoud be a function. Thank you again for this video

  • @anshsrivastava1059
    @anshsrivastava10594 жыл бұрын

    I might add a X button which would run X Kill

  • @LongHoang-CyberSecurity
    @LongHoang-CyberSecurity4 жыл бұрын

    love white buddha statue 😄😄

  • @nanowal_psr
    @nanowal_psr3 жыл бұрын

    HI Dt, I used the same steps : mouse_callbacks = {'Button1': lambda qtile : qtile.cmd_spawn(myTerm + ' -e htop')} mouse_callbacks = {'Button1': open_htop}, I got error: TypeError: missing 1 required positional argument: 'qtile' qtile --version :0.17.1.dev71+g1d02685e python: 3.9

  • @clouddaemon4828
    @clouddaemon48284 жыл бұрын

    does qtile has the grid select like xmonad? since i've discovered Xmonad (thank you very much DT, you've improved my workflow by 99%) i couldn't detach myself from it, but qtile intrests me since it's written in python. Does it have a gridselect? and what advantages it has over xmonad? except that it's written in python obv

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Never seen anything like GridSelect in qtile. Not that someone couldn't write something like GridSelect in python, but I don't think it exists at the moment. Advantages/disadvantages of qtile vs xmonad? Python or Haskell? Which do you prefer? Also, qtile has a very nice panel that's easy to configure. Xmonad has no builtin panel and third party panels (besides xmobar) can be tough to get working properly. Xmonad probably has more extra modules that you can use due to the fact that it's an older project than qtile.

  • @clouddaemon4828

    @clouddaemon4828

    4 жыл бұрын

    @@DistroTube I see. Gonna play around with both. Thank you very much, and thank you again so much for making me discover Xmonad

  • @poppasmurf2150
    @poppasmurf21503 жыл бұрын

    Hey DT can you please put your PEK config on GitLab?

  • @satria3001Al
    @satria3001Al3 жыл бұрын

    I still prefer I3 until now. I've tried Qtile, but find some weird behaviours in it, especially when I assign and open apps to certain groups (workspaces), it does not open automatically and jumps to other empty wrokspaces...I've tried several things...but no use till now....it still happens.

  • @wadecurry938
    @wadecurry9384 жыл бұрын

    I've been looking for a way to get an actual menu app to run like that... Or an application "finder" that can search by category rather than by name. Any ideas?

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Years ago, I played around with a launcher called Synapse. I believe it allowed searching by category. Maybe try that. Some other launchers I have tried are ulauncher and albert. Both are those are nice but I don't remember them allowing searching by category. It's not something I ever need so it's not something I would have noticed.

  • @drishalballaney6590
    @drishalballaney65904 жыл бұрын

    Can you pls give your qtile config file?

  • @matteavana2384
    @matteavana23843 жыл бұрын

    The real question is..: How to add multiple mouse_callbacks for one widget? My syntax is correct but it seems that my mouse inputs only 'Button1'.. mouse_callbacks={'Button1': show_battery, 'Button2': open_xfcepowermanagement}

  • @abdallahtarek3602
    @abdallahtarek36024 жыл бұрын

    Peppermint os 11 vs Lubuntu 20.04 LTS which is good thsn other to my laptop specs CPU Intel Celeron N3060 1.6ghz Ram 4gb ddr 3 HDD 500 I need a smooth Linux OS For my laptop And which good for this laptop Apache Open Office Or Libre Office

  • @HunterSploit
    @HunterSploit4 жыл бұрын

    how i can keyboard change language arab i3 linux

  • @louishassett8587
    @louishassett85874 жыл бұрын

    I played with qtile , but the only downside I found is that you can't change gaps size with a keybind

  • @matteavana2384
    @matteavana23844 жыл бұрын

    Why every or a lot of function have passed qtile as the argument?

  • @GreyDeathVaccine
    @GreyDeathVaccine4 жыл бұрын

    There is status panel providing info for i3bar called bumblebee status (github.com/tobi-wan-kenobi/bumblebee-status). Yo can easily assign mouse callbacks on widget.

  • @HentaiNat
    @HentaiNat4 жыл бұрын

    If I do this can I call myself a hacker?

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Yes....and....the chicks dig it!

  • @05carsm
    @05carsm4 жыл бұрын

    You shill it so much I might try qtile out of pure pressure e

  • @JessicaFEREM
    @JessicaFEREM4 жыл бұрын

    Is Qtile a window manager or a desktop environment? yes

  • @celestialadministration
    @celestialadministration4 жыл бұрын

    Xmonad is cool, but I know a little python.

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    Agreed. Xmonad is cool, and I know a little Python too. :D

  • @usrname1105
    @usrname11054 жыл бұрын

    FiRsT

  • @DistroTube

    @DistroTube

    4 жыл бұрын

    If he had to change his name, then I doubt he will tell us. ;)

  • @usrname1105

    @usrname1105

    4 жыл бұрын

    bigpod bruh who’s Alex

  • @jac1011

    @jac1011

    4 жыл бұрын

    @@usrname1105 man you gotta keep up with the linux lore

  • @usrname1105

    @usrname1105

    4 жыл бұрын

    jac1011 ok

  • @DJ_Cthulhu
    @DJ_Cthulhu4 жыл бұрын

    Widgets, are bloat. 😉

Келесі