Posts

kde maximize window no title

  Edit the file ~/.config/kwinrc to add the line: BorderlessMaximizedWindows = true    or under the [Windows] section, so that it looks something like this: [ Windows ]   BorderlessMaximizedWindows = true       kwin -- replace   or    kwin_x11 -- replace kwin_wayland -- replace      

nvim config bak

 set number call plug#begin('~/.vim/plugged') Plug 'dracula/vim' Plug 'scrooloose/nerdtree' Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'ryanoasis/vim-devicons' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'neoclide/coc.nvim', {'branch': 'release'} let g:coc_global_extensions = ['coc-emmet', 'coc-css', 'coc-html', 'coc-json', 'coc-prettier', 'coc-tsserver'] call plug#end()  if (has("termguicolors"))      set termguicolors  endif  syntax enable  colorscheme dracula    let g:NERDTreeShowHidden = 1  let g:NERDTreeMinimalUI = 1  let g:NERDTreeIgnore = []  let g:NERDTreeStatusline = ''  let g:NERDTreeGitStatusIndicatorMapCustom = {                     \ 'Modified'  :'✹',                 \ 'Staged'    :'✚',                 \ 'Untracked&

i3-msg syntax

 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar', 'gaps' --------------------------------------------------- move::  'window', 'container', 'to', '--no-auto-back-and-forth', 'workspace', 'output', 'mark', 'scratchpad', 'left', 'right', 'up', 'down', 'position', 'absolute' exec::  '--no-startup-id', <string> exit:: close i3 restart:: restart i3 reload:: reload config file shmlog:: string=log size debuglo

polybar menu guide

it use like arrays :: ' ; If true, <label-toggle> will be to the left of the menu items (default). ; If false, it will be on the right of all the items "menu-LEVEL-N" has the same properties as "label-NAME" with ; the additional "exec" property ; Commands will be executed using "/bin/sh -c $COMMAND" ; Available tags: ; <label-toggle> (default) - gets replaced with <label-(open|close)> ; <menu> (default) ; If expand-right is true, the default will be "<label-toggle><menu>" and the ; other way around otherwise. ; Note that if you use <label-toggle> you must also include ; the definition for <label-open> ; format = <label-toggle><menu>     first menu starts with 0 ::    [module/menxx] type = custom/menu expand-right = true label-open =shortcut label-close = close --------------------------------------------------------------- syntax menu-LEVEL-N #defin

rofi-bluetooth control

dependencies sudo pacman -S rofi bluez-utils sudo systemctl enable bluetooth  https://raw.githubusercontent.com/nickclyde/rofi-bluetooth/master/rofi-bluetooth   polybar config [module/bluetooth] type = custom/script exec = rofi-bluetooth --status interval = 1 click-left = rofi-bluetooth &    i3 config bindsym $mod+b exec --no-startup-id rofi-bluetooth        

windows copy file on same vs diff partition

 et's compare to the two operations. First, copying a file from one partition to another: The source is opened. The destination is opened/created. Space is allocated for the destination. Every byte of file data is read from the source and written to the destination. The destination file is closed. The source file handle is set to unlink on close. The source file handle is closed, unlinking the file. Since that is (typically) the last reference to the source file data, the source file data has to be made free. Now, copying a file from one folder to another on the same partition. The source is opened. A new hard link is created to the source file in the destination directory. The handle to the source file is set to unlink on close. The source handle is closed, unlinking it. The source file is still linked to the destination directory, so no free space needs to be changed.   https://superuser.com/questions/424650/why-copying-files-in-one-partition-is-much-faster-than-copying-fi

pactl

 pactl list sinks short | cut -f2 pactl list sources short | cut -f2 pactl list | grep -A2 'Source #' | grep 'Name: .*\.monitor$' | cut -d" " -f2