Skip to content

Commit

Permalink
fix: tweaks on firefox chrome file
Browse files Browse the repository at this point in the history
  • Loading branch information
3ximus committed Dec 14, 2024
1 parent 0d0a990 commit fb77807
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 33 deletions.
11 changes: 7 additions & 4 deletions .config/nvim/lua/_lualine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ require("lualine").setup({
options = {
icons_enabled = false,
theme = gruvbox_theme,
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
section_separators = '',
component_separators = '',
disabled_filetypes = {
statusline = {},
winbar = {},
Expand All @@ -113,7 +113,10 @@ require("lualine").setup({
{'%<%t%m',
padding = { left = 0 , right = 1},
color = function() return vim.bo.modified and {fg = colors.lightblue, gui = 'bold'} or {fg = colors.lightgray, gui = 'bold'} end },
{'b:coc_current_function', color = { bg = colors.blue, fg = colors.black, gui = 'bold' }}
{'b:coc_current_function',
separator = { left = '', right = ''},
padding = 0,
color = { fg = colors.black, bg = colors.blue, gui = 'bold' }}
},
lualine_x = {'filetype',
{'diagnostics',
Expand Down Expand Up @@ -163,5 +166,5 @@ require("lualine").setup({
lualine_y = {},
lualine_z = {{ 'tabs', mode = 2, symbols = { modified = '+', } }}
},
extensions = {'quickfix', 'oil', 'fugitive', 'nerdtree'}
extensions = {'quickfix', 'oil', 'fugitive', 'nerdtree', 'nvim-dap-ui'}
})
9 changes: 6 additions & 3 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
lol = log --oneline --graph --pretty=format:'%C(yellow)%h%Creset %C(auto)%d%Creset %s (%Cblue%an%Creset, %cr)' --date-order --color=always
summary = !which onefetch && onefetch --no-color-palette --no-art

[interactive]
diffFilter = delta --color-only
[delta]
features = line-numbers decorations
syntax-theme = none
Expand All @@ -46,11 +48,12 @@
plus-emph-style = bold 10 reverse
plus-non-emph-style = bold 2
whitespace-error-style = 22 reverse
[interactive]
diffFilter = delta --color-only
[delta "decorations"]
file-style = bold cyan ul
file-style = bold yellow
file-decoration-style = none
hunk-header-decoration-style = none
hunk-header-line-number-style = bold blue
hunk-header-style = line-number blue
[delta "line-numbers"]
line-numbers-minus-style = 1 bold
line-numbers-plus-style = 2 bold
8 changes: 4 additions & 4 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ set-window-option -g window-status-separator " "
# - last window flag
# Z window zoomed flag
# ' ' (a space): no flags at all.
set-window-option -g window-status-format " #{s/Z//:window_flags} #I #W#{?monitor-silence, #{E:monitor-silence},}#{?monitor-activity, ,}#{?window_linked, *,}"
set-window-option -g window-status-current-format " #{s/\\*//:#{s/Z//:window_flags}} #I #W#{?monitor-silence, #{E:monitor-silence},}#{?monitor-activity, ,}#{?window_linked, *,}"
set-window-option -g window-status-format " #{s/Z//:window_flags} #I.#W#{?monitor-silence, #{E:monitor-silence},}#{?monitor-activity, ,}#{?window_linked, *,}"
set-window-option -g window-status-current-format " #{s/\\*//:#{s/Z//:window_flags}} #I.#W#{?monitor-silence, #{E:monitor-silence},}#{?monitor-activity, ,}#{?window_linked, *,}"
# window styles
set-window-option -g window-status-style fg=colour7,bg=default
Expand Down Expand Up @@ -202,7 +202,7 @@ set -g @suspend_on_resume_command "tmux set status"
set -g @suspend_on_suspend_command "tmux set status"
set -g @batt_icon_status_charged ' '
set -g @batt_icon_status_charging '#[fg=green,bold]󱐋#[fg=default,default]'
set -g @batt_icon_status_charging '#[fg=green,bold]󱐋 #[fg=default,default]'
set -g @batt_icon_status_discharging ' '
set -g @batt_icon_status_unknown ' '
Expand All @@ -225,7 +225,7 @@ set -g @fingers-pattern-2 "['][^']+[']" # match quoted text, useful when files p
# generic URL matcher
set -g @fingers-pattern-3 "([a-z][a-z0-9+\-.]*)://(([a-zA-Z0-9._~%!\$&()*+,;=\-]+)?:?([a-zA-Z0-9._~%!\$&()*+,;=\-]+)?@)?([a-z0-9._~%\-]+|\[[a-f0-9:.]+\]|\[v[a-f0-9][a-z0-9._~%!\$&()*+,;=:\-]+\])(:[0-9]+)?(/[a-zA-Z0-9._~%!\$&()*+,;=:@\-]+)*/?"
# pattern for jira tickets
set -g @fingers-pattern-2 "[A-Z][A-Z0-9_]*-[0-9]+"
set -g @fingers-pattern-4 "[A-Z][A-Z0-9_]*-[0-9]+"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/tpm/tpm'
5 changes: 3 additions & 2 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Plug 'lambdalisue/vim-suda', { 'on': ['SudaRead', 'SudaWrite'] }
" GIT
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'stsewd/fzf-checkout.vim', { 'on': 'FZFGBranches' }
Plug 'stsewd/fzf-checkout.vim', { 'on': ['FZFGBranches', 'FZFGTags'] }

Plug 'godlygeek/tabular', { 'on': ['Tabularize'] }

Expand Down Expand Up @@ -768,7 +768,8 @@ if &rtp =~ 'fzf.vim' && glob("~/.vim/plugged/fzf.vim/plugin/fzf.vim")!=#""

" fzf-checkout
let g:fzf_checkout_git_options = '--sort=-committerdate'
noremap <leader>gb :FZFGBranches<CR>
noremap <leader>gb :FZFGBranches --locals<CR>
noremap <leader>gt :FZFGTags<CR>
noremap <leader>gC :FZFCommits --pretty=format:'\%C(yellow)\%h\%Creset \%C(auto)\%d\%Creset \%s (\%Cblue\%an\%Creset, \%cr)'<CR>
noremap <leader>gc :FZFBCommits --pretty=format:'%C(yellow)%h%Creset %C(auto)%d%Creset %s (%Cblue%an%Creset, %cr)'<CR>
vmap <leader>gc :FZFBCommits --pretty=format:'%C(yellow)%h%Creset %C(auto)%d%Creset %s (%Cblue%an%Creset, %cr)'<CR>
Expand Down
98 changes: 78 additions & 20 deletions firefox/userChrome.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* remove folder icons from bookmarks */
#personal-bookmarks .bookmark-item[container="true"] .toolbarbutton-icon {
display: none !important;
:root {
--tabpanel-background-color: #282828 !important;
--tab-min-height: 30px !important;
--tab-border-radius: 0 !important;
--tab-block-margin: 0 !important;
--toolbarbutton-inner-padding: 6px !important;
--toolbarbutton-border-radius: 0 !important;
}

/* remove title bar space between tab list and window buttons */
Expand All @@ -11,6 +15,8 @@
display: none !important;
}

/* Tabs */

.tab-background {
margin-block: 0 !important;
}
Expand All @@ -19,12 +25,41 @@
height: var(--tab-min-height);
}

/* show close button only on hover */
.tabbrowser-tab:not([pinned]) .tab-close-button {
opacity: 0;
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs])
> #tabbrowser-arrowscrollbox
> .tabbrowser-tab[first-visible-unpinned-tab] {
margin-inline-start: 0 !important;
}
#tabbrowser-tabs .tabbrowser-tab .tab-content {
padding: 6px !important;
max-height: 30px !important;
}

.tab-background {
border-right: 0px solid rgba(0, 0, 0, 0) !important;
margin-left: -4px !important;
}

.tabbrowser-tab:is([visuallyselected="true"], [multiselected])
> .tab-stack
> .tab-background {
box-shadow: none !important;
}

.tabbrowser-tab[last-visible-tab="true"] {
padding-inline-end: 0 !important;
}

.tab-close-button {
display: none;
}

/* greyed out unloaded tabs */
.tabbrowser-tab[pending="true"] {
color: #7c6f64 !important;
}
.tabbrowser-tab:not([pinned]) .tab-close-button:hover {
opacity: 1;
.tabbrowser-tab:not([pinned])[pending="true"] .tab-icon-image {
filter: grayscale(0.8) brightness(50%);
}

/* hide the '+' (new tab) button from the tab bar until hover */
Expand All @@ -33,15 +68,17 @@
}

/* prepend the tab number before tab name */
.browser-toolbar {
counter-reset: tabindex;
}
.tab-label::before {
counter-increment: tabindex;
content: counter(tabindex) ":";
white-space: pre;
opacity: 0.5;
}
/* .browser-toolbar { */
/* counter-reset: tabindex; */
/* } */
/* .tab-label::before { */
/* counter-increment: tabindex; */
/* content: counter(tabindex) ":"; */
/* white-space: pre; */
/* opacity: 0.5; */
/* } */

/* Url */

/* change color of urls on address bar dropdown popup */
.urlbarView-url {
Expand All @@ -53,9 +90,30 @@
color: #282828 !important;
}

/* tab background before loading and unable to load page */
:root {
--tabpanel-background-color: #282828 !important;
/* #nav-bar:not([tabs-hidden="true"]) { */
/* box-shadow: none; */
/* } */

#urlbar-input-container {
background-color: var(--sfsecondary) !important;
border: 2px solid rgba(0, 0, 0, 0) !important;
}

#urlbar-container {
margin-left: 0 !important;
}

#urlbar[focused="true"] > #urlbar-background {
box-shadow: none !important;
}

#navigator-toolbox {
border: none !important;
}

/* remove folder icons from bookmarks */
#personal-bookmarks .bookmark-item[container="true"] .toolbarbutton-icon {
display: none !important;
}

@-moz-document url-prefix(about:blank) {
Expand Down

0 comments on commit fb77807

Please sign in to comment.