Compare commits
3 Commits
2ee4e44788
...
36caf27d21
| Author | SHA1 | Date | |
|---|---|---|---|
| 36caf27d21 | |||
| 239cb292a8 | |||
| ee405d9008 |
@@ -8,11 +8,11 @@
|
|||||||
- name: "[Discord] Create config folder"
|
- name: "[Discord] Create config folder"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
path: "{{ ansible_user_dir }}/.config/ArmCord"
|
path: "{{ ansible_user_dir }}/.config/armcord"
|
||||||
state: directory
|
state: directory
|
||||||
force: false
|
force: false
|
||||||
|
|
||||||
- name: "[Discord] Configure"
|
- name: "[Discord] Configure"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "./"
|
src: "./"
|
||||||
dest: "{{ ansible_user_dir }}/.config/ArmCord"
|
dest: "{{ ansible_user_dir }}/.config/armcord"
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ set -x MANROFFOPT "-c"
|
|||||||
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||||
|
|
||||||
## Environment setup
|
## Environment setup
|
||||||
|
# Env vars
|
||||||
|
export EDITOR=nvim
|
||||||
|
export VISUAL=nvim
|
||||||
|
|
||||||
if test -f ~/.fish_profile
|
if test -f ~/.fish_profile
|
||||||
source ~/.fish_profile
|
source ~/.fish_profile
|
||||||
end
|
end
|
||||||
|
|
||||||
# Other env vars
|
|
||||||
export EDITOR=nvim
|
|
||||||
export VISUAL=nvim
|
|
||||||
|
|
||||||
# Add ~/.local/bin to PATH
|
# Add ~/.local/bin to PATH
|
||||||
if test -d ~/.local/bin
|
if test -d ~/.local/bin
|
||||||
if not contains -- ~/.local/bin $PATH
|
if not contains -- ~/.local/bin $PATH
|
||||||
@@ -21,7 +21,7 @@ if test -d ~/.local/bin
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Plugin configuration
|
## Plugin configuration
|
||||||
# Set settings for https://github.com/franciscolourenco/done
|
# Set settings for https://github.com/franciscolourenco/done
|
||||||
set -U __done_min_cmd_duration 10000
|
set -U __done_min_cmd_duration 10000
|
||||||
set -U __done_notification_urgency_level low
|
set -U __done_notification_urgency_level low
|
||||||
@@ -31,6 +31,11 @@ if type -q starship && status --is-interactive
|
|||||||
starship init fish | source
|
starship init fish | source
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Zoxide
|
||||||
|
if type -q zoxide && status --is-interactive
|
||||||
|
zoxide init fish | source
|
||||||
|
end
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
# Fish command history
|
# Fish command history
|
||||||
function history
|
function history
|
||||||
@@ -113,7 +118,7 @@ function ya
|
|||||||
set tmp (mktemp -t "yazi-cwd.XXXXX")
|
set tmp (mktemp -t "yazi-cwd.XXXXX")
|
||||||
yazi $argv --cwd-file="$tmp"
|
yazi $argv --cwd-file="$tmp"
|
||||||
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
if set cwd (cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||||
cd -- "$cwd"
|
cd "$cwd"
|
||||||
end
|
end
|
||||||
rm -f -- "$tmp"
|
rm -f -- "$tmp"
|
||||||
end
|
end
|
||||||
@@ -138,6 +143,11 @@ if type -q paru
|
|||||||
alias yay='paru'
|
alias yay='paru'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Replace cd with zoxide
|
||||||
|
if type -q zoxide
|
||||||
|
alias cd='z'
|
||||||
|
end
|
||||||
|
|
||||||
# Common use
|
# Common use
|
||||||
alias :q=exit
|
alias :q=exit
|
||||||
alias ipn='ip'
|
alias ipn='ip'
|
||||||
@@ -168,6 +178,7 @@ alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packag
|
|||||||
alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # Cleanup orphaned packages
|
alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # Cleanup orphaned packages
|
||||||
alias jctl="journalctl -p 3 -xb" # Get the error messages from journalctl
|
alias jctl="journalctl -p 3 -xb" # Get the error messages from journalctl
|
||||||
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl" # Recent installed packages
|
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl" # Recent installed packages
|
||||||
|
alias h="cliphist list | fzf | cliphist decode | wl-copy"
|
||||||
|
|
||||||
# Get fastest mirrors
|
# Get fastest mirrors
|
||||||
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
|
||||||
@@ -175,11 +186,9 @@ alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/p
|
|||||||
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
|
||||||
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
|
||||||
|
|
||||||
## Run fastfetch if session is interactive
|
## Run fastfetch
|
||||||
if status --is-interactive
|
if status --is-interactive
|
||||||
if type -q fastfetch
|
if type -q fastfetch
|
||||||
fastfetch -l arch
|
fastfetch -l arch
|
||||||
else if type -q neofetch
|
|
||||||
neofetch --ascii_distro arch
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- fish
|
- fish
|
||||||
- fish-done
|
- fish-done
|
||||||
- fastfetch
|
- fastfetch
|
||||||
|
- zoxide
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: "[Fish] Create config folder"
|
- name: "[Fish] Create config folder"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
kewlfft.aur.aur:
|
kewlfft.aur.aur:
|
||||||
name:
|
name:
|
||||||
- hyprland
|
- hyprland
|
||||||
- hyprlock-git
|
- hyprlock
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: "[Hyprland] Create config folder"
|
- name: "[Hyprland] Create config folder"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ windowrule = workspace 2,^(YouTube Music)$
|
|||||||
windowrule = workspace 4,^(explorer.exe)$
|
windowrule = workspace 4,^(explorer.exe)$
|
||||||
windowrule = workspace 4,^(lutris)$
|
windowrule = workspace 4,^(lutris)$
|
||||||
windowrule = workspace 5,^(discord)$
|
windowrule = workspace 5,^(discord)$
|
||||||
windowrule = workspace 5,^(ArmCord)$
|
windowrule = workspace 5,^(armcord)$
|
||||||
windowrule = workspace 5,^(WebCord)$
|
windowrule = workspace 5,^(WebCord)$
|
||||||
windowrule = workspace 5,^(Element)$
|
windowrule = workspace 5,^(Element)$
|
||||||
windowrule = workspace 5,^(de.keule.client.ui.JavaFX)$
|
windowrule = workspace 5,^(de.keule.client.ui.JavaFX)$
|
||||||
|
|||||||
Reference in New Issue
Block a user