new awesome config
This commit is contained in:
parent
dde190df3f
commit
f4e4cd5106
@ -3,7 +3,7 @@ URxvt.termName: rxvt-unicode
|
|||||||
URxvt.scrollBar: false
|
URxvt.scrollBar: false
|
||||||
URxvt.perl-lib: /usr/lib/urxvt/perl/
|
URxvt.perl-lib: /usr/lib/urxvt/perl/
|
||||||
URxvt.perl-ext-common: default,matcher
|
URxvt.perl-ext-common: default,matcher
|
||||||
URxvt.urlLauncher: firefox
|
URxvt.urlLauncher: firefox-developer-edition
|
||||||
URxvt.matcher.button: 1
|
URxvt.matcher.button: 1
|
||||||
URxvt.letterSpace: -1
|
URxvt.letterSpace: -1
|
||||||
URxvt.internalBorder: 6
|
URxvt.internalBorder: 6
|
||||||
@ -19,7 +19,7 @@ URxvt.depth: 32
|
|||||||
|
|
||||||
! special
|
! special
|
||||||
URxvt.foreground: #eceff1
|
URxvt.foreground: #eceff1
|
||||||
URxvt.background: [80]#161616
|
URxvt.background: [90]#161616
|
||||||
URxvt.cursorColor: #eceff1
|
URxvt.cursorColor: #eceff1
|
||||||
|
|
||||||
! black
|
! black
|
||||||
@ -51,5 +51,5 @@ URxvt.color6: #009688
|
|||||||
URxvt.color14: #26a69a
|
URxvt.color14: #26a69a
|
||||||
|
|
||||||
! white
|
! white
|
||||||
URxvt.color7: #cfd8dc
|
URxvt.color7: #efd8dc
|
||||||
URxvt.color15: #eceff1
|
URxvt.color15: #eceff1
|
||||||
|
@ -22,3 +22,4 @@
|
|||||||
|
|
||||||
[core]
|
[core]
|
||||||
excludesfile = ~/.gitignore
|
excludesfile = ~/.gitignore
|
||||||
|
autocrlf = input
|
||||||
|
37
.ideavimrc
37
.ideavimrc
@ -9,32 +9,33 @@ vnoremap < <gv
|
|||||||
vnoremap > >gv
|
vnoremap > >gv
|
||||||
|
|
||||||
" Select all text
|
" Select all text
|
||||||
map <Space>a ggVG
|
map <leader>a ggVG
|
||||||
|
|
||||||
" reload
|
" reload
|
||||||
nnoremap <Space>vs :source ~/.ideavimrc<CR>
|
nnoremap <leader>vs :source ~/.ideavimrc<CR>
|
||||||
|
|
||||||
" Copy until the end of the line
|
" Copy until the end of the line
|
||||||
noremap Y y$
|
noremap Y y$
|
||||||
|
|
||||||
" clipboard
|
" clipboard
|
||||||
noremap <space>y "*y
|
noremap <leader>y "*y
|
||||||
noremap <space>Y "*Y
|
noremap <leader>Y "*Y
|
||||||
noremap <space>p "*p
|
noremap <leader>p "*p
|
||||||
noremap <space>P "*P
|
noremap <leader>P "*P
|
||||||
|
|
||||||
" refactoring
|
" refactoring
|
||||||
nnoremap <space>rf :action RenameFile<cr>
|
nnoremap <leader>rf :action RenameFile<cr>
|
||||||
nnoremap <space>rr :action RenameElement<cr>
|
nnoremap <leader>rr :action RenameElement<cr>
|
||||||
nnoremap <space>ll :action ReformatCode<cr>
|
nnoremap <leader>ll :action ReformatCode<cr>
|
||||||
|
|
||||||
" actions
|
" actions
|
||||||
nnoremap ;; :action CommentByLineComment<cr>
|
nnoremap <leader>/ :action CommentByLineComment<cr>
|
||||||
nnoremap <space>b :action ToggleLineBreakpoint<cr>
|
nnoremap <leader>b :action ToggleLineBreakpoint<cr>
|
||||||
nnoremap <space>oi :action OptimizeImports<CR>
|
nnoremap <leader>oi :action OptimizeImports<CR>
|
||||||
|
|
||||||
nnoremap ee :action SearchEverywhere<cr>
|
nnoremap ee :action SearchEverywhere<cr>
|
||||||
nnoremap \\\\ :action SearchEverywhere<cr>
|
nnoremap <leader>e :action ExpandSelection
|
||||||
|
nnoremap <leader><leader> :action SearchEverywhere<cr>
|
||||||
nnoremap <tab> :action Switcher<cr>
|
nnoremap <tab> :action Switcher<cr>
|
||||||
|
|
||||||
" gotos
|
" gotos
|
||||||
@ -43,17 +44,11 @@ nnoremap gs :action GotoSuperMethod<cr>
|
|||||||
nnoremap gu :action ShowUsages<cr>
|
nnoremap gu :action ShowUsages<cr>
|
||||||
|
|
||||||
" unimpaired mappings
|
" unimpaired mappings
|
||||||
nnoremap [<space> O<esc>j
|
nnoremap [<leader> O<esc>j
|
||||||
nnoremap ]<space> o<esc>k
|
nnoremap ]<leader> o<esc>k
|
||||||
nnoremap q[ :action PreviousOccurence<cr>
|
nnoremap q[ :action PreviousOccurence<cr>
|
||||||
nnoremap q] :action NextOccurence<cr>
|
nnoremap q] :action NextOccurence<cr>
|
||||||
nnoremap m[ :action MethodUp<cr>
|
nnoremap m[ :action MethodUp<cr>
|
||||||
nnoremap m] :action MethodDown<cr>
|
nnoremap m] :action MethodDown<cr>
|
||||||
nnoremap c[ :action VcsShowPrevChangeMarker<cr>
|
nnoremap c[ :action VcsShowPrevChangeMarker<cr>
|
||||||
nnoremap c] :action VcsShowNextChangeMarker<cr>
|
nnoremap c] :action VcsShowNextChangeMarker<cr>
|
||||||
|
|
||||||
" blank lines
|
|
||||||
nnoremap <space>j :set paste<CR>m`o<Esc>``:set nopaste<CR>
|
|
||||||
nnoremap <space>k :set paste<CR>m`O<Esc>``:set nopaste<CR>
|
|
||||||
nnoremap space<down> <space>j
|
|
||||||
nnoremap space<up> <space>k
|
|
||||||
|
35
.vimrc
35
.vimrc
@ -9,6 +9,12 @@ else
|
|||||||
let $VIMHOME = $HOME."/.vim"
|
let $VIMHOME = $HOME."/.vim"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let g:vimtex_view_method = 'mupdf'
|
||||||
|
let g:vimtex_latexmk_options = '-pdf -pdflatex="xelatex -synctex=1 \%S \%O" -verbose -file-line-error -interaction=nonstopmode'
|
||||||
|
set mouse=a
|
||||||
|
|
||||||
|
let g:tmpl_search_paths = [ $VIMHOME.'/templates' ]
|
||||||
|
|
||||||
call plug#begin($VIMHOME.'/plugged')
|
call plug#begin($VIMHOME.'/plugged')
|
||||||
Plug 'terryma/vim-multiple-cursors'
|
Plug 'terryma/vim-multiple-cursors'
|
||||||
Plug 'thinca/vim-localrc'
|
Plug 'thinca/vim-localrc'
|
||||||
@ -19,8 +25,11 @@ call plug#begin($VIMHOME.'/plugged')
|
|||||||
Plug 'ctrlpvim/ctrlp.vim'
|
Plug 'ctrlpvim/ctrlp.vim'
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'tpope/vim-surround'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'Valloric/YouCompleteMe'
|
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
|
Plug 'tibabit/vim-templates'
|
||||||
|
Plug 'Shougo/deoplete.nvim'
|
||||||
|
Plug 'roxma/nvim-yarp'
|
||||||
|
Plug 'roxma/vim-hug-neovim-rpc'
|
||||||
|
|
||||||
" load local plugins
|
" load local plugins
|
||||||
if filereadable("~/.local-plugins.vimrc")
|
if filereadable("~/.local-plugins.vimrc")
|
||||||
@ -36,7 +45,7 @@ set t_Co=256
|
|||||||
"
|
"
|
||||||
|
|
||||||
" one time settings
|
" one time settings
|
||||||
" if !exists("g:running")
|
if !exists("g:running")
|
||||||
" " Conemu specific settings
|
" " Conemu specific settings
|
||||||
" if !has('gui_running') && !has('nvim')
|
" if !has('gui_running') && !has('nvim')
|
||||||
" set term=xterm
|
" set term=xterm
|
||||||
@ -53,16 +62,16 @@ set t_Co=256
|
|||||||
" nnoremap <Esc>[63~ <C-Y>
|
" nnoremap <Esc>[63~ <C-Y>
|
||||||
" endif
|
" endif
|
||||||
|
|
||||||
" if has('gui_running')
|
if has('gui_running')
|
||||||
" set guifont=Fira_Code_Medium:h9:cANSI:qDRAFT
|
set guifont=Fira_Code_Medium:h9:cANSI:qDRAFT
|
||||||
" set guioptions=
|
set guioptions=
|
||||||
|
|
||||||
" set columns=200
|
set columns=200
|
||||||
" set lines=58
|
set lines=58
|
||||||
|
|
||||||
" colorscheme tender
|
colorscheme tender
|
||||||
" endif
|
endif
|
||||||
" endif
|
endif
|
||||||
|
|
||||||
let g:running = 1
|
let g:running = 1
|
||||||
|
|
||||||
@ -108,6 +117,7 @@ let &t_EI = "\<Esc>[2 q"
|
|||||||
" filetypes
|
" filetypes
|
||||||
" autocmd FileType c,cpp :compiler cl
|
" autocmd FileType c,cpp :compiler cl
|
||||||
au FileType asm :set ft=masm
|
au FileType asm :set ft=masm
|
||||||
|
au FileType tex :set tw=120
|
||||||
|
|
||||||
" airline
|
" airline
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
@ -117,11 +127,6 @@ let g:airline#extensions#tabline#enabled = 1
|
|||||||
" ctrlp
|
" ctrlp
|
||||||
let g:ctrlp_switch_buffer = 'Et'
|
let g:ctrlp_switch_buffer = 'Et'
|
||||||
|
|
||||||
" latex
|
|
||||||
let g:vimtex_view_general_viewer = 'SumatraPDF'
|
|
||||||
let g:vimtex_view_general_options
|
|
||||||
\ = '-reuse-instance -forward-search @tex @line @pdf'
|
|
||||||
|
|
||||||
" ycm config
|
" ycm config
|
||||||
let g:ycm_confirm_extra_conf = 0
|
let g:ycm_confirm_extra_conf = 0
|
||||||
|
|
||||||
|
7
.zshrc
7
.zshrc
@ -65,11 +65,8 @@ unsetopt share_history
|
|||||||
# export LANG=en_US.UTF-8
|
# export LANG=en_US.UTF-8
|
||||||
|
|
||||||
# Preferred editor for local and remote sessions
|
# Preferred editor for local and remote sessions
|
||||||
# if [[ -n $SSH_CONNECTION ]]; then
|
export EDITOR='vim'
|
||||||
# export EDITOR='vim'
|
export PATH=$PATH:$HOME/bin/
|
||||||
# else
|
|
||||||
# export EDITOR='mvim'
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# Compilation flags
|
# Compilation flags
|
||||||
# export ARCHFLAGS="-arch x86_64"
|
# export ARCHFLAGS="-arch x86_64"
|
||||||
|
@ -60,8 +60,8 @@ end
|
|||||||
|
|
||||||
-- Autostart programs
|
-- Autostart programs
|
||||||
run_once({
|
run_once({
|
||||||
"xcompmgr",
|
"xcompmgr",
|
||||||
"/home/kadet/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox"
|
"sleep 0.25 && xrandr --output DP-1 --primary --auto --pos 0x0 --output HDMI-0 --auto --pos 2560x180"
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Choose the theme
|
-- Choose the theme
|
||||||
@ -73,7 +73,7 @@ local modkey = "Mod4"
|
|||||||
local altkey = "Mod1"
|
local altkey = "Mod1"
|
||||||
local terminal = "urxvt"
|
local terminal = "urxvt"
|
||||||
local editor = os.getenv("EDITOR") or "vim"
|
local editor = os.getenv("EDITOR") or "vim"
|
||||||
local browser = "firefox"
|
local browser = "firefox-developer-edition"
|
||||||
local gui_editor = "code"
|
local gui_editor = "code"
|
||||||
|
|
||||||
-- Naughty presets
|
-- Naughty presets
|
||||||
@ -368,14 +368,17 @@ globalkeys = awful.util.table.join(
|
|||||||
awful.key({ modkey }, "v", function () awful.spawn("xsel -b | xsel") end),
|
awful.key({ modkey }, "v", function () awful.spawn("xsel -b | xsel") end),
|
||||||
|
|
||||||
-- User programs
|
-- User programs
|
||||||
awful.key({ modkey }, "e", function () awful.spawn(gui_editor) end, { group = "launcher", description = "Open GUI editor" }),
|
awful.key({ modkey }, "c", function () awful.spawn(gui_editor) end, { group = "launcher", description = "Open GUI editor" }),
|
||||||
|
awful.key({ modkey }, "c", function () awful.spawn("xdg-open .") end, { group = "launcher", description = "Open File Explorer" }),
|
||||||
awful.key({ modkey }, "q", function () awful.spawn(browser) end, { group = "launcher", description = "Open browser window" }),
|
awful.key({ modkey }, "q", function () awful.spawn(browser) end, { group = "launcher", description = "Open browser window" }),
|
||||||
awful.key({ modkey }, "Return", function () awful.spawn(terminal) end, { group = "launcher", description = "Open terminal" }),
|
awful.key({ modkey }, "Return", function () awful.spawn(terminal) end, { group = "launcher", description = "Open terminal" }),
|
||||||
|
awful.key({ }, "Pause", function () awful.spawn("playerctl play-pause") end, { group = "launcher", description = "Play/Pause" }),
|
||||||
|
|
||||||
-- Dropdown application
|
-- Dropdown application
|
||||||
awful.key({ modkey }, "`", function () awful.screen.focused().quake:toggle() end, { group = "launcher", description = "Open quake style terminal" }),
|
awful.key({ modkey }, "`", function () awful.screen.focused().quake:toggle() end, { group = "launcher", description = "Open quake style terminal" }),
|
||||||
-- Prompt
|
-- Prompt
|
||||||
awful.key({ modkey }, "r", function () awful.spawn("rofi -show run") end, { description = "program launcher", group = "launcher" })
|
awful.key({ modkey }, "r", function () awful.spawn("rofi -show run") end, { description = "program launcher", group = "launcher" }),
|
||||||
|
awful.key({ modkey, "Control" }, "s", function () awful.spawn("rofi -show ssh") end, { description = "ssh to ...", group = "launcher" })
|
||||||
)
|
)
|
||||||
|
|
||||||
clientkeys = awful.util.table.join(
|
clientkeys = awful.util.table.join(
|
||||||
@ -390,6 +393,8 @@ clientkeys = awful.util.table.join(
|
|||||||
{description = "close", group = "client"}),
|
{description = "close", group = "client"}),
|
||||||
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
|
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
|
||||||
{description = "toggle floating", group = "client"}),
|
{description = "toggle floating", group = "client"}),
|
||||||
|
awful.key({ modkey, altkey } , "space", awful.titlebar.toggle,
|
||||||
|
{description = "toggle titlebar", group = "client"}),
|
||||||
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
|
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end,
|
||||||
{description = "move to master", group = "client"}),
|
{description = "move to master", group = "client"}),
|
||||||
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
|
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
|
||||||
@ -464,7 +469,8 @@ end
|
|||||||
clientbuttons = awful.util.table.join(
|
clientbuttons = awful.util.table.join(
|
||||||
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
|
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
|
||||||
awful.button({ modkey }, 1, awful.mouse.client.move),
|
awful.button({ modkey }, 1, awful.mouse.client.move),
|
||||||
awful.button({ modkey }, 3, awful.mouse.client.resize))
|
awful.button({ modkey }, 3, awful.mouse.client.resize)
|
||||||
|
)
|
||||||
|
|
||||||
-- Set keys
|
-- Set keys
|
||||||
root.keys(globalkeys)
|
root.keys(globalkeys)
|
||||||
@ -485,6 +491,7 @@ awful.rules.rules = {
|
|||||||
placement = awful.placement.no_overlap+awful.placement.no_offscreen,
|
placement = awful.placement.no_overlap+awful.placement.no_offscreen,
|
||||||
size_hints_honor = false,
|
size_hints_honor = false,
|
||||||
floating = false,
|
floating = false,
|
||||||
|
allow_titlebars = true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -492,23 +499,13 @@ awful.rules.rules = {
|
|||||||
{ rule_any = { type = { "dialog", "normal" } },
|
{ rule_any = { type = { "dialog", "normal" } },
|
||||||
properties = { titlebars_enabled = window_titlebar } },
|
properties = { titlebars_enabled = window_titlebar } },
|
||||||
|
|
||||||
{ rule = { class = "jetbrains-toolbox" },
|
|
||||||
properties = { tag = awful.util.tagnames[4], floating = false } },
|
|
||||||
|
|
||||||
{ rule = { class = "telegram-desktop" },
|
|
||||||
properties = { tag = awful.util.tagnames[4], floating = false } },
|
|
||||||
|
|
||||||
-- Set Firefox to always map on the first tag on screen 1.
|
-- Set Firefox to always map on the first tag on screen 1.
|
||||||
{ rule = { class = "Firefox" },
|
{ rule = { class = "Firefox" },
|
||||||
properties = { screen = 1, maximized = true, titlebars_enabled = false, switchtotag = true, tag = awful.util.tagnames[3] } },
|
properties = { maximized = true, titlebars_enabled = false, tag = awful.util.tagnames[3] } },
|
||||||
|
|
||||||
-- Jetbrains stuff
|
-- Jetbrains stuff
|
||||||
{ rule = { class = "jetbrains-phpstorm" },
|
{ rule_any = { class = { "jetbrains-phpstorm", "jetbrains-idea", "jetbrains-pycharm" } },
|
||||||
properties = { screen = 1, tag = awful.util.tagnames[1], floating = false } },
|
properties = { titlebars_enabled = false, tag = awful.util.tagnames[1], maximized = false } },
|
||||||
{ rule = { class = "jetbrains-idea" },
|
|
||||||
properties = { screen = 1, maximized = true, tag = awful.util.tagnames[1] } },
|
|
||||||
{ rule = { class = "jetbrains-pycharm" },
|
|
||||||
properties = { screen = 1, maximized = true, tag = awful.util.tagnames[1] } },
|
|
||||||
|
|
||||||
-- dialogs
|
-- dialogs
|
||||||
{ rule = { type = "dialog" },
|
{ rule = { type = "dialog" },
|
||||||
@ -516,7 +513,23 @@ awful.rules.rules = {
|
|||||||
|
|
||||||
-- jetbrains bugs
|
-- jetbrains bugs
|
||||||
{ rule = { class = "jetbrains-.*", name = "win.*" },
|
{ rule = { class = "jetbrains-.*", name = "win.*" },
|
||||||
properties = { titlebars_enabled = false, focusable = false, focus = true, floating = true, placement = awful.placement.restore } },
|
properties = { titlebars_enabled = false, focusable = false, focus = true, floating = true, placement = awful.placement.restore }, no_titlebars = true },
|
||||||
|
|
||||||
|
-- flameshot
|
||||||
|
{ rule = { class = "flameshot" },
|
||||||
|
properties = { titlebars_enabled = true, floating = true, focus = true } },
|
||||||
|
|
||||||
|
-- keepassxc
|
||||||
|
{ rule = { class = "keepassxc" },
|
||||||
|
properties = { titlebars_enabled = true, floating = true } },
|
||||||
|
|
||||||
|
-- messaging
|
||||||
|
{ rule_any = { class = { "telegram-desktop", "Thunderbird", "jetbrains-toolbox" } },
|
||||||
|
properties = { screen = 2, tag = awful.util.tagnames[4] } },
|
||||||
|
|
||||||
|
-- quake
|
||||||
|
{ rule = { class = "QuakeDD" },
|
||||||
|
properties = { allow_titlebars = false } },
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Signals
|
-- Signals
|
||||||
@ -524,7 +537,7 @@ awful.rules.rules = {
|
|||||||
client.connect_signal("manage", function (c)
|
client.connect_signal("manage", function (c)
|
||||||
-- Set the windows at the slave,
|
-- Set the windows at the slave,
|
||||||
-- i.e. put it at the end of others instead of setting it master.
|
-- i.e. put it at the end of others instead of setting it master.
|
||||||
-- if not awesome.startup then awful.client.setslave(c) end
|
if not awesome.startup then awful.client.setslave(c) end
|
||||||
|
|
||||||
if awesome.startup and
|
if awesome.startup and
|
||||||
not c.size_hints.user_position
|
not c.size_hints.user_position
|
||||||
@ -560,18 +573,18 @@ client.connect_signal("request::titlebars", function(c)
|
|||||||
local title = awful.titlebar.widget.titlewidget(c)
|
local title = awful.titlebar.widget.titlewidget(c)
|
||||||
title.font = "Fira Code Regular 7"
|
title.font = "Fira Code Regular 7"
|
||||||
|
|
||||||
awful.titlebar(c, { size = 16 }) : setup {
|
awful.titlebar(c, { size = 20, fg_focus = "#ffffff" }) : setup {
|
||||||
{ -- Left
|
{ -- Left
|
||||||
--awful.titlebar.widget.iconwidget(c),
|
--awful.titlebar.widget.iconwidget(c),
|
||||||
-- Title
|
-- Title
|
||||||
{
|
{
|
||||||
align = "left",
|
align = "left",
|
||||||
widget = title,
|
widget = title,
|
||||||
left = 2
|
left = 20
|
||||||
},
|
},
|
||||||
buttons = buttons,
|
buttons = buttons,
|
||||||
layout = wibox.container.margin,
|
layout = wibox.container.margin,
|
||||||
left = 4
|
left = 8
|
||||||
},
|
},
|
||||||
{ -- Middle
|
{ -- Middle
|
||||||
buttons = buttons,
|
buttons = buttons,
|
||||||
@ -585,23 +598,35 @@ client.connect_signal("request::titlebars", function(c)
|
|||||||
awful.titlebar.widget.maximizedbutton(c),
|
awful.titlebar.widget.maximizedbutton(c),
|
||||||
awful.titlebar.widget.closebutton (c),
|
awful.titlebar.widget.closebutton (c),
|
||||||
layout = wibox.layout.fixed.horizontal(),
|
layout = wibox.layout.fixed.horizontal(),
|
||||||
spacing = 2
|
spacing = 6
|
||||||
},
|
},
|
||||||
layout = wibox.layout.margin,
|
layout = wibox.layout.margin,
|
||||||
top = 2, bottom = 2, left = 2, right = 2
|
top = 5, bottom = 4, left = 4, right = 8
|
||||||
},
|
},
|
||||||
layout = wibox.layout.align.horizontal
|
layout = wibox.layout.align.horizontal
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
client.connect_signal("property::floating", function (c)
|
||||||
client.connect_signal("mouse::enter", function(c)
|
if c.floating and not awful.rules.match(c, { name = "win.*" }) and c.allow_titlebars then
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if c.titlebar == nil then
|
||||||
and awful.client.focus.filter(c) then
|
c:emit_signal("request::titlebars", "rules", { })
|
||||||
client.focus = c
|
end
|
||||||
|
|
||||||
|
awful.titlebar.show(c)
|
||||||
|
else
|
||||||
|
awful.titlebar.hide(c)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
|
-- client.connect_signal("mouse::enter", function(c)
|
||||||
|
-- if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
|
-- and awful.client.focus.filter(c) then
|
||||||
|
-- client.focus = c
|
||||||
|
-- end
|
||||||
|
-- end)
|
||||||
|
|
||||||
-- No border for maximized clients
|
-- No border for maximized clients
|
||||||
client.connect_signal("focus",
|
client.connect_signal("focus",
|
||||||
function(c)
|
function(c)
|
||||||
@ -612,4 +637,5 @@ client.connect_signal("focus",
|
|||||||
c.border_color = beautiful.border_focus
|
c.border_color = beautiful.border_focus
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
|
||||||
|
@ -22,12 +22,12 @@ local colors = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
colors.background = colors.dark .. colors.transparency
|
colors.background = colors.dark .. colors.transparency
|
||||||
colors.foreground = colors.light
|
colors.foreground = colors.dark
|
||||||
colors.widget_bg = colors.transparent
|
colors.widget_bg = colors.dark
|
||||||
|
|
||||||
local theme = {}
|
local theme = {}
|
||||||
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/kadet"
|
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/kadet"
|
||||||
theme.wallpaper = theme.dir .. "/wallpapers/wall_0.png"
|
theme.wallpaper = theme.dir .. "/wallpapers/kadet.png"
|
||||||
theme.font = fonts.mono_regular
|
theme.font = fonts.mono_regular
|
||||||
theme.taglist_font = fonts.mono_bold
|
theme.taglist_font = fonts.mono_bold
|
||||||
theme.tasklist_font = fonts.mono_regular
|
theme.tasklist_font = fonts.mono_regular
|
||||||
@ -36,22 +36,21 @@ theme.bg_systray = "#000000"
|
|||||||
theme.systray_icon_spacing = 3
|
theme.systray_icon_spacing = 3
|
||||||
theme.fg_normal = colors.light
|
theme.fg_normal = colors.light
|
||||||
theme.bg_normal = colors.dark .. "dd"
|
theme.bg_normal = colors.dark .. "dd"
|
||||||
theme.fg_wibar = colors.light
|
theme.fg_wibar = colors.dark
|
||||||
theme.bg_wibar = colors.background
|
theme.bg_wibar = colors.background
|
||||||
theme.fg_normal = colors.light
|
|
||||||
theme.bg_focus = colors.dark
|
theme.bg_focus = colors.dark
|
||||||
theme.fg_focus = colors.light
|
theme.fg_focus = colors.accent
|
||||||
theme.bg_urgent = colors.attention
|
theme.bg_urgent = colors.attention
|
||||||
theme.fg_urgent = colors.light
|
theme.fg_urgent = colors.dark
|
||||||
|
|
||||||
theme.fg_widget = colors.light
|
theme.fg_widget = colors.light
|
||||||
|
|
||||||
theme.taglist_bg_focus = colors.accent
|
theme.taglist_bg_focus = colors.dark
|
||||||
theme.taglist_fg_focus = colors.dark
|
theme.taglist_fg_focus = colors.accent
|
||||||
theme.taglist_bg_occupied = colors.dark .. "66"
|
theme.taglist_bg_occupied = colors.dark .. "66"
|
||||||
theme.taglist_fg_occupied = colors.light
|
theme.taglist_fg_occupied = colors.dark
|
||||||
theme.taglist_bg_empty = colors.tramsparent
|
theme.taglist_bg_empty = colors.tramsparent
|
||||||
theme.taglist_fg_empty = colors.light
|
theme.taglist_fg_empty = colors.dark
|
||||||
theme.taglist_bg_urgent = "#C92132"
|
theme.taglist_bg_urgent = "#C92132"
|
||||||
theme.taglist_fg_urgent = "#282828"
|
theme.taglist_fg_urgent = "#282828"
|
||||||
|
|
||||||
@ -67,8 +66,10 @@ theme.border_normal = "#32302f"
|
|||||||
theme.border_focus = "#3f3f3f"
|
theme.border_focus = "#3f3f3f"
|
||||||
theme.border_marked = "#CC9393"
|
theme.border_marked = "#CC9393"
|
||||||
|
|
||||||
theme.titlebar_bg_normal = "#161616"
|
theme.titlebar_bg_normal = "#313742"
|
||||||
|
theme.titlebar_bg_focus = "#313742"
|
||||||
theme.titlebar_fg_normal = colors.white
|
theme.titlebar_fg_normal = colors.white
|
||||||
|
theme.titlebar_fg_focus = colors.white
|
||||||
|
|
||||||
theme.menu_height = 16
|
theme.menu_height = 16
|
||||||
theme.menu_width = 140
|
theme.menu_width = 140
|
||||||
@ -78,11 +79,12 @@ theme.notification_bg = colors.dark .. "dd"
|
|||||||
theme.notification_fg = theme.fg_normal
|
theme.notification_fg = theme.fg_normal
|
||||||
theme.notification_border_width = 1
|
theme.notification_border_width = 1
|
||||||
theme.notification_border_color = colors.dark
|
theme.notification_border_color = colors.dark
|
||||||
theme.notification_shape = gears.shape.infobubble
|
theme.notification_shape = gears.shape.rectangle
|
||||||
theme.notification_opacity = 1
|
theme.notification_opacity = 1
|
||||||
theme.notification_margin = 30
|
theme.notification_margin = 30
|
||||||
--theme.warning = theme.dir .. "/icons/status/warning.png"
|
--theme.warning = theme.dir .. "/icons/status/warning.png"
|
||||||
--theme.notification_width = 300
|
theme.notification_max_width = 500
|
||||||
|
theme.notification_icon_size = 64
|
||||||
--theme.notification_height = 200
|
--theme.notification_height = 200
|
||||||
|
|
||||||
theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png"
|
theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png"
|
||||||
@ -214,9 +216,9 @@ local fs_widget = wibox.container.background(wibox.container.margin(wibox.widge
|
|||||||
function theme.connect(s)
|
function theme.connect(s)
|
||||||
-- Quake application
|
-- Quake application
|
||||||
s.quake = lain.util.quake({
|
s.quake = lain.util.quake({
|
||||||
app = awful.util.terminal,
|
app = "ghostwriter",
|
||||||
followtag = true,
|
followtag = true,
|
||||||
width = 0.333,
|
width = 0.5,
|
||||||
height = 1,
|
height = 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -225,7 +227,8 @@ function theme.connect(s)
|
|||||||
if type(wallpaper) == "function" then
|
if type(wallpaper) == "function" then
|
||||||
wallpaper = wallpaper(s)
|
wallpaper = wallpaper(s)
|
||||||
end
|
end
|
||||||
gears.wallpaper.maximized(wallpaper, 1, true)
|
|
||||||
|
gears.wallpaper.maximized(wallpaper, s, true)
|
||||||
|
|
||||||
-- Tags
|
-- Tags
|
||||||
--awful.tag(awful.util.tagnames, s, awful.layout.layouts[1])
|
--awful.tag(awful.util.tagnames, s, awful.layout.layouts[1])
|
||||||
@ -233,7 +236,7 @@ function theme.connect(s)
|
|||||||
awful.layout.layouts[3],
|
awful.layout.layouts[3],
|
||||||
awful.layout.layouts[10],
|
awful.layout.layouts[10],
|
||||||
awful.layout.layouts[8],
|
awful.layout.layouts[8],
|
||||||
awful.layout.layouts[6],
|
awful.layout.layouts[7],
|
||||||
awful.layout.layouts[10],
|
awful.layout.layouts[10],
|
||||||
awful.layout.layouts[10],
|
awful.layout.layouts[10],
|
||||||
}
|
}
|
||||||
@ -272,6 +275,7 @@ function theme.connect(s)
|
|||||||
nil,
|
nil,
|
||||||
{ -- Right widgets
|
{ -- Right widgets
|
||||||
layout = wibox.layout.fixed.horizontal,
|
layout = wibox.layout.fixed.horizontal,
|
||||||
|
image.systray_start,
|
||||||
-- Fs widget
|
-- Fs widget
|
||||||
fs_widget,
|
fs_widget,
|
||||||
-- Temp
|
-- Temp
|
||||||
@ -283,7 +287,6 @@ function theme.connect(s)
|
|||||||
-- Clock
|
-- Clock
|
||||||
clock_widget,
|
clock_widget,
|
||||||
-- tray
|
-- tray
|
||||||
image.systray_start,
|
|
||||||
{
|
{
|
||||||
s.tray,
|
s.tray,
|
||||||
layout = wibox.layout.margin,
|
layout = wibox.layout.margin,
|
||||||
|
BIN
awesome/themes/kadet/wallpapers/kadet.png
Normal file
BIN
awesome/themes/kadet/wallpapers/kadet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 906 KiB |
Loading…
Reference in New Issue
Block a user