1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00

Workflow update

Changelog:
- added `hyprls`, `file`, `delta`, `process-compose`, `yazi` packages with setup catppuccin macchiato theme
- changed `gammastep` to `wlsunset`
- refactored and disabled location
- refactored `dbus` and set to `broker` implementation
- changed `blueman` bluetooth manager to `overskride`
- set catppuccin macchiato theme for `bat`
- added useful key bindings for fish
- added custom fish scripts with `fzf` utilization
- changed protocol from 'https' to 'ssh' in `gh` config
- added keybindings, updated config, added LSPs for `helix`
- remap some keys in `Hyprland`
- added keybindings for `Zellij`
This commit is contained in:
xnm
2024-10-10 21:05:26 +03:00
parent 71c7708495
commit d27d5998aa
31 changed files with 1018 additions and 48 deletions

View File

@@ -0,0 +1,4 @@
function back-op
cd ..
commandline -f repaint
end

View File

@@ -0,0 +1,4 @@
function backtrack-op
cd -
commandline -f repaint
end

View File

@@ -1,9 +1,9 @@
function check_night_mode
set target_process "gammastep"
if pgrep $target_process > /dev/null
set target_process wlsunset
if pgrep $target_process >/dev/null
echo "{ \"text\":\"󱩌\", \"tooltip\": \"night-mode <span color='#a6da95'>on</span>\", \"class\": \"on\" }"
else
echo "{ \"text\":\"󱩍\", \"tooltip\": \"night-mode <span color='#ee99a0'>off</span>\", \"class\": \"off\" }"
end
end
end

View File

@@ -0,0 +1,4 @@
function clear-op
clear
commandline -f repaint
end

View File

@@ -7,4 +7,14 @@ function fish_user_key_bindings
# resetting all bindings.
# The argument specifies the initial mode (insert, "default" or visual).
fish_vi_key_bindings --no-erase insert
end
bind \er fzf-history-widget -M insert
bind \ef fzf-file-preview-widget -M insert
bind \ec fzf-cd-preview-widget -M insert
bind \ep fzf-ps-widget -M insert
bind \e\f clear-op -M insert
bind \eb back-op -M insert
bind \eB backtrack-op -M insert
bind \e\\ list-op -M insert
end

View File

@@ -0,0 +1,8 @@
function fzf-cd-preview-widget
set selected_dir (fd --type d --hidden --no-ignore --exclude .git --exclude .direnv | fzf --height 40% --reverse --preview 'lsd --tree --depth=1 {}' --preview-window=right:40%)
if test -n "$selected_dir"
cd "$selected_dir"
end
commandline -f repaint
end

View File

@@ -0,0 +1,4 @@
function fzf-file-preview-widget
commandline -i (fd --hidden --no-ignore --exclude .git --exclude .direnv | fzf --height 40% --preview-window=right:40% --reverse --preview "test -f {}; and file {} | grep -q text; and bat --color=always --style=numbers --line-range=:500 --wrap=auto {}; or echo 'Preview unavailable for binary files and directories'")
commandline -f repaint
end

View File

@@ -0,0 +1,4 @@
function fzf-ps-widget
commandline -i (pgrep -a . | fzf --height 40%)
commandline -f repaint
end

View File

@@ -0,0 +1,8 @@
function list-op
echo \n
lsd -al
for i in (math (lsd -al | count) + 1)
echo ""
end
commandline -f repaint
end

View File

@@ -1,9 +1,9 @@
function night_mode_toggle
set target_process "gammastep"
if pgrep $target_process > /dev/null
killall -s SIGINT .gammastep-wrap
set target_process wlsunset
if pgrep $target_process >/dev/null
killall -s SIGINT wlsunset
else
gammastep
wlsunset
end
end
end