This commit is contained in:
Roland Thomas 2023-04-27 17:08:09 -04:00
parent 37ff66c357
commit a6302ed521
2 changed files with 23 additions and 24 deletions

View File

@ -122,14 +122,16 @@ keys = [
Key([mod], 'l', lazy.layout.right(), desc='Move focus to right'), Key([mod], 'l', lazy.layout.right(), desc='Move focus to right'),
Key([mod], 'j', lazy.layout.down(), desc='Move focus down'), Key([mod], 'j', lazy.layout.down(), desc='Move focus down'),
Key([mod], 'k', lazy.layout.up(), desc='Move focus up'), Key([mod], 'k', lazy.layout.up(), desc='Move focus up'),
Key([mod], 'space', lazy.layout.next(), desc='Move window focus to other window'), Key([mod], 'space', lazy.layout.next(), desc='Move window focus to next window'),
Key([mod, 'shift'], 'space', lazy.layout.previous(), desc='Move window focus to previous window'),
# Move windows between left/right columns or move up/down in current stack. # Move windows between left/right columns or move up/down in current stack.
# Moving out of range in Columns layout will create new column. # Moving out of range in Columns layout will create new column.
Key([mod, 'shift'], 'h', lazy.layout.shuffle_left(), desc='Move window to the left'), Key([mod, 'shift'], 'h', lazy.layout.shuffle_left(), desc='Move window to the left'),
Key([mod, 'shift'], 'l', lazy.layout.shuffle_right(), desc='Move window to the right'), Key([mod, 'shift'], 'l', lazy.layout.shuffle_right(), desc='Move window to the right'),
Key([mod, 'shift'], 'j', lazy.layout.shuffle_down(), desc='Move window down'), Key([mod, 'shift'], 'j', lazy.layout.shuffle_down(), desc='Move window down'),
Key([mod, 'shift'], 'k', lazy.layout.shuffle_up(), desc='Move window up'), Key([mod, 'shift'], 'k', lazy.layout.shuffle_up(), desc='Move window up'),
Key([mod, 'shift'], 'space', lazy.layout.flip(), desc='Flip Layout'), Key([mod, 'shift'], 'i', lazy.layout.swap_column_left(), desc='Swap window left'),
Key([mod, 'shift'], 'u', lazy.layout.swap_column_right(), desc='Swap window right'),
# Grow windows. If current window is on the edge of screen and direction # Grow windows. If current window is on the edge of screen and direction
# will be to screen edge - window would shrink. # will be to screen edge - window would shrink.
Key([mod, 'control'], 'h', lazy.layout.grow_left(), desc='Grow window to the left'), Key([mod, 'control'], 'h', lazy.layout.grow_left(), desc='Grow window to the left'),
@ -156,7 +158,7 @@ keys = [
Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"), Key([mod, "control"], "r", lazy.reload_config(), desc="Reload the config"),
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
Key([mod], "r", lazy.spawn(rofi), desc="Launch rofi"), Key([mod], "r", lazy.spawn(rofi), desc="Launch rofi"),
Key([mod, "shift"], "u", lazy.spawn(hotkeys), desc="Show Hotkeys"), Key([mod, "shift"], "y", lazy.spawn(hotkeys), desc="Show Hotkeys"),
Key([mod], "n", lazy.screen.next_group(skip_empty=True), desc="Switch to next group"), Key([mod], "n", lazy.screen.next_group(skip_empty=True), desc="Switch to next group"),
Key([mod, "shift"], "n", lazy.screen.prev_group(skip_empty=True), desc="Switch to previous group"), Key([mod, "shift"], "n", lazy.screen.prev_group(skip_empty=True), desc="Switch to previous group"),
@ -280,7 +282,9 @@ groups.extend(
on_focus_lost_hide=False, on_focus_lost_hide=False,
opacity=1.0, opacity=1.0,
height=0.9, height=0.9,
width=0.5,
y=0.05, y=0.05,
x=0.25,
), ),
DropDown( DropDown(
'vpn', 'vpn',
@ -310,17 +314,6 @@ groups.extend(
]) ])
layouts = [ layouts = [
#layout.Columns(
# #border_focus_stack=[nord['nord11'], "#8f3d3d"],
# border_focus_stack=nord['nord11'],
# border_focus=nord['nord11'],
# border_normal_stack=nord['nord10'],
# border_normal=nord['nord10'],
# border_width=4,
# margin=[4,2,4,2],
# ),
# layout.Stack(num_stacks=2),
# layout.Bsp(),
layout.MonadThreeCol( layout.MonadThreeCol(
main_centered=True, main_centered=True,
new_client_position='after_current', new_client_position='after_current',
@ -329,20 +322,24 @@ layouts = [
border_width=4, border_width=4,
margin=4 margin=4
), ),
layout.Max(), layout.Columns(
layout.MonadTall( num_columns=5,
border_focus_stack=nord['nord11'],
border_focus=nord['nord11'], border_focus=nord['nord11'],
border_normal_stack=nord['nord10'],
border_normal=nord['nord10'], border_normal=nord['nord10'],
border_on_single=True,
border_width=4, border_width=4,
margin=4 margin=[4,2,4,2],
margin_on_single=[4,2,4,2],
), ),
#layout.MonadWide(), # layout.Max(),
#layout.RatioTile(), # layout.MonadTall(
#layout.Spiral(), # border_focus=nord['nord11'],
#layout.Tile(), # border_normal=nord['nord10'],
#layout.TreeTab(), # border_width=4,
#layout.VerticalTile(), # margin=4
#layout.Zoomy(), # ),
] ]
widget_defaults = { widget_defaults = {

2
.vimrc
View File

@ -27,6 +27,7 @@ Plug 'ryanoasis/vim-devicons'
Plug 'xuhdev/vim-latex-live-preview' Plug 'xuhdev/vim-latex-live-preview'
Plug 'rust-lang/rust.vim' Plug 'rust-lang/rust.vim'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'takac/vim-hardtime'
call plug#end() call plug#end()
colorscheme nord colorscheme nord
@ -37,3 +38,4 @@ let g:lightline = {
" vim-laxet-live-preview settings " vim-laxet-live-preview settings
autocmd Filetype tex setl updatetime=1 autocmd Filetype tex setl updatetime=1
let g:livepreview_previewer = 'zathura' let g:livepreview_previewer = 'zathura'
let g:hardtime_default_on = 1