Compare commits
2 Commits
b918bb1253
...
3bc99df7f3
Author | SHA1 | Date |
---|---|---|
zoe | 3bc99df7f3 | |
zoe | 4b4c63023c |
|
@ -0,0 +1,9 @@
|
|||
import subprocess
|
||||
import os, signal
|
||||
|
||||
autostart = ["xfce4-power-manager", "nm-applet"]
|
||||
|
||||
|
||||
def start_all():
|
||||
for app in autostart:
|
||||
subprocess.Popen(app, stdout=None, stderr=None)
|
45
config.py
45
config.py
|
@ -1,10 +1,12 @@
|
|||
from libqtile import bar, layout, widget
|
||||
from libqtile import bar, widget
|
||||
from libqtile.config import Click, Drag, Group, Key, Match, Screen
|
||||
from libqtile.layout.columns import Columns
|
||||
from libqtile.layout.max import Max
|
||||
from libqtile.layout.floating import Floating
|
||||
from libqtile.lazy import lazy
|
||||
|
||||
import autostart
|
||||
|
||||
|
||||
mod = "mod4"
|
||||
terminal = "kitty"
|
||||
|
@ -20,18 +22,26 @@ keys = [
|
|||
Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"),
|
||||
# Move windows between left/right columns or move up/down in current stack.
|
||||
# Moving out of range in Columns layout will create new column.
|
||||
Key([mod, "shift"], "h", lazy.layout.shuffle_left(), desc="Move window to the left"),
|
||||
Key([mod, "shift"], "l", lazy.layout.shuffle_right(), desc="Move window to the right"),
|
||||
Key(
|
||||
[mod, "shift"], "h", lazy.layout.shuffle_left(), desc="Move window to the left"
|
||||
),
|
||||
Key(
|
||||
[mod, "shift"],
|
||||
"l",
|
||||
lazy.layout.shuffle_right(),
|
||||
desc="Move window to the right",
|
||||
),
|
||||
Key([mod, "shift"], "j", lazy.layout.shuffle_down(), desc="Move window down"),
|
||||
Key([mod, "shift"], "k", lazy.layout.shuffle_up(), desc="Move window up"),
|
||||
# Grow windows. If current window is on the edge of screen and direction
|
||||
# will be to screen edge - window would shrink.
|
||||
Key([mod, "control"], "h", lazy.layout.grow_left(), desc="Grow window to the left"),
|
||||
Key([mod, "control"], "l", lazy.layout.grow_right(), desc="Grow window to the right"),
|
||||
Key(
|
||||
[mod, "control"], "l", lazy.layout.grow_right(), desc="Grow window to the right"
|
||||
),
|
||||
Key([mod, "control"], "j", lazy.layout.grow_down(), desc="Grow window down"),
|
||||
Key([mod, "control"], "k", lazy.layout.grow_up(), desc="Grow window up"),
|
||||
Key([mod], "n", lazy.layout.normalize(), desc="Reset all window sizes"),
|
||||
|
||||
# Toggle between split and unsplit sides of stack.
|
||||
# Split = all windows displayed
|
||||
# Unsplit = 1 window displayed, like Max layout, but still with
|
||||
|
@ -51,7 +61,14 @@ keys = [
|
|||
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
|
||||
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
|
||||
Key([mod], "r", lazy.spawncmd(), desc="Spawn a command using a prompt widget"),
|
||||
Key([mod], "d", lazy.spawn("rofi -combi-modi window,drun,scripts,ssh, -show-icons -show combi -modi combi"), desc="rofi"),
|
||||
Key(
|
||||
[mod],
|
||||
"d",
|
||||
lazy.spawn(
|
||||
"rofi -combi-modi window,drun,scripts,ssh, -show-icons -show combi -modi combi"
|
||||
),
|
||||
desc="rofi",
|
||||
),
|
||||
]
|
||||
|
||||
groups = [Group(i) for i in "123456789"]
|
||||
|
@ -132,8 +149,15 @@ screens = [
|
|||
|
||||
# Drag floating layouts.
|
||||
mouse = [
|
||||
Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()),
|
||||
Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()),
|
||||
Drag(
|
||||
[mod],
|
||||
"Button1",
|
||||
lazy.window.set_position_floating(),
|
||||
start=lazy.window.get_position(),
|
||||
),
|
||||
Drag(
|
||||
[mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()
|
||||
),
|
||||
Click([mod], "Button2", lazy.window.bring_to_front()),
|
||||
]
|
||||
|
||||
|
@ -154,7 +178,7 @@ floating_layout = Floating(
|
|||
Match(title="pinentry"), # GPG key password entry
|
||||
]
|
||||
)
|
||||
auto_fullscreen = True
|
||||
auto_fullscreen = False
|
||||
focus_on_window_activation = "smart"
|
||||
reconfigure_screens = True
|
||||
|
||||
|
@ -174,3 +198,6 @@ wl_input_rules = None
|
|||
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
|
||||
# java that happens to be on java's whitelist.
|
||||
wmname = "LG3D"
|
||||
|
||||
# autostart
|
||||
autostart.start_all()
|
||||
|
|
Loading…
Reference in New Issue