mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2025-02-17 18:03:23 -05:00
Updated Qtile Configs
Signed-off-by: The-Repo-Club <wayne6324@gmail.com>
This commit is contained in:
parent
27fbd21b47
commit
d059d44d3c
@ -17,7 +17,9 @@ colorScheme = [
|
|||||||
["e5e9f0", "e5e9f0"], # 15
|
["e5e9f0", "e5e9f0"], # 15
|
||||||
["e5e9f0", "e5e9f0"], # foregroundColor
|
["e5e9f0", "e5e9f0"], # foregroundColor
|
||||||
["283036", "283036"], # backgroundColor
|
["283036", "283036"], # backgroundColor
|
||||||
|
["434c5e", "434c5e"], # backgroundColor
|
||||||
]
|
]
|
||||||
|
|
||||||
foregroundColor = colorScheme[16]
|
foregroundColor = colorScheme[16]
|
||||||
backgroundColor = colorScheme[17]
|
backgroundColor = colorScheme[17]
|
||||||
|
currentColor = colorScheme[18]
|
@ -25,6 +25,7 @@ import subprocess
|
|||||||
|
|
||||||
from widgets import Widgets
|
from widgets import Widgets
|
||||||
from groups import Groups
|
from groups import Groups
|
||||||
|
from colors import colorScheme, currentColor
|
||||||
|
|
||||||
locale.setlocale(locale.LC_ALL, '')
|
locale.setlocale(locale.LC_ALL, '')
|
||||||
|
|
||||||
@ -127,12 +128,9 @@ keys = [
|
|||||||
Key([MOD, CTRL], "c", lazy.spawn(Commands.editor), desc="Launch editor"),
|
Key([MOD, CTRL], "c", lazy.spawn(Commands.editor), desc="Launch editor"),
|
||||||
Key([MOD, SHIFT], "e", lazy.spawn(Commands.power), desc="Launch power menu"),
|
Key([MOD, SHIFT], "e", lazy.spawn(Commands.power), desc="Launch power menu"),
|
||||||
Key([MOD, SHIFT], "Return", lazy.spawn(Commands.files), desc="Launch files"),
|
Key([MOD, SHIFT], "Return", lazy.spawn(Commands.files), desc="Launch files"),
|
||||||
KeyChord([MOD, CTRL],
|
KeyChord([MOD, CTRL], "g", [
|
||||||
"g", [
|
Key([], "s", lazy.spawn('prime-run steam'), desc="Spawn steam"),
|
||||||
Key([], "s", lazy.spawn('prime-run steam'), desc="Spawn steam"),
|
], mode=False, name="Launch Game"),
|
||||||
],
|
|
||||||
mode=False,
|
|
||||||
name="Launch Game"),
|
|
||||||
|
|
||||||
# Audio Settings
|
# Audio Settings
|
||||||
Key([], "XF86AudioMute", lazy.spawn("amixer -D pulse set Master toggle")),
|
Key([], "XF86AudioMute", lazy.spawn("amixer -D pulse set Master toggle")),
|
||||||
@ -164,6 +162,7 @@ groups.append(
|
|||||||
ScratchPad("scratchpad", [
|
ScratchPad("scratchpad", [
|
||||||
DropDown("term", "alacritty --class=scratch", width=0.8, height=0.8, x=0.1, y=0.1, opacity=1),
|
DropDown("term", "alacritty --class=scratch", width=0.8, height=0.8, x=0.1, y=0.1, opacity=1),
|
||||||
DropDown("clifm", "alacritty --class=clifm -e clifm", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9),
|
DropDown("clifm", "alacritty --class=clifm -e clifm", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9),
|
||||||
|
DropDown("btop", "alacritty --class=btop -e btop", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9),
|
||||||
DropDown("volume", "pavucontrol", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9),
|
DropDown("volume", "pavucontrol", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9),
|
||||||
]))
|
]))
|
||||||
|
|
||||||
@ -171,6 +170,7 @@ groups.append(
|
|||||||
keys.extend([
|
keys.extend([
|
||||||
Key([CTRL], "Return", lazy.group['scratchpad'].dropdown_toggle('term')),
|
Key([CTRL], "Return", lazy.group['scratchpad'].dropdown_toggle('term')),
|
||||||
Key([ALT], "c", lazy.group['scratchpad'].dropdown_toggle('clifm')),
|
Key([ALT], "c", lazy.group['scratchpad'].dropdown_toggle('clifm')),
|
||||||
|
Key([ALT], "b", lazy.group['scratchpad'].dropdown_toggle('btop')),
|
||||||
Key([ALT], "v", lazy.group['scratchpad'].dropdown_toggle('volume')),
|
Key([ALT], "v", lazy.group['scratchpad'].dropdown_toggle('volume')),
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -179,22 +179,35 @@ keys.extend([
|
|||||||
####################
|
####################
|
||||||
|
|
||||||
# Layout Theme
|
# Layout Theme
|
||||||
layout_theme = {"border_width": 2, "margin": 5, "border_focus": "#a6ffa6", "border_normal": "#434c5e"}
|
layout_theme = {
|
||||||
|
"border_width": 2,
|
||||||
|
"margin": 5,
|
||||||
|
"border_focus": colorScheme[10],
|
||||||
|
"border_normal": currentColor,
|
||||||
|
}
|
||||||
|
|
||||||
layouts = [
|
layouts = [
|
||||||
layout.Tile(**layout_theme),
|
layout.Tile(
|
||||||
layout.Columns(**layout_theme),
|
**layout_theme,
|
||||||
layout.Max(),
|
add_after_last=True,
|
||||||
|
),
|
||||||
|
layout.Columns(**layout_theme,),
|
||||||
|
layout.Max(**layout_theme,),
|
||||||
# Try more layouts by unleashing below layouts.
|
# Try more layouts by unleashing below layouts.
|
||||||
layout.Stack(**layout_theme, num_stacks=2),
|
layout.Stack(**layout_theme, num_stacks=2),
|
||||||
# layout.Bsp(**layout_theme),
|
# layout.Bsp(**layout_theme),
|
||||||
layout.Matrix(**layout_theme),
|
layout.MonadThreeCol(
|
||||||
layout.MonadTall(**layout_theme),
|
**layout_theme,
|
||||||
layout.MonadWide(**layout_theme),
|
ratio=0.4,
|
||||||
layout.RatioTile(**layout_theme),
|
new_client_position="after_current",
|
||||||
# layout.TreeTab(**layout_theme),
|
),
|
||||||
# layout.VerticalTile(**layout_theme),
|
layout.Matrix(**layout_theme,),
|
||||||
# layout.Zoomy(**layout_theme),
|
layout.MonadTall(**layout_theme,),
|
||||||
|
layout.MonadWide(**layout_theme,),
|
||||||
|
layout.RatioTile(**layout_theme,),
|
||||||
|
# layout.TreeTab(**layout_theme,),
|
||||||
|
# layout.VerticalTile(**layout_theme,),
|
||||||
|
layout.Zoomy(**layout_theme,),
|
||||||
]
|
]
|
||||||
|
|
||||||
floating_layout = layout.Floating(
|
floating_layout = layout.Floating(
|
||||||
@ -234,7 +247,7 @@ screens = [
|
|||||||
Widgets.sep,
|
Widgets.sep,
|
||||||
Widgets.power1,
|
Widgets.power1,
|
||||||
Widgets.sep,
|
Widgets.sep,
|
||||||
Widgets.windowName,
|
Widgets.windowName1,
|
||||||
Widgets.sep,
|
Widgets.sep,
|
||||||
Widgets.updates,
|
Widgets.updates,
|
||||||
Widgets.sep,
|
Widgets.sep,
|
||||||
@ -288,7 +301,7 @@ screens = [
|
|||||||
Widgets.sep,
|
Widgets.sep,
|
||||||
Widgets.power2,
|
Widgets.power2,
|
||||||
Widgets.sep,
|
Widgets.sep,
|
||||||
Widgets.windowName,
|
Widgets.windowName2,
|
||||||
Widgets.sep,
|
Widgets.sep,
|
||||||
Widgets.updates,
|
Widgets.updates,
|
||||||
Widgets.sep,
|
Widgets.sep,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import re
|
||||||
from libqtile.config import Group, Match
|
from libqtile.config import Group, Match
|
||||||
|
|
||||||
|
|
||||||
@ -9,7 +10,8 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
persist=True,
|
persist=True,
|
||||||
matches=[Match(wm_class=['Alacritty', 'kitty'])],
|
matches=[Match(wm_class=re.compile('^Alacritty.*|^Kitty.*', re.IGNORECASE))],
|
||||||
|
layout='monadthreecol',
|
||||||
position=1,
|
position=1,
|
||||||
screen_affinity=1,
|
screen_affinity=1,
|
||||||
name='1',
|
name='1',
|
||||||
@ -19,7 +21,7 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
persist=True,
|
persist=True,
|
||||||
matches=[Match(wm_class=['Code'])],
|
matches=[Match(wm_class=re.compile('^Code.*|^Jetbrains.*', re.IGNORECASE))],
|
||||||
position=2,
|
position=2,
|
||||||
screen_affinity=1,
|
screen_affinity=1,
|
||||||
name='2',
|
name='2',
|
||||||
@ -29,7 +31,7 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
persist=True,
|
persist=True,
|
||||||
matches=[Match(wm_class=['Nemo'])],
|
matches=[Match(wm_class=re.compile('^Nemo.*', re.IGNORECASE))],
|
||||||
position=3,
|
position=3,
|
||||||
screen_affinity=1,
|
screen_affinity=1,
|
||||||
name='3',
|
name='3',
|
||||||
@ -39,7 +41,7 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
persist=True,
|
persist=True,
|
||||||
# matches=[Match(wm_class=['Nemo'])],
|
matches=[Match(wm_class=re.compile('^Aseprite.*|^Krita.*', re.IGNORECASE))],
|
||||||
position=4,
|
position=4,
|
||||||
screen_affinity=1,
|
screen_affinity=1,
|
||||||
name='4',
|
name='4',
|
||||||
@ -49,7 +51,7 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
persist=True,
|
persist=True,
|
||||||
# matches=[Match(wm_class=['Nemo'])],
|
matches=[Match(wm_class=re.compile('^CmusImage.*', re.IGNORECASE))],
|
||||||
position=5,
|
position=5,
|
||||||
screen_affinity=1,
|
screen_affinity=1,
|
||||||
name='5',
|
name='5',
|
||||||
@ -59,7 +61,7 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
persist=True,
|
persist=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
matches=[Match(wm_class=['firefox'], role=['browser'])],
|
matches=[Match(wm_class=re.compile('^Firefox.*|^Brave.*', re.IGNORECASE), role=['browser'])],
|
||||||
position=6,
|
position=6,
|
||||||
screen_affinity=2,
|
screen_affinity=2,
|
||||||
name='6',
|
name='6',
|
||||||
@ -69,7 +71,7 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
persist=True,
|
persist=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
# matches=[Match(wm_class=['firefox'])],
|
matches=[Match(wm_class=re.compile('^Mail.*|^Thunderbird.*', re.IGNORECASE))],
|
||||||
position=7,
|
position=7,
|
||||||
screen_affinity=2,
|
screen_affinity=2,
|
||||||
name='7',
|
name='7',
|
||||||
@ -79,7 +81,7 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
persist=True,
|
persist=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
matches=[Match(wm_class=['Steam'])],
|
matches=[Match(wm_class=re.compile('^Steam.*|^Minecraft.*|^0ad.*', re.IGNORECASE))],
|
||||||
position=8,
|
position=8,
|
||||||
screen_affinity=2,
|
screen_affinity=2,
|
||||||
name='8',
|
name='8',
|
||||||
@ -89,7 +91,7 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
persist=True,
|
persist=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
matches=[Match(wm_class=['discord'])],
|
matches=[Match(wm_class=re.compile('^Discord.*', re.IGNORECASE))],
|
||||||
position=9,
|
position=9,
|
||||||
screen_affinity=2,
|
screen_affinity=2,
|
||||||
name='9',
|
name='9',
|
||||||
@ -99,7 +101,7 @@ class Groups(object):
|
|||||||
init=True,
|
init=True,
|
||||||
persist=True,
|
persist=True,
|
||||||
exclusive=False,
|
exclusive=False,
|
||||||
matches=[Match(wm_class=['PkgBrowser'])],
|
matches=[Match(wm_class=re.compile('^PkgBrowser.*|^Virt.*|^Btop.*', re.IGNORECASE))],
|
||||||
position=10,
|
position=10,
|
||||||
screen_affinity=2,
|
screen_affinity=2,
|
||||||
name='0',
|
name='0',
|
||||||
|
@ -47,14 +47,14 @@ class Widgets(object):
|
|||||||
padding_x=6,
|
padding_x=6,
|
||||||
borderwidth=2,
|
borderwidth=2,
|
||||||
disable_drag=True,
|
disable_drag=True,
|
||||||
active=colorScheme[4],
|
active=colorScheme[6],
|
||||||
inactive=foregroundColor,
|
inactive=foregroundColor,
|
||||||
hide_unused=True,
|
hide_unused=True,
|
||||||
rounded=False,
|
rounded=False,
|
||||||
highlight_method="line",
|
highlight_method="line",
|
||||||
highlight_color=['283036', '283036'],
|
highlight_color=backgroundColor,
|
||||||
this_current_screen_border=colorScheme[5],
|
this_current_screen_border=colorScheme[2],
|
||||||
this_screen_border=colorScheme[7],
|
this_screen_border=colorScheme[1],
|
||||||
other_screen_border=colorScheme[6],
|
other_screen_border=colorScheme[6],
|
||||||
other_current_screen_border=colorScheme[6],
|
other_current_screen_border=colorScheme[6],
|
||||||
urgent_alert_method="line",
|
urgent_alert_method="line",
|
||||||
@ -75,14 +75,14 @@ class Widgets(object):
|
|||||||
padding_x=6,
|
padding_x=6,
|
||||||
borderwidth=2,
|
borderwidth=2,
|
||||||
disable_drag=True,
|
disable_drag=True,
|
||||||
active=colorScheme[4],
|
active=colorScheme[6],
|
||||||
inactive=foregroundColor,
|
inactive=foregroundColor,
|
||||||
hide_unused=True,
|
hide_unused=True,
|
||||||
rounded=False,
|
rounded=False,
|
||||||
highlight_method="line",
|
highlight_method="line",
|
||||||
highlight_color=['283036', '283036'],
|
highlight_color=backgroundColor,
|
||||||
this_current_screen_border=colorScheme[5],
|
this_current_screen_border=colorScheme[2],
|
||||||
this_screen_border=colorScheme[7],
|
this_screen_border=colorScheme[1],
|
||||||
other_screen_border=colorScheme[6],
|
other_screen_border=colorScheme[6],
|
||||||
other_current_screen_border=colorScheme[6],
|
other_current_screen_border=colorScheme[6],
|
||||||
urgent_alert_method="line",
|
urgent_alert_method="line",
|
||||||
@ -94,9 +94,16 @@ class Widgets(object):
|
|||||||
visible_groups=["6", "7", "8", "9", "0"],
|
visible_groups=["6", "7", "8", "9", "0"],
|
||||||
)
|
)
|
||||||
|
|
||||||
windowName = widget.WindowName(
|
windowName1 = widget.WindowName(
|
||||||
font="SauceCodePro Nerd Font",
|
font="SauceCodePro Nerd Font",
|
||||||
foreground=colorScheme[0],
|
foreground=backgroundColor,
|
||||||
|
background=colorScheme[10],
|
||||||
|
padding=10,
|
||||||
|
)
|
||||||
|
|
||||||
|
windowName2 = widget.WindowName(
|
||||||
|
font="SauceCodePro Nerd Font",
|
||||||
|
foreground=backgroundColor,
|
||||||
background=colorScheme[10],
|
background=colorScheme[10],
|
||||||
padding=10,
|
padding=10,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user