Compare commits

..

No commits in common. "cd5565cb5058fcc82040f4f978c04c65a3509ef0" and "c1de0b9430f17e105c8ad710c1e15198a24cf396" have entirely different histories.

2 changed files with 324 additions and 434 deletions

View File

@ -1,47 +0,0 @@
# color definitions
seiun = {
'bg': '#202020',
'fg': '#dfdfdf',
'dark-red': '#ea7171',
'red': '#ed8682',
'dark-green': '#96a171',
'green': '#b1d094',
'dark-yellow': '#e7a55f',
'yellow': '#ecb983',
'dark-blue': '#7196a1',
'blue': '#9fb8bf',
'dark-magenta': '#c28490',
'magenta': '#d7adb5',
'dark-cyan': '#80ab96',
'cyan': '#9fbfaf',
'dark-gray': '#3d3d3d',
'gray': '#666666',
}
# gruvbox = {
# 'bg': '#282828',
# 'bg0_h': '#1d2021',
# 'bg1': '#3c3836',
# 'bg2': '#504945',
# 'bg3': '#665c45',
# 'bg4': '#7c6f64',
# 'gray': '#928374',
# 'dark-grey': '#a89984',
# 'fg0': '#fbf1c7',
# 'fg': '#ebdbb2',
# 'dark-red': '#cc241d',
# 'light-red': '#fb4934',
# 'dark-green': '#98971a',
# 'light-green': '#b8bb26',
# 'dark-yellow': '#d79921',
# 'light-yellow': '#fabd2f',
# 'dark-blue': '#458588',
# 'light-blue': '#83a598',
# 'dark-purple': '#b16286',
# 'light-purple': '#d3869b',
# 'dark-aqua': '#689d6a',
# 'light-aqua': '#8ec07c',
# }

View File

