From e24c24ef981a70b5d26afbf1b2c024cdbe693e73 Mon Sep 17 00:00:00 2001 From: mitsuo Date: Wed, 26 Feb 2020 15:27:44 -0600 Subject: added vimfun, newdebian. --- newdebian | 188 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ slinks | 13 +++++ vimfun | 22 ++++++++ vimrc | 43 +++++++------- 4 files changed, 246 insertions(+), 20 deletions(-) create mode 100644 newdebian create mode 100644 slinks create mode 100644 vimfun diff --git a/newdebian b/newdebian new file mode 100644 index 0000000..a9a7d6d --- /dev/null +++ b/newdebian @@ -0,0 +1,188 @@ +Commands and configuration description of my Debian - Plasma KDE 5 +configuration + +# Software + +apt install ghostscript gnupg screenfetch neofetch vlc pdftk htop gparted R mutt zathura calibre clementine audacity zsnes mpv qbittorrent virtualbox npm ncmpcpp git feh rename pandoc + + +## Manual install + +MullvadVPN netbeans Steam Spotify + + +# KDE Plasma 5 configuration + +Appearance: + Workspace Theme: + L&F: Breeze Dark + DT: Sweet + Cursor Theme: Breeze + Colors: Breeze + Fonts: + Fixed width: SF Mono 10 + Icons: Breeze Dark + Application Style: + Widget style: QtCurve + settings file: qtcurvesettings.qtcurve + Window Decoration: + Breeze: + Don't allow resize on maximazed windows. + Window borders: tiny. +Workspace: + Desktop Behaviour: + Workspace: Double-click to open files and folders + Screen Edges: No. + Screen Locking: + No automatick screen lock. + Wallpaper: spongebob little cockroach eating krabbypatty, Scaled. + Virtual Desktops: 2, 1 row. + Activities: Default and Leisure + Window Management: + Window Behaviour: + Titlebar Action: + Wheel event: Keep Above/Below # TODO make it only toggle + # between keep above + Task Switcher: + Visualization: MediumRounded + KWin Scripts: + Enforces Window Decoration on GTK+ window + MinimizeAll (Meta+D) + Shortcuts: + Global: + Launch Dolphin Meta+E + Launch Firefox Meta+W + Launch GoldenDict Meta+G + Launch KCalc Meta+C + Launch Konsole Meta+ + Launch Thunderbird Meta+M + + Take Active Win SS Meta+Print + Take Full SS Shift+Print + Take Rect. Reg. SS Meta+Shift+Print + + Run command Alt+Space + Web: (shortcut:"search string" in Run command) + Amazon amz + RAE rae + Github gh + Gitlab gt + Google gg + Google Maps ggm + MetaCrawler mc + Python Ref py + Qt4 Doc qt4 + Vimeo vm + Wikia wikia + Wikipedia wp + Youtube yt + Startup and Shutdown: + Login Screen: + Theme: Debian Maui + Wallpaper: Black Pearl Nandita + Autostart: dropboxd # I think this one is configured + # automatically +Personalization: + Regional Setings: + Language: en_US + Formats: en_CA + Applications: + Default Applications: + Email Thunder + File Manager Dolphin + Terminal Emu Konsole + Web Browser Firefox + File Associations: + Text Vim + Image feh + Video mpv + Audio mpv + pdf zathura + Location for Personal Files: + Movies: /home/mitsuo/media/Videos + Pictures: /home/mitsuo/media/Pictures + Music: /home/mitsuo/media/Music +Network: + Bluetooth: + Disable +Hardware: + Input Devices: + Keyboard: + NumLock on Plasma Startup: Turn on + Show layout indicator + Make Caps Lock an additional Esc + Switch to another layout with Win+Space + Mouse Controls: + Pointer speed: 4.5 + Acceleration: flat + Touchpad: + Edge scrolling: no + Two-finger scrolling: yes + Reverse scrolling: no + Power Management: + Energy Saving: + On AC Power: + Dim screen: OFF + Switch off screen after 5 min + Suspend session: NO + Button events: + When lid closed: Do nothing + When power button pressed: Prompt log out dialog + On Battery: + Dim screen: OFF + Switch off screen after 5 min + Suspend session: 10 min + Button events: + When lid closed: Do nothing + When power button pressed: Prompt log out dialog + On Low Battery: + Screen brightness: low + Dim screen: OFF + Switch off screen after 5 min + Suspend session: 10 min + Button events: + When lid closed: Suspend, even when an external monitor is + connected + When power button pressed: Prompt log out dialog + Advanced Setting: + Low level: 10% + Critical level: 3% + At critical level: Hibernate + Pause media players when suspending: ON + Removable Storage: + Removable Devices: + Enable automatic mounting of removable media: OFF + +## Widgets configuration + +Application Menu: + Behaviour: + Icon: Stardewvalley chicken + Show application as: Name only + Categories: + Show: Recently used + Show recent applications + Show recent documents + Search: + Expand search to bookmarks, files and emails + Align search results to bottom # what does this do? + +Task Manager: + Position: + Bottom, autohide, 30 px heigh + Widgets: + Quicklaunch: Dolphin, Vim, Konsole, Netbeans, Thunderbird, Clementine, + Spotify + System Tray + Battery + Media Controls + Clipboard + Clock: + Appearance: + Show date + Show seconds + Use 24-hour Clock + ISO Date + Calendar: + Show week numbers in Calendar + Show desktop button diff --git a/slinks b/slinks new file mode 100644 index 0000000..600d331 --- /dev/null +++ b/slinks @@ -0,0 +1,13 @@ +# TODO make this an actual script, for now it only contains some slink commands +# and other shit maybe. + +# Config files symbolic links names and targets (aka soft links, these link the +# paths; hard links link the inode) + +makedir ~/.vim/ + +ln -s -T ~/.dotfiles/.bash_aliases ~/.bash_aliases +ln -s -T ~/.dotfiles/.bashrc ~/.bashrc +ln -s -T ~/.dotfiles/.inputrc ~/.inputrc # allow Vim mode in bash +ln -s -T ~/.dotfiles/vimrc ~/.vim/vimrc +ln -s -T ~/.dotfiles/vimfun ~/.vim/vimfun diff --git a/vimfun b/vimfun new file mode 100644 index 0000000..155deca --- /dev/null +++ b/vimfun @@ -0,0 +1,22 @@ +" Echoes longest line number and lenght. + +function! LongestLineLength ( ) + let maxlength = 0 + let linenumber = 1 + while linenumber <= line("$") + exe ":".linenumber + let linelength = virtcol("$") + if maxlength < linelength + let maxlength = linelength + let maxlinenumber = linenumber + endif + let linenumber = linenumber+1 + endwhile + +" exe ':0' +" exe 'normal O' +" exe 'normal 0C'.maxlength + exe ":echo \"".maxlinenumber.": ".maxlength."\"" +endfunction + +command LongestLineLength call LongestLineLength() diff --git a/vimrc b/vimrc index 05bfd90..569cd36 100644 --- a/vimrc +++ b/vimrc @@ -1,15 +1,14 @@ " mitsuo's vimrc " Created c. 2019-11-11 " -" ┌─┬─┬─┬─┬─┬─┐ -" │m│i│t│s│u│o│✓x -" ├─┼─┼─┼─┼─┼─┤ -" │v│i│m│r│c│←│█▓▒░ -" └─┴─┴─┴─┴─┴─┘ -" がんばれ +" ┌─┬─┬─┬─┬─┬─┐ +" │m│i│t│s│u│o│✓x が +" ├─┼─┼─┼─┼─┼─┤ ん +" │v│i│m│r│c│←│█▓▒░ ば +" └─┴─┴─┴─┴─┴─┘ れ " Shit that gets disabled because I created this file -" =================================================== +" ---------------------------------------------------------------------- set nocompatible " Auto-recognize files and apply pluggins " filetype plugin indent on @@ -19,16 +18,16 @@ set showcmd set scrolloff=5 " show a few lines of context " Options that aren't default in some systems -" =========================================== +" ---------------------------------------------------------------------- set backspace=indent,eol,start " Number gutter -" ============= +" ---------------------------------------------------------------------- set nonumber set norelativenumber " Search -" ====== +" ---------------------------------------------------------------------- set hlsearch set incsearch " Redraw and turn off search highlight in normal mode (non recursive) @@ -37,7 +36,7 @@ set ignorecase set smartcase " Indentation -" =========== +" ---------------------------------------------------------------------- " softtabs de 4 columnas " TODO mapping to switch from softtabs to actual tabs by reseting expandtab and " softtabstop @@ -52,7 +51,7 @@ set smartindent " This is a really nice and simple one "set cinoptions=:0,g0 " See C-indenting " Automatic formatting -" ==================== +" ---------------------------------------------------------------------- " see fo-table set formatoptions=rql set formatoptions-=o " Automatically insert the current comment leader @@ -67,7 +66,7 @@ set formatoptions+=n " Allow lists set formatoptions+=j " Removes comment leader when joining lines " Word wrap -" ========= +" ---------------------------------------------------------------------- set wrap set linebreak " To 'justify' comments or block of text (paragraph) use "gq{motion}" or @@ -75,7 +74,7 @@ set linebreak set textwidth=80 " Other settings -" ============== +" ---------------------------------------------------------------------- set mouse=a " set cmdheight=1 " Always display the status line, even if only one window is displayed @@ -84,27 +83,27 @@ set ruler set encoding=utf-8 " Mappings -" ======== +" ---------------------------------------------------------------------- map :tabp map :tabn " TODO: Funcking unmap the F1 key "unmap " Yanking and pasting -" =================== +" ---------------------------------------------------------------------- " TODO: map something to "+y (cut buffer) and "*y (selection buffer) while in " visual mode. "vmap <++> "+y " The yank to the cut buffer (clipboard) "vmap <++> "*y " The yank to the selection buffer " Buffers -" ======= +" ---------------------------------------------------------------------- set hidden map :bNext map :bnext " Printing -" ======== +" ---------------------------------------------------------------------- set printoptions=paper:A4,duplex:long " set printoptions+=number:y " TODO: Figure out how to print multibyte encodings. Enabling this settings @@ -113,8 +112,12 @@ set printoptions=paper:A4,duplex:long " set printmbcharset=JIS_X_1990 " This allows Japanese characters to be printed " set printmbfont=r:Noto-Sans-CJK-JP +" Functions +" ---------------------------------------------------------------------- +source vimfun + " Additions -" ========= +" ---------------------------------------------------------------------- " TODO: Funcion para reindentar archivo con mi configuracion. Esta funcion de " vim.fandom.com no se como funciona. (Ver perlexpr?) ":command! -nargs=1 -range SuperRetab ,s/\v%(^ *)@<= {}/\t/g @@ -127,6 +130,6 @@ set printoptions=paper:A4,duplex:long inoremap diWi=" " iVim -" ==== +" ---------------------------------------------------------------------- " TODO: map :h _argument_ to :h _argument_ L_ This makes help window " to almost fill the super small screen. -- cgit v1.2.3