config-files/.config/fish/config.fish

40 lines
1.3 KiB
Fish
Raw Normal View History

#!/usr/bin/env fish
2023-02-08 23:20:18 -05:00
# Exports
2023-02-08 11:16:16 -05:00
set --export EDITOR "vim"
set --export PF_INFO "ascii title os host kernel uptime pkgs memory wm shell editor palette"
2023-02-11 01:17:41 -05:00
set --export MANPAGER "sh -c 'col -bx | bat -l man -p'"
set --export QT_QPA_PLATFORMTHEME "gtk2"
set --export XSECURELOCK_SAVER saver_xscreensaver
set --export XSECURELOCK_PASSWORD_PROMPT time_hex
set --export XSECURELOCK_XSCREENSAVER_PATH /usr/lib/xscreensaver
set --export XSECURELOCK_SHOW_KEYBOARD_LAYOUT 0
set --export XSECURELOCK_AUTH_BACKGROUND_COLOR "#2E3440"
set --export XSECURELOCK_AUTH_FOREGROUND_COLOR "#D8DEE9"
set --export XSECURELOCK_AUTH_SOUNDS 1
set --export XSECURELOCK_DIM_COLOR "#2E3440"
set --export XSECURELOCK_NO_COMPOSITE 1
2023-02-08 11:16:16 -05:00
2022-12-11 11:07:30 -05:00
if status is-interactive
2023-06-29 00:25:51 -04:00
source "$HOME/.config/fish/abbreviations.fish"
2022-12-11 11:07:30 -05:00
end
2023-04-14 12:48:43 -04:00
# Start X at login
if status --is-login
2023-06-29 00:25:51 -04:00
fish_add_path "$HOME/.local/bin"
fish_add_path "$HOME/.cargo/bin"
fish_add_path "/usr/lib/xsecurelock"
# Check if DISPLAY is set
if set -q DISPLAY
xset s 300 5
xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &
while pactl load-module module-detect
end
if not pactl set-default-sink alsa_output.0.hdmi-stereo
pactl set-default-sink alsa_output.1.hdmi-stereo
end
picom --animations --no-fading-openclose -b
2023-04-14 12:48:43 -04:00
end
end
2022-12-11 11:07:30 -05:00
starship init fish | source