@ -36,11 +36,11 @@ from libqtile.command import lazy
from libqtile.widget import Spacer from libqtile.widget import Spacer
# mod4 or mod = super key #mod4 or mod = super key
mod = "mod4" mod = "mod4"
mod1 = "alt" mod1 = "alt"
mod2 = "control" mod2 = "control"
home = os.path.expanduser("~") home = os.path.expanduser('~')
@lazy.function @lazy.function
@ -49,84 +49,92 @@ def window_to_prev_group(qtile):
i = qtile.groups.index(qtile.currentGroup) i = qtile.groups.index(qtile.currentGroup)
qtile.currentWindow.togroup(qtile.groups[i - 1].name) qtile.currentWindow.togroup(qtile.groups[i - 1].name)
@lazy.function @lazy.function
def window_to_next_group(qtile): def window_to_next_group(qtile):
if qtile.currentWindow is not None: if qtile.currentWindow is not None:
i = qtile.groups.index(qtile.currentGroup) i = qtile.groups.index(qtile.currentGroup)
qtile.currentWindow.togroup(qtile.groups[i + 1].name) qtile.currentWindow.togroup(qtile.groups[i + 1].name)
myTerm = "alacritty" # My terminal of choice
myTerm = "alacritty" # My terminal of choice
keys = [ keys = [
# SUPER + FUNCTION KEYS
# SUPER + FUNCTION KEYS
Key([mod], "f", lazy.window.toggle_fullscreen()), Key([mod], "f", lazy.window.toggle_fullscreen()),
Key([mod], "q", lazy.window.kill()), Key([mod], "q", lazy.window.kill()),
Key([mod], "t", lazy.spawn("xterm")), Key([mod], "t", lazy.spawn('xterm')),
Key([mod], "v", lazy.spawn("pavucontrol")), Key([mod], "v", lazy.spawn('pavucontrol')),
Key([mod], "s", lazy.spawn("nwggrid -p -o 0.4")), Key([mod], "d", lazy.spawn('nwggrid -p -o 0.4')),
Key([mod], "Escape", lazy.spawn("xkill")), Key([mod], "Escape", lazy.spawn('xkill')),
Key([mod], "Return", lazy.spawn("kitty")), Key([mod], "Return", lazy.spawn('kitty')),
Key([mod], "KP_Enter", lazy.spawn("kitty")), Key([mod], "KP_Enter", lazy.spawn('kitty')),
Key([mod], "x", lazy.shutdown()), Key([mod], "x", lazy.shutdown()),
# SUPER + SHIFT KEYS
Key([mod, "shift"], "Return", lazy.spawn("pcmanfm")), # SUPER + SHIFT KEYS
Key(
[mod, "shift"], Key([mod, "shift"], "Return", lazy.spawn('pcmanfm')),
"d", Key([mod, "shift"], "d", lazy.spawn("dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'NotoMonoRegular:bold:pixelsize=14'")),
lazy.spawn( # Key([mod, "shift"], "d", lazy.spawn(home + '/.config/qtile/scripts/dmenu.sh')),
"dmenu_run -i -nb '#191919' -nf '#fea63c' -sb '#fea63c' -sf '#191919' -fn 'NotoMonoRegular:bold:pixelsize=14'"
),
),
# Key([mod, "shift"], "d", lazy.spawn(home + '/.config/qtile/scripts/dmenu.sh')),
Key([mod, "shift"], "q", lazy.window.kill()), Key([mod, "shift"], "q", lazy.window.kill()),
Key([mod, "shift"], "r", lazy.restart()), Key([mod, "shift"], "r", lazy.restart()),
Key([mod, "control"], "r", lazy.restart()), Key([mod, "control"], "r", lazy.restart()),
Key([mod, "shift"], "x", lazy.shutdown()), Key([mod, "shift"], "x", lazy.shutdown()),
# CONTROL + ALT KEYS
Key( # CONTROL + ALT KEYS
["mod1", "control"],
"o", Key(["mod1", "control"], "o", lazy.spawn(home + '/.config/qtile/scripts/picom-toggle.sh')),
lazy.spawn(home + "/.config/qtile/scripts/picom-toggle.sh"), Key(["mod1", "control"], "t", lazy.spawn('xterm')),
), Key(["mod1", "control"], "u", lazy.spawn('pavucontrol')),
Key(["mod1", "control"], "t", lazy.spawn("xterm")),
Key(["mod1", "control"], "u", lazy.spawn("pavucontrol")), # ALT + ... KEYS
# ALT + ... KEYS
Key(["mod1"], "p", lazy.spawn("pamac-manager")),
Key(["mod1"], "f", lazy.spawn("waterfox-g3")), Key(["mod1"], "p", lazy.spawn('pamac-manager')),
Key(["mod1"], "m", lazy.spawn("pcmanfm")), Key(["mod1"], "f", lazy.spawn('waterfox-g3')),
Key(["mod1"], "w", lazy.spawn("garuda-welcome")), Key(["mod1"], "m", lazy.spawn('pcmanfm')),
# CONTROL + SHIFT KEYS Key(["mod1"], "w", lazy.spawn('garuda-welcome')),
Key([mod2, "shift"], "Escape", lazy.spawn("lxtask")),
# SCREENSHOTS
Key([], "Print", lazy.spawn("flameshot full -p " + home + "/Pictures/Screenshots")), # CONTROL + SHIFT KEYS
Key(
[mod2], Key([mod2, "shift"], "Escape", lazy.spawn('lxtask')),
"Print",
lazy.spawn("flameshot full -p " + home + "/Pictures/Screenshots"),
), # SCREENSHOTS
# Key([mod2, "shift"], "Print", lazy.spawn('gnome-screenshot -i')),
# MULTIMEDIA KEYS Key([], "Print", lazy.spawn('flameshot full -p ' + home + '/Pictures')),
# INCREASE/DECREASE BRIGHTNESS Key([mod2], "Print", lazy.spawn('flameshot full -p ' + home + '/Pictures')),
# Key([mod2, "shift"], "Print", lazy.spawn('gnome-screenshot -i')),
# MULTIMEDIA KEYS
# INCREASE/DECREASE BRIGHTNESS
Key([], "XF86MonBrightnessUp", lazy.spawn("xbacklight -inc 5")), Key([], "XF86MonBrightnessUp", lazy.spawn("xbacklight -inc 5")),
Key([], "XF86MonBrightnessDown", lazy.spawn("xbacklight -dec 5")), Key([], "XF86MonBrightnessDown", lazy.spawn("xbacklight -dec 5")),
# INCREASE/DECREASE/MUTE VOLUME
# INCREASE/DECREASE/MUTE VOLUME
Key([], "XF86AudioMute", lazy.spawn("amixer -q set Master toggle")), Key([], "XF86AudioMute", lazy.spawn("amixer -q set Master toggle")),
Key([], "XF86AudioLowerVolume", lazy.spawn("amixer -q set Master 5%-")), Key([], "XF86AudioLowerVolume", lazy.spawn("amixer -q set Master 5%-")),
Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer -q set Master 5%+")), Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer -q set Master 5%+")),
Key([], "XF86AudioPlay", lazy.spawn("playerctl play-pause")), Key([], "XF86AudioPlay", lazy.spawn("playerctl play-pause")),
Key([], "XF86AudioNext", lazy.spawn("playerctl next")), Key([], "XF86AudioNext", lazy.spawn("playerctl next")),
Key([], "XF86AudioPrev", lazy.spawn("playerctl previous")), Key([], "XF86AudioPrev", lazy.spawn("playerctl previous")),
Key([], "XF86AudioStop", lazy.spawn("playerctl stop")), Key([], "XF86AudioStop", lazy.spawn("playerctl stop")),
# Key([], "XF86AudioPlay", lazy.spawn("mpc toggle")),
# Key([], "XF86AudioNext", lazy.spawn("mpc next")), # Key([], "XF86AudioPlay", lazy.spawn("mpc toggle")),
# Key([], "XF86AudioPrev", lazy.spawn("mpc prev")), # Key([], "XF86AudioNext", lazy.spawn("mpc next")),
# Key([], "XF86AudioStop", lazy.spawn("mpc stop")), # Key([], "XF86AudioPrev", lazy.spawn("mpc prev")),
# QTILE LAYOUT KEYS # Key([], "XF86AudioStop", lazy.spawn("mpc stop")),
# QTILE LAYOUT KEYS
Key([mod], "n", lazy.layout.normalize()), Key([mod], "n", lazy.layout.normalize()),
Key([mod], "space", lazy.next_layout()), Key([mod], "space", lazy.next_layout()),
# CHANGE FOCUS
# CHANGE FOCUS
Key([mod], "Up", lazy.layout.up()), Key([mod], "Up", lazy.layout.up()),
Key([mod], "Down", lazy.layout.down()), Key([mod], "Down", lazy.layout.down()),
Key([mod], "Left", lazy.layout.left()), Key([mod], "Left", lazy.layout.left()),
@ -135,149 +143,106 @@ keys = [
Key([mod], "j", lazy.layout.down()), Key([mod], "j", lazy.layout.down()),
Key([mod], "h", lazy.layout.left()), Key([mod], "h", lazy.layout.left()),
Key([mod], "l", lazy.layout.right()), Key([mod], "l", lazy.layout.right()),
# RESIZE UP, DOWN, LEFT, RIGHT
Key(
[mod, "control"], # RESIZE UP, DOWN, LEFT, RIGHT
"l", Key([mod, "control"], "l",
lazy.layout.grow_right(), lazy.layout.grow_right(),
lazy.layout.grow(), lazy.layout.grow(),
lazy.layout.increase_ratio(), lazy.layout.increase_ratio(),
lazy.layout.delete(), lazy.layout.delete(),
), ),
Key( Key([mod, "control"], "Right",
[mod, "control"],
"Right",
lazy.layout.grow_right(), lazy.layout.grow_right(),
lazy.layout.grow(), lazy.layout.grow(),
lazy.layout.increase_ratio(), lazy.layout.increase_ratio(),
lazy.layout.delete(), lazy.layout.delete(),
), ),
Key( Key([mod, "control"], "h",
[mod, "control"],
"h",
lazy.layout.grow_left(), lazy.layout.grow_left(),
lazy.layout.shrink(), lazy.layout.shrink(),
lazy.layout.decrease_ratio(), lazy.layout.decrease_ratio(),
lazy.layout.add(), lazy.layout.add(),
), ),
Key( Key([mod, "control"], "Left",
[mod, "control"],
"Left",
lazy.layout.grow_left(), lazy.layout.grow_left(),
lazy.layout.shrink(), lazy.layout.shrink(),
lazy.layout.decrease_ratio(), lazy.layout.decrease_ratio(),
lazy.layout.add(), lazy.layout.add(),
), ),
Key( Key([mod, "control"], "k",
[mod, "control"],
"k",
lazy.layout.grow_up(), lazy.layout.grow_up(),
lazy.layout.grow(), lazy.layout.grow(),
lazy.layout.decrease_nmaster(), lazy.layout.decrease_nmaster(),
), ),
Key( Key([mod, "control"], "Up",
[mod, "control"],
"Up",
lazy.layout.grow_up(), lazy.layout.grow_up(),
lazy.layout.grow(), lazy.layout.grow(),
lazy.layout.decrease_nmaster(), lazy.layout.decrease_nmaster(),
), ),
Key( Key([mod, "control"], "j",
[mod, "control"],
"j",
lazy.layout.grow_down(), lazy.layout.grow_down(),
lazy.layout.shrink(), lazy.layout.shrink(),
lazy.layout.increase_nmaster(), lazy.layout.increase_nmaster(),
), ),
Key( Key([mod, "control"], "Down",
[mod, "control"],
"Down",
lazy.layout.grow_down(), lazy.layout.grow_down(),
lazy.layout.shrink(), lazy.layout.shrink(),
lazy.layout.increase_nmaster(), lazy.layout.increase_nmaster(),
), ),
# FLIP LAYOUT FOR MONADTALL/MONADWIDE
# FLIP LAYOUT FOR MONADTALL/MONADWIDE
Key([mod, "shift"], "f", lazy.layout.flip()), Key([mod, "shift"], "f", lazy.layout.flip()),
# FLIP LAYOUT FOR BSP
# FLIP LAYOUT FOR BSP
Key([mod, "mod1"], "k", lazy.layout.flip_up()), Key([mod, "mod1"], "k", lazy.layout.flip_up()),
Key([mod, "mod1"], "j", lazy.layout.flip_down()), Key([mod, "mod1"], "j", lazy.layout.flip_down()),
Key([mod, "mod1"], "l", lazy.layout.flip_right()), Key([mod, "mod1"], "l", lazy.layout.flip_right()),
Key([mod, "mod1"], "h", lazy.layout.flip_left()), Key([mod, "mod1"], "h", lazy.layout.flip_left()),
# MOVE WINDOWS UP OR DOWN BSP LAYOUT
# MOVE WINDOWS UP OR DOWN BSP LAYOUT
Key([mod, "shift"], "k", lazy.layout.shuffle_up()), Key([mod, "shift"], "k", lazy.layout.shuffle_up()),
Key([mod, "shift"], "j", lazy.layout.shuffle_down()), Key([mod, "shift"], "j", lazy.layout.shuffle_down()),
Key([mod, "shift"], "h", lazy.layout.shuffle_left()), Key([mod, "shift"], "h", lazy.layout.shuffle_left()),
Key([mod, "shift"], "l", lazy.layout.shuffle_right()), Key([mod, "shift"], "l", lazy.layout.shuffle_right()),
### Treetab controls
Key( ### Treetab controls
[mod, "control"], Key([mod, "control"], "k",
"k",
lazy.layout.section_up(), lazy.layout.section_up(),
desc="Move up a section in treetab", desc='Move up a section in treetab'
), ),
Key( Key([mod, "control"], "j",
[mod, "control"],
"j",
lazy.layout.section_down(), lazy.layout.section_down(),
desc="Move down a section in treetab", desc='Move down a section in treetab'
), ),
# MOVE WINDOWS UP OR DOWN MONADTALL/MONADWIDE LAYOUT
# MOVE WINDOWS UP OR DOWN MONADTALL/MONADWIDE LAYOUT
Key([mod, "shift"], "Up", lazy.layout.shuffle_up()), Key([mod, "shift"], "Up", lazy.layout.shuffle_up()),
Key([mod, "shift"], "Down", lazy.layout.shuffle_down()), Key([mod, "shift"], "Down", lazy.layout.shuffle_down()),
Key([mod, "shift"], "Left", lazy.layout.swap_left()), Key([mod, "shift"], "Left", lazy.layout.swap_left()),
Key([mod, "shift"], "Right", lazy.layout.swap_right()), Key([mod, "shift"], "Right", lazy.layout.swap_right()),
# TOGGLE FLOATING LAYOUT
Key([mod, "shift"], "space", lazy.window.toggle_floating()), # TOGGLE FLOATING LAYOUT
] Key([mod, "shift"], "space", lazy.window.toggle_floating()),]
groups = [] groups = []
# FOR QWERTY KEYBOARDS # FOR QWERTY KEYBOARDS
group_names = [ group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0",]
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"0",
]
# FOR AZERTY KEYBOARDS # FOR AZERTY KEYBOARDS
# group_names = ["ampersand", "eacute", "quotedbl", "apostrophe", "parenleft", "section", "egrave", "exclam", "ccedilla", "agrave",] #group_names = ["ampersand", "eacute", "quotedbl", "apostrophe", "parenleft", "section", "egrave", "exclam", "ccedilla", "agrave",]
# group_labels = ["1 ", "2 ", "3 ", "4 ", "5 ", "6 ", "7 ", "8 ", "9 ", "0",] #group_labels = ["1 ", "2 ", "3 ", "4 ", "5 ", "6 ", "7 ", "8 ", "9 ", "0",]
group_labels = [ group_labels = ["", "", "", "", "", "", "", "", "", "",]
"", #group_labels = ["", "", "", "", "",]
"", #group_labels = ["Web", "Edit/chat", "Image", "Gimp", "Meld", "Video", "Vb", "Files", "Mail", "Music",]
"",
"",
"",
"",
"",
"",
"",
"",
]
# group_labels = ["", "", "", "", "",]
# group_labels = ["Web", "Edit/chat", "Image", "Gimp", "Meld", "Video", "Vb", "Files", "Mail", "Music",]
group_layouts = [ group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "treetab", "floating",]
"monadtall", #group_layouts = ["monadtall", "matrix", "monadtall", "bsp", "monadtall", "matrix", "monadtall", "bsp", "monadtall", "monadtall",]
"monadtall",
"monadtall",
"monadtall",
"monadtall",
"monadtall",
"monadtall",
"monadtall",
"treetab",
"floating",
]
# group_layouts = ["monadtall", "matrix", "monadtall", "bsp", "monadtall", "matrix", "monadtall", "bsp", "monadtall", "monadtall",]
for i in range(len(group_names)): for i in range(len(group_names)):
groups.append( groups.append(
@ -285,50 +250,38 @@ for i in range(len(group_names)):
name=group_names[i], name=group_names[i],
layout=group_layouts[i].lower(), layout=group_layouts[i].lower(),
label=group_labels[i], label=group_labels[i],
) ))
)
for i in groups: for i in groups:
keys.extend( keys.extend([
[
# CHANGE WORKSPACES #CHANGE WORKSPACES
Key([mod], i.name, lazy.group[i.name].toscreen()), Key([mod], i.name, lazy.group[i.name].toscreen()),
Key([mod], "Tab", lazy.screen.next_group()), Key([mod], "Tab", lazy.screen.next_group()),
Key([mod, "shift"], "Tab", lazy.screen.prev_group()), Key([mod, "shift" ], "Tab", lazy.screen.prev_group()),
Key(["mod1"], "Tab", lazy.screen.next_group()), Key(["mod1"], "Tab", lazy.screen.next_group()),
Key(["mod1", "shift"], "Tab", lazy.screen.prev_group()), Key(["mod1", "shift"], "Tab", lazy.screen.prev_group()),
# MOVE WINDOW TO SELECTED WORKSPACE 1-10 AND STAY ON WORKSPACE
# Key([mod, "shift"], i.name, lazy.window.togroup(i.name)), # MOVE WINDOW TO SELECTED WORKSPACE 1-10 AND STAY ON WORKSPACE
# MOVE WINDOW TO SELECTED WORKSPACE 1-10 AND FOLLOW MOVED WINDOW TO WORKSPACE #Key([mod, "shift"], i.name, lazy.window.togroup(i.name)),
Key( # MOVE WINDOW TO SELECTED WORKSPACE 1-10 AND FOLLOW MOVED WINDOW TO WORKSPACE
[mod, "shift"], Key([mod, "shift"], i.name, lazy.window.togroup(i.name) , lazy.group[i.name].toscreen()),
i.name, ])
lazy.window.togroup(i.name),
lazy.group[i.name].toscreen(),
),
]
)
def init_layout_theme(): def init_layout_theme():
return { return {"margin":10,
"margin": 10, "border_width":2,
"border_width": 2, "border_focus": "#ff00ff",
"border_focus": "#ff00ff", "border_normal": "#f4c2c2"
"border_normal": "#f4c2c2", }
}
layout_theme = init_layout_theme() layout_theme = init_layout_theme()
layouts = [ layouts = [
layout.MonadTall( layout.MonadTall(margin=16, border_width=2, border_focus="#ff00ff", border_normal="#f4c2c2"),
margin=16, border_width=2, border_focus="#ff00ff", border_normal="#f4c2c2" layout.MonadWide(margin=16, border_width=2, border_focus="#ff00ff", border_normal="#f4c2c2"),
),
layout.MonadWide(
margin=16, border_width=2, border_focus="#ff00ff", border_normal="#f4c2c2"
),
layout.Matrix(**layout_theme), layout.Matrix(**layout_theme),
layout.Bsp(**layout_theme), layout.Bsp(**layout_theme),
layout.Floating(**layout_theme), layout.Floating(**layout_theme),
@ -338,171 +291,187 @@ layouts = [
layout.Stack(**layout_theme), layout.Stack(**layout_theme),
layout.Tile(**layout_theme), layout.Tile(**layout_theme),
layout.TreeTab( layout.TreeTab(
sections=["FIRST", "SECOND"], sections=['FIRST', 'SECOND'],
bg_color="#141414", bg_color = '#141414',
active_bg="#0000ff", active_bg = '#0000ff',
inactive_bg="#1e90ff", inactive_bg = '#1e90ff',
padding_y=5, padding_y =5,
section_top=10, section_top =10,
panel_width=280, panel_width = 280),
),
layout.VerticalTile(**layout_theme), layout.VerticalTile(**layout_theme),
layout.Zoomy(**layout_theme), layout.Zoomy(**layout_theme)
] ]
# COLORS FOR THE BAR # COLORS FOR THE BAR
def init_colors(): def init_colors():
return [ return [["#2F343F", "#2F343F"], # color 0
["#2F343F", "#2F343F"], # color 0 ["#2F343F", "#2F343F"], # color 1
["#2F343F", "#2F343F"], # color 1 ["#c0c5ce", "#c0c5ce"], # color 2
["#c0c5ce", "#c0c5ce"], # color 2 ["#e75480", "#e75480"], # color 3
["#e75480", "#e75480"], # color 3 ["#f4c2c2", "#f4c2c2"], # color 4
["#f4c2c2", "#f4c2c2"], # color 4 ["#ffffff", "#ffffff"], # color 5
["#ffffff", "#ffffff"], # color 5 ["#ff0000", "#ff0000"], # color 6
["#ff0000", "#ff0000"], # color 6 ["#62FF00", "#62FF00"], # color 7
["#62FF00", "#62FF00"], # color 7 ["#000000", "#000000"], # color 8
["#000000", "#000000"], # color 8 ["#c40234", "#c40234"], # color 9
["#c40234", "#c40234"], # color 9 ["#6790eb", "#6790eb"], # color 10
["#6790eb", "#6790eb"], # color 10 ["#ff00ff", "#ff00ff"], #11
["#ff00ff", "#ff00ff"], # 11 ["#4c566a", "#4c566a"], #12
["#4c566a", "#4c566a"], # 12 ["#282c34", "#282c34"], #13
["#282c34", "#282c34"], # 13 ["#212121", "#212121"], #14
["#212121", "#212121"], # 14 ["#98c379", "#98c379"], #15
["#98c379", "#98c379"], # 15 ["#b48ead", "#b48ead"], #16
["#b48ead", "#b48ead"], # 16 ["#abb2bf", "#abb2bf"],# color 17
["#abb2bf", "#abb2bf"], # color 17 ["#81a1c1", "#81a1c1"], #18
["#81a1c1", "#81a1c1"], # 18 ["#56b6c2", "#56b6c2"], #19
["#56b6c2", "#56b6c2"], # 19 ["#c678dd", "#c678dd"], #20
["#c678dd", "#c678dd"], # 20 ["#e06c75", "#e06c75"], #21
["#e06c75", "#e06c75"], # 21 ["#fb9f7f", "#fb9f7f"], #22
["#fb9f7f", "#fb9f7f"], # 22 ["#ffd47e", "#ffd47e"]] #23
["#ffd47e", "#ffd47e"],
] # 23
colors = init_colors() colors = init_colors()
def base(fg='text', bg='dark'):
def base(fg="text", bg="dark"): return {'foreground': colors[14],'background': colors[15]}
return {"foreground": colors[14], "background": colors[15]}
# WIDGETS FOR THE BAR # WIDGETS FOR THE BAR
def init_widgets_defaults(): def init_widgets_defaults():
return dict(font="Noto Sans", fontsize=9, padding=2, background=colors[1]) return dict(font="Noto Sans",
fontsize = 9,
padding = 2,
background=colors[1])
widget_defaults = init_widgets_defaults() widget_defaults = init_widgets_defaults()
def init_widgets_list(): def init_widgets_list():
prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname()) prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
widgets_list = [ widgets_list = [
widget.Sep(
linewidth=1, padding=10, foreground=colors[15], background=colors[15] widget.Sep(
), # linewidth = 1,
widget.Image( padding = 10,
filename="~/.config/qtile/icons/garuda-red.png", foreground = colors[15],
iconsize=9, background = colors[15]
background=colors[15], ), #
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn("jgmenu_run")}, widget.Image(
), filename = "~/.config/qtile/icons/garuda-red.png",
widget.GroupBox( iconsize = 9,
background = colors[15],
mouse_callbacks = {'Button1': lambda : qtile.cmd_spawn('jgmenu_run')}
),
widget.GroupBox(
**base(bg=colors[15]), **base(bg=colors[15]),
font="UbuntuMono Nerd Font", font='UbuntuMono Nerd Font',
fontsize=11,
margin_y=3, fontsize = 11,
margin_x=2, margin_y = 3,
padding_y=5, margin_x = 2,
padding_x=4, padding_y = 5,
borderwidth=3, padding_x = 4,
borderwidth = 3,
active=colors[5], active=colors[5],
inactive=colors[6], inactive=colors[6],
rounded=True, rounded= True,
highlight_method="block", highlight_method='block',
urgent_alert_method="block", urgent_alert_method='block',
urgent_border=colors[16], urgent_border=colors[16],
this_current_screen_border=colors[20], this_current_screen_border=colors[20],
this_screen_border=colors[17], this_screen_border=colors[17],
other_current_screen_border=colors[13], other_current_screen_border=colors[13],
other_screen_border=colors[17], other_screen_border=colors[17],
disable_drag=True disable_drag=True
),
widget.TaskList(
highlight_method="border", # or block
icon_size=17,
max_title_width=150,
rounded=True,
padding_x=0,
padding_y=0,
margin_y=0,
fontsize=14,
border=colors[7],
foreground=colors[9],
margin=2,
txt_floating="🗗",
txt_minimized=">_ ",
borderwidth=1,
background=colors[20],
# unfocused_border = 'border'
),
widget.CurrentLayoutIcon(
custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
foreground=colors[5],
background=colors[3],
padding=0,
scale=0.7,
),
widget.CurrentLayout(
font="Noto Sans Bold",
fontsize=12,
foreground=colors[5],
background=colors[3],
),
widget.Net(
font="Noto Sans",
fontsize=12,
# Here enter your network name
interface=["wlp6s0"],
format="{down} ↓↑ {up}",
foreground=colors[5],
background=colors[19],
padding=0,
),
widget.CPU(
font="Noto Sans",
# format = '{MemUsed}M/{MemTotal}M',
update_interval=1,
fontsize=12,
foreground=colors[5],
background=colors[22],
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(myTerm + " -e htop")},
),
widget.Memory(
font="Noto Sans",
format="{MemUsed: .0f}M/{MemTotal: .0f}M",
update_interval=1,
fontsize=12,
measure_mem="M",
foreground=colors[5],
background=colors[16],
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(myTerm + " -e htop")},
),
widget.Clock(
foreground=colors[9],
background=colors[23],
fontsize=12,
format="%Y-%m-%d %H:%M",
),
widget.Systray(background=colors[10], icon_size=20, padding=4),
]
return widgets_list
),
widget.TaskList(
highlight_method = 'border', # or block
icon_size=17,
max_title_width=150,
rounded=True,
padding_x=0,
padding_y=0,
margin_y=0,
fontsize=14,
border=colors[7],
foreground=colors[9],
margin=2,
txt_floating='🗗',
txt_minimized='>_ ',
borderwidth = 1,
background=colors[20],
#unfocused_border = 'border'
),
widget.CurrentLayoutIcon(
custom_icon_paths = [os.path.expanduser("~/.config/qtile/icons")],
foreground = colors[5],
background = colors[3],
padding = 0,
scale = 0.7
),
widget.CurrentLayout(
font = "Noto Sans Bold",
fontsize = 12,
foreground = colors[5],
background = colors[3]
),
widget.Net(
font="Noto Sans",
fontsize=12,
# Here enter your network name
interface=["wlp6s0"],
format = '{down} ↓↑ {up}',
foreground=colors[5],
background=colors[19],
padding = 0,
),
widget.CPU(
font="Noto Sans",
#format = '{MemUsed}M/{MemTotal}M',
update_interval = 1,
fontsize = 12,
foreground = colors[5],
background = colors[22],
mouse_callbacks = {'Button1': lambda : qtile.cmd_spawn(myTerm + ' -e htop')},
),
widget.Memory(
font="Noto Sans",
format = '{MemUsed: .0f}M/{MemTotal: .0f}M',
update_interval = 1,
fontsize = 12,
measure_mem = 'M',
foreground = colors[5],
background = colors[16],
mouse_callbacks = {'Button1': lambda : qtile.cmd_spawn(myTerm + ' -e htop')},
),
widget.Clock(
foreground = colors[9],
background = colors[23],
fontsize = 12,
format="%Y-%m-%d %H:%M"
),
widget.Systray(
background=colors[10],
icon_size=20,
padding = 4
),
]
return widgets_list
widgets_list = init_widgets_list() widgets_list = init_widgets_list()
@ -510,51 +479,26 @@ def init_widgets_screen1():
widgets_screen1 = init_widgets_list() widgets_screen1 = init_widgets_list()
return widgets_screen1 return widgets_screen1
def init_widgets_screen2(): def init_widgets_screen2():
widgets_screen2 = init_widgets_list() widgets_screen2 = init_widgets_list()
return widgets_screen2 return widgets_screen2
widgets_screen1 = init_widgets_screen1() widgets_screen1 = init_widgets_screen1()
widgets_screen2 = init_widgets_screen2() widgets_screen2 = init_widgets_screen2()
def init_screens(): def init_screens():
return [ return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), size=20, opacity=0.85, background= "000000")),
Screen( Screen(top=bar.Bar(widgets=init_widgets_screen2(), size=20, opacity=0.85, background= "000000"))]
top=bar.Bar(
widgets=init_widgets_screen1(),
size=20,
opacity=0.85,
background="000000",
)
),
Screen(
top=bar.Bar(
widgets=init_widgets_screen2(),
size=20,
opacity=0.85,
background="000000",
)
),
]
screens = init_screens() screens = init_screens()
# MOUSE CONFIGURATION # MOUSE CONFIGURATION
mouse = [ mouse = [
Drag( Drag([mod], "Button1", lazy.window.set_position_floating(),
[mod], start=lazy.window.get_position()),
"Button1", Drag([mod], "Button3", lazy.window.set_size_floating(),
lazy.window.set_position_floating(), start=lazy.window.get_size())
start=lazy.window.get_position(),
),
Drag(
[mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()
),
] ]
dgroups_key_binder = None dgroups_key_binder = None
@ -602,69 +546,62 @@ dgroups_app_rules = []
# ASSIGN APPLICATIONS TO A SPECIFIC GROUPNAME # ASSIGN APPLICATIONS TO A SPECIFIC GROUPNAME
main = None
main = None
@hook.subscribe.startup_once @hook.subscribe.startup_once
def start_once(): def start_once():
home = os.path.expanduser("~") home = os.path.expanduser('~')
subprocess.call([home + "/.config/qtile/scripts/autostart.sh"]) subprocess.call([home + '/.config/qtile/scripts/autostart.sh'])
@hook.subscribe.startup @hook.subscribe.startup
def start_always(): def start_always():
# Set the cursor to something sane in X # Set the cursor to something sane in X
subprocess.Popen(["xsetroot", "-cursor_name", "left_ptr"]) subprocess.Popen(['xsetroot', '-cursor_name', 'left_ptr'])
@hook.subscribe.client_new @hook.subscribe.client_new
def set_floating(window): def set_floating(window):
if ( if (window.window.get_wm_transient_for()
window.window.get_wm_transient_for() or window.window.get_wm_type() in floating_types):
or window.window.get_wm_type() in floating_types
):
window.floating = True window.floating = True
floating_types = ["notification", "toolbar", "splash", "dialog"] floating_types = ["notification", "toolbar", "splash", "dialog"]
follow_mouse_focus = True follow_mouse_focus = True
bring_front_click = False bring_front_click = False
cursor_warp = False cursor_warp = False
floating_layout = layout.Floating( floating_layout = layout.Floating(float_rules=[
float_rules=[ *layout.Floating.default_float_rules,
*layout.Floating.default_float_rules, Match(wm_class='confirm'),
Match(wm_class="confirm"), Match(wm_class='dialog'),
Match(wm_class="dialog"), Match(wm_class='download'),
Match(wm_class="download"), Match(wm_class='error'),
Match(wm_class="error"), Match(wm_class='file_progress'),
Match(wm_class="file_progress"), Match(wm_class='notification'),
Match(wm_class="notification"), Match(wm_class='splash'),
Match(wm_class="splash"), Match(wm_class='toolbar'),
Match(wm_class="toolbar"), Match(wm_class='confirmreset'),
Match(wm_class="confirmreset"), Match(wm_class='makebranch'),
Match(wm_class="makebranch"), Match(wm_class='maketag'),
Match(wm_class="maketag"), Match(wm_class='Arandr'),
Match(wm_class="Arandr"), Match(wm_class='feh'),
Match(wm_class="feh"), Match(wm_class='Galculator'),
Match(wm_class="Galculator"), Match(title='branchdialog'),
Match(title="branchdialog"), Match(title='Open File'),
Match(title="Open File"), Match(title='pinentry'),
Match(title="pinentry"), Match(wm_class='ssh-askpass'),
Match(wm_class="ssh-askpass"), Match(wm_class='lxpolkit'),
Match(wm_class="lxpolkit"), Match(wm_class='Lxpolkit'),
Match(wm_class="Lxpolkit"), Match(wm_class='yad'),
Match(wm_class="yad"), Match(wm_class='Yad'),
Match(wm_class="Yad"), Match(wm_class='Cairo-dock'),
Match(wm_class="Cairo-dock"), Match(wm_class='cairo-dock'),
Match(wm_class="cairo-dock"),
],
fullscreen_border_width=0, ], fullscreen_border_width = 0, border_width = 0)
border_width=0,
)
auto_fullscreen = True auto_fullscreen = True
focus_on_window_activation = "focus" # or smart focus_on_window_activation = "focus" # or smart
wmname = "LG3D" wmname = "LG3D"