]> git.phdru.name Git - dotfiles.git/log
dotfiles.git
2 years ago.fvwmrc: Enlarge fonts for Qt-based `audacious`
Oleg Broytman [Wed, 29 Sep 2021 14:02:00 +0000 (17:02 +0300)]
.fvwmrc: Enlarge fonts for Qt-based `audacious`

2 years ago.fvwmrc: Remove dead code
Oleg Broytman [Mon, 30 Aug 2021 13:07:50 +0000 (16:07 +0300)]
.fvwmrc: Remove dead code

I used to have a separate terminal with root logged in
but now I use `sudo` instead.

2 years ago.fvwmrc: Add a menu to open a terminal with SSH with SOCKS5 proxy
Oleg Broytman [Sun, 8 Aug 2021 16:39:46 +0000 (19:39 +0300)]
.fvwmrc: Add a menu to open a terminal with SSH with SOCKS5 proxy

2 years ago.fvwmrc: Run Firefox with a fixed profile
Oleg Broytman [Sun, 1 Aug 2021 00:21:48 +0000 (03:21 +0300)]
.fvwmrc: Run Firefox with a fixed profile

2 years ago.profile: Adapt to newer `pyenv`
Oleg Broytman [Wed, 7 Jul 2021 09:06:23 +0000 (12:06 +0300)]
.profile: Adapt to newer `pyenv`

2 years ago.mc: Treat `*.m3u8` as playlists
Oleg Broytman [Thu, 1 Jul 2021 17:17:13 +0000 (20:17 +0300)]
.mc: Treat `*.m3u8` as playlists

2 years ago.mc/menu: View pdf with `qpdfview`
Oleg Broytman [Thu, 10 Jun 2021 16:43:08 +0000 (19:43 +0300)]
.mc/menu: View pdf with `qpdfview`

I use non-UTF8 (KOI8-R) locale but `qpdfview` no longer opens non-UTF8 paths.
The menu item opens the file directly using `qpdfview`
if the full path is UTF8-encoded. If not the code creates ASCII-only symlink
in `~/home/tmp/` that encodes the full path in its name to make `qpdfview`
store session info for the file.

2 years agoFeat(bash_prompt): Show current time
Oleg Broytman [Sun, 30 May 2021 11:30:46 +0000 (14:30 +0300)]
Feat(bash_prompt): Show current time

2 years ago.fvwm: Switch desktop
Oleg Broytman [Sat, 29 May 2021 09:15:01 +0000 (12:15 +0300)]
.fvwm: Switch desktop

2 years ago.screenrc: Fix and improve comments
Oleg Broytman [Thu, 27 May 2021 02:26:55 +0000 (05:26 +0300)]
.screenrc: Fix and improve comments

2 years ago.bashrc: Set `LANG=C` in non-interactive non-login-shells
Oleg Broytman [Wed, 26 May 2021 23:34:18 +0000 (02:34 +0300)]
.bashrc: Set `LANG=C` in non-interactive non-login-shells

Make `ssh host date` to display in 24-hour format.

2 years agoFix(bin/xtitle): Use `$(hostname)` instead of `${HOSTNAME}`
Oleg Broytman [Tue, 25 May 2021 23:19:32 +0000 (02:19 +0300)]
Fix(bin/xtitle): Use `$(hostname)` instead of `${HOSTNAME}`

`${HOSTNAME}` is a bashism.

2 years ago.fvwm: Open SOCKS5 proxy from a different command
Oleg Broytman [Sat, 22 May 2021 01:56:50 +0000 (04:56 +0300)]
.fvwm: Open SOCKS5 proxy from a different command

2 years ago.fvwm: Open 3 terminals to my regular hosts
Oleg Broytman [Sat, 22 May 2021 01:46:59 +0000 (04:46 +0300)]
.fvwm: Open 3 terminals to my regular hosts

2 years ago.bashrc: Copy minor initialization from `.profile`
Oleg Broytman [Sat, 1 May 2021 20:27:31 +0000 (23:27 +0300)]
.bashrc: Copy minor initialization from `.profile`

3 years agoFeat(bash_prompt): Set default value for `$COLUMNS` to 80
Oleg Broytman [Tue, 27 Apr 2021 05:42:08 +0000 (08:42 +0300)]
Feat(bash_prompt): Set default value for `$COLUMNS` to 80

