Compare commits

...
Sign in to create a new pull request.

5 commits

6 changed files with 25 additions and 22 deletions

View file

@ -29,9 +29,9 @@ window:
# Number of lines/columns (not pixels) in the terminal. The number of columns # 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 # 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. # fall back to the window manager's recommended size.
#dimensions: dimensions:
# columns: 0 columns: 147
# lines: 0 lines: 40
# Window position (changes require restart) # Window position (changes require restart)
# #
@ -72,7 +72,7 @@ window:
# #
# Values for `startup_mode` (macOS only): # Values for `startup_mode` (macOS only):
# - SimpleFullscreen # - SimpleFullscreen
#startup_mode: Windowed startup_mode: Fullscreen
# Window title # Window title
#title: Alacritty #title: Alacritty
@ -151,7 +151,7 @@ font:
style: Oblique style: Oblique
# Point size # Point size
size: 17.0 size: 14.5
# Offset is the extra space around each character. `offset.y` can be thought # 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 # 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 } #- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
# (Windows only) # (Windows only)
#- { key: Return, mods: Alt, action: ToggleFullscreen } - { key: Return, mods: Alt, action: ToggleFullscreen }
# (macOS only) # (macOS only)
#- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" } #- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }

View file

@ -1,3 +1,7 @@
function fish_user_key_bindings function fish_user_key_bindings
fzf_key_bindings fzf_key_bindings
end end
function fsize
sed -i "s/size:.*/size: $argv/" $HOME/.config/alacritty/alacritty.yml
end

View file

@ -8,23 +8,20 @@
[keybindings] [keybindings]
cycle_next = <Primary>j cycle_next = <Primary>j
cycle_prev = <Primary>k cycle_prev = <Primary>k
split_vert = "" split_vert = <Primary><Shift>v
close_term = <Primary><Shift>w close_term = <Primary><Shift>w
paste = <Primary><Shift>v paste = <Shift>Insert
help = ""
[profiles] [profiles]
[[default]] [[default]]
allow_bold = False
background_darkness = 0.8 background_darkness = 0.8
background_type = transparent background_type = transparent
cursor_color = "#ffffff" cursor_color = "#ffffff"
font = Iosevka Berkeley Light 18 font = Iosevka Berkeley weight=453 21
foreground_color = "#ffffff" foreground_color = "#ffffff"
show_titlebar = False show_titlebar = False
scrollbar_position = hidden scrollbar_position = hidden
scrollback_infinite = True scrollback_infinite = True
use_system_font = False use_system_font = False
bold_is_bright = True
[[4k]] [[4k]]
background_darkness = 0.8 background_darkness = 0.8
background_type = transparent background_type = transparent

View file

@ -52,11 +52,11 @@ set-window-option -g window-status-style fg=white,bg=default,dim
# active window title colors # active window title colors
set-window-option -g window-status-current-style fg=cyan,bg=default,bright 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-window-option -g window-active-style fg=terminal,bg=terminal
set -g status-left '#[fg=green][ #H ][ ' 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 # Notifying if other windows has activities
setw -g monitor-activity on setw -g monitor-activity on

16
bin/pk
View file

@ -1,7 +1,9 @@
#!/bin/sh #!/bin/sh
search () { search () {
shift 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 pacman -Ss $1 || yay -Ss $1
elif command -v dnf &> /dev/null; then elif command -v dnf &> /dev/null; then
dnf search $1 dnf search $1
@ -19,7 +21,9 @@ search () {
update () { update () {
shift 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 sudo pacman -Sy
elif command -v dnf &> /dev/null; then elif command -v dnf &> /dev/null; then
sudo dnf update sudo dnf update
@ -27,14 +31,14 @@ update () {
sudo port selfupdate sudo port selfupdate
elif command -v portsnap &> /dev/null; then elif command -v portsnap &> /dev/null; then
sudo portsnap fetch && sudo portsnap upgrade sudo portsnap fetch && sudo portsnap upgrade
elif command -v apt-get &> /dev/null; then
sudo apt-get update
fi fi
} }
install () { install () {
shift 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 $* sudo pacman -S $* || yay -S $*
elif command -v dnf &> /dev/null; then elif command -v dnf &> /dev/null; then
sudo dnf install $* sudo dnf install $*
@ -42,8 +46,6 @@ install () {
sudo port install $* sudo port install $*
elif command -v portmaster &> /dev/null; then elif command -v portmaster &> /dev/null; then
sudo portmaster $* sudo portmaster $*
elif command -v apt-get &> /dev/null; then
sudo apt-get install $*
fi fi
} }

View file

@ -1,4 +1,4 @@
#!/usr/local/bin/perl #!/usr/bin/perl
use Getopt::Std; use Getopt::Std;
getopts('u'); getopts('u');