From 6ebc6fe6a88e8d7a7f68682c27e3d88b00810a5e Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Sun, 17 Jan 2021 17:54:23 -0800 Subject: [PATCH 1/4] polonius-init --- .config/terminator/config | 9 +++------ .tmux.conf | 2 +- bin/pk | 16 +++++++++------- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.config/terminator/config b/.config/terminator/config index 7303597..8150711 100644 --- a/.config/terminator/config +++ b/.config/terminator/config @@ -8,23 +8,20 @@ [keybindings] cycle_next = j cycle_prev = k - split_vert = "" + split_vert = v close_term = w - paste = v - help = "" + paste = Insert [profiles] [[default]] - allow_bold = False background_darkness = 0.8 background_type = transparent cursor_color = "#ffffff" - font = Iosevka Berkeley Light 18 + font = Iosevka Berkeley weight=453 21 foreground_color = "#ffffff" show_titlebar = False scrollbar_position = hidden scrollback_infinite = True use_system_font = False - bold_is_bright = True [[4k]] background_darkness = 0.8 background_type = transparent diff --git a/.tmux.conf b/.tmux.conf index b408322..47e3e77 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -52,7 +52,7 @@ set-window-option -g window-status-style fg=white,bg=default,dim # active window title colors set-window-option -g window-status-current-style fg=cyan,bg=default,bright -set-window-option -g window-style fg=#aaaaaa,bg=terminal +set-window-option -g window-style fg=#aaaaaa,bg=#111111 set-window-option -g window-active-style fg=terminal,bg=terminal set -g status-left '#[fg=green][ #H ][ ' diff --git a/bin/pk b/bin/pk index a7edbdf..1bd1a29 100755 --- a/bin/pk +++ b/bin/pk @@ -1,7 +1,9 @@ #!/bin/sh search () { shift - if command -v pacman &> /dev/null; then + if command -v apt &> /dev/null; then + apt search $1 + elif command -v pacman &> /dev/null; then pacman -Ss $1 || yay -Ss $1 elif command -v dnf &> /dev/null; then dnf search $1 @@ -19,7 +21,9 @@ search () { update () { shift - if command -v pacman &> /dev/null; then + if command -v apt-get &> /dev/null; then + sudo apt-get update + elif command -v pacman &> /dev/null; then sudo pacman -Sy elif command -v dnf &> /dev/null; then sudo dnf update @@ -27,14 +31,14 @@ update () { sudo port selfupdate elif command -v portsnap &> /dev/null; then sudo portsnap fetch && sudo portsnap upgrade - elif command -v apt-get &> /dev/null; then - sudo apt-get update fi } install () { shift - if command -v pacman &> /dev/null; then + if command -v apt-get &> /dev/null; then + sudo apt-get install $* + elif command -v pacman &> /dev/null; then sudo pacman -S $* || yay -S $* elif command -v dnf &> /dev/null; then sudo dnf install $* @@ -42,8 +46,6 @@ install () { sudo port install $* elif command -v portmaster &> /dev/null; then sudo portmaster $* - elif command -v apt-get &> /dev/null; then - sudo apt-get install $* fi } From 0cf8ef3dbb3dc9899bfc4d9e8ecc8393373b29ae Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Mon, 14 Jun 2021 19:51:52 -0700 Subject: [PATCH 2/4] polonius diff --- .config/alacritty/alacritty.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 15b423e..4000282 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -29,9 +29,9 @@ window: # Number of lines/columns (not pixels) in the terminal. The number of columns # must be at least `2`, while using a value of `0` for columns and lines will # fall back to the window manager's recommended size. - #dimensions: - # columns: 0 - # lines: 0 + dimensions: + columns: 147 + lines: 40 # Window position (changes require restart) # @@ -72,7 +72,7 @@ window: # # Values for `startup_mode` (macOS only): # - SimpleFullscreen - #startup_mode: Windowed + startup_mode: Fullscreen # Window title #title: Alacritty @@ -151,7 +151,7 @@ font: style: Oblique # Point size - size: 17.0 + size: 14.5 # Offset is the extra space around each character. `offset.y` can be thought # of as modifying the line spacing, and `offset.x` as modifying the letter @@ -830,7 +830,7 @@ key_bindings: #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize } # (Windows only) - #- { key: Return, mods: Alt, action: ToggleFullscreen } + - { key: Return, mods: Alt, action: ToggleFullscreen } # (macOS only) #- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" } From 7c65b5f6126e1ed295c103b73d83653f35bc96c4 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Wed, 8 Jun 2022 15:04:55 -0700 Subject: [PATCH 3/4] alias for changing font size --- .config/fish/functions/fish_user_key_bindings.fish | 4 ++++ bin/unborkify | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/fish/functions/fish_user_key_bindings.fish b/.config/fish/functions/fish_user_key_bindings.fish index ff0d9f3..cb9f03e 100644 --- a/.config/fish/functions/fish_user_key_bindings.fish +++ b/.config/fish/functions/fish_user_key_bindings.fish @@ -1,3 +1,7 @@ function fish_user_key_bindings fzf_key_bindings end + +function fsize + sed -i "s/size:.*/size: $argv/" $HOME/.config/alacritty/alacritty.yml +end diff --git a/bin/unborkify b/bin/unborkify index 120f56d..111940a 100755 --- a/bin/unborkify +++ b/bin/unborkify @@ -1,4 +1,4 @@ -#!/usr/local/bin/perl +#!/usr/bin/perl use Getopt::Std; getopts('u'); From 6aaa5018aeb82151907fd8662b13adee80e5525c Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Wed, 8 Jun 2022 15:12:58 -0700 Subject: [PATCH 4/4] display terminal size in tmux --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 47e3e77..3f8b099 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -56,7 +56,7 @@ set-window-option -g window-style fg=#aaaaaa,bg=#111111 set-window-option -g window-active-style fg=terminal,bg=terminal set -g status-left '#[fg=green][ #H ][ ' -set -g status-right '#[fg=green]][ #[bright]#[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[dim]#[fg=green]]' +set -g status-right '#[fg=green]][ #{pane_width}x#{pane_height} #[bright]#[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[dim]#[fg=green]]' # Notifying if other windows has activities setw -g monitor-activity on