init
This commit is contained in:
14
git/.gitconfig
Normal file
14
git/.gitconfig
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[user]
|
||||||
|
email = fergus@molloy.xyz
|
||||||
|
name = Fergus Molloy
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
[checkout]
|
||||||
|
defaultRemote = origin
|
||||||
|
guess = true
|
||||||
|
[branch]
|
||||||
|
autoSetupRebase = always
|
||||||
|
[commit]
|
||||||
|
gpgsign = true
|
||||||
|
[push]
|
||||||
|
autoSetupRemote = true
|
||||||
308
hyprland/.config/hyprland/hyprland.conf
Normal file
308
hyprland/.config/hyprland/hyprland.conf
Normal file
@ -0,0 +1,308 @@
|
|||||||
|
# This is an example Hyprland config file.
|
||||||
|
# Refer to the wiki for more information.
|
||||||
|
# https://wiki.hyprland.org/Configuring/
|
||||||
|
|
||||||
|
# Please note not all available settings / options are set here.
|
||||||
|
# For a full list, see the wiki
|
||||||
|
|
||||||
|
# You can split this configuration into multiple files
|
||||||
|
# Create your files separately and then link them to this file like this:
|
||||||
|
# source = ~/.config/hypr/myColors.conf
|
||||||
|
|
||||||
|
|
||||||
|
################
|
||||||
|
### MONITORS ###
|
||||||
|
################
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
|
|
||||||
|
|
||||||
|
###################
|
||||||
|
### MY PROGRAMS ###
|
||||||
|
###################
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||||
|
|
||||||
|
# Set programs that you use
|
||||||
|
$terminal = uwsm app -- kitty
|
||||||
|
$fileManager = uwsm app -- dolphin
|
||||||
|
$menu = uwsm app -- wofi --show drun
|
||||||
|
|
||||||
|
|
||||||
|
#################
|
||||||
|
### AUTOSTART ###
|
||||||
|
#################
|
||||||
|
|
||||||
|
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||||
|
# Or execute your favorite apps at launch like this:
|
||||||
|
|
||||||
|
# exec-once = nm-applet &
|
||||||
|
exec-once = waybar
|
||||||
|
exec-once = $terminal
|
||||||
|
|
||||||
|
# clipboard
|
||||||
|
exec-once = wl-paste --type text --watch cliphist store # Stores only text data
|
||||||
|
exec-once = wl-paste --type image --watch cliphist store # Stores only image data
|
||||||
|
|
||||||
|
|
||||||
|
#############################
|
||||||
|
### ENVIRONMENT VARIABLES ###
|
||||||
|
#############################
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
||||||
|
|
||||||
|
env = XCURSOR_SIZE,24
|
||||||
|
env = HYPRCURSOR_SIZE,24
|
||||||
|
|
||||||
|
|
||||||
|
#####################
|
||||||
|
### LOOK AND FEEL ###
|
||||||
|
#####################
|
||||||
|
|
||||||
|
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||||
|
general {
|
||||||
|
gaps_in = 5
|
||||||
|
gaps_out = 20
|
||||||
|
|
||||||
|
border_size = 2
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||||
|
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
|
col.inactive_border = rgba(595959aa)
|
||||||
|
|
||||||
|
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||||
|
resize_on_border = false
|
||||||
|
|
||||||
|
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||||
|
allow_tearing = false
|
||||||
|
|
||||||
|
layout = dwindle
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||||
|
decoration {
|
||||||
|
rounding = 10
|
||||||
|
|
||||||
|
# Change transparency of focused and unfocused windows
|
||||||
|
active_opacity = 1.0
|
||||||
|
inactive_opacity = 1.0
|
||||||
|
|
||||||
|
shadow {
|
||||||
|
enabled = true
|
||||||
|
range = 4
|
||||||
|
render_power = 3
|
||||||
|
color = rgba(1a1a1aee)
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||||
|
blur {
|
||||||
|
enabled = true
|
||||||
|
size = 3
|
||||||
|
passes = 1
|
||||||
|
|
||||||
|
vibrancy = 0.1696
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||||
|
animations {
|
||||||
|
enabled = yes, please :)
|
||||||
|
|
||||||
|
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||||
|
|
||||||
|
bezier = easeOutQuint,0.23,1,0.32,1
|
||||||
|
bezier = easeInOutCubic,0.65,0.05,0.36,1
|
||||||
|
bezier = linear,0,0,1,1
|
||||||
|
bezier = almostLinear,0.5,0.5,0.75,1.0
|
||||||
|
bezier = quick,0.15,0,0.1,1
|
||||||
|
|
||||||
|
animation = global, 1, 10, default
|
||||||
|
animation = border, 1, 5.39, easeOutQuint
|
||||||
|
animation = windows, 1, 4.79, easeOutQuint
|
||||||
|
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
||||||
|
animation = windowsOut, 1, 1.49, linear, popin 87%
|
||||||
|
animation = fadeIn, 1, 1.73, almostLinear
|
||||||
|
animation = fadeOut, 1, 1.46, almostLinear
|
||||||
|
animation = fade, 1, 3.03, quick
|
||||||
|
animation = layers, 1, 3.81, easeOutQuint
|
||||||
|
animation = layersIn, 1, 4, easeOutQuint, fade
|
||||||
|
animation = layersOut, 1, 1.5, linear, fade
|
||||||
|
animation = fadeLayersIn, 1, 1.79, almostLinear
|
||||||
|
animation = fadeLayersOut, 1, 1.39, almostLinear
|
||||||
|
animation = workspaces, 1, 1.94, almostLinear, fade
|
||||||
|
animation = workspacesIn, 1, 1.21, almostLinear, fade
|
||||||
|
animation = workspacesOut, 1, 1.94, almostLinear, fade
|
||||||
|
}
|
||||||
|
|
||||||
|
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
||||||
|
# "Smart gaps" / "No gaps when only"
|
||||||
|
# uncomment all if you wish to use that.
|
||||||
|
# workspace = w[tv1], gapsout:0, gapsin:0
|
||||||
|
# workspace = f[1], gapsout:0, gapsin:0
|
||||||
|
# windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||||
|
# windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1]
|
||||||
|
# windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
|
||||||
|
# windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||||
|
dwindle {
|
||||||
|
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||||
|
preserve_split = true # You probably want this
|
||||||
|
}
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||||
|
master {
|
||||||
|
new_status = master
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||||
|
misc {
|
||||||
|
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||||
|
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#############
|
||||||
|
### INPUT ###
|
||||||
|
#############
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||||
|
input {
|
||||||
|
kb_layout = gb
|
||||||
|
kb_variant =
|
||||||
|
kb_model =
|
||||||
|
kb_options =
|
||||||
|
kb_rules =
|
||||||
|
|
||||||
|
follow_mouse = 1
|
||||||
|
|
||||||
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
|
force_no_accel = 1
|
||||||
|
|
||||||
|
touchpad {
|
||||||
|
natural_scroll = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||||
|
gestures {
|
||||||
|
workspace_swipe = false
|
||||||
|
}
|
||||||
|
|
||||||
|
# Example per-device config
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||||
|
device {
|
||||||
|
name = epic-mouse-v1
|
||||||
|
sensitivity = -0.5
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
###################
|
||||||
|
### KEYBINDINGS ###
|
||||||
|
###################
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||||
|
$mainMod = Alt # Sets "Alt" key as main modifier
|
||||||
|
|
||||||
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
|
bind = $mainMod, Return, exec, $terminal
|
||||||
|
bind = $mainMod, Q, killactive,
|
||||||
|
bind = $mainMod, M, exit,
|
||||||
|
bind = $mainMod, E, exec, $fileManager
|
||||||
|
bind = $mainMod, G, exec, uwsm app -- firefox
|
||||||
|
bind = $mainMod, D, exec, $menu
|
||||||
|
# bind = $mainMod, P, pseudo, # dwindle
|
||||||
|
bind = $mainMod, J, togglesplit, # dwindle
|
||||||
|
bind = $mainMod, F, fullscreen
|
||||||
|
|
||||||
|
# Move focus with mainMod + arrow keys
|
||||||
|
bind = $mainMod, h, movefocus, l
|
||||||
|
bind = $mainMod, l, movefocus, r
|
||||||
|
bind = $mainMod, k, movefocus, u
|
||||||
|
bind = $mainMod, j, movefocus, d
|
||||||
|
|
||||||
|
# Switch workspaces with mainMod + [0-9]
|
||||||
|
bind = $mainMod, 1, workspace, 1
|
||||||
|
bind = $mainMod, 2, workspace, 2
|
||||||
|
bind = $mainMod, 3, workspace, 3
|
||||||
|
bind = $mainMod, 4, workspace, 4
|
||||||
|
bind = $mainMod, 5, workspace, 5
|
||||||
|
bind = $mainMod, 6, workspace, 6
|
||||||
|
bind = $mainMod, 7, workspace, 7
|
||||||
|
bind = $mainMod, 8, workspace, 8
|
||||||
|
bind = $mainMod, 9, workspace, 9
|
||||||
|
bind = $mainMod, 0, workspace, 10
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||||
|
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||||
|
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||||
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
||||||
|
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
||||||
|
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
||||||
|
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
||||||
|
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||||
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||||
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||||
|
|
||||||
|
# Example special workspace (scratchpad)
|
||||||
|
bind = $mainMod, P, togglespecialworkspace, magic
|
||||||
|
bind = $mainMod SHIFT, P, movetoworkspace, special:magic
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
bind = $mainMod, mouse_down, workspace, e+1
|
||||||
|
bind = $mainMod, mouse_up, workspace, e-1
|
||||||
|
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
|
# Laptop multimedia keys for volume and LCD brightness
|
||||||
|
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||||
|
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||||
|
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
|
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||||
|
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
|
||||||
|
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
||||||
|
|
||||||
|
# Requires playerctl
|
||||||
|
bindl = , XF86AudioNext, exec, playerctl next
|
||||||
|
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||||
|
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||||
|
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||||
|
|
||||||
|
# Clipboard search with wofi
|
||||||
|
bind = $mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy
|
||||||
|
bind = $mainMod shift, V, togglefloating
|
||||||
|
|
||||||
|
# Lock the screen
|
||||||
|
bind = $mainMod CTRL, L, exec, hyprlock
|
||||||
|
|
||||||
|
# screenshot
|
||||||
|
bind = $mainMod SHIFT, S, exec, hyprshot -m region --clipboard-only
|
||||||
|
|
||||||
|
# toggle notification center
|
||||||
|
bind = $mainMod, N, exec, swaync-client -t
|
||||||
|
|
||||||
|
##############################
|
||||||
|
### WINDOWS AND WORKSPACES ###
|
||||||
|
##############################
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||||
|
|
||||||
|
# Example windowrule v1
|
||||||
|
# windowrule = float, ^(kitty)$
|
||||||
|
|
||||||
|
# Example windowrule v2
|
||||||
|
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
||||||
|
|
||||||
|
windowrule = float, class:^(org.prismlauncher.PrismLauncher)$
|
||||||
|
|
||||||
|
# Ignore maximize requests from apps. You'll probably like this.
|
||||||
|
windowrulev2 = suppressevent maximize, class:.*
|
||||||
|
|
||||||
|
# Fix some dragging issues with XWayland
|
||||||
|
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||||
67
hyprland/.config/hyprland/hyprlock.conf
Normal file
67
hyprland/.config/hyprland/hyprlock.conf
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
# $text_color = rgba(E3E1EFFF)
|
||||||
|
# $entry_background_color = rgba(12131C11)
|
||||||
|
# $entry_border_color = rgba(908F9F55)
|
||||||
|
# $entry_color = rgba(C6C5D6FF)
|
||||||
|
$text_color = rgba(FFFFFFFF)
|
||||||
|
$entry_background_color = rgba(33333311)
|
||||||
|
$entry_border_color = rgba(3B3B3B55)
|
||||||
|
$entry_color = rgba(FFFFFFFF)
|
||||||
|
$font_family = Rubik Light
|
||||||
|
$font_family_clock = Rubik Light
|
||||||
|
$font_material_symbols = Material Symbols Rounded
|
||||||
|
|
||||||
|
background {
|
||||||
|
path = /home/fergus/.config/hypr/wall1.png
|
||||||
|
# blur_size = 5
|
||||||
|
blur_passes = 2
|
||||||
|
color = rgba(25, 20, 20, 1.0)
|
||||||
|
}
|
||||||
|
|
||||||
|
input-field {
|
||||||
|
monitor =
|
||||||
|
size = 250, 50
|
||||||
|
outline_thickness = 2
|
||||||
|
dots_size = 0.1
|
||||||
|
dots_spacing = 0.3
|
||||||
|
outer_color = $entry_border_color
|
||||||
|
inner_color = $entry_background_color
|
||||||
|
font_color = $entry_color
|
||||||
|
# fade_on_empty = true
|
||||||
|
|
||||||
|
position = 0, 20
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
label { # Clock
|
||||||
|
monitor =
|
||||||
|
text = $TIME
|
||||||
|
shadow_passes = 1
|
||||||
|
shadow_boost = 0.5
|
||||||
|
color = $text_color
|
||||||
|
font_size = 65
|
||||||
|
font_family = $font_family_clock
|
||||||
|
|
||||||
|
position = 0, 300
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
label { # "locked" text
|
||||||
|
monitor =
|
||||||
|
text = locked
|
||||||
|
shadow_passes = 1
|
||||||
|
shadow_boost = 0.5
|
||||||
|
color = $text_color
|
||||||
|
font_size = 50
|
||||||
|
font_family = $font_family
|
||||||
|
|
||||||
|
position = 0, 45
|
||||||
|
halign = center
|
||||||
|
valign = bottom
|
||||||
|
}
|
||||||
|
|
||||||
|
label { # swap background
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:5000000] ~/.config/hypr/rotate-lockscreen.sh
|
||||||
|
}
|
||||||
49
kitty/.config/kitty/gruvbox_dark.conf
Normal file
49
kitty/.config/kitty/gruvbox_dark.conf
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# gruvbox dark by morhetz, https://github.com/morhetz/gruvbox
|
||||||
|
# This work is licensed under the terms of the MIT license.
|
||||||
|
# For a copy, see https://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
|
background #282828
|
||||||
|
foreground #ebdbb2
|
||||||
|
|
||||||
|
cursor #928374
|
||||||
|
|
||||||
|
selection_foreground #928374
|
||||||
|
selection_background #3c3836
|
||||||
|
|
||||||
|
color0 #282828
|
||||||
|
color8 #928374
|
||||||
|
|
||||||
|
# red
|
||||||
|
color1 #cc241d
|
||||||
|
# light red
|
||||||
|
color9 #fb4934
|
||||||
|
|
||||||
|
# green
|
||||||
|
color2 #98971a
|
||||||
|
# light green
|
||||||
|
color10 #b8bb26
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color3 #d79921
|
||||||
|
# light yellow
|
||||||
|
color11 #fabd2d
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color4 #458588
|
||||||
|
# light blue
|
||||||
|
color12 #83a598
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color5 #b16286
|
||||||
|
# light magenta
|
||||||
|
color13 #d3869b
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color6 #689d6a
|
||||||
|
# lighy cyan
|
||||||
|
color14 #8ec07c
|
||||||
|
|
||||||
|
# light gray
|
||||||
|
color7 #a89984
|
||||||
|
# dark gray
|
||||||
|
color15 #928374
|
||||||
52
kitty/.config/kitty/kanagawa.conf
Normal file
52
kitty/.config/kitty/kanagawa.conf
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# gruvbox dark by morhetz, https://github.com/morhetz/gruvbox
|
||||||
|
# This work is licensed under the terms of the MIT license.
|
||||||
|
# For a copy, see https://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
|
background #1F1F28
|
||||||
|
foreground #DCD7BA
|
||||||
|
|
||||||
|
cursor #C8C093
|
||||||
|
|
||||||
|
selection_foreground #928374
|
||||||
|
selection_background #3c3836
|
||||||
|
|
||||||
|
color0 #16161D
|
||||||
|
color8 #727169
|
||||||
|
|
||||||
|
# red
|
||||||
|
color1 #C34043
|
||||||
|
# light red
|
||||||
|
color9 #E82424
|
||||||
|
|
||||||
|
# green
|
||||||
|
color2 #76946A
|
||||||
|
# light green
|
||||||
|
color10 #98BB6C
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color3 #C0A36E
|
||||||
|
# light yellow
|
||||||
|
color11 #E6C384
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color4 #7E9CD8
|
||||||
|
# light blue
|
||||||
|
color12 #7FB4CA
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color5 #957FB8
|
||||||
|
# light magenta
|
||||||
|
color13 #938AA9
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color6 #6A9589
|
||||||
|
# lighy cyan
|
||||||
|
color14 #7AA89F
|
||||||
|
|
||||||
|
# light gray
|
||||||
|
color7 #C8C093
|
||||||
|
# dark gray
|
||||||
|
color15 #DCD7BA
|
||||||
|
|
||||||
|
color16 #FFA066
|
||||||
|
color17 #FF5D62
|
||||||
2242
kitty/.config/kitty/kitty.conf
Normal file
2242
kitty/.config/kitty/kitty.conf
Normal file
File diff suppressed because it is too large
Load Diff
49
kitty/.config/kitty/melange.conf
Normal file
49
kitty/.config/kitty/melange.conf
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
# gruvbox dark by morhetz, https://github.com/morhetz/gruvbox
|
||||||
|
# This work is licensed under the terms of the MIT license.
|
||||||
|
# For a copy, see https://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
|
background #292522
|
||||||
|
foreground #ece1d7
|
||||||
|
|
||||||
|
cursor #867462
|
||||||
|
|
||||||
|
selection_foreground #c1a78e
|
||||||
|
selection_background #403A36
|
||||||
|
|
||||||
|
color0 #292522
|
||||||
|
color8 #c1a78e
|
||||||
|
|
||||||
|
# red
|
||||||
|
color9 #D47766
|
||||||
|
# light red
|
||||||
|
color1 #BD8183
|
||||||
|
|
||||||
|
# green
|
||||||
|
color10 #85B695
|
||||||
|
# light green
|
||||||
|
color2 #78997A
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color11 #EBC06D
|
||||||
|
# light yellow
|
||||||
|
color3 #E49B5D
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color12 #A3A9CE
|
||||||
|
# light blue
|
||||||
|
color4 #7F91B2
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color13 #CF9BC2
|
||||||
|
# light magenta
|
||||||
|
color5 #B380B0
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color14 #89B3B6
|
||||||
|
# lighy cyan
|
||||||
|
color6 #7B9695
|
||||||
|
|
||||||
|
# light gray
|
||||||
|
color7 #c1a78e
|
||||||
|
# dark gray
|
||||||
|
color15 #403A36
|
||||||
56
kitty/.config/kitty/rose-pine.conf
Normal file
56
kitty/.config/kitty/rose-pine.conf
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
## name: Rosé Pine Moon
|
||||||
|
## author: mvllow
|
||||||
|
## license: MIT
|
||||||
|
## upstream: https://github.com/rose-pine/kitty/blob/main/dist/rose-pine-moon.conf
|
||||||
|
## blurb: All natural pine, faux fur and a bit of soho vibes for the classy minimalist
|
||||||
|
|
||||||
|
foreground #e0def4
|
||||||
|
background #232136
|
||||||
|
selection_foreground #e0def4
|
||||||
|
selection_background #44415a
|
||||||
|
|
||||||
|
cursor #56526e
|
||||||
|
cursor_text_color #e0def4
|
||||||
|
|
||||||
|
url_color #c4a7e7
|
||||||
|
|
||||||
|
active_tab_foreground #e0def4
|
||||||
|
active_tab_background #393552
|
||||||
|
inactive_tab_foreground #6e6a86
|
||||||
|
inactive_tab_background #232136
|
||||||
|
|
||||||
|
active_border_color #3e8fb0
|
||||||
|
inactive_border_color #44415a
|
||||||
|
|
||||||
|
# black
|
||||||
|
color0 #393552
|
||||||
|
color8 #6e6a86
|
||||||
|
|
||||||
|
# red
|
||||||
|
color1 #eb6f92
|
||||||
|
color9 #eb6f92
|
||||||
|
|
||||||
|
# green
|
||||||
|
color2 #3e8fb0
|
||||||
|
color10 #3e8fb0
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color3 #f6c177
|
||||||
|
color11 #f6c177
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color4 #9ccfd8
|
||||||
|
color12 #9ccfd8
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color5 #c4a7e7
|
||||||
|
color13 #c4a7e7
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color6 #ea9a97
|
||||||
|
color14 #ea9a97
|
||||||
|
|
||||||
|
# white
|
||||||
|
color7 #e0def4
|
||||||
|
color15 #e0def4
|
||||||
|
|
||||||
27
scripts/.local/bin/direnv-create
Normal file
27
scripts/.local/bin/direnv-create
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ $# -gt 1 ]; then
|
||||||
|
echo "only supply the name of the shell you want to use"
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $# -eq 1 ]; then
|
||||||
|
echo "use flake ~/.flake/shells#$1" > .envrc && direnv allow
|
||||||
|
else
|
||||||
|
echo "using local flake"
|
||||||
|
echo "use flake" > .envrc && direnv allow
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d "$PWD/.git" ]; then
|
||||||
|
echo "git dir detected..."
|
||||||
|
grep -q ".direnv" .git/info/exclude
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "adding .direnv to exclude"
|
||||||
|
echo ".direnv" >> .git/info/exclude
|
||||||
|
fi
|
||||||
|
grep -q ".envrc" .git/info/exclude
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "adding .envrc to exclude"
|
||||||
|
echo ".envrc" >> .git/info/exclude
|
||||||
|
fi
|
||||||
|
fi
|
||||||
7
scripts/.local/bin/tmuxpopup
Executable file
7
scripts/.local/bin/tmuxpopup
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [ "$(tmux display-message -p -F "#{session-name}")" = "popup" ]; then
|
||||||
|
tmux detach-client
|
||||||
|
else
|
||||||
|
tmux popup -d "#{pane_current_path}" -xC -yC -w90% -h90% -E "tmux attach -t popup || tmux new -s popup"
|
||||||
|
fi
|
||||||
31
tmux/.tmux.conf
Normal file
31
tmux/.tmux.conf
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
set-option -g default-shell /usr/bin/zsh
|
||||||
|
|
||||||
|
set -g mouse on
|
||||||
|
|
||||||
|
set -g default-terminal "xterm-kitty"
|
||||||
|
set -as terminal-features ",xterm-256color:RGB"
|
||||||
|
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
set -g base-index 1
|
||||||
|
set -g renumber-windows on
|
||||||
|
|
||||||
|
set -g history-limit 1000000
|
||||||
|
|
||||||
|
unbind C-Space
|
||||||
|
set -g prefix C-Space
|
||||||
|
bind C-Space send-prefix
|
||||||
|
|
||||||
|
bind * setw synchronize-panes
|
||||||
|
|
||||||
|
bind h select-pane -L
|
||||||
|
bind j select-pane -D
|
||||||
|
bind k select-pane -U
|
||||||
|
bind l select-pane -R
|
||||||
|
|
||||||
|
bind O new-session
|
||||||
|
|
||||||
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
bind \" split-pane -c "#{pane_current_path}"
|
||||||
|
bind % split-pane -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
bind p run-shell tmuxpopup
|
||||||
103
waybar/.config/waybar/config.jsonc
Normal file
103
waybar/.config/waybar/config.jsonc
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
{
|
||||||
|
"margin-top" : 5,
|
||||||
|
"margin-left": 10,
|
||||||
|
"margin-right": 10,
|
||||||
|
"height" : 30,
|
||||||
|
"modules-left": [
|
||||||
|
"hyprland/window"
|
||||||
|
],
|
||||||
|
"modules-center": [
|
||||||
|
"hyprland/workspaces",
|
||||||
|
],
|
||||||
|
"modules-right": [
|
||||||
|
"pulseaudio",
|
||||||
|
"network",
|
||||||
|
"custom",
|
||||||
|
"memory",
|
||||||
|
"cpu",
|
||||||
|
"temperature",
|
||||||
|
"battery",
|
||||||
|
"clock",
|
||||||
|
"tray",
|
||||||
|
],
|
||||||
|
"custom": {
|
||||||
|
"exec": ""
|
||||||
|
},
|
||||||
|
"hyprland/window": {
|
||||||
|
"format": "{}",
|
||||||
|
"max-length": 35,
|
||||||
|
"rewrite": {
|
||||||
|
"": "fergus"
|
||||||
|
},
|
||||||
|
"separate-outputs": true,
|
||||||
|
},
|
||||||
|
"hyprland/workspaces": {
|
||||||
|
"disable-scroll": true,
|
||||||
|
"all-outputs": true,
|
||||||
|
"warp-on-scroll": false,
|
||||||
|
"format": "{icon}",
|
||||||
|
"on-click": "activate",
|
||||||
|
"format-icons": {
|
||||||
|
"active": " ",
|
||||||
|
},
|
||||||
|
"sort-by-number": true,
|
||||||
|
"persistent-workspaces": {
|
||||||
|
"*": 4, // 4 workspaces by default on every monitor
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||||
|
"format-alt": "{:%Y-%m-%d}"
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": "{usage}% ",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": "{}% "
|
||||||
|
},
|
||||||
|
"temperature": {
|
||||||
|
"critical-threshold": 80,
|
||||||
|
"format": "{temperatureC}°C",
|
||||||
|
"format-icons": ["", "", ""]
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"states": {
|
||||||
|
"warning": 30,
|
||||||
|
"critical": 15
|
||||||
|
},
|
||||||
|
"format": "{icon} {capacity}%",
|
||||||
|
"format-full": "{icon} {capacity}%",
|
||||||
|
"format-charging": " {capacity}%",
|
||||||
|
"format-plugged": " {capacity}%",
|
||||||
|
"format-alt": "{time} {icon}",
|
||||||
|
"format-icons": ["", "", "", "", ""]
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"format-wifi": " {signalStrength}%",
|
||||||
|
"format-ethernet": "{cidr} ",
|
||||||
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||||
|
"format-linked": "{ifname} (No IP) ",
|
||||||
|
"format-disconnected": " ⚠ ",
|
||||||
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
"format": "{volume}% {icon}",
|
||||||
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
|
"format-muted": "",
|
||||||
|
"format-icons": {
|
||||||
|
"headphone": "",
|
||||||
|
"hands-free": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", "", ""]
|
||||||
|
},
|
||||||
|
"on-click": "pavucontrol"
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
"spacing": 10,
|
||||||
|
},
|
||||||
|
}
|
||||||
26
waybar/.config/waybar/macchiato.css
Normal file
26
waybar/.config/waybar/macchiato.css
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
@define-color rosewater #f4dbd6;
|
||||||
|
@define-color flamingo #f0c6c6;
|
||||||
|
@define-color pink #f5bde6;
|
||||||
|
@define-color mauve #c6a0f6;
|
||||||
|
@define-color red #ed8796;
|
||||||
|
@define-color maroon #ee99a0;
|
||||||
|
@define-color peach #f5a97f;
|
||||||
|
@define-color yellow #eed49f;
|
||||||
|
@define-color green #a6da95;
|
||||||
|
@define-color teal #8bd5ca;
|
||||||
|
@define-color sky #91d7e3;
|
||||||
|
@define-color sapphire #7dc4e4;
|
||||||
|
@define-color blue #8aadf4;
|
||||||
|
@define-color lavender #b7bdf8;
|
||||||
|
@define-color text #cad3f5;
|
||||||
|
@define-color subtext1 #b8c0e0;
|
||||||
|
@define-color subtext0 #a5adcb;
|
||||||
|
@define-color overlay2 #939ab7;
|
||||||
|
@define-color overlay1 #8087a2;
|
||||||
|
@define-color overlay0 #6e738d;
|
||||||
|
@define-color surface2 #5b6078;
|
||||||
|
@define-color surface1 #494d64;
|
||||||
|
@define-color surface0 #363a4f;
|
||||||
|
@define-color base #24273a;
|
||||||
|
@define-color mantle #1e2030;
|
||||||
|
@define-color crust #181926;
|
||||||
148
waybar/.config/waybar/style.css
Normal file
148
waybar/.config/waybar/style.css
Normal file
@ -0,0 +1,148 @@
|
|||||||
|
@import "macchiato.css";
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: "JetBrainsMono Nerd Font", Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background-color: rgba(0, 0, 0, 0);
|
||||||
|
border-radius: 13px;
|
||||||
|
transition-property: background-color;
|
||||||
|
transition-duration: .5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
/* Use box-shadow instead of border so the text isn't offset */
|
||||||
|
box-shadow: inset 0 -3px transparent;
|
||||||
|
/* Avoid rounded borders under each button name */
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||||
|
button:hover {
|
||||||
|
background: inherit;
|
||||||
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* you can set a style on hover for any module like this */
|
||||||
|
#pulseaudio:hover {
|
||||||
|
background-color: @surface2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
padding: 0 5px;
|
||||||
|
background-color: transparent;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.focused {
|
||||||
|
background-color: @lavender;
|
||||||
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.urgent {
|
||||||
|
background-color: #eb4d4b;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mode {
|
||||||
|
background-color: #64727D;
|
||||||
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock,
|
||||||
|
#battery,
|
||||||
|
#cpu,
|
||||||
|
#memory,
|
||||||
|
#temperature,
|
||||||
|
#network,
|
||||||
|
#pulseaudio {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio {
|
||||||
|
color: @maroon;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network {
|
||||||
|
color: @yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu{
|
||||||
|
color: @mauve
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory{
|
||||||
|
color: @peach
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature {
|
||||||
|
color: @sky;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
color: @green;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
color: @flamingo;
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
color: @rosewater;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modules-right,
|
||||||
|
.modules-left,
|
||||||
|
.modules-center {
|
||||||
|
background-color: @base;
|
||||||
|
border-radius: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modules-right {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modules-left {
|
||||||
|
padding: 0 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modules-center {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.charging,
|
||||||
|
#battery.plugged {
|
||||||
|
color: @sapphire;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
to {
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||||
|
#battery.critical:not(.charging) {
|
||||||
|
background-color: #f53c3c;
|
||||||
|
color: #ffffff;
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-timing-function: steps(12);
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
label:focus {
|
||||||
|
background-color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio.muted {
|
||||||
|
color: @text;
|
||||||
|
}
|
||||||
145
zsh/.zshrc
Normal file
145
zsh/.zshrc
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
# Use emacs keymap as the default.
|
||||||
|
bindkey -e
|
||||||
|
|
||||||
|
# load fish-like auto-suggestions
|
||||||
|
[[ -f ~/.zsh/zsh-autosuggestions.zsh ]] && source ~/.zsh/zsh-autosuggestions.zsh
|
||||||
|
ZSH_AUTOSUGGEST_STRATEGY=(history)
|
||||||
|
|
||||||
|
# History file config
|
||||||
|
HISTSIZE="1000000"
|
||||||
|
SAVEHIST="5000000"
|
||||||
|
HISTFILE="/home/fergus/.cache/zsh/histfile"
|
||||||
|
mkdir -p "$(dirname "$HISTFILE")"
|
||||||
|
|
||||||
|
# History options
|
||||||
|
setopt HIST_FCNTL_LOCK
|
||||||
|
unsetopt APPEND_HISTORY
|
||||||
|
setopt HIST_IGNORE_DUPS
|
||||||
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
|
unsetopt HIST_SAVE_NO_DUPS
|
||||||
|
unsetopt HIST_FIND_NO_DUPS
|
||||||
|
setopt HIST_IGNORE_SPACE
|
||||||
|
unsetopt HIST_EXPIRE_DUPS_FIRST
|
||||||
|
setopt SHARE_HISTORY
|
||||||
|
unsetopt EXTENDED_HISTORY
|
||||||
|
|
||||||
|
# General options
|
||||||
|
setopt autocd extendedglob
|
||||||
|
|
||||||
|
# fzf extra shell features
|
||||||
|
command -v fzf >/dev/null 2>&1 && source <(fzf --zsh)
|
||||||
|
export FZF_DEFAULT_COMMAND="fd --type f --strip-cwd-prefix --hidden --follow --exclude .git"
|
||||||
|
export FZF_TMUX="1"
|
||||||
|
|
||||||
|
# configure completion
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||||
|
zstyle ':completion:*' list-colors "$\{(s.:.)LS_COLORS}"
|
||||||
|
zstyle ':completion:*' menu no
|
||||||
|
command -v fzf >/dev/null 2>& zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
|
||||||
|
|
||||||
|
autoload -U promptinit; promptinit
|
||||||
|
autoload -U compinit && compinit
|
||||||
|
|
||||||
|
# init opam module if installed
|
||||||
|
[[ ! -r /home/fergus/.opam/opam-init/init.zsh ]] || source /home/fergus/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
||||||
|
|
||||||
|
# more intuitive history search keys
|
||||||
|
bindkey '^p' history-search-backward
|
||||||
|
bindkey '^n' history-search-forward
|
||||||
|
|
||||||
|
# init prompt
|
||||||
|
command -v starship >/dev/null 2>& eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
# run fastfetch on new shells
|
||||||
|
command -v fastfetch >/dev/null 2>& fastfetch
|
||||||
|
|
||||||
|
# automatically enter a tmux session
|
||||||
|
tmux start-server
|
||||||
|
if [ -z "$TMUX" ]; then
|
||||||
|
tmux has-session -t dev 2> /dev/null && tmux new-session || tmux new-session -s dev
|
||||||
|
fi
|
||||||
|
|
||||||
|
# load kitty shell integrations
|
||||||
|
if test -n "$KITTY_INSTALLATION_DIR"; then
|
||||||
|
export KITTY_SHELL_INTEGRATION="no-rc"
|
||||||
|
autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration
|
||||||
|
kitty-integration
|
||||||
|
unfunction kitty-integration
|
||||||
|
fi
|
||||||
|
|
||||||
|
# add direnv hook if installed
|
||||||
|
command -v direnv >/dev/null 2>& eval "$(direnv hook zsh)"
|
||||||
|
|
||||||
|
# export common env vars
|
||||||
|
export EDITOR="nvim"
|
||||||
|
export SHELL="/usr/bin/zsh"
|
||||||
|
export TERM="xterm-kitty"
|
||||||
|
export GPG_TTY="$(tty)"
|
||||||
|
export TIMEFMT="$'
|
||||||
|
================
|
||||||
|
CPU %P
|
||||||
|
user %*U
|
||||||
|
system %*S
|
||||||
|
total %*E
|
||||||
|
'"
|
||||||
|
|
||||||
|
# add common bin dirs to path
|
||||||
|
export PATH="/home/fergus/.local/bin:$PATH"
|
||||||
|
export PATH="/home/fergus/.local/bin:/home/fergus/.cargo/bin:$PATH"
|
||||||
|
|
||||||
|
# import any extra env that doesn't want to be kept in vsc
|
||||||
|
[[ -f ~/.extra-env ]] && source ~/.extra-env
|
||||||
|
|
||||||
|
# add common options
|
||||||
|
alias -- cp='cp -r'
|
||||||
|
alias -- mkdir='mkdir -p'
|
||||||
|
alias -- rm='rm -vr'
|
||||||
|
alias -- sudo='sudo '
|
||||||
|
alias -- :q=exit
|
||||||
|
alias -- c=cargo
|
||||||
|
alias -- cat=bat
|
||||||
|
alias -- cl=clear
|
||||||
|
alias -- find=fd
|
||||||
|
alias -- grep=rg
|
||||||
|
alias -- top=btop
|
||||||
|
|
||||||
|
# editor aliases
|
||||||
|
alias -- v='eval "$EDITOR"'
|
||||||
|
alias -- vim='eval "$EDITOR"'
|
||||||
|
alias -- vf='eval "$EDITOR" $(fzf)'
|
||||||
|
|
||||||
|
# git aliases
|
||||||
|
alias -- gC='git commit -m'
|
||||||
|
alias -- gD='git diff --staged -w'
|
||||||
|
alias -- gP='git push'
|
||||||
|
alias -- gPf='git push --force-with-lease'
|
||||||
|
alias -- gS='git switch -c'
|
||||||
|
alias -- gaa='git add --all'
|
||||||
|
alias -- gau='git add -u'
|
||||||
|
alias -- gc='git commit'
|
||||||
|
alias -- gca='git commit --amend --no-edit'
|
||||||
|
alias -- gd='git diff -w'
|
||||||
|
alias -- gmf='git merge --ff-only'
|
||||||
|
alias -- gp='git pull'
|
||||||
|
alias -- gprc='gh pr create'
|
||||||
|
alias -- gr='git rebase'
|
||||||
|
alias -- gs='git switch'
|
||||||
|
alias -- gst='git status'
|
||||||
|
|
||||||
|
# ls aliases
|
||||||
|
if [[ command -v eza >/dev/null 2>&1 ]]; then
|
||||||
|
alias -- ls='eza -lh -s=name --git --group-directories-first --no-permissions --icons --no-user'
|
||||||
|
alias -- lsa='eza -lha -s=name --git --group-directories-first --no-permissions --icons --no-user'
|
||||||
|
alias -- lsg='eza -lh -s=name --git --group-directories-first --git-ignore --no-permissions --icons --no-user'
|
||||||
|
alias -- lsp='eza -lha -s=name --git --icons --group-directories-first'
|
||||||
|
else
|
||||||
|
echo "eza not installed using regular ls"
|
||||||
|
alias -- ls="ls -l"
|
||||||
|
alias -- lsa="ls -la"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
[[ -f /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]] && source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
ZSH_HIGHLIGHT_HIGHLIGHTERS+=()
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user