updated qtile config
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1,3 @@
|
|||||||
*.swp
|
*.swp
|
||||||
|
*.pyc
|
||||||
|
__pycache__
|
||||||
|
|||||||
@@ -2,12 +2,17 @@
|
|||||||
|
|
||||||
if [ $(cat /proc/acpi/button/lid/LID0/state | grep -c closed) -eq 1 ]; then
|
if [ $(cat /proc/acpi/button/lid/LID0/state | grep -c closed) -eq 1 ]; then
|
||||||
xrandr --output DP-0 --off
|
xrandr --output DP-0 --off
|
||||||
|
xrandr --output HDMI-0 --left-of DP-1
|
||||||
fi
|
fi
|
||||||
xlayoutdisplay -o DP-2 -o HDMI-1
|
# xlayoutdisplay -o DP-2 -o HDMI-1
|
||||||
# ulauncher
|
ulauncher &
|
||||||
flatpak run org.flameshot.Flameshot &
|
flatpak run org.flameshot.Flameshot &
|
||||||
picom --daemon
|
picom --daemon
|
||||||
xpad &
|
xpad &
|
||||||
blueman-applet &
|
blueman-applet &
|
||||||
albert &
|
# albert &
|
||||||
pika-backup-monitor &
|
# pika-backup-monitor &
|
||||||
|
nm-applet &
|
||||||
|
light-locker &
|
||||||
|
|
||||||
|
export GTK_THEME=Adwaita:dark
|
||||||
|
|||||||
@@ -50,8 +50,8 @@ def dbus_register():
|
|||||||
'string:' + id])
|
'string:' + id])
|
||||||
|
|
||||||
mod = "mod4"
|
mod = "mod4"
|
||||||
terminal = "tilix"
|
terminal = "alacritty"
|
||||||
browser = "flatpak run com.microsoft.Edge"
|
browser = "microsoft-edge"
|
||||||
|
|
||||||
@hook.subscribe.startup_once
|
@hook.subscribe.startup_once
|
||||||
def autostart_once():
|
def autostart_once():
|
||||||
@@ -113,16 +113,17 @@ keys = [
|
|||||||
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
|
||||||
Key([mod, "control"], "b", lazy.spawn(browser), desc="Launch Browser"),
|
Key([mod, "control"], "b", lazy.spawn(browser), desc="Launch Browser"),
|
||||||
Key([mod, "control"], "f", lazy.spawn("firefox"), desc="Launch Firefox"),
|
Key([mod, "control"], "f", lazy.spawn("firefox"), desc="Launch Firefox"),
|
||||||
Key([mod, "control"], "t", lazy.spawn("gtk-launch com.microsoft.Edge.flextop.msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Default.desktop"), desc="Launch Teams"),
|
Key([mod, "control"], "t", lazy.spawn("gtk-launch msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Default.desktop"), desc="Launch Teams"),
|
||||||
|
Key([mod, "control"], "o", lazy.spawn("gtk-launch msedge-faolnafnngnfdaknnbpnkhgohbobgegn-Default.desktop"), desc="Launch Teams"),
|
||||||
Key([mod, "control"], "w", lazy.spawn("VirtualBoxVM --startvm rnet-windows"), desc="Launch Windows VM"),
|
Key([mod, "control"], "w", lazy.spawn("VirtualBoxVM --startvm rnet-windows"), desc="Launch Windows VM"),
|
||||||
Key([mod, "control"], "y", lazy.spawn("gtk-launch arch-FFPWA-01H62W1P23FQGJ1KW173SWKGX5.desktop"), desc="Launch YouTube"),
|
Key([mod, "control"], "y", lazy.spawn("gtk-launch FFPWA-01HATKWJX09JCYK2HQ0E2MGSRY.desktop"), desc="Launch YouTube"),
|
||||||
Key([mod, "control"], "p", lazy.spawn("gtk-launch arch-FFPWA-01HA11SJ7BT86K183EGJNBV6DS.desktop"), desc="Launch Pocketcasts"),
|
|
||||||
Key([mod, "control"], "v", lazy.spawn("VirtualBox"), desc="Launch VirtualBox"),
|
Key([mod, "control"], "v", lazy.spawn("VirtualBox"), desc="Launch VirtualBox"),
|
||||||
Key([mod, "control"], "c", lazy.spawn("gtk launch arch-codium.dekstop"), desc="Launch VSCodium"),
|
Key([mod, "control"], "c", lazy.spawn("gtk launch arch-codium.dekstop"), desc="Launch VSCodium"),
|
||||||
Key([mod, "control"], "j", lazy.spawn("gtk-launch arch-jetbrains-pycharm-43d13f8e-7346-4852-a7fd-0d05261a1dc0.desktop"), desc="Launch PyCharm"),
|
Key([mod, "control"], "j", lazy.spawn("gtk-launch arch-pycharm-professional.desktop"), desc="Launch PyCharm"),
|
||||||
Key([], "Print", lazy.spawn("org.flameshot.Flameshot gui"), desc="Screenshot"),
|
Key([], "Print", lazy.spawn("flatpak run org.flameshot.Flameshot gui"), desc="Screenshot"),
|
||||||
# Toggle between different layouts as defined below
|
# Toggle between different layouts as defined below
|
||||||
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
|
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
|
||||||
|
Key([mod, "shift"], "Tab", lazy.prev_layout(), desc="Toggle between layouts"),
|
||||||
Key([mod], "q", lazy.window.kill(), desc="Kill focused window"),
|
Key([mod], "q", lazy.window.kill(), desc="Kill focused window"),
|
||||||
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
|
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
|
||||||
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
||||||
@@ -133,6 +134,7 @@ keys = [
|
|||||||
Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer set Master 5%+"), desc="Increase volume"),
|
Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer set Master 5%+"), desc="Increase volume"),
|
||||||
Key([mod], "s", lazy.screen.next_group(skip_managed=True), desc="Switch to Next Group"),
|
Key([mod], "s", lazy.screen.next_group(skip_managed=True), desc="Switch to Next Group"),
|
||||||
Key([mod], "w", lazy.screen.prev_group(skip_managed=True), desc="Switch to Previous Group"),
|
Key([mod], "w", lazy.screen.prev_group(skip_managed=True), desc="Switch to Previous Group"),
|
||||||
|
Key([mod, "mod1"], "l", lazy.spawn("light-locker-command -l"), desc="Switch to Previous Group"),
|
||||||
]
|
]
|
||||||
|
|
||||||
groups = [Group(i) for i in "123456789"]
|
groups = [Group(i) for i in "123456789"]
|
||||||
@@ -175,7 +177,7 @@ layouts = [
|
|||||||
# layout.Bsp(),
|
# layout.Bsp(),
|
||||||
# layout.Matrix(),
|
# layout.Matrix(),
|
||||||
layout.MonadTall(ratio=0.75, **layout_defaults),
|
layout.MonadTall(ratio=0.75, **layout_defaults),
|
||||||
# layout.MonadThreeCol(margin=8),
|
layout.MonadThreeCol(**layout_defaults),
|
||||||
# layout.MonadWide(),
|
# layout.MonadWide(),
|
||||||
# layout.RatioTile(),
|
# layout.RatioTile(),
|
||||||
layout.Tile(**layout_defaults),
|
layout.Tile(**layout_defaults),
|
||||||
@@ -185,7 +187,7 @@ layouts = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
# defaults for groups
|
# defaults for groups
|
||||||
groups[0].layout = "monadtall"
|
groups[0].layout = "monadthreecol"
|
||||||
# groups[1].spawn = "flatpak run com.microsoft.Edge"
|
# groups[1].spawn = "flatpak run com.microsoft.Edge"
|
||||||
|
|
||||||
powerline = {
|
powerline = {
|
||||||
@@ -195,15 +197,15 @@ powerline = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lb_progs = [
|
lb_progs = [
|
||||||
("com.microsoft.Edge","flatpak run com.microsoft.Edge","Launch Micorosoft Edge"),
|
("microsoft-edge","microsoft-edge","Launch Micorosoft Edge"),
|
||||||
("teams.png", "gtk-launch com.microsoft.Edge.flextop.msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Profile_1.desktop", "Launch Microsoft Teams"),
|
("msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Default", "gtk-launch msedge-cifhbcnohmdccbgoicgdjpfamggdegmo-Default.desktop", "Launch Microsoft Teams"),
|
||||||
# ("FFPWA-01H62W1P23FQGJ1KW173SWKGX5", "gtk-launch arch-FFPWA-01H62W1P23FQGJ1KW173SWKGX5.desktop",""),
|
# ("FFPWA-01H62W1P23FQGJ1KW173SWKGX5", "gtk-launch arch-FFPWA-01H62W1P23FQGJ1KW173SWKGX5.desktop",""),
|
||||||
("firefox.png", "firefox", "Launch Firefox"),
|
("firefox.png", "firefox", "Launch Firefox"),
|
||||||
("virtualbox.png", "VirtualBox", "Launch VirtualBox"),
|
("virtualbox.png", "VirtualBox", "Launch VirtualBox"),
|
||||||
("PyCharm_Icon.svg.png", "gtk-launch arch-jetbrains-pycharm-43d13f8e-7346-4852-a7fd-0d05261a1dc0.desktop", "Launch PyCharm"),
|
("pycharm", "gtk-launch arch-pycharm-professional.desktop", "Launch PyCharm"),
|
||||||
("/home/danmac/.local/share/icons/org.gnome.Nautilus.png", "nautilus", "Launch Files"),
|
("org.gnome.Nautilus", "nautilus", "Launch Files"),
|
||||||
("vscodium.png", "gtk-launch arch-codium.desktop", "Launch Codium"),
|
("vscodium.png", "gtk-launch arch-codium.desktop", "Launch Codium"),
|
||||||
("FFPWA-01HA11SJ7BT86K183EGJNBV6DS", "gtk-launch arch-FFPWA-01HA11SJ7BT86K183EGJNBV6DS.desktop",""),
|
("FFPWA-01HATKWJX09JCYK2HQ0E2MGSRY", "gtk-launch FFPWA-01HATKWJX09JCYK2HQ0E2MGSRY.desktop",""),
|
||||||
("🔊", "pavucontrol", "Launch pavucontrol"),
|
("🔊", "pavucontrol", "Launch pavucontrol"),
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -217,8 +219,8 @@ app_launcher = widget.WidgetBox(
|
|||||||
|
|
||||||
|
|
||||||
shutdown_progs = [
|
shutdown_progs = [
|
||||||
("reboot", "systemctl reboot", "Reboot"),
|
("Reboot", "systemctl reboot", "Reboot"),
|
||||||
("shutdown", "systemctl shutdown", "Shutdown"),
|
("Shutdown", "systemctl halt", "Shutdown"),
|
||||||
]
|
]
|
||||||
|
|
||||||
widget_defaults = dict(
|
widget_defaults = dict(
|
||||||
@@ -255,11 +257,12 @@ screens = [
|
|||||||
text_open=" ◀ ",
|
text_open=" ◀ ",
|
||||||
**powerline
|
**powerline
|
||||||
),
|
),
|
||||||
widget.Systray(background=colors["red"], **powerline),
|
# widget.Systray(background=colors["red"], **powerline),
|
||||||
# widget.Spacer(background=colors["red"], length=2, **powerline),
|
# widget.Spacer(background=colors["red"], length=2, **powerline),
|
||||||
# widget.pulse_volume(),
|
# widget.pulse_volume(),
|
||||||
widget.PulseVolume(background=colors["purple"], **powerline),
|
# widget.PulseVolume(background=colors["purple"], **powerline),
|
||||||
widget.UPowerWidget(background=colors["purple"], **powerline),
|
widget.UPowerWidget(background=colors["purple"], **powerline),
|
||||||
|
widget.CPUGraph(background=colors["purple"], border_width=0, **powerline),
|
||||||
widget.NvidiaSensors(background=colors["purple"], threshold=85, **powerline),
|
widget.NvidiaSensors(background=colors["purple"], threshold=85, **powerline),
|
||||||
widget.Clock(format="%a %d %b %Y %I:%M %p", background=colors["orange"], **powerline),
|
widget.Clock(format="%a %d %b %Y %I:%M %p", background=colors["orange"], **powerline),
|
||||||
# widget.QuickExit(),
|
# widget.QuickExit(),
|
||||||
@@ -304,6 +307,7 @@ screens = [
|
|||||||
text_open=" ◀",
|
text_open=" ◀",
|
||||||
**powerline
|
**powerline
|
||||||
),
|
),
|
||||||
|
widget.Systray(background=colors["red"], **powerline),
|
||||||
# widget.Systray(background=colors["red"]),
|
# widget.Systray(background=colors["red"]),
|
||||||
# widget.ALSAWidget(background="999999", mode="both"),
|
# widget.ALSAWidget(background="999999", mode="both"),
|
||||||
# widget.Spacer(length=2, background=colors["red"], **powerline),
|
# widget.Spacer(length=2, background=colors["red"], **powerline),
|
||||||
@@ -318,6 +322,7 @@ screens = [
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
# Drag floating layouts.
|
# Drag floating layouts.
|
||||||
mouse = [
|
mouse = [
|
||||||
Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
|
Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
|
||||||
@@ -328,10 +333,10 @@ mouse = [
|
|||||||
dgroups_key_binder = None
|
dgroups_key_binder = None
|
||||||
dgroups_app_rules = [] # type: list
|
dgroups_app_rules = [] # type: list
|
||||||
follow_mouse_focus = True
|
follow_mouse_focus = True
|
||||||
bring_front_click = False
|
bring_front_click = True
|
||||||
cursor_warp = False
|
cursor_warp = False
|
||||||
floating_layout = layout.Floating(
|
floating_layout = layout.Floating(
|
||||||
border_width=0,
|
border_width=1,
|
||||||
float_rules=[
|
float_rules=[
|
||||||
# Run the utility of `xprop` to see the wm class and name of an X client.
|
# Run the utility of `xprop` to see the wm class and name of an X client.
|
||||||
*layout.Floating.default_float_rules,
|
*layout.Floating.default_float_rules,
|
||||||
@@ -344,6 +349,7 @@ floating_layout = layout.Floating(
|
|||||||
Match(title="Sticky Notes"),
|
Match(title="Sticky Notes"),
|
||||||
Match(wm_class="xpad"),
|
Match(wm_class="xpad"),
|
||||||
Match(wm_class="gnome-calculator"),
|
Match(wm_class="gnome-calculator"),
|
||||||
|
Match(wm_class="blueman-manager"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
auto_fullscreen = True
|
auto_fullscreen = True
|
||||||
|
|||||||
Reference in New Issue
Block a user