Updated Qtile Configs

Signed-off-by: The-Repo-Club <wayne6324@gmail.com>
This commit is contained in:
The-Repo-Club 2022-10-16 18:53:35 +01:00
parent 27fbd21b47
commit d059d44d3c
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
4 changed files with 64 additions and 40 deletions

View File

@ -17,7 +17,9 @@ colorScheme = [
["e5e9f0", "e5e9f0"], # 15
["e5e9f0", "e5e9f0"], # foregroundColor
["283036", "283036"], # backgroundColor
["434c5e", "434c5e"], # backgroundColor
]
foregroundColor = colorScheme[16]
backgroundColor = colorScheme[17]
backgroundColor = colorScheme[17]
currentColor = colorScheme[18]

View File

@ -25,6 +25,7 @@ import subprocess
from widgets import Widgets
from groups import Groups
from colors import colorScheme, currentColor
locale.setlocale(locale.LC_ALL, '')
@ -127,12 +128,9 @@ keys = [
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], "Return", lazy.spawn(Commands.files), desc="Launch files"),
KeyChord([MOD, CTRL],
"g", [
Key([], "s", lazy.spawn('prime-run steam'), desc="Spawn steam"),
],
mode=False,
name="Launch Game"),
KeyChord([MOD, CTRL], "g", [
Key([], "s", lazy.spawn('prime-run steam'), desc="Spawn steam"),
], mode=False, name="Launch Game"),
# Audio Settings
Key([], "XF86AudioMute", lazy.spawn("amixer -D pulse set Master toggle")),
@ -164,6 +162,7 @@ groups.append(
ScratchPad("scratchpad", [
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("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),
]))
@ -171,6 +170,7 @@ groups.append(
keys.extend([
Key([CTRL], "Return", lazy.group['scratchpad'].dropdown_toggle('term')),
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')),
])
@ -179,22 +179,35 @@ keys.extend([
####################
# 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 = [
layout.Tile(**layout_theme),
layout.Columns(**layout_theme),
layout.Max(),
layout.Tile(
**layout_theme,
add_after_last=True,
),
layout.Columns(**layout_theme,),
layout.Max(**layout_theme,),
# Try more layouts by unleashing below layouts.
layout.Stack(**layout_theme, num_stacks=2),
# layout.Bsp(**layout_theme),
layout.Matrix(**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),
layout.MonadThreeCol(
**layout_theme,
ratio=0.4,
new_client_position="after_current",
),
layout.Matrix(**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(
@ -234,7 +247,7 @@ screens = [
Widgets.sep,
Widgets.power1,
Widgets.sep,
Widgets.windowName,
Widgets.windowName1,
Widgets.sep,
Widgets.updates,
Widgets.sep,
@ -288,7 +301,7 @@ screens = [
Widgets.sep,
Widgets.power2,
Widgets.sep,
Widgets.windowName,
Widgets.windowName2,
Widgets.sep,
Widgets.updates,
Widgets.sep,

View File

@ -1,3 +1,4 @@
import re
from libqtile.config import Group, Match
@ -9,7 +10,8 @@ class Groups(object):
init=True,
exclusive=False,
persist=True,
matches=[Match(wm_class=['Alacritty', 'kitty'])],
matches=[Match(wm_class=re.compile('^Alacritty.*|^Kitty.*', re.IGNORECASE))],
layout='monadthreecol',
position=1,
screen_affinity=1,
name='1',
@ -19,7 +21,7 @@ class Groups(object):
init=True,
exclusive=False,
persist=True,
matches=[Match(wm_class=['Code'])],
matches=[Match(wm_class=re.compile('^Code.*|^Jetbrains.*', re.IGNORECASE))],
position=2,
screen_affinity=1,
name='2',
@ -29,7 +31,7 @@ class Groups(object):
init=True,
exclusive=False,
persist=True,
matches=[Match(wm_class=['Nemo'])],
matches=[Match(wm_class=re.compile('^Nemo.*', re.IGNORECASE))],
position=3,
screen_affinity=1,
name='3',
@ -39,7 +41,7 @@ class Groups(object):
init=True,
exclusive=False,
persist=True,
# matches=[Match(wm_class=['Nemo'])],
matches=[Match(wm_class=re.compile('^Aseprite.*|^Krita.*', re.IGNORECASE))],
position=4,
screen_affinity=1,
name='4',
@ -49,7 +51,7 @@ class Groups(object):
init=True,
exclusive=False,
persist=True,
# matches=[Match(wm_class=['Nemo'])],
matches=[Match(wm_class=re.compile('^CmusImage.*', re.IGNORECASE))],
position=5,
screen_affinity=1,
name='5',
@ -59,7 +61,7 @@ class Groups(object):
init=True,
persist=True,
exclusive=False,
matches=[Match(wm_class=['firefox'], role=['browser'])],
matches=[Match(wm_class=re.compile('^Firefox.*|^Brave.*', re.IGNORECASE), role=['browser'])],
position=6,
screen_affinity=2,
name='6',
@ -69,7 +71,7 @@ class Groups(object):
init=True,
persist=True,
exclusive=False,
# matches=[Match(wm_class=['firefox'])],
matches=[Match(wm_class=re.compile('^Mail.*|^Thunderbird.*', re.IGNORECASE))],
position=7,
screen_affinity=2,
name='7',
@ -79,7 +81,7 @@ class Groups(object):
init=True,
persist=True,
exclusive=False,
matches=[Match(wm_class=['Steam'])],
matches=[Match(wm_class=re.compile('^Steam.*|^Minecraft.*|^0ad.*', re.IGNORECASE))],
position=8,
screen_affinity=2,
name='8',
@ -89,7 +91,7 @@ class Groups(object):
init=True,
persist=True,
exclusive=False,
matches=[Match(wm_class=['discord'])],
matches=[Match(wm_class=re.compile('^Discord.*', re.IGNORECASE))],
position=9,
screen_affinity=2,
name='9',
@ -99,7 +101,7 @@ class Groups(object):
init=True,
persist=True,
exclusive=False,
matches=[Match(wm_class=['PkgBrowser'])],
matches=[Match(wm_class=re.compile('^PkgBrowser.*|^Virt.*|^Btop.*', re.IGNORECASE))],
position=10,
screen_affinity=2,
name='0',

View File

@ -47,14 +47,14 @@ class Widgets(object):
padding_x=6,
borderwidth=2,
disable_drag=True,
active=colorScheme[4],
active=colorScheme[6],
inactive=foregroundColor,
hide_unused=True,
rounded=False,
highlight_method="line",
highlight_color=['283036', '283036'],
this_current_screen_border=colorScheme[5],
this_screen_border=colorScheme[7],
highlight_color=backgroundColor,
this_current_screen_border=colorScheme[2],
this_screen_border=colorScheme[1],
other_screen_border=colorScheme[6],
other_current_screen_border=colorScheme[6],
urgent_alert_method="line",
@ -75,14 +75,14 @@ class Widgets(object):
padding_x=6,
borderwidth=2,
disable_drag=True,
active=colorScheme[4],
active=colorScheme[6],
inactive=foregroundColor,
hide_unused=True,
rounded=False,
highlight_method="line",
highlight_color=['283036', '283036'],
this_current_screen_border=colorScheme[5],
this_screen_border=colorScheme[7],
highlight_color=backgroundColor,
this_current_screen_border=colorScheme[2],
this_screen_border=colorScheme[1],
other_screen_border=colorScheme[6],
other_current_screen_border=colorScheme[6],
urgent_alert_method="line",
@ -94,9 +94,16 @@ class Widgets(object):
visible_groups=["6", "7", "8", "9", "0"],
)
windowName = widget.WindowName(
windowName1 = widget.WindowName(
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],
padding=10,
)