Skip to content

Commit

Permalink
[docs] Fix hook typos
Browse files Browse the repository at this point in the history
  • Loading branch information
elParaguayo authored and tych0 committed Jan 29, 2024
1 parent 73fdce2 commit 0aca7be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libqtile/hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def fire(self, event, *args, **kwargs):
@hook.subscribe.startup_once
def autostart:
def autostart():
script = os.path.expanduser("~/.config/qtile/autostart.sh")
subprocess.run([script])
Expand Down Expand Up @@ -845,8 +845,8 @@ def screen_change(event):
from libqtile import hook
from libqtile.utils import send_notification
@hook.subscribe.screen_change
def screen_change(event):
@hook.subscribe.screens_reconfigured
def screen_reconf():
send_notification("qtile", "Screens have been reconfigured.")
""",
Expand All @@ -868,7 +868,7 @@ def screen_change(event):
from libqtile.utils import send_notification
@hook.subscribe.current_screen_change
def screen_change(event):
def screen_change():
send_notification("qtile", "Current screen change detected.")
""",
Expand Down

0 comments on commit 0aca7be

Please sign in to comment.