mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-20 18:54:39 +10:00
Updating qtile config and the README.
This commit is contained in:
@@ -4,7 +4,7 @@ import re
|
||||
import socket
|
||||
import subprocess
|
||||
from libqtile import qtile
|
||||
from libqtile.config import KeyChord, Key, Screen, Group, Drag, Click
|
||||
from libqtile.config import Click, Drag, Group, KeyChord, Key, Match, Screen
|
||||
from libqtile.command import lazy
|
||||
from libqtile import layout, bar, widget, hook
|
||||
from libqtile.lazy import lazy
|
||||
@@ -12,7 +12,6 @@ from typing import List # noqa: F401
|
||||
|
||||
mod = "mod4" # Sets mod key to SUPER/WINDOWS
|
||||
myTerm = "alacritty" # My terminal of choice
|
||||
myConfig = "/home/dt/.config/qtile/config.py" # The Qtile config file location
|
||||
|
||||
keys = [
|
||||
### The essentials
|
||||
@@ -239,7 +238,7 @@ def init_widgets_list():
|
||||
widget.Image(
|
||||
filename = "~/.config/qtile/icons/python-white.png",
|
||||
scale = "False",
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn('dmenu_run')}
|
||||
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)}
|
||||
),
|
||||
widget.Sep(
|
||||
linewidth = 0,
|
||||
@@ -504,20 +503,13 @@ bring_front_click = False
|
||||
cursor_warp = False
|
||||
|
||||
floating_layout = layout.Floating(float_rules=[
|
||||
{'wmclass': 'confirm'},
|
||||
{'wmclass': 'dialog'},
|
||||
{'wmclass': 'download'},
|
||||
{'wmclass': 'error'},
|
||||
{'wmclass': 'file_progress'},
|
||||
{'wmclass': 'notification'},
|
||||
{'wmclass': 'splash'},
|
||||
{'wmclass': 'toolbar'},
|
||||
{'wmclass': 'confirmreset'}, # gitk
|
||||
{'wmclass': 'makebranch'}, # gitk
|
||||
{'wmclass': 'maketag'}, # gitk
|
||||
{'wname': 'branchdialog'}, # gitk
|
||||
{'wname': 'pinentry'}, # GPG key password entry
|
||||
{'wmclass': 'ssh-askpass'}, # ssh-askpass
|
||||
# Run the utility of `xprop` to see the wm class and name of an X client.
|
||||
# default_float_rules include: utility, notification, toolbar, splash, dialog,
|
||||
# file_progress, confirm, download and error.
|
||||
*layout.Floating.default_float_rules,
|
||||
Match(wm_class='tasty.javafx.launcher.LauncherFxApp'), # tastyworks exit box
|
||||
Match(title='Confirmation'), # tastyworks exit box
|
||||
Match(title='pinentry'), # GPG key password entry
|
||||
])
|
||||
auto_fullscreen = True
|
||||
focus_on_window_activation = "smart"
|
||||
|
||||
Reference in New Issue
Block a user