3 years agoRefactor(xtitle): Reuse `$TITLE`
Oleg Broytman [Mon, 26 Apr 2021 16:28:44 +0000 (19:28 +0300)]
Refactor(xtitle): Reuse `$TITLE`

3 years agoRefactor(bash_prompt): Reuse `$PS1`
Oleg Broytman [Mon, 26 Apr 2021 16:18:59 +0000 (19:18 +0300)]
Refactor(bash_prompt): Reuse `$PS1`

3 years agoFeat(bash_prompt): Cut dirs to 20% of the term width
Oleg Broytman [Mon, 26 Apr 2021 15:17:12 +0000 (18:17 +0300)]
Feat(bash_prompt): Cut dirs to 20% of the term width

3 years agoRefactor(.bashrc,.shellrc): Move unalias closer to the function
Oleg Broytman [Mon, 26 Apr 2021 09:01:14 +0000 (12:01 +0300)]
Refactor(.bashrc,.shellrc): Move unalias closer to the function

3 years agoRefactor(bash_prompt): Put `\[`/`\]` once
Oleg Broytman [Mon, 26 Apr 2021 00:10:46 +0000 (03:10 +0300)]
Refactor(bash_prompt): Put `\[`/`\]` once

3 years agoRefactor(.shellrc): Remove `$OPS1`, only use `$PS1`
Oleg Broytman [Mon, 26 Apr 2021 00:09:36 +0000 (03:09 +0300)]
Refactor(.shellrc): Remove `$OPS1`, only use `$PS1`

3 years agoRefactor(.shellrc): Test for `mc` down the stack
Oleg Broytman [Sun, 25 Apr 2021 22:59:11 +0000 (01:59 +0300)]
Refactor(.shellrc): Test for `mc` down the stack

Midnight Commander prevents setting screen/tmux caption.

3 years agoFix(bash_prompt): Fix xterm title/icon under `screen`
Oleg Broytman [Sun, 25 Apr 2021 22:34:24 +0000 (01:34 +0300)]
Fix(bash_prompt): Fix xterm title/icon under `screen`

3 years agoFeat(bash_prompt): Improve `PS1` generation
Oleg Broytman [Sun, 25 Apr 2021 22:03:45 +0000 (01:03 +0300)]
Feat(bash_prompt): Improve `PS1` generation

Refactor the common part (`_COMMON_PROMPT`).
Use apostrophes instead of double quotes.

3 years agoFix(xtitle): Set xterm title/icon under screen/tmux
Oleg Broytman [Sun, 25 Apr 2021 21:13:48 +0000 (00:13 +0300)]
Fix(xtitle): Set xterm title/icon under screen/tmux

Requires `ESC P...ESC \\` pass-through escape codes.

3 years ago.bashrc,.profile,.shellrc: Move bash-only code to `.bashrc`
Oleg Broytman [Sun, 25 Apr 2021 15:01:35 +0000 (18:01 +0300)]
.bashrc,.profile,.shellrc: Move bash-only code to `.bashrc`

3 years ago.shellrc: Lazily load `pip` completion
Oleg Broytman [Fri, 2 Apr 2021 09:48:33 +0000 (12:48 +0300)]
.shellrc: Lazily load `pip` completion

3 years ago.muttrc: View the 1st html attachment from index or pager
Oleg Broytman [Wed, 31 Mar 2021 17:19:42 +0000 (20:19 +0300)]
.muttrc: View the 1st html attachment from index or pager

3 years ago.shellrc: Delegate with option `nospace`
Oleg Broytman [Fri, 26 Mar 2021 15:15:10 +0000 (18:15 +0300)]
.shellrc: Delegate with option `nospace`

3 years ago.mc/menu: Edit images with `gimp`
Oleg Broytman [Thu, 11 Feb 2021 17:23:24 +0000 (20:23 +0300)]
.mc/menu: Edit images with `gimp`

3 years ago.mc/mc.ext: Use `cat` with `%view{ascii}`
Oleg Broytman [Thu, 11 Feb 2021 11:55:25 +0000 (14:55 +0300)]
.mc/mc.ext: Use `cat` with `%view{ascii}`

