diff --git a/dot_config/qtile/config.py b/dot_config/qtile/config.py index 88fe2b86..b164b50b 100644 --- a/dot_config/qtile/config.py +++ b/dot_config/qtile/config.py @@ -39,6 +39,7 @@ keys = [ # Key([mod, "shift"], "Return", lazy.spawn("ulauncher"), desc='Run Launcher'), # Key([mod, "shift"], "Return", lazy.spawncmd(), desc="Spawn a command using a prompt widget"), Key([mod], "b", lazy.spawn(myBrowser),desc='Qutebrowser'), + Key([mod], "l", lazy.spawn("cinnamon-screensaver-command -a"), desc='Qutebrowser'), # Key([mod], "/", lazy.spawn("dtos-help"), desc='DTOS Help'), Key([mod], "Tab", lazy.next_layout(), desc='Toggle through layouts'), Key([mod, "shift"], "c",lazy.window.kill(), desc='Kill active window'), @@ -54,21 +55,30 @@ keys = [ ### Switch focus of monitors Key([mod], "period", lazy.next_screen(), desc='Move focus to next monitor'), Key([mod], "comma", lazy.prev_screen(), desc='Move focus to prev monitor'), - ### Treetab controls - Key([mod, "shift"], "h", lazy.layout.move_left(), desc='Move up a section in treetab'), - Key([mod, "shift"], "l", lazy.layout.move_right(), desc='Move down a section in treetab'), ### Window controls - Key([mod], "j", lazy.layout.down(), desc='Move focus down in current stack pane' ), - Key([mod], "k", lazy.layout.up(), desc='Move focus up in current stack pane' ), - Key([mod, "shift"], "j", lazy.layout.shuffle_down(), lazy.layout.section_down(), - desc='Move windows down in current stack' ), - Key([mod, "shift"], "k", lazy.layout.shuffle_up(), lazy.layout.section_up(), - desc='Move windows up in current stack'), - Key([mod], "h", lazy.layout.shrink(), lazy.layout.decrease_nmaster(), - desc='Shrink window (MonadTall), decrease number in master pane (Tile)'), - Key([mod], "l", lazy.layout.grow(), lazy.layout.increase_nmaster(), - desc='Expand window (MonadTall), increase number in master pane (Tile)'), + Key([mod], "Up", lazy.layout.up(), desc='Move focus up' ), + Key([mod], "Down", lazy.layout.down(), desc='Move focus down' ), + Key([mod], "Left", lazy.layout.left(), desc='Move focus left' ), + Key([mod], "Right", lazy.layout.right(), desc='Move focus right' ), + Key([mod, "shift"], "Up", lazy.layout.shuffle_up(), lazy.layout.section_up(), + desc='Move windows up in current stack'), + Key([mod, "shift"], "Down", lazy.layout.shuffle_down(), lazy.layout.section_down(), + desc='Move windows down in current stack' ), + Key([mod, "shift"], "Left", lazy.layout.shuffle_left(), desc='Move windows left' ), + Key([mod, "shift"], "Right", lazy.layout.shuffle_right(), desc='Move windows right' ), + + Key([mod], "minus", lazy.layout.shrink(), lazy.layout.decrease_nmaster(), + desc='Shrink window (MonadTall), decrease number in master pane (Tile)'), + Key([mod], "equal", lazy.layout.grow(), lazy.layout.increase_nmaster(), + desc='Expand window (MonadTall), increase number in master pane (Tile)'), + # Grow windows. If current window is on the edge of screen and direction + # will be to screen edge - window would shrink. + Key([mod, "control"], "Up", lazy.layout.grow_up(), desc="Grow window up"), + Key([mod, "control"], "Down", lazy.layout.grow_down(), desc="Grow window down"), + Key([mod, "control"], "Left", lazy.layout.grow_left(), desc="Grow window to the left"), + Key([mod, "control"], "Right", lazy.layout.grow_right(), desc="Grow window to the right"), + Key([mod], "n", lazy.layout.normalize(), desc='normalize window size ratios'), Key([mod], "m", lazy.layout.maximize(), desc='toggle window between minimum and maximum sizes'), @@ -82,24 +92,6 @@ keys = [ Key([mod, "shift"], "space", lazy.layout.toggle_split(), desc='Toggle between split and unsplit sides of stack' ), - # Dmenu scripts launched using the key chord SUPER+p followed by 'key' - KeyChord([mod], "p", [ - Key([], "h", lazy.spawn("dm-hub"), desc='List all dmscripts'), - Key([], "a", lazy.spawn("dm-sounds"), desc='Choose ambient sound'), - Key([], "b", lazy.spawn("dm-setbg"), desc='Set background'), - Key([], "c", lazy.spawn("dtos-colorscheme"), desc='Choose color scheme'), - Key([], "e", lazy.spawn("dm-confedit"), desc='Choose a config file to edit'), - Key([], "i", lazy.spawn("dm-maim"), desc='Take a screenshot'), - Key([], "k", lazy.spawn("dm-kill"), desc='Kill processes '), - Key([], "m", lazy.spawn("dm-man"), desc='View manpages'), - Key([], "n", lazy.spawn("dm-note"), desc='Store and copy notes'), - Key([], "o", lazy.spawn("dm-bookman"), desc='Browser bookmarks'), - Key([], "p", lazy.spawn("passmenu -p \"Pass: \""), desc='Logout menu'), - Key([], "q", lazy.spawn("dm-logout"), desc='Logout menu' ), - Key([], "r", lazy.spawn("dm-radio"), desc='Listen to online radio'), - Key([], "s", lazy.spawn("dm-websearch"), desc='Search various engines'), - Key([], "t", lazy.spawn("dm-translate"), desc='Translate text'), - ]), ] groups = [Group("DEV", layout='monadtall'), @@ -404,8 +396,8 @@ def init_widgets_screen2(): def init_screens(): num_screens = get_num_screens() - if num_screens == 1: - return [Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=1.0, size=20))] + if num_screens <= 1: + return [Screen(top=bar.Bar(widgets=init_widgets_screen2(), opacity=1.0, size=20))] elif num_screens == 2: return [ Screen(top=bar.Bar(widgets=init_widgets_screen1(), opacity=1.0, size=20)),