This commit is contained in:
coast 2025-10-03 13:16:10 +03:30
parent bc2b141fc1
commit c94dbd2d61
4 changed files with 196 additions and 26 deletions

View file

@ -2,29 +2,29 @@ font=UbuntuMono:size=14
pad=8x8
[colors]
foreground=ebdbb2 # light foreground (text)
background=282828 # dark background
## Normal/regular colors (color palette 0-7)
regular0=1d2021 # black
regular1=fb4934 # red
regular2=b8bb26 # green
regular3=fabd2f # yellow
regular4=83a598 # blue
regular5=d3869b # magenta
regular6=8ec07c # cyan
regular7=ffffff # white
## Bright colors (color palette 8-15)
bright0=7c6f64 # bright black
bright1=fb4934 # bright red
bright2=b8bb26 # bright green
bright3=fabd2f # bright yellow
bright4=83a598 # bright blue
bright5=d3869b # bright magenta
bright6=8ec07c # bright cyan
bright7=ffffff # bright white
## dimmed colors (see foot.ini(5) man page)
dim0=fe8019
dim1=fb4934
#foreground=ebdbb2 # light foreground (text)
background=1c1c1c # dark background
#
### Normal/regular colors (color palette 0-7)
#regular0=1d2021 # black
#regular1=fb4934 # red
#regular2=b8bb26 # green
#regular3=fabd2f # yellow
#regular4=83a598 # blue
#regular5=d3869b # magenta
#regular6=8ec07c # cyan
#regular7=ffffff # white
#
### Bright colors (color palette 8-15)
#bright0=7c6f64 # bright black
#bright1=fb4934 # bright red
#bright2=b8bb26 # bright green
#bright3=fabd2f # bright yellow
#bright4=83a598 # bright blue
#bright5=d3869b # bright magenta
#bright6=8ec07c # bright cyan
#bright7=ffffff # bright white
#
### dimmed colors (see foot.ini(5) man page)
#dim0=fe8019
#dim1=fb4934

Binary file not shown.

166
config/qtile/config.py Normal file
View file

@ -0,0 +1,166 @@
from libqtile import bar, layout, qtile, widget, hook
from libqtile.config import Click, Drag, Group, Key, Match, Screen
from libqtile.lazy import lazy
from libqtile.utils import guess_terminal
from libqtile.bar import Bar, Gap
import subprocess
mod = "mod4"
terminal = "footclient"
subprocess.run("/home/coast/.local/src/local/bin/start_qtile.sh")
keys = [
Key([mod], "h", lazy.layout.left(), desc="Move focus to left"),
Key([mod], "j", lazy.layout.right(), desc="Move focus to right"),
Key([mod], "k", lazy.layout.down(), desc="Move focus down"),
Key([mod], "l", lazy.layout.up(), desc="Move focus up"),
Key([mod], "space", lazy.layout.next(), desc="Move window focus to other window"),
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"),
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"], "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"),
Key(
[mod, "shift"],
"Return",
lazy.layout.toggle_split(),
desc="Toggle between split and unsplit sides of stack",
),
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod], "s", lazy.window.kill(), desc="Kill focused window"),
Key(
[mod],
"f",
lazy.window.toggle_fullscreen(),
desc="Toggle fullscreen on the focused window",
),
Key([mod], "t", lazy.window.toggle_floating(), desc="Toggle floating on the focused window"),
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
Key([mod, "shift"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
Key([mod], "r", lazy.spawn("wmenu-run -f \"Ubuntu 14\" -N #000000"), desc="Spawn a command using wmenu"),
Key([mod], "Print", lazy.spawn("/home/coast/.local/src/local/bin/screenie-wl")),
]
for vt in range(1, 8):
keys.append(
Key(
["control", "mod1"],
f"f{vt}",
lazy.core.change_vt(vt).when(func=lambda: qtile.core.name == "wayland"),
desc=f"Switch to VT{vt}",
)
)
@hook.subscribe.client_new
def set_opacity(window):
if window.match(Match(wm_class=[ "footclient", "foot"] )):
window.opacity = 0.9
groups = [Group(i) for i in "123456789"]
for i in groups:
keys.extend(
[
Key(
[mod],
i.name,
lazy.group[i.name].toscreen(),
desc=f"Switch to group {i.name}",
),
Key(
[mod, "shift"],
i.name,
lazy.window.togroup(i.name, switch_group=True),
desc=f"Switch to & move focused window to group {i.name}",
),
]
)
layouts = [
layout.MonadTall(
font = "Ubuntu", fontsize = 10, margin = 8, border_focus=["#454545"], border_width=4, border_normal=["#1c1c1c"]),
# Try more layouts by unleashing below layouts.
# layout.Stack(num_stacks=2),
# layout.Bsp(),
# layout.Matrix(),
layout.MonadWide(font = "Ubuntu", fontsize = 10, margin = 8, border_focus=["#454545"], border_width=4, border_normal=["#1c1c1c"]),
# layout.RatioTile(),
# layout.Tile(),
# layout.TreeTab(),
# layout.VerticalTile(),
# layout.Zoomy(),
]
widget_defaults = dict(
font="sans",
fontsize=12,
padding=3,
)
extension_defaults = widget_defaults.copy()
screens = [
Screen(
top=bar.Bar(
[
widget.CurrentLayout(),
widget.GroupBox(),
widget.Prompt(),
widget.WindowName(),
widget.Chord(
chords_colors={
"launch": ("#ff0000", "#ffffff"),
},
name_transform=lambda name: name.upper(),
),
widget.StatusNotifier(),
widget.Clock(format="%I:%M %p"),
widget.QuickExit(),
],
24,
),
),
]
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()),
Click([mod], "Button2", lazy.window.bring_to_front()),
]
dgroups_key_binder = None
dgroups_app_rules = []
follow_mouse_focus = True
bring_front_click = False
floats_kept_above = True
cursor_warp = False
floating_layout = layout.Floating(
float_rules=[
*layout.Floating.default_float_rules,
Match(wm_class="confirmreset"),
Match(wm_class="makebranch"),
Match(wm_class="maketag"),
Match(wm_class="ssh-askpass"),
Match(title="branchdialog"),
Match(title="pinentry"),
]
)
auto_fullscreen = True
focus_on_window_activation = "smart"
reconfigure_screens = True
auto_minimize = True
wl_input_rules = None
wl_xcursor_theme = "Adwaita"
wl_xcursor_size = 24
wmname = "LG3D"

4
local/bin/start_qtile.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
wlr-randr --output eDP-1 --off &
swaybg -i ~/Pictures/nature4.png &
foot -s &