3 years ago.shellrc: Delegate rsync completion for `rsync_cgmn_recode2`
Oleg Broytman [Sat, 6 Feb 2021 00:16:44 +0000 (03:16 +0300)]
.shellrc: Delegate rsync completion for `rsync_cgmn_recode2`

3 years agoRevert ".shellrc: Avoid excessive spaces on completion"
Oleg Broytman [Sun, 31 Jan 2021 19:31:47 +0000 (22:31 +0300)]
Revert ".shellrc: Avoid excessive spaces on completion"

This reverts commit e158ad17f8a02a7fb77cba0caffd90bd83213b21.

Most of the time I need a space.
In rare cases when it's excessive
I can simply remove it with backspace.

3 years agoFeat(.mc/menu): Identify TIFF/WEBP images
Oleg Broytman [Sat, 30 Jan 2021 19:52:16 +0000 (22:52 +0300)]
Feat(.mc/menu): Identify TIFF/WEBP images

Use `identify` from ImageMagick.
`xli` doesn't understand these types of images.

3 years agoFix(.mc/menu): Left random playlist in the current directory
Oleg Broytman [Sat, 30 Jan 2021 19:51:03 +0000 (22:51 +0300)]
Fix(.mc/menu): Left random playlist in the current directory

Files in playlists have relative paths.

3 years ago.shellrc: Delegate python completion
Oleg Broytman [Wed, 20 Jan 2021 17:15:23 +0000 (20:15 +0300)]
.shellrc: Delegate python completion

3 years agoFeat(bash-prompt): Switch back to `prompt_git`
Oleg Broytman [Wed, 20 Jan 2021 17:14:48 +0000 (20:14 +0300)]
Feat(bash-prompt): Switch back to `prompt_git`

See commit:90cf992.

3 years ago.fvwmrc: Run `Skype` from `FvwmButtons`
Oleg Broytman [Wed, 30 Dec 2020 22:47:48 +0000 (01:47 +0300)]
.fvwmrc: Run `Skype` from `FvwmButtons`

Remove a button for `pavucontrol`.

3 years agobash_prompt: minor refactoring
Oleg Broytman [Mon, 28 Dec 2020 13:18:42 +0000 (16:18 +0300)]
bash_prompt: minor refactoring

Remove external `if`.

3 years ago.fvwm: (Re)start `pulseaudio`
Oleg Broytman [Fri, 18 Dec 2020 15:58:52 +0000 (18:58 +0300)]
.fvwm: (Re)start `pulseaudio`

3 years ago.fvwm: Reorder suspend commands
Oleg Broytman [Thu, 17 Dec 2020 23:05:06 +0000 (02:05 +0300)]
.fvwm: Reorder suspend commands

3 years agoFix(bash_prompt): Get upstream using old version of `git`
Oleg Broytman [Mon, 14 Dec 2020 21:14:35 +0000 (00:14 +0300)]
Fix(bash_prompt): Get upstream using old version of `git`

3 years agobash_prompt: Show -behind/+ahead counters
Oleg Broytman [Mon, 14 Dec 2020 21:02:15 +0000 (00:02 +0300)]
bash_prompt: Show -behind/+ahead counters

3 years ago.fvwm: Run Skype
Oleg Broytman [Sat, 28 Nov 2020 10:48:12 +0000 (13:48 +0300)]
.fvwm: Run Skype

3 years ago.fvwm: Remove most utilities from menu
Oleg Broytman [Sat, 28 Nov 2020 10:45:24 +0000 (13:45 +0300)]
.fvwm: Remove most utilities from menu

3 years ago.fvwm/main.m4: Ignore urgency for `Skype`
Oleg Broytman [Thu, 12 Nov 2020 12:46:32 +0000 (15:46 +0300)]
.fvwm/main.m4: Ignore urgency for `Skype`

3 years agoFix(.mc/mc.ext): Fix ascii view
Oleg Broytman [Mon, 9 Nov 2020 17:32:59 +0000 (20:32 +0300)]
Fix(.mc/mc.ext): Fix ascii view

After `%view{ascii}` there must a command producing text output,
not a file name; default is to just view the file.

3 years ago.mc/menu: Put tmp file into `/tmp/`
Oleg Broytman [Mon, 9 Nov 2020 17:32:10 +0000 (20:32 +0300)]
.mc/menu: Put tmp file into `/tmp/`

