diff --git a/README.md b/README.md index 5fdfbf5..2d34039 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,39 @@ # Sudacode Rice -A collection of my Linux (Arch btw) configuration and dotfiles - -## Screenshots -
-

Ordering: Top Left -> Top Right -> Bottom Left -> Bottom Right

-

vim, bpytop, cava, ncmpcpp

- -

(firefox, doom emacs, doom emacs, neofetch)

- -
+ +## My Linux (Arch btw) configuration and dotfiles + +![my rice](screenshots/rice.png) +![application launcher](screenshots/app_launcher.png) ## Current Setup _Click the links to get quick access to the relevant code/files_ + + - Desktop Environment: [EndeavourOS](https://endeavouros.com/) (Arch btw) -- Window Manager: [i3-gaps](https://github.com/Airblader/i3) - - [i3 config](i3-wm/config-desktop) +- Window Manager: [bspwm](https://github.com/baskerville/bspwm) + - [bspwm config](bspwm/bspwmrc) +- Shell: [zsh (oh-my-zsh)](https://ohmyz.sh/) + - [zshrc](dotfiles/.zshrc) - Compositor: [ibhagwan's picom fork](https://github.com/ibhagwan/picom) - - [picom config](picom/picom.conf) + - [picom config](picom/picom-hightransparency.conf) - Notification Server: [dunst](https://github.com/dunst-project/dunst) - [dunst config](dunst/dunstrc) +- Status Bar: [polybar](https://github.com/polybar/polybar) + - [polybar config](polybar-themes/sblocks/config.ini) +- Application Launcher: [rofi](https://github.com/davatorium/rofi) + - [rofi config/colorscheme](rofi/config.rasi) - Terminal Emulator: [alacritty-ligatures](https://aur.archlinux.org/packages/alacritty-ligatures/) - [alacritty config](alacritty/alacritty.yml) - - [colorscheme](alacritty/alacritty.onedark.yml) -- Text Editors: [vim](https://www.vim.org/) and [doom emacs](https://github.com/hlissner/doom-emacs) + - [colorscheme](alacritty/doom_one.yml) +- Text Editor: [vim](https://www.vim.org/) - [vimrc](dotfiles/.vimrc) - - [doom config](doom) - Audio Player: [mpd](https://www.musicpd.org/) with [ncmpcpp](https://github.com/ncmpcpp/ncmpcpp) - [mpd config](mpd/mpd.conf) - [ncmpcpp config](ncmpcpp/ncmpcpp.config) - Audio Visualizer: [cava](https://github.com/karlstav/cava) - [cava config](cava/cavaconfig) - System Monitor: [bpytop](https://github.com/aristocratos/bpytop) -- Firefox Startpage: [my startpage](https://github.com/ksyasuda/Firefox-Startpage) diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index 63e35f5..a343699 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.vimrc @@ -1,4 +1,5 @@ syntax on +set noshowmode "disable default vim insert text at bottom set laststatus=2 set number set colorcolumn=80 @@ -6,9 +7,11 @@ set tw=80 set shiftwidth=4 set tabstop=4 set autoindent +set ignorecase +set smartcase +set incsearch set smartindent set hlsearch -set smartcase set ignorecase set noerrorbells set title @@ -21,6 +24,7 @@ set scrolloff=8 set sidescrolloff=8 " show candidates for vim commands with tab set wildmenu +set background=dark set encoding=UTF-8 set guifont=FiraCode\ Nerd\ Font\ 18 @@ -28,6 +32,17 @@ set guifont=FiraCode\ Nerd\ Font\ 18 " lsp handled by coc let g:ale_disable_lsp = 1 +" Install vim-plug if not found +if empty(glob('~/.vim/autoload/plug.vim')) + silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs + \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim +endif + +" Run PlugInstall if there are missing plugins +autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)')) + \| PlugInstall --sync | source $MYVIMRC +\| endif + call plug#begin('~/.vim/plugged') Plug 'mhinz/vim-startify' @@ -40,26 +55,24 @@ Plug 'pechorin/any-jump.vim' Plug 'tpope/vim-commentary' Plug 'shime/vim-livedown' Plug 'jiangmiao/auto-pairs' -Plug 'alvan/vim-closetag' -Plug 'MaxMEllon/vim-jsx-pretty' Plug 'ap/vim-css-color' +Plug 'ap/vim-buftabline' Plug 'itchyny/lightline.vim' Plug 'wakatime/vim-wakatime' -Plug 'itchyny/vim-gitbranch' Plug 'preservim/nerdtree' | Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'prettier/vim-prettier', { 'do': 'yarn install' } Plug 'sheerun/vim-polyglot' Plug 'dense-analysis/ale' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'maximbaz/lightline-ale' -" On-demand lazy load Plug 'liuchengxu/vim-which-key', { 'on': ['WhichKey', 'WhichKey!'] } +Plug 'osyo-manga/vim-over' " colorschemes Plug 'joshdick/onedark.vim' Plug 'kaicataldo/material.vim', { 'branch': 'main' } -Plug 'sainnhe/sonokai' Plug 'romgrk/doom-one.vim' -Plug 'dracula/vim', { 'as': 'dracula' } +Plug 'morhetz/gruvbox' +Plug 'vv9k/vim-github-dark' call plug#end() @@ -297,6 +310,8 @@ let g:prettier#exec_cmd_path = "/usr/bin/prettier" let g:lightline = {} " 'one', 'material', 'darcula', 'deus' let g:lightline.colorscheme = "deus" +" let g:lightline.colorscheme = "one" +" let g:lightline.colorscheme = "darcula" let g:lightline.component_function = { \ 'fugitive': 'MyFugitive', \ 'readonly': 'Readonly', @@ -378,20 +393,29 @@ endfunction "COLORSCHEME "------------------------------------------------------------------------------ set t_Co=256 -set termguicolors -set noshowmode "disable default vim insert text at bottom -let g:onedark_termcolors=256 "enable 256 colors +" set termguicolors +" let g:onedark_termcolors=256 "enable 256 colors " colorscheme onedark "set colorsheme as onedark + "material theme " let g:material_theme_style = 'default' | 'palenight' | 'ocean' | 'lighter' | 'darker' | 'default-community' | 'palenight-community' | 'ocean-community' | 'lighter-community' | 'darker-community' let g:material_terminal_italics = 1 let g:material_theme_style = 'darker' " let g:material_theme_style = 'darker-community' -colorscheme material +" colorscheme material -let g:doom_one_terminal_colors = v:true +" let g:doom_one_terminal_colors = v:true " colorscheme doom-one +let g:gruvbox_contrast_dark = "medium" "default +" let g:gruvbox_contrast_dark = "soft" +let g:gruvbox_improved_strings = 0 +let g:gruvbox_improved_warnings = 1 +colorscheme gruvbox + +" let g:gh_color = "soft" +" colorscheme ghdark + "------------------------------------------------------------------------------ """bash language server "------------------------------------------------------------------------------ @@ -518,21 +542,29 @@ command! -nargs=0 OR :call CocActionAsync('runCommand', 'editor.action.org set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} " Mappings for CoCList " Show all diagnostics. -nnoremap a :CocList diagnostics +nnoremap cd :CocCommand fzf-preview.CocDiagnostics " Manage extensions. -nnoremap e :CocList extensions +nnoremap ce :CocList extensions " Show commands. -nnoremap c :CocList commands +nnoremap cc :CocCommand fzf-preview.CommandPallete " Find symbol of current document. -nnoremap o :CocList outline +nnoremap co :CocOutline " Search workspace symbols. -nnoremap s :CocList -I symbols +nnoremap cs :CocCommand fzf-preview.BufferLines " Do default action for next item. -nnoremap j :CocNext +nnoremap cj :CocNext " Do default action for previous item. -nnoremap k :CocPrev +nnoremap ck :CocPrev " Resume latest coc list. -nnoremap p :CocListResume +nnoremap cp :CocListResume +" show references with fzf +nnoremap cr :CocCommand fzf-preview.CocReferences +" show implementations with fzf +nnoremap ci :CocCommand fzf-preview.CocImplementations +"------------------------------------------------------------------------------ +"which key +"------------------------------------------------------------------------------ +set timeoutlen=400 "------------------------------------------------------------------------------ " custom commands @@ -542,7 +574,10 @@ command! Config execute ":e ~/.vimrc" "------------------------------------------------------------------------------ "KEYBINDINGS "------------------------------------------------------------------------------ -let mapleader = "\" +let g:mapleader = "\" +let g:maplocalleader = ',' +nnoremap :WhichKey '' +nnoremap :WhichKey ',' map :! map :NERDTreeToggle map :LivedownToggle @@ -550,12 +585,16 @@ nnoremap :wa:vertical botright term ++kill=term " fzf nmap // :CocCommand fzf-preview.Lines nmap ?? :CocCommand fzf-preview.BufferLines +" search fzf, refs, impls, defs nmap sf :FZF " buffers nmap bb :CocCommand fzf-preview.Buffers nmap bB :CocCommand fzf-preview.AllBuffers nmap bk :bdelete -nmap bn :enew +nmap bn :bnext +nmap bp :bprev +map :bnext +map :bprev " git nmap gg :tab term ++close lazygit nmap gc :CocCommand fzf-preview.GitLogs @@ -568,15 +607,9 @@ nmap hk :Maps nmap j :AnyJump " toggle/open nmap on :NERDTreeToggle -nmap ot :vertical botright ter -" peek/preview -nmap pr :CocCommand fzf-preview.CocReferences -nmap pi :CocCommand fzf-preview.CocImplementations -nmap pd :CocCommand fzf-preview.CocDiagnostics +nmap ot :vertical botright ter ++kill=terminal ++close +nmap oo :OverCommandLine " search nmap sc :nohls "toggle coc outline -nmap to :CocOutline -"which key -set timeoutlen=400 -nnoremap :WhichKey '' +noremap to :CocOutline diff --git a/dotfiles/.zshrc b/dotfiles/.zshrc index 0d0139c..554883b 100644 --- a/dotfiles/.zshrc +++ b/dotfiles/.zshrc @@ -111,7 +111,7 @@ HISTCONTROL=ignoreboth # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(zsh-autosuggestions zsh-syntax-highlighting colored-man-pages vi-mode) +plugins=(zsh-autosuggestions zsh-syntax-highlighting colored-man-pages vi-mode git zsh-z) source $ZSH/oh-my-zsh.sh #source ~/.oh-my-zsh/plugins/git/git.plugin.zsh diff --git a/dunst/dunstrc b/dunst/dunstrc index 6fb12b6..7498bae 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -1,3 +1,5 @@ +# See dunst(5) for all configuration options + [global] ### Display ### @@ -17,21 +19,33 @@ # will be ignored. follow = mouse - # The geometry of the window: - # [{width}]x{height}[+/-{x}+/-{y}] - # The geometry of the message window. - # The height is measured in number of notifications everything else - # in pixels. If the width is omitted but the height is given - # ("-geometry x2"), the message window expands over the whole screen - # (dmenu-like). If width is 0, the window expands to the longest - # message displayed. A positive x is measured from the left, a - # negative from the right side of the screen. Y is measured from - # the top and down respectively. - # The width can be negative. In this case the actual width is the - # screen width minus the width defined in within the geometry option. - geometry = "0x4-82+100" + ### Geometry ### - # Turn on the progess bar + # dynamic width from 0 to 300 + # width = (0, 300) + # constant width of 300 + width = 0 + + # The maximum height of a single notification, excluding the frame. + # height = 300 + height = 500 + + # Position the notification in the top right corner + origin = top-right + + # Offset from the origin + offset = 9x48 + + # Scale factor. It is auto-detected if value is 0. + scale = 0 + + # Maximum number of notification (0 means no limit) + notification_limit = 0 + + ### Progress bar ### + + # Turn on the progess bar. It appears when a progress hint is passed with + # for example dunstify -h int:value:12 progress_bar = true # Set the progress bar height. This includes the frame, so make sure @@ -48,22 +62,15 @@ progress_bar_max_width = 300 - # Show how many messages are currently hidden (because of geometry). + # Show how many messages are currently hidden (because of + # notification_limit). indicate_hidden = yes - # Shrink window if it's smaller than the width. Will be ignored if - # width is 0. - shrink = no - # The transparency of the window. Range: [0; 100]. # This option will only work if a compositing window manager is - # present (e.g. xcompmgr, compiz, etc.). - transparency = 0 - - # The height of the entire notification. If the height is smaller - # than the font height and padding combined, it will be raised - # to the font height and padding. - notification_height = 0 + # present (e.g. xcompmgr, compiz, etc.). (X11 only) + # transparency = 0 + transparency = 45; # Draw a line of "separator_height" pixel height between two # notifications. @@ -71,18 +78,17 @@ separator_height = 2 # Padding between text and separator. - padding = 10 + padding = 14 # Horizontal padding. - horizontal_padding = 10 + horizontal_padding = 15 # Padding between text and icon. text_icon_padding = 15 # Defines width in pixels of frame around the notification window. # Set to 0 to disable. - frame_width = 7 - # frame_width = 14 + frame_width = 4 # Defines color of the frame around the notification window. frame_color = "#aaaaaa" @@ -103,15 +109,15 @@ # Set to 0 to disable. # A client can set the 'transient' hint to bypass this. See the rules # section for how to disable this if necessary - idle_threshold = 120 + # idle_threshold = 120 ### Text ### - font = "mononoki Nerd Font" 8 + font = "mononoki Nerd Font" 12 # The spacing between lines. If the height is smaller than the # font height, it will get raised to the font height. - line_height = 1 + line_height = 0 # Possible values are: # full: Allow a small subset of html markup in notifications: @@ -121,7 +127,7 @@ # underline # # For a complete reference see - # . + # . # # strip: This setting is provided for compatibility with some broken # clients that send markup even though it's not enabled on the @@ -162,11 +168,7 @@ # Set to -1 to disable. show_age_threshold = 60 - # Split notifications into multiple lines if they don't fit into - # geometry. - word_wrap = yes - - # When word_wrap is set to no, specify where to make an ellipsis in long lines. + # Specify where to make an ellipsis in long lines. # Possible values are "start", "middle" and "end". ellipsize = middle @@ -190,14 +192,13 @@ # Scale small icons up to this size, set to 0 to disable. Helpful # for e.g. small files or high-dpi screens. In case of conflict, # max_icon_size takes precedence over this. - min_icon_size = 64 + min_icon_size = 0 # Scale larger icons down to this size, set to 0 to disable max_icon_size = 128 # Paths to default icons. icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ - # icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/ ### History ### @@ -214,7 +215,7 @@ dmenu = /usr/bin/dmenu -p dunst: # Browser for opening urls in context menu. - browser = /usr/bin/firefox -new-tab + browser = /usr/bin/xdg-open # Always run rule-defined scripts, even if the notification is suppressed always_run_script = true @@ -225,20 +226,6 @@ # Define the class of the windows spawned by dunst class = Dunst - # Print a notification on startup. - # This is mainly for error detection, since dbus (re-)starts dunst - # automatically after a crash. - startup_notification = false - - # Manage dunst's desire for talking - # Can be one of the following values: - # crit: Critical features. Dunst aborts - # warn: Only non-fatal warnings - # mesg: Important Messages - # info: all unimportant stuff - # debug: all less than unimportant stuff - verbosity = mesg - # Define the corner radius of the notification window # in pixel size. If the radius is 0, you have no rounded # corners. @@ -279,10 +266,14 @@ # Defines list of actions for each mouse event # Possible values are: # * none: Don't do anything. - # * do_action: If the notification has exactly one action, or one is marked as default, - # invoke it. If there are multiple and no default, open the context menu. + # * do_action: Invoke the action determined by the action_name rule. If there is no + # such action, open the context menu. + # * open_url: If the notification has exactly one url, open it. If there are multiple + # ones, open the context menu. # * close_current: Close current notification. # * close_all: Close all notifications. + # * context: Open context menu for the notification. + # * context_all: Open context menu for all notifications. # These values can be strung together for each mouse event, and # will be executed in sequence. mouse_left_click = close_current @@ -299,59 +290,31 @@ # where there are multiple screens with very different dpi values. per_monitor_dpi = true -# The internal keyboard shortcut support in dunst is now considered deprecated -# and should be replaced by dunstctl calls. You can use the configuration of your -# WM or DE to bind these to shortcuts of your choice. -# Check the dunstctl manual page for more info. -[shortcuts] - - # Shortcuts are specified as [modifier+][modifier+]...key - # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", - # "mod3" and "mod4" (windows-key). - # Xev might be helpful to find names for keys. - - # Close notification. Equivalent dunstctl command: - # dunstctl close - close = ctrl+space - - # Close all notifications. Equivalent dunstctl command: - # dunstctl close-all - close_all = ctrl+shift+space - - # Redisplay last message(s). Equivalent dunstctl command: - # dunstctl history-pop - # history = ctrl+grave - - # Context menu. Equivalent dunstctl command: - # dunstctl context - context = ctrl+shift+period [urgency_low] # IMPORTANT: colors have to be defined in quotation marks. # Otherwise the "#" and following would be interpreted as a comment. background = "#222222" foreground = "#888888" - timeout = 5 + timeout = 10 # Icon for notifications with low urgency, uncomment to enable - #icon = /path/to/icon + #new_icon = /path/to/icon [urgency_normal] - # background = "#285577" - background = "#282c34" - # foreground = "#55aebb" - foreground = "#b26cc6" - frame_color = "#1eb75d" + background = "#24282f" + foreground = "#c678dd" + frame_color = "#98be65" timeout = 5 # Icon for notifications with normal urgency, uncomment to enable - #icon = /path/to/icon + #new_icon = /path/to/icon [urgency_critical] - background = "#900000" + background = "#ff6c6b" foreground = "#ffffff" - frame_color = "#ff0000" + frame_color = "#900000" timeout = 0 # Icon for notifications with critical urgency, uncomment to enable - #icon = /path/to/icon + #new_icon = /path/to/icon # Every section that isn't one of the above is interpreted as a rules to # override settings for certain messages. @@ -376,8 +339,15 @@ # new_icon # set_stack_tag # set_transient +# set_category # timeout # urgency +# skip_display +# history_ignore +# action_name +# word_wrap +# ellipsize +# alignment # # Shell-like globbing will get expanded. # @@ -392,8 +362,6 @@ # script appname summary body icon urgency # where urgency can be "LOW", "NORMAL" or "CRITICAL". # -# NOTE: if you don't want a notification to be displayed, set the format -# to "". # NOTE: It might be helpful to run dunst -print in a terminal in order # to find fitting options for rules. @@ -432,7 +400,7 @@ #[ignore] # # This notification will not be displayed # summary = "foobar" -# format = "" +# skip_display = true #[history-ignore] # # This notification will not be saved in history diff --git a/mpv/mpv.conf b/mpv/mpv.conf index 7de38c6..a3068fe 100644 --- a/mpv/mpv.conf +++ b/mpv/mpv.conf @@ -54,7 +54,8 @@ # Specify high quality video rendering preset (for --vo=gpu only) # Can cause performance problems with some drivers and GPUs. -profile=gpu-hq +# profile=gpu-hq +profile=svp # Force video to lock on the display's refresh rate, and change video and audio # speed to some degree to ensure synchronous playback - can cause problems @@ -65,7 +66,9 @@ profile=gpu-hq # video outputs, but should work well with default settings on most systems. # If performance or energy usage is an issue, forcing the vdpau or vaapi VOs # may or may not help. -#hwdec=auto +# discourged by mpv devs and not likely to make significant difference +# hwdec=auto-copy +# hwdec-codecs=all ################## # audio settings # @@ -144,3 +147,11 @@ geometry=50% volume=50 audio-spdif=ac3,eac3,dts-hd,truehd glsl-shaders="~~/shaders/Anime4K_Clamp_Highlights.glsl:~~/shaders/Anime4K_Restore_CNN_VL.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl:~~/shaders/Anime4K_AutoDownscalePre_x2.glsl:~~/shaders/Anime4K_AutoDownscalePre_x4.glsl:~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl" + +[svp] +input-ipc-server=/tmp/mpvsocket # Receives input from SVP +hr-seek-framedrop=no # Fixes audio desync +resume-playback=no # Not compatible with SVP + +# Can fix stuttering in some cases, in other cases probably causes it. Try it if you experience stuttering. +opengl-early-flush=yes diff --git a/ncmpcpp/config b/ncmpcpp/config index e46478d..919738f 100644 --- a/ncmpcpp/config +++ b/ncmpcpp/config @@ -25,11 +25,6 @@ ncmpcpp_directory = ~/.config/ncmpcpp mpd_host = "localhost" mpd_port = "6600" -# connect to desktop -# mpd_host = "192.168.86.177" -# mpd_port = "6600" -# - mpd_connection_timeout = 5 @@ -37,6 +32,8 @@ mpd_connection_timeout = 5 ## Needed for tag editor and file operations to work. ## mpd_music_dir = "~/Music" +# mpd_music_dir = "/var/lib/mpd/music" + # #mpd_crossfade_time = 5 # diff --git a/picom/picom-hightransparency.conf b/picom/picom-hightransparency.conf new file mode 100644 index 0000000..f09b2b2 --- /dev/null +++ b/picom/picom-hightransparency.conf @@ -0,0 +1,487 @@ +################################# +# Shadows # +################################# + + +# Enabled client-side shadows on windows. Note desktop windows +# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, +# unless explicitly requested using the wintypes option. +# +# shadow = false +shadow = true; + +# The blur radius for shadows, in pixels. (defaults to 12) +# shadow-radius = 12 +shadow-radius = 24; + +# The opacity of shadows. (0.0 - 1.0, defaults to 0.75) +# shadow-opacity = .75 + +# The left offset for shadows, in pixels. (defaults to -15) +# shadow-offset-x = -15 +shadow-offset-x = -7; + +# The top offset for shadows, in pixels. (defaults to -15) +# shadow-offset-y = -15 +shadow-offset-y = -7; + +# Avoid drawing shadows on dock/panel windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# +# no-dock-shadow = false + +# Don't draw shadows on drag-and-drop windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# +# no-dnd-shadow = false + +# Red color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-red = 0 + +# Green color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-green = 0 + +# Blue color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-blue = 0 + +# Do not paint shadows on shaped windows. Note shaped windows +# here means windows setting its shape through X Shape extension. +# Those using ARGB background is beyond our control. +# Deprecated, use +# shadow-exclude = 'bounding_shaped' +# or +# shadow-exclude = 'bounding_shaped && !rounded_corners' +# instead. +# +# shadow-ignore-shaped = '' + +# Specify a list of conditions of windows that should have no shadow. +# +# examples: +# shadow-exclude = "n:e:Notification"; +# +# shadow-exclude = [] +shadow-exclude = [ + "name = 'Notification'", + "class_g = 'Conky'", + "class_g ?= 'Notify-osd'", + "class_g = 'Cairo-clock'", + "_GTK_FRAME_EXTENTS@:c" +]; + +# Specify a X geometry that describes the region in which shadow should not +# be painted in, such as a dock window region. Use +# shadow-exclude-reg = "x10+0+0" +# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on. +# +# shadow-exclude-reg = "" + +# Crop shadow of a window fully on a particular Xinerama screen to the screen. +# xinerama-shadow-crop = false + + +################################# +# Fading # +################################# + + +# Fade windows in/out when opening/closing and when opacity changes, +# unless no-fading-openclose is used. +# fading = false +fading = true + +# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028) +# fade-in-step = 0.028 +fade-in-step = 0.03; + +# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03) +# fade-out-step = 0.03 +fade-out-step = 0.03; + +# The time between steps in fade step, in milliseconds. (> 0, defaults to 10) +# fade-delta = 10 + +# Specify a list of conditions of windows that should not be faded. +# fade-exclude = [] + +# Do not fade on window open/close. +# no-fading-openclose = false + +# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc. +# no-fading-destroyed-argb = false + + +################################# +# Transparency / Opacity # +################################# + + +# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) + +active-opacity = 0.90; +# active-opacity = 1; +inactive-opacity = 0.69; +# inactive-opacity = 1; + +# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) +# frame-opacity = 1.0 +frame-opacity = 0.9; + +# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0) +menu-opacity = 0.8 + +# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows. +# inactive-opacity-override = true +inactive-opacity-override = false; + +# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0) +# active-opacity = 1.0 + +# Dim inactive windows. (0.0 - 1.0, defaults to 0.0) +inactive-dim = 0.1 + +# Specify a list of conditions of windows that should always be considered focused. +# focus-exclude = [] +focus-exclude = [ "class_g = 'Cairo-clock'" ]; + +# Use fixed inactive dim value, instead of adjusting according to window opacity. +# inactive-dim-fixed = 1.0 + +# Specify a list of opacity rules, in the format `PERCENT:PATTERN`, +# like `50:name *= "Firefox"`. picom-trans is recommended over this. +# Note we don't make any guarantee about possible conflicts with other +# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows. +# example: +# opacity-rule = [ "80:class_g = 'URxvt'" ]; +# +opacity-rule = [ + "100:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:class_g = 'mpv'", + + "85:class_g = 'Alacritty' && focused", + "85:class_g = 'Emacs' && focused", + "85:class_g = 'firefoxdeveloperedition' && focused", + "85:class_g = 'Thunar' && focused", + "85:class_g = 'Thunderbird' && focused", + "85:class_g = 'qutebrowser' && focused", + + + "75:class_g = 'Alacritty' && !focused", + "75:class_g = 'DBeaver' && !focused", + "75:class_g = 'Emacs' && !focused", + "75:class_g = 'firefoxdeveloperedition' && !focused", + "75:class_g = 'Joplin' && !focused", + "75:class_g = 'Microsoft Teams - Preview' && !focused", + "75:class_g = 'Notepadqq' && !focused", + "75:class_g = 'Polybar' && !focused", + "75:class_g = 'Thunar' && !focused", + "75:class_g = 'Thunderbird' && !focused", + "75:class_g = 'qutebrowser' && !focused", + + "75:class_g = 'Dunst' && !focused", + "75:class_g = 'Dunst' && focused", +] + +################################# +# Background-Blurring # +################################# + + +# Parameters for background blurring, see the *BLUR* section for more information. +# blur-method = +# blur-size = 10 +# +# blur-deviation = false + +# Blur background of semi-transparent / ARGB windows. +# Bad in performance, with driver-dependent behavior. +# The name of the switch may change without prior notifications. +# +# blur-background = true + +# Blur background of windows when the window frame is not opaque. +# Implies: +# blur-background +# Bad in performance, with driver-dependent behavior. The name may change. +# +# blur-background-frame = false + + +# Use fixed blur strength rather than adjusting according to window opacity. +blur-background-fixed = false + + +# Specify the blur convolution kernel, with the following format: +# example: +# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; +# +# blur-kern = '' +blur-kern = "3x3box"; + + +# Exclude conditions for background blur. +# blur-background-exclude = [] +blur-background-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'", + "_GTK_FRAME_EXTENTS@:c", + "name *= 'rect-overlay'", + "name *= 'mpv'" +]; + +################################# +# General Settings # +################################# + +# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers. +# daemon = false + +# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`. +# `xrender` is the default one. +# +# backend = 'glx' +# backend = "xrender"; +backend = "glx"; +# Enable/disable VSync. +# vsync = false +vsync = false + +# Enable remote control via D-Bus. See the *D-BUS API* section below for more details. +# dbus = false + +# Try to detect WM windows (a non-override-redirect window with no +# child that has 'WM_STATE') and mark them as active. +# +# mark-wmwin-focused = false +mark-wmwin-focused = true; + +# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused. +# mark-ovredir-focused = false +mark-ovredir-focused = true; + +# Try to detect windows with rounded corners and don't consider them +# shaped windows. The accuracy is not very high, unfortunately. +# +# detect-rounded-corners = false +detect-rounded-corners = false; + +# Detect '_NET_WM_OPACITY' on client windows, useful for window managers +# not passing '_NET_WM_OPACITY' of client windows to frame windows. +# +# detect-client-opacity = false +detect-client-opacity = true; + +# Specify refresh rate of the screen. If not specified or 0, picom will +# try detecting this with X RandR extension. +# +# refresh-rate = 60 +refresh-rate = 144 + +# Limit picom to repaint at most once every 1 / 'refresh_rate' second to +# boost performance. This should not be used with +# vsync drm/opengl/opengl-oml +# as they essentially does sw-opti's job already, +# unless you wish to specify a lower refresh rate than the actual value. +# +# sw-opti = + +# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, +# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, +# provided that the WM supports it. +# +# use-ewmh-active-win = false + +# Unredirect all windows if a full-screen opaque window is detected, +# to maximize performance for full-screen windows. Known to cause flickering +# when redirecting/unredirecting windows. +# +# unredir-if-possible = false + +# Delay before unredirecting the window, in milliseconds. Defaults to 0. +# unredir-if-possible-delay = 0 + +# Conditions of windows that shouldn't be considered full-screen for unredirecting screen. +# unredir-if-possible-exclude = [] + +# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows +# in the same group focused at the same time. +# +# detect-transient = false +detect-transient = true + +# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same +# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if +# detect-transient is enabled, too. +# +# detect-client-leader = false +detect-client-leader = true + +# Resize damaged region by a specific number of pixels. +# A positive value enlarges it while a negative one shrinks it. +# If the value is positive, those additional pixels will not be actually painted +# to screen, only used in blur calculation, and such. (Due to technical limitations, +# with use-damage, those pixels will still be incorrectly painted to screen.) +# Primarily used to fix the line corruption issues of blur, +# in which case you should use the blur radius value here +# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`, +# with a 5x5 one you use `--resize-damage 2`, and so on). +# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly. +# +# resize-damage = 1 + +# Specify a list of conditions of windows that should be painted with inverted color. +# Resource-hogging, and is not well tested. +# +# invert-color-include = [] + +# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. +# Might cause incorrect opacity when rendering transparent content (but never +# practically happened) and may not work with blur-background. +# My tests show a 15% performance boost. Recommended. +# +# glx-no-stencil = false + +# GLX backend: Avoid rebinding pixmap on window damage. +# Probably could improve performance on rapid window content changes, +# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.). +# Recommended if it works. +# +# glx-no-rebind-pixmap = false + +# Disable the use of damage information. +# This cause the whole screen to be redrawn everytime, instead of the part of the screen +# has actually changed. Potentially degrades the performance, but might fix some artifacts. +# The opposing option is use-damage +# +# no-use-damage = false +use-damage = true + +# Use X Sync fence to sync clients' draw calls, to make sure all draw +# calls are finished before picom starts drawing. Needed on nvidia-drivers +# with GLX backend for some users. +# +# xrender-sync-fence = false + +# GLX backend: Use specified GLSL fragment shader for rendering window contents. +# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl` +# in the source tree for examples. +# +# glx-fshader-win = '' + +# Force all windows to be painted with blending. Useful if you +# have a glx-fshader-win that could turn opaque pixels transparent. +# +# force-win-blend = false + +# Do not use EWMH to detect fullscreen windows. +# Reverts to checking if a window is fullscreen based only on its size and coordinates. +# +# no-ewmh-fullscreen = false + +# Dimming bright windows so their brightness doesn't exceed this set value. +# Brightness of a window is estimated by averaging all pixels in the window, +# so this could comes with a performance hit. +# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0) +# +# max-brightness = 1.0 + +# Make transparent windows clip other windows like non-transparent windows do, +# instead of blending on top of them. +# +# transparent-clipping = false + +# Set the log level. Possible values are: +# "trace", "debug", "info", "warn", "error" +# in increasing level of importance. Case doesn't matter. +# If using the "TRACE" log level, it's better to log into a file +# using *--log-file*, since it can generate a huge stream of logs. +# +# log-level = "debug" +log-level = "warn"; + +# Set the log file. +# If *--log-file* is never specified, logs will be written to stderr. +# Otherwise, logs will to written to the given file, though some of the early +# logs might still be written to the stderr. +# When setting this option from the config file, it is recommended to use an absolute path. +# +# log-file = '/path/to/your/log/file' + +# Show all X errors (for debugging) +# show-all-xerrors = false + +# Write process ID to a file. +# write-pid-path = '/path/to/your/log/file' + +# Window type settings +# +# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard: +# "unknown", "desktop", "dock", "toolbar", "menu", "utility", +# "splash", "dialog", "normal", "dropdown_menu", "popup_menu", +# "tooltip", "notification", "combo", and "dnd". +# +# Following per window-type options are available: :: +# +# fade, shadow::: +# Controls window-type-specific shadow and fade settings. +# +# opacity::: +# Controls default opacity of the window type. +# +# focus::: +# Controls whether the window of this type is to be always considered focused. +# (By default, all window types except "normal" and "dialog" has this on.) +# +# full-shadow::: +# Controls whether shadow is drawn under the parts of the window that you +# normally won't be able to see. Useful when the window has parts of it +# transparent, and you want shadows in those areas. +# +# redir-ignore::: +# Controls whether this type of windows should cause screen to become +# redirected again after been unredirected. If you have unredir-if-possible +# set, and doesn't want certain window to cause unnecessary screen redirection, +# you can set this to `true`. +# + +#stop tearing on fullscreen windows +unredir-if-possible = false; + + +wintypes: +{ + tooltip = { fade = true; shadow = true; opacity = 0.95; focus = true; full-shadow = false; }; + dock = { shadow = false; } + dnd = { shadow = false; } + popup_menu = { opacity = 0.85; } + dropdown_menu = { opacity = 0.85; } +}; + +# ------------ +# ibhagwan + + +# corner-radius = 7; +corner-radius = 8; +# corner-radius = 15; +rounded-corners-exclude = [ + "class_g = 'Plasma'", + "class_g = 'plsama-desktop'", + "class_g = 'win7'", + "class_g = 'krunner'", + "class_g = 'plasmashell'", + # "class_g = 'Polybar'" +] + +blur: { + method = "dual_kawase"; + # method = "kawase"; + strength = 12; + background = false; + background-frame = false; + background-fixed = false; +} diff --git a/picom/picom.conf.jonaburg b/picom/picom-notransparency.conf similarity index 69% rename from picom/picom.conf.jonaburg rename to picom/picom-notransparency.conf index 3e02b2d..ce6de77 100644 --- a/picom/picom.conf.jonaburg +++ b/picom/picom-notransparency.conf @@ -1,49 +1,21 @@ -################################# -# Animations # -################################# -# requires https://github.com/jonaburg/picom -# (These are also the default values) -transition-length = 300 -transition-pow-x = 0.1 -transition-pow-y = 0.1 -transition-pow-w = 0.1 -transition-pow-h = 0.1 -size-transition = true - - -################################# -# Corners # -################################# -# requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom -corner-radius = 10.0; -rounded-corners-exclude = [ - #"window_type = 'normal'", - "class_g = 'polybar'", - #"class_g = 'TelegramDesktop'", -]; -round-borders = 1; -round-borders-exclude = [ - #"class_g = 'TelegramDesktop'", -]; - ################################# # Shadows # ################################# -# Enabled client-side shadows on windows. Note desktop windows -# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, +# Enabled client-side shadows on windows. Note desktop windows +# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, # unless explicitly requested using the wintypes option. # # shadow = false shadow = true; # The blur radius for shadows, in pixels. (defaults to 12) -shadow-radius = 12 -# shadow-radius = 7; +# shadow-radius = 12 +shadow-radius = 24; # The opacity of shadows. (0.0 - 1.0, defaults to 0.75) -shadow-opacity = .75 +# shadow-opacity = .75 # The left offset for shadows, in pixels. (defaults to -15) # shadow-offset-x = -15 @@ -58,7 +30,7 @@ shadow-offset-y = -7; # # no-dock-shadow = false -# Don't draw shadows on drag-and-drop windows. This option is deprecated, +# Don't draw shadows on drag-and-drop windows. This option is deprecated, # you should use the *wintypes* option in your config file instead. # # no-dnd-shadow = false @@ -72,12 +44,12 @@ shadow-offset-y = -7; # Blue color value of shadow (0.0 - 1.0, defaults to 0). # shadow-blue = 0 -# Do not paint shadows on shaped windows. Note shaped windows -# here means windows setting its shape through X Shape extension. -# Those using ARGB background is beyond our control. -# Deprecated, use +# Do not paint shadows on shaped windows. Note shaped windows +# here means windows setting its shape through X Shape extension. +# Those using ARGB background is beyond our control. +# Deprecated, use # shadow-exclude = 'bounding_shaped' -# or +# or # shadow-exclude = 'bounding_shaped && !rounded_corners' # instead. # @@ -94,17 +66,15 @@ shadow-exclude = [ "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Cairo-clock'", - "class_g = 'slop'", - "class_g = 'Polybar'", "_GTK_FRAME_EXTENTS@:c" ]; # Specify a X geometry that describes the region in which shadow should not -# be painted in, such as a dock window region. Use +# be painted in, such as a dock window region. Use # shadow-exclude-reg = "x10+0+0" # for example, if the 10 pixels on the bottom of the screen should not have shadows painted on. # -# shadow-exclude-reg = "" +# shadow-exclude-reg = "" # Crop shadow of a window fully on a particular Xinerama screen to the screen. # xinerama-shadow-crop = false @@ -118,7 +88,7 @@ shadow-exclude = [ # Fade windows in/out when opening/closing and when opacity changes, # unless no-fading-openclose is used. # fading = false -fading = true; +fading = true # Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028) # fade-in-step = 0.028 @@ -132,10 +102,7 @@ fade-out-step = 0.03; # fade-delta = 10 # Specify a list of conditions of windows that should not be faded. -# don't need this, we disable fading for all normal windows with wintypes: {} -fade-exclude = [ - "class_g = 'slop'" # maim -] +# fade-exclude = [] # Do not fade on window open/close. # no-fading-openclose = false @@ -150,65 +117,51 @@ fade-exclude = [ # Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) -# inactive-opacity = 1 -inactive-opacity = 0.85; + +# active-opacity = 0.69; +active-opacity = 1; +# inactive-opacity = 0.95; +inactive-opacity = 1; # Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) # frame-opacity = 1.0 -frame-opacity = 0.7; +frame-opacity = 0.8; # Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0) -# menu-opacity = 1.0 -# menu-opacity is depreciated use dropdown-menu and popup-menu instead. - -#If using these 2 below change their values in line 510 & 511 aswell -popup_menu = { opacity = 0.8; } -dropdown_menu = { opacity = 0.8; } - +menu-opacity = 0.8 # Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows. # inactive-opacity-override = true inactive-opacity-override = false; # Default opacity for active windows. (0.0 - 1.0, defaults to 1.0) -active-opacity = .9; +# active-opacity = 1.0 # Dim inactive windows. (0.0 - 1.0, defaults to 0.0) inactive-dim = 0.1 # Specify a list of conditions of windows that should always be considered focused. # focus-exclude = [] -focus-exclude = [ - "class_g = 'Cairo-clock'", - "class_g = 'Bar'", # lemonbar - "class_g = 'slop'" # maim -]; +focus-exclude = [ "class_g = 'Cairo-clock'" ]; # Use fixed inactive dim value, instead of adjusting according to window opacity. # inactive-dim-fixed = 1.0 -# Specify a list of opacity rules, in the format `PERCENT:PATTERN`, -# like `50:name *= "Firefox"`. picom-trans is recommended over this. -# Note we don't make any guarantee about possible conflicts with other +# Specify a list of opacity rules, in the format `PERCENT:PATTERN`, +# like `50:name *= "Firefox"`. picom-trans is recommended over this. +# Note we don't make any guarantee about possible conflicts with other # programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows. # example: # opacity-rule = [ "80:class_g = 'URxvt'" ]; # -# opacity-rule = [] opacity-rule = [ - "96:class_g = 'Alacritty'", - "100:class_g = 'Polybar'", - "100:class_g = 'code-oss'", - "100:class_g = 'Code'", - "100:class_g = 'jetbrains-studio'", - "100:class_g = 'firefox'", - "100:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'", - "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'", -]; - + "100:_NET_WM_STATE@[0]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'", + "100:class_g = 'mpv'", +] ################################# # Background-Blurring # @@ -216,27 +169,27 @@ opacity-rule = [ # Parameters for background blurring, see the *BLUR* section for more information. -# blur-method = -# blur-size = 12 +# blur-method = +blur-size = 10 # # blur-deviation = false -# Blur background of semi-transparent / ARGB windows. -# Bad in performance, with driver-dependent behavior. +# Blur background of semi-transparent / ARGB windows. +# Bad in performance, with driver-dependent behavior. # The name of the switch may change without prior notifications. # -# blur-background = true; +blur-background = false -# Blur background of windows when the window frame is not opaque. +# Blur background of windows when the window frame is not opaque. # Implies: -# blur-background +# blur-background # Bad in performance, with driver-dependent behavior. The name may change. # -# blur-background-frame = false; +# blur-background-frame = false # Use fixed blur strength rather than adjusting according to window opacity. -# blur-background-fixed = false; +blur-background-fixed = false # Specify the blur convolution kernel, with the following format: @@ -244,35 +197,19 @@ opacity-rule = [ # blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; # # blur-kern = '' -# blur-kern = "3x3box"; +blur-kern = "3x3box"; -blur: { - # requires: https://github.com/ibhagwan/picom - method = "kawase"; - #method = "kernel"; - strength = 7; - # deviation = 1.0; - # kernel = "11x11gaussian"; - background = false; - background-frame = false; - background-fixed = false; - kern = "3x3box"; -} # Exclude conditions for background blur. +# blur-background-exclude = [] blur-background-exclude = [ - #"window_type = 'dock'", - #"window_type = 'desktop'", - #"class_g = 'URxvt'", - # - # prevents picom from blurring the background - # when taking selection screenshot with `main` - # https://github.com/naelstrof/maim/issues/130 - "class_g = 'slop'", - "_GTK_FRAME_EXTENTS@:c" + "window_type = 'dock'", + "window_type = 'desktop'", + "_GTK_FRAME_EXTENTS@:c", + "name *= 'rect-overlay'", + "name *= 'mpv'" ]; - ################################# # General Settings # ################################# @@ -283,19 +220,17 @@ blur-background-exclude = [ # Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`. # `xrender` is the default one. # -experimental-backends = true; -backend = "glx"; +# backend = 'glx' # backend = "xrender"; - - +backend = "glx"; # Enable/disable VSync. # vsync = false -vsync = false +vsync = true # Enable remote control via D-Bus. See the *D-BUS API* section below for more details. # dbus = false -# Try to detect WM windows (a non-override-redirect window with no +# Try to detect WM windows (a non-override-redirect window with no # child that has 'WM_STATE') and mark them as active. # # mark-wmwin-focused = false @@ -305,7 +240,7 @@ mark-wmwin-focused = true; # mark-ovredir-focused = false mark-ovredir-focused = true; -# Try to detect windows with rounded corners and don't consider them +# Try to detect windows with rounded corners and don't consider them # shaped windows. The accuracy is not very high, unfortunately. # # detect-rounded-corners = false @@ -317,29 +252,29 @@ detect-rounded-corners = true; # detect-client-opacity = false detect-client-opacity = true; -# Specify refresh rate of the screen. If not specified or 0, picom will +# Specify refresh rate of the screen. If not specified or 0, picom will # try detecting this with X RandR extension. # # refresh-rate = 60 -refresh-rate = 0 +refresh-rate = 144 -# Limit picom to repaint at most once every 1 / 'refresh_rate' second to -# boost performance. This should not be used with +# Limit picom to repaint at most once every 1 / 'refresh_rate' second to +# boost performance. This should not be used with # vsync drm/opengl/opengl-oml -# as they essentially does sw-opti's job already, +# as they essentially does sw-opti's job already, # unless you wish to specify a lower refresh rate than the actual value. # -# sw-opti = +# sw-opti = -# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, -# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, +# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, +# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, # provided that the WM supports it. # # use-ewmh-active-win = false -# Unredirect all windows if a full-screen opaque window is detected, -# to maximize performance for full-screen windows. Known to cause flickering -# when redirecting/unredirecting windows. paint-on-overlay may make the flickering less obvious. +# Unredirect all windows if a full-screen opaque window is detected, +# to maximize performance for full-screen windows. Known to cause flickering +# when redirecting/unredirecting windows. # # unredir-if-possible = false @@ -349,86 +284,84 @@ refresh-rate = 0 # Conditions of windows that shouldn't be considered full-screen for unredirecting screen. # unredir-if-possible-exclude = [] -# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows +# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows # in the same group focused at the same time. # # detect-transient = false detect-transient = true -# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same -# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if +# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same +# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if # detect-transient is enabled, too. # # detect-client-leader = false detect-client-leader = true -# Resize damaged region by a specific number of pixels. -# A positive value enlarges it while a negative one shrinks it. -# If the value is positive, those additional pixels will not be actually painted -# to screen, only used in blur calculation, and such. (Due to technical limitations, -# with use-damage, those pixels will still be incorrectly painted to screen.) -# Primarily used to fix the line corruption issues of blur, -# in which case you should use the blur radius value here -# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`, -# with a 5x5 one you use `--resize-damage 2`, and so on). +# Resize damaged region by a specific number of pixels. +# A positive value enlarges it while a negative one shrinks it. +# If the value is positive, those additional pixels will not be actually painted +# to screen, only used in blur calculation, and such. (Due to technical limitations, +# with use-damage, those pixels will still be incorrectly painted to screen.) +# Primarily used to fix the line corruption issues of blur, +# in which case you should use the blur radius value here +# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`, +# with a 5x5 one you use `--resize-damage 2`, and so on). # May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly. # # resize-damage = 1 -# Specify a list of conditions of windows that should be painted with inverted color. +# Specify a list of conditions of windows that should be painted with inverted color. # Resource-hogging, and is not well tested. # # invert-color-include = [] -# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. -# Might cause incorrect opacity when rendering transparent content (but never -# practically happened) and may not work with blur-background. +# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. +# Might cause incorrect opacity when rendering transparent content (but never +# practically happened) and may not work with blur-background. # My tests show a 15% performance boost. Recommended. # # glx-no-stencil = false -# GLX backend: Avoid rebinding pixmap on window damage. -# Probably could improve performance on rapid window content changes, +# GLX backend: Avoid rebinding pixmap on window damage. +# Probably could improve performance on rapid window content changes, # but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.). # Recommended if it works. # # glx-no-rebind-pixmap = false -# Disable the use of damage information. +# Disable the use of damage information. # This cause the whole screen to be redrawn everytime, instead of the part of the screen # has actually changed. Potentially degrades the performance, but might fix some artifacts. # The opposing option is use-damage # # no-use-damage = false -#use-damage = true (Causing Weird Black semi opaque rectangles when terminal is opened) -#Changing use-damage to false fixes the problem -use-damage = false +use-damage = true -# Use X Sync fence to sync clients' draw calls, to make sure all draw -# calls are finished before picom starts drawing. Needed on nvidia-drivers +# Use X Sync fence to sync clients' draw calls, to make sure all draw +# calls are finished before picom starts drawing. Needed on nvidia-drivers # with GLX backend for some users. # -xrender-sync-fence = true +# xrender-sync-fence = false -# GLX backend: Use specified GLSL fragment shader for rendering window contents. -# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl` +# GLX backend: Use specified GLSL fragment shader for rendering window contents. +# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl` # in the source tree for examples. # # glx-fshader-win = '' -# Force all windows to be painted with blending. Useful if you +# Force all windows to be painted with blending. Useful if you # have a glx-fshader-win that could turn opaque pixels transparent. # # force-win-blend = false -# Do not use EWMH to detect fullscreen windows. +# Do not use EWMH to detect fullscreen windows. # Reverts to checking if a window is fullscreen based only on its size and coordinates. # # no-ewmh-fullscreen = false -# Dimming bright windows so their brightness doesn't exceed this set value. -# Brightness of a window is estimated by averaging all pixels in the window, -# so this could comes with a performance hit. +# Dimming bright windows so their brightness doesn't exceed this set value. +# Brightness of a window is estimated by averaging all pixels in the window, +# so this could comes with a performance hit. # Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0) # # max-brightness = 1.0 @@ -440,20 +373,20 @@ xrender-sync-fence = true # Set the log level. Possible values are: # "trace", "debug", "info", "warn", "error" -# in increasing level of importance. Case doesn't matter. -# If using the "TRACE" log level, it's better to log into a file +# in increasing level of importance. Case doesn't matter. +# If using the "TRACE" log level, it's better to log into a file # using *--log-file*, since it can generate a huge stream of logs. # # log-level = "debug" -log-level = "info"; +log-level = "warn"; # Set the log file. -# If *--log-file* is never specified, logs will be written to stderr. -# Otherwise, logs will to written to the given file, though some of the early -# logs might still be written to the stderr. +# If *--log-file* is never specified, logs will be written to stderr. +# Otherwise, logs will to written to the given file, though some of the early +# logs might still be written to the stderr. # When setting this option from the config file, it is recommended to use an absolute path. # -# log-file = '~/.picom.log' +# log-file = '/path/to/your/log/file' # Show all X errors (for debugging) # show-all-xerrors = false @@ -462,42 +395,70 @@ log-level = "info"; # write-pid-path = '/path/to/your/log/file' # Window type settings -# -# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard: -# "unknown", "desktop", "dock", "toolbar", "menu", "utility", -# "splash", "dialog", "normal", "dropdown_menu", "popup_menu", +# +# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard: +# "unknown", "desktop", "dock", "toolbar", "menu", "utility", +# "splash", "dialog", "normal", "dropdown_menu", "popup_menu", # "tooltip", "notification", "combo", and "dnd". -# +# # Following per window-type options are available: :: -# +# # fade, shadow::: # Controls window-type-specific shadow and fade settings. -# +# # opacity::: # Controls default opacity of the window type. -# +# # focus::: -# Controls whether the window of this type is to be always considered focused. +# Controls whether the window of this type is to be always considered focused. # (By default, all window types except "normal" and "dialog" has this on.) -# +# # full-shadow::: -# Controls whether shadow is drawn under the parts of the window that you -# normally won't be able to see. Useful when the window has parts of it +# Controls whether shadow is drawn under the parts of the window that you +# normally won't be able to see. Useful when the window has parts of it # transparent, and you want shadows in those areas. -# +# # redir-ignore::: -# Controls whether this type of windows should cause screen to become +# Controls whether this type of windows should cause screen to become # redirected again after been unredirected. If you have unredir-if-possible -# set, and doesn't want certain window to cause unnecessary screen redirection, +# set, and doesn't want certain window to cause unnecessary screen redirection, # you can set this to `true`. # + +#stop tearing on fullscreen windows +unredir-if-possible = false; + + wintypes: { - normal = { fade = false; shadow = false; } - tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; + tooltip = { fade = true; shadow = true; opacity = 0.95; focus = true; full-shadow = false; }; dock = { shadow = false; } dnd = { shadow = false; } - popup_menu = { opacity = 0.8; } - dropdown_menu = { opacity = 0.8; } + popup_menu = { opacity = 0.85; } + dropdown_menu = { opacity = 0.85; } }; +# ------------ +# ibhagwan + + +# corner-radius = 7; +corner-radius = 14; +# corner-radius = 15; +rounded-corners-exclude = [ + "class_g = 'Plasma'", + "class_g = 'plsama-desktop'", + "class_g = 'win7'", + "class_g = 'krunner'", + "class_g = 'plasmashell'", + # "class_g = 'Polybar'" +] + +blur: { + method = "dual_kawase"; + # method = "kawase"; + strength = 7; + background = false; + background-frame = false; + background-fixed = false; +} diff --git a/polybar-themes/sblocks/config.ini b/polybar-themes/sblocks/config.ini index cbc145e..b8101cf 100644 --- a/polybar-themes/sblocks/config.ini +++ b/polybar-themes/sblocks/config.ini @@ -62,7 +62,7 @@ fixed-center = true ; the percentage can optionally be extended with a pixel offset like so: ; 50%:-10, this will result in a width or height of 50% minus 10 pixels ; width = 95% -width = 99.2% +width = 99.4% ; height = 34 height = 40 @@ -71,7 +71,7 @@ height = 40 ; 50%:-10, this will result in an offset in the x or y direction ; of 50% minus 10 pixels ; offset-x = 2.5% -offset-x = 0.4% +offset-x = 0.3% offset-y = 0.38% ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) @@ -179,7 +179,8 @@ locale = en_US.UTF-8 ; center ; right ; none -tray-position = center +; tray-position = center +tray-position = none ; If true, the bar will not shift its ; contents when the tray changes diff --git a/rofi/config.rasi b/rofi/config.rasi new file mode 100644 index 0000000..fbdb788 --- /dev/null +++ b/rofi/config.rasi @@ -0,0 +1,202 @@ +configuration { + font: "Open Sans 12"; + show-icons: true; + icon-theme: "Fluent-Dark"; + display-drun: "Apps"; + drun-display-format: "{name}"; + dpi: 144; + markup: true; +} + + +* { + /* background: #24282f; */ + background: rgba(36, 40, 47, 0.50); + foreground: #bbc2cf; + black: #464b55; + red: #ff6c6b; + green: #98be65; + yellow: #ecbe7b; + blue: #51afef; + magenta: #c678dd; + cyan: #46d9ff; + white: #bbc2cf; + selected: #82aaff; + + spacing: 2; + background-color: var(background); + + normal-background: var(background); + normal-foreground: var(foreground); + alternate-normal-background: var(background); + alternate-normal-foreground: var(foreground); + selected-normal-background: var(foreground); + selected-normal-foreground: var(background); + + active-background: var(background); + active-foreground: var(blue); + alternate-active-background: var(background); + alternate-active-foreground: var(blue); + selected-active-background: var(blue); + selected-active-foreground: var(magenta); + + urgent-background: var(background); + urgent-foreground: var(red); + alternate-urgent-background: var(background); + alternate-urgent-foreground: var(red); + selected-urgent-background: var(background); + selected-urgent-foreground: var(background); +} +element { + padding: 4px 0px 4px 7px; + spacing: 5px; + border: 0; + cursor: pointer; + margin: 1px 0px; + border-radius: 6px; +} +element normal.normal { + background-color: var(normal-background); + text-color: var(normal-foreground); + background-color: transparent; +} +element normal.urgent { + background-color: var(urgent-background); + text-color: var(urgent-foreground); +} +element normal.active { + background-color: var(active-background); + text-color: var(active-foreground); +} +element selected.normal { + text-color: var(black); + background-color: rgba(81, 175, 239, 0.69); +} +element selected.urgent { + background-color: var(selected-urgent-background); + text-color: var(selected-urgent-foreground); +} +element selected.active { + background-color: var(cyan); + text-color: var(black); +} +element alternate.normal { + background-color: var(alternate-normal-background); + text-color: var(alternate-normal-foreground); + background-color: transparent; +} +element alternate.urgent { + background-color: var(alternate-urgent-background); + text-color: var(alternate-urgent-foreground); +} +element alternate.active { + background-color: var(alternate-active-background); + text-color: var(alternate-active-foreground); +} +element-text { + background-color: rgba(0, 0, 0, 0%); + text-color: inherit; + highlight: inherit; + cursor: inherit; + margin: 0.75%; +} +element-icon { + background-color: rgba(0, 0, 0, 0%); + size: 1.75em; + text-color: inherit; + cursor: inherit; +} +window { + padding: 0; + border: 0; + background-color: var(background); + border-radius: 12px; + /* fullscreen: true; */ + /* width: 85%; */ + /* height: 75%; */ + width: 90%; + height: 85%; + anchor: center; + location: center; +} +mainbox { + padding: 0; + border: 0; +} +message { + margin: 0px 0px 7px 15px; + border: 0; +} +textbox { + border: 0; + text-color: var(foreground); + margin: 0; +} +listview { + margin: 0px 5px 2px 5px; + scrollbar: true; + spacing: 2px; + fixed-height: 0; + columns: 4; + border: 0; +} +scrollbar { + padding: 0; + handle-width: 14px; + border: 0; + handle-color: var(selected); +} +button { + spacing: 0; + text-color: var(normal-foreground); + cursor: pointer; +} +button selected { + background-color: var(selected-normal-background); + text-color: var(selected-normal-foreground); +} + +entry { + spacing: 0; + cursor: text; + text-color: var(normal-foreground); + background-color: var(black); +} + +inputbar { + padding: 7px; + margin: 7px; + spacing: 0; + text-color: var(normal-foreground); + children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; + background-color: transparent; +} + +case-indicator { + spacing: 0; + text-color: var(yellow); + margin: 0 0 0 0.5%; +} + +entry { + padding: 4px 8px; + spacing: 0; + text-color: var(blue); + border-radius: 6px; +} + +prompt { + spacing: 0; + text-color: var(magenta); + padding: 4px 0px; + background-color: transparent; +} + +textbox-prompt-colon { + expand: false; + str: ":"; + margin: 0px 0.3em 0em 0em ; + text-color: var(magenta); + padding: 4px 0px; + background-color: transparent; +} diff --git a/screenshots/app_launcher.png b/screenshots/app_launcher.png new file mode 100644 index 0000000..5db7e79 Binary files /dev/null and b/screenshots/app_launcher.png differ diff --git a/screenshots/home1.png b/screenshots/home1.png deleted file mode 100644 index 45f5295..0000000 Binary files a/screenshots/home1.png and /dev/null differ diff --git a/screenshots/home2.png b/screenshots/home2.png deleted file mode 100644 index f51a128..0000000 Binary files a/screenshots/home2.png and /dev/null differ diff --git a/screenshots/rice.png b/screenshots/rice.png new file mode 100644 index 0000000..6271d0a Binary files /dev/null and b/screenshots/rice.png differ