# Antonio Sarosi
# https://youtube.com/c/antoniosarosi
# https://github.com/antoniosarosi/dotfiles

# Qtile workspaces

from libqtile.config import Key, Group
from libqtile.command import lazy
from settings.keys import mod, keys


# Get the icons at https://www.nerdfonts.com/cheat-sheet (you need a Nerd Font)
# Icons: 
# nf-fa-firefox, 
# nf-fae-python, 
# nf-dev-terminal, 
# nf-fa-code, 
# nf-seti-config, 
# nf-mdi-folder, 
# nf-mdi-image, 
# nf-fa-video_camera, 
# nf-mdi-layers

groups = []

# FOR QWERTY KEYBOARDS
#group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0",]

# FOR AZERTY KEYBOARDS
group_names = ["ampersand", "eacute", "quotedbl", "apostrophe", "parenleft", "minus", "egrave", "underscore", "ccedilla",]

group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]

group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall",]


for i in range(len(group_names)):
    groups.append(
        Group(
            name=group_names[i],
            layout=group_layouts[i].lower(),
            label=group_labels[i],
        ))

for i in groups:
    keys.extend([

#CHANGE WORKSPACES
        Key([mod], i.name, lazy.group[i.name].toscreen()),
        Key([mod], "Tab", lazy.screen.next_group()),
        Key(["mod1"], "Tab", lazy.screen.next_group()),
        Key(["mod1", "shift"], "Tab", lazy.screen.prev_group()),

# MOVE WINDOW TO SELECTED WORKSPACE 1-10
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name)),
    ])
01b4e95ab7282e7397e5f80419e4545f281171c1
<mask token>

<mask token>
for i in range(len(group_names)):
    groups.append(Group(name=group_names[i], layout=group_layouts[i].lower(
        ), label=group_labels[i]))
for i in groups:
    keys.extend([Key([mod], i.name, lazy.group[i.name].toscreen()), Key([
        mod], 'Tab', lazy.screen.next_group()), Key(['mod1'], 'Tab', lazy.
        screen.next_group()), Key(['mod1', 'shift'], 'Tab', lazy.screen.
        prev_group()), Key([mod, 'shift'], i.name, lazy.window.togroup(i.
        name))])

<mask token>
groups = []
group_names = ['ampersand', 'eacute', 'quotedbl', 'apostrophe', 'parenleft',
    'minus', 'egrave', 'underscore', 'ccedilla']
group_labels = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
group_layouts = ['monadtall', 'monadtall', 'monadtall', 'monadtall',
    'monadtall', 'monadtall', 'monadtall', 'monadtall', 'monadtall']
for i in range(len(group_names)):
    groups.append(Group(name=group_names[i], layout=group_layouts[i].lower(
        ), label=group_labels[i]))
for i in groups:
    keys.extend([Key([mod], i.name, lazy.group[i.name].toscreen()), Key([
        mod], 'Tab', lazy.screen.next_group()), Key(['mod1'], 'Tab', lazy.
        screen.next_group()), Key(['mod1', 'shift'], 'Tab', lazy.screen.
        prev_group()), Key([mod, 'shift'], i.name, lazy.window.togroup(i.
        name))])

from libqtile.config import Key, Group
from libqtile.command import lazy
from settings.keys import mod, keys
groups = []
group_names = ['ampersand', 'eacute', 'quotedbl', 'apostrophe', 'parenleft',
    'minus', 'egrave', 'underscore', 'ccedilla']
group_labels = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
group_layouts = ['monadtall', 'monadtall', 'monadtall', 'monadtall',
    'monadtall', 'monadtall', 'monadtall', 'monadtall', 'monadtall']
for i in range(len(group_names)):
    groups.append(Group(name=group_names[i], layout=group_layouts[i].lower(
        ), label=group_labels[i]))
for i in groups:
    keys.extend([Key([mod], i.name, lazy.group[i.name].toscreen()), Key([
        mod], 'Tab', lazy.screen.next_group()), Key(['mod1'], 'Tab', lazy.
        screen.next_group()), Key(['mod1', 'shift'], 'Tab', lazy.screen.
        prev_group()), Key([mod, 'shift'], i.name, lazy.window.togroup(i.
        name))])

# Antonio Sarosi
# https://youtube.com/c/antoniosarosi
# https://github.com/antoniosarosi/dotfiles

# Qtile workspaces

from libqtile.config import Key, Group
from libqtile.command import lazy
from settings.keys import mod, keys


# Get the icons at https://www.nerdfonts.com/cheat-sheet (you need a Nerd Font)
# Icons: 
# nf-fa-firefox, 
# nf-fae-python, 
# nf-dev-terminal, 
# nf-fa-code, 
# nf-seti-config, 
# nf-mdi-folder, 
# nf-mdi-image, 
# nf-fa-video_camera, 
# nf-mdi-layers

groups = []

# FOR QWERTY KEYBOARDS
#group_names = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0",]

# FOR AZERTY KEYBOARDS
group_names = ["ampersand", "eacute", "quotedbl", "apostrophe", "parenleft", "minus", "egrave", "underscore", "ccedilla",]

group_labels = ["1", "2", "3", "4", "5", "6", "7", "8", "9",]

group_layouts = ["monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall", "monadtall",]


for i in range(len(group_names)):
    groups.append(
        Group(
            name=group_names[i],
            layout=group_layouts[i].lower(),
            label=group_labels[i],
        ))

for i in groups:
    keys.extend([

#CHANGE WORKSPACES
        Key([mod], i.name, lazy.group[i.name].toscreen()),
        Key([mod], "Tab", lazy.screen.next_group()),
        Key(["mod1"], "Tab", lazy.screen.next_group()),
        Key(["mod1", "shift"], "Tab", lazy.screen.prev_group()),

# MOVE WINDOW TO SELECTED WORKSPACE 1-10
        Key([mod, "shift"], i.name, lazy.window.togroup(i.name)),
    ])