3 years ago.mc: Load songs from a playlist one by one
Oleg Broytman [Mon, 9 Nov 2020 14:43:56 +0000 (17:43 +0300)]
.mc: Load songs from a playlist one by one

Work around problems with filesystem encodings.

3 years ago.gitconfig: Add alias `mr`
Oleg Broytman [Mon, 26 Oct 2020 14:08:36 +0000 (17:08 +0300)]
.gitconfig: Add alias `mr`

`Gitlab` calls "pull requests" "merge requests"
and have different URLs for them.

3 years ago.fvwm: Add menu `OSMenu`
Oleg Broytman [Sun, 20 Sep 2020 23:16:15 +0000 (02:16 +0300)]
.fvwm: Add menu `OSMenu`

Add user mode suspend commands.

3 years ago.fvwm: Change menu `Utilities`
Oleg Broytman [Sun, 20 Sep 2020 23:10:36 +0000 (02:10 +0300)]
.fvwm: Change menu `Utilities`

Replace `qPDFview` with `evince`. Remove `gajim`. Uncomment `xcalc`.

3 years agoFeat(bash-prompt): Switch back to `prompt_git`
Oleg Broytman [Sat, 29 Aug 2020 12:44:48 +0000 (15:44 +0300)]
Feat(bash-prompt): Switch back to `prompt_git`

The problem with `__git_ps1` is it touches submodules;
that bad for backup.

3 years agoFeat(bash-prompt): Remove `[]`
Oleg Broytman [Sat, 29 Aug 2020 12:38:48 +0000 (15:38 +0300)]
Feat(bash-prompt): Remove `[]`

Shorten prompt and make it more similar to `__git_ps1`.

3 years agoFeat(bash-prompt): Reorder signs: `*+$%`
Oleg Broytman [Fri, 28 Aug 2020 23:30:14 +0000 (02:30 +0300)]
Feat(bash-prompt): Reorder signs: `*+$%`

Order signs the same way `__git_ps1` does.

3 years ago.fvwm: Run `screen` with full path
Oleg Broytman [Thu, 27 Aug 2020 01:58:34 +0000 (04:58 +0300)]
.fvwm: Run `screen` with full path

This is to work around a minor problem in my wrapper `bin/screen`.
Anyway my wrapper is meaningless for a situation
where the terminal is closed after `screen` exits.

3 years agobin/screen: Return exit code of `screen`, not `test`/`tput`
Oleg Broytman [Thu, 27 Aug 2020 02:01:10 +0000 (05:01 +0300)]
bin/screen: Return exit code of `screen`, not `test`/`tput`

3 years ago.shellrc: Allow to path arguments to `include`
Oleg Broytman [Thu, 27 Aug 2020 00:14:58 +0000 (03:14 +0300)]
.shellrc: Allow to path arguments to `include`

3 years agoRefactor(.shellrc)
Oleg Broytman [Thu, 27 Aug 2020 00:14:35 +0000 (03:14 +0300)]
Refactor(.shellrc)

3 years ago.shellrc: Renamed `run-all-hosts` -> `run-hosts`
Oleg Broytman [Thu, 27 Aug 2020 00:13:47 +0000 (03:13 +0300)]
.shellrc: Renamed `run-all-hosts` -> `run-hosts`

3 years ago.profile: Add a space after the simple `$PS1` prompt
Oleg Broytman [Mon, 24 Aug 2020 20:03:54 +0000 (23:03 +0300)]
.profile: Add a space after the simple `$PS1` prompt

3 years ago.profile: Add `$SHLVL` to simple `$PS1` prompt
Oleg Broytman [Mon, 24 Aug 2020 20:02:49 +0000 (23:02 +0300)]
.profile: Add `$SHLVL` to simple `$PS1` prompt

3 years ago.mc/menu: Remove `cgmem_nice`
Oleg Broytman [Fri, 21 Aug 2020 07:07:36 +0000 (10:07 +0300)]
.mc/menu: Remove `cgmem_nice`

3 years agoFeat(screen): Use `shelltitle` trick in `.screenrc`
Oleg Broytman [Fri, 21 Aug 2020 00:37:32 +0000 (03:37 +0300)]
Feat(screen): Use `shelltitle` trick in `.screenrc`

This was an experiment that only partially succeed:
In the simplest case `screen` changes the caption
to the name of the current program; but it doesn't see programs
that run deeper like programs started under `mc` or `vim`.

3 years agoFeat(bin/screen-defsession): Pass arguments
Oleg Broytman [Thu, 20 Aug 2020 23:11:49 +0000 (02:11 +0300)]
Feat(bin/screen-defsession): Pass arguments

3 years agoFix bash completion for OpenVPN
Oleg Broytman [Wed, 12 Aug 2020 07:18:59 +0000 (10:18 +0300)]
Fix bash completion for OpenVPN

3 years ago.shellrc: Update completion
Oleg Broytman [Tue, 11 Aug 2020 10:25:25 +0000 (13:25 +0300)]
.shellrc: Update completion

3 years ago.shellrc: Use `__git_ps1` if available
Oleg Broytman [Thu, 6 Aug 2020 21:32:15 +0000 (00:32 +0300)]
.shellrc: Use `__git_ps1` if available

And configure it to my taste.

3 years agobash_prompt: Test if `git` exists
Oleg Broytman [Fri, 31 Jul 2020 07:42:00 +0000 (10:42 +0300)]
bash_prompt: Test if `git` exists

3 years ago.muttrc: Fix macros
Oleg Broytman [Tue, 28 Jul 2020 06:11:44 +0000 (09:11 +0300)]
.muttrc: Fix macros

Still don't work with keypad arrows
but at least don't require to double 'x'es.

3 years agobash_prompt: Use the same symbols as `git-prompt.sh`
Oleg Broytman [Wed, 22 Jul 2020 23:04:56 +0000 (02:04 +0300)]
bash_prompt: Use the same symbols as `git-prompt.sh`

3 years ago.fvwm: Improve remote shells menus
Oleg Broytman [Wed, 22 Jul 2020 23:04:04 +0000 (02:04 +0300)]
.fvwm: Improve remote shells menus

3 years agoRefactor(.shellrc): Return early from `delegate_completion`
Oleg Broytman [Mon, 20 Jul 2020 07:46:05 +0000 (10:46 +0300)]
Refactor(.shellrc): Return early from  `delegate_completion`

Save one indent level.

3 years ago.shellrc: Check completion for `bg`, `fg`, `jobs` and `unset`
Oleg Broytman [Mon, 20 Jul 2020 07:44:12 +0000 (10:44 +0300)]
.shellrc: Check completion for `bg`, `fg`, `jobs` and `unset`

3 years agoRefactor(.shellrc): Declare `has_completion` once
Oleg Broytman [Mon, 20 Jul 2020 07:42:15 +0000 (10:42 +0300)]
Refactor(.shellrc): Declare `has_completion` once

3 years ago.shellrc: Check static completion in addition to dynamic
Oleg Broytman [Sun, 19 Jul 2020 22:17:05 +0000 (01:17 +0300)]
.shellrc: Check static completion in addition to dynamic

3 years ago.shellrc: Do not check `$SHELL`, just check for files
Oleg Broytman [Sun, 19 Jul 2020 21:49:52 +0000 (00:49 +0300)]
.shellrc: Do not check `$SHELL`, just check for files

3 years ago.shellrc: Complete program names for `run-all-hosts`
Oleg Broytman [Thu, 16 Jul 2020 10:05:55 +0000 (13:05 +0300)]
.shellrc: Complete program names for `run-all-hosts`

3 years agoStyle(.shellrc): Change indent style
Oleg Broytman [Thu, 16 Jul 2020 10:05:26 +0000 (13:05 +0300)]
Style(.shellrc): Change indent style

3 years ago.muttrc: Fix viewing html attachment
Oleg Broytman [Sun, 12 Jul 2020 23:04:57 +0000 (02:04 +0300)]
.muttrc: Fix viewing html attachment

View html attachment saving it in a file instead of piping.

3 years ago.vim/plugin: add `whichwrap.vim` to restore the setting under GNU `screen`
Oleg Broytman [Wed, 8 Jul 2020 13:56:32 +0000 (16:56 +0300)]
.vim/plugin: add `whichwrap.vim` to restore the setting under GNU `screen`

3 years ago.muttrc: Convert html attachment to/from UTF-8
Oleg Broytman [Fri, 3 Jul 2020 11:52:15 +0000 (14:52 +0300)]
.muttrc: Convert html attachment to/from UTF-8

Undo conversion made by `mutt`.

3 years ago.mc: Update `mc.ext`
Oleg Broytman [Tue, 30 Jun 2020 09:16:52 +0000 (12:16 +0300)]
.mc: Update `mc.ext`

3 years ago.vimrc: Remove everything related to bracketed paste mode
Oleg Broytman [Fri, 26 Jun 2020 00:11:20 +0000 (03:11 +0300)]
.vimrc: Remove everything related to bracketed paste mode

Doesn't work under GNU Screen. I now use and recommend to all
https://github.com/jooize/vim-bracketed-paste plugin.

3 years ago.vim: Fix PyEm filetype
Oleg Broytman [Wed, 24 Jun 2020 15:45:11 +0000 (18:45 +0300)]
.vim: Fix PyEm filetype

3 years agoscreen: Allow 2 different sessions with KOI8-R and UTF-8 locales
Oleg Broytman [Fri, 19 Jun 2020 13:52:30 +0000 (16:52 +0300)]
screen: Allow 2 different sessions with KOI8-R and UTF-8 locales

3 years ago.vim: Press `<Enter>` instead of `<C-]>` in help
Oleg Broytman [Thu, 18 Jun 2020 21:12:56 +0000 (00:12 +0300)]
.vim: Press `<Enter>` instead of `<C-]>` in help

Define buffer-specific macro in ftplugin `help.vim`.

3 years ago.vimrc: Update `titlestring` from default
Oleg Broytman [Sun, 14 Jun 2020 15:23:08 +0000 (18:23 +0300)]
.vimrc: Update `titlestring` from default

3 years ago.vimrc: Add default `statusline` and `titlestring`
Oleg Broytman [Sun, 14 Jun 2020 15:21:08 +0000 (18:21 +0300)]
.vimrc: Add default `statusline` and `titlestring`

3 years agobash: Append `$SHLVL` directly to `$OPS1`
Oleg Broytman [Fri, 12 Jun 2020 18:39:40 +0000 (21:39 +0300)]
bash: Append `$SHLVL` directly to `$OPS1`

3 years agobash: Move code related to prompt to `admin/prog/bash_prompt`
Oleg Broytman [Fri, 12 Jun 2020 18:11:27 +0000 (21:11 +0300)]
bash: Move code related to prompt to `admin/prog/bash_prompt`

3 years agobash: Separate host from current dir in `PS1` with `:`
Oleg Broytman [Fri, 12 Jun 2020 14:51:24 +0000 (17:51 +0300)]
bash: Separate host from current dir in `PS1` with `:`

3 years agobash: Prepend memory control group to `PS1`
Oleg Broytman [Fri, 12 Jun 2020 14:39:45 +0000 (17:39 +0300)]
bash: Prepend memory control group to `PS1`

3 years agoFeat: Add `cgmem_which`
Oleg Broytman [Fri, 12 Jun 2020 14:17:08 +0000 (17:17 +0300)]
Feat: Add `cgmem_which`

Show in what memory control group the current shell is.

3 years agobash: Cut long hostname to 5 characters
Oleg Broytman [Mon, 8 Jun 2020 17:48:03 +0000 (20:48 +0300)]
bash: Cut long hostname to 5 characters

3 years agoFix(short_curdir): Count ellipsis
Oleg Broytman [Mon, 8 Jun 2020 17:47:20 +0000 (20:47 +0300)]
Fix(short_curdir): Count ellipsis

3 years agoRename `bin/m` -> `bin/mk`
Oleg Broytman [Mon, 8 Jun 2020 02:33:54 +0000 (05:33 +0300)]
Rename `bin/m` -> `bin/mk`

3 years agobash: Use custom `short_curdir` instead of `\W` in `PS1`
Oleg Broytman [Sun, 7 Jun 2020 21:38:39 +0000 (00:38 +0300)]
bash: Use custom `short_curdir` instead of `\W` in `PS1`

3 years ago.mc: `pdftotext`: Preserve layout
Oleg Broytman [Fri, 5 Jun 2020 21:47:59 +0000 (00:47 +0300)]
.mc: `pdftotext`: Preserve layout

And silence error messages.