mirror of
https://github.com/Dichgrem/dotfiles.git
synced 2025-08-02 09:49:30 -04:00
Compare commits
1 Commits
main
...
8f62614b3d
Author | SHA1 | Date | |
---|---|---|---|
8f62614b3d |
Binary file not shown.
Before Width: | Height: | Size: 694 B |
Binary file not shown.
Before Width: | Height: | Size: 617 B |
@ -1,110 +0,0 @@
|
|||||||
# vim: ft=dosini
|
|
||||||
[Metadata]
|
|
||||||
Name=Catppuccin Mocha Flamingo
|
|
||||||
Version=0.2
|
|
||||||
Author=justTOBBI and Isabelinc
|
|
||||||
Description=Catppuccin Mocha Flamingo Color Theme
|
|
||||||
ScaleWithDPI=True
|
|
||||||
|
|
||||||
[InputPanel]
|
|
||||||
# 字体
|
|
||||||
Font=Sarasa Gothic SC 14
|
|
||||||
# 非选中候选字颜色
|
|
||||||
# Blue
|
|
||||||
NormalColor=#89b4fa
|
|
||||||
# 选中候选字颜色
|
|
||||||
# Flamingo
|
|
||||||
HighlightCandidateColor=#f2cdcd
|
|
||||||
# 高亮前景颜色(输入字符颜色)
|
|
||||||
# Flamingo
|
|
||||||
HighlightColor=#f2cdcd
|
|
||||||
# 输入字符背景颜色
|
|
||||||
# Surface 0
|
|
||||||
HighlightBackgroundColor=#313244
|
|
||||||
|
|
||||||
Spacing=3
|
|
||||||
|
|
||||||
[InputPanel/TextMargin]
|
|
||||||
# 候选字对左边距
|
|
||||||
Left=10
|
|
||||||
# 候选字对右边距
|
|
||||||
Right=10
|
|
||||||
# 候选字向上边距
|
|
||||||
Top=6
|
|
||||||
# 候选字向下边距
|
|
||||||
Bottom=6
|
|
||||||
|
|
||||||
[InputPanel/Background]
|
|
||||||
# Surface 0
|
|
||||||
Color=#313244
|
|
||||||
# Surface 0
|
|
||||||
BorderColor=#313244
|
|
||||||
BorderWidth=2
|
|
||||||
|
|
||||||
[InputPanel/Background/Margin]
|
|
||||||
Left=2
|
|
||||||
Right=2
|
|
||||||
Top=2
|
|
||||||
Bottom=2
|
|
||||||
|
|
||||||
[InputPanel/Highlight]
|
|
||||||
# Surface 0
|
|
||||||
Color=#313244
|
|
||||||
|
|
||||||
[InputPanel/Highlight/Margin]
|
|
||||||
# 高亮区域左边距
|
|
||||||
Left=10
|
|
||||||
# 高亮区域右边距
|
|
||||||
Right=10
|
|
||||||
# 高亮区域上边距
|
|
||||||
Top=7
|
|
||||||
# 高亮区域下边距
|
|
||||||
Bottom=7
|
|
||||||
|
|
||||||
[Menu]
|
|
||||||
Font=Sarasa Gothic SC 14
|
|
||||||
# Text
|
|
||||||
NormalColor=#cdd6f4
|
|
||||||
Spacing=3
|
|
||||||
|
|
||||||
[Menu/Background]
|
|
||||||
# Surface 0
|
|
||||||
Color=#313244
|
|
||||||
|
|
||||||
[Menu/Background/Margin]
|
|
||||||
Left=2
|
|
||||||
Right=2
|
|
||||||
Top=2
|
|
||||||
Bottom=2
|
|
||||||
|
|
||||||
[Menu/ContentMargin]
|
|
||||||
Left=2
|
|
||||||
Right=2
|
|
||||||
Top=2
|
|
||||||
Bottom=2
|
|
||||||
|
|
||||||
[Menu/Highlight]
|
|
||||||
# Pink
|
|
||||||
Color=#f5c2e7
|
|
||||||
|
|
||||||
[Menu/Highlight/Margin]
|
|
||||||
Left=10
|
|
||||||
Right=10
|
|
||||||
Top=5
|
|
||||||
Bottom=5
|
|
||||||
|
|
||||||
[Menu/Separator]
|
|
||||||
# Base
|
|
||||||
Color=#1e1e2e
|
|
||||||
|
|
||||||
[Menu/CheckBox]
|
|
||||||
Image=radio.png
|
|
||||||
|
|
||||||
[Menu/SubMenu]
|
|
||||||
Image=arrow.png
|
|
||||||
|
|
||||||
[Menu/TextMargin]
|
|
||||||
Left=5
|
|
||||||
Right=5
|
|
||||||
Top=5
|
|
||||||
Bottom=5
|
|
@ -958,11 +958,6 @@ Description="Keyboard - Swedish - Swedish (Svdvorak)"
|
|||||||
Language=sv
|
Language=sv
|
||||||
Label="se (svdvorak)"
|
Label="se (svdvorak)"
|
||||||
|
|
||||||
[keyboard-se-colemak]
|
|
||||||
Description="Keyboard - Swedish - Swedish (Colemak)"
|
|
||||||
Language=sv
|
|
||||||
Label="se (colemak)"
|
|
||||||
|
|
||||||
[keyboard-se-mac]
|
[keyboard-se-mac]
|
||||||
Description="Keyboard - Swedish - Swedish (Macintosh)"
|
Description="Keyboard - Swedish - Swedish (Macintosh)"
|
||||||
Language=sv
|
Language=sv
|
||||||
@ -3678,6 +3673,11 @@ Description="Keyboard - Japanese - Japanese (Kana)"
|
|||||||
Language=ja
|
Language=ja
|
||||||
Label="jp (kana)"
|
Label="jp (kana)"
|
||||||
|
|
||||||
|
[keyboard-jp-kana86]
|
||||||
|
Description="Keyboard - Japanese - Japanese (Kana 86)"
|
||||||
|
Language=ja
|
||||||
|
Label="jp (kana86)"
|
||||||
|
|
||||||
[keyboard-jp-OADG109A]
|
[keyboard-jp-OADG109A]
|
||||||
Description="Keyboard - Japanese - Japanese (OADG 109A)"
|
Description="Keyboard - Japanese - Japanese (OADG 109A)"
|
||||||
Language=ja
|
Language=ja
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
# Vertical Candidate List
|
|
||||||
Vertical Candidate List=False
|
|
||||||
# Use mouse wheel to go to prev or next page
|
|
||||||
WheelForPaging=True
|
|
||||||
# Font
|
|
||||||
Font="Sarasa Gothic SC 14"
|
|
||||||
# Menu Font
|
|
||||||
MenuFont="Sarasa Gothic SC 14"
|
|
||||||
# Tray Font
|
|
||||||
TrayFont="Sarasa Gothic SC 12"
|
|
||||||
# Tray Label Outline Color
|
|
||||||
TrayOutlineColor=#000000
|
|
||||||
# Tray Label Text Color
|
|
||||||
TrayTextColor=#ffffff
|
|
||||||
# Prefer Text Icon
|
|
||||||
PreferTextIcon=False
|
|
||||||
# Show Layout Name In Icon
|
|
||||||
ShowLayoutNameInIcon=True
|
|
||||||
# Use input method language to display text
|
|
||||||
UseInputMethodLanguageToDisplayText=True
|
|
||||||
# Theme
|
|
||||||
Theme=catppuccin-mocha-flamingo
|
|
||||||
# Dark Theme
|
|
||||||
DarkTheme=catppuccin-mocha-flamingo
|
|
||||||
# Follow system light/dark color scheme
|
|
||||||
UseDarkTheme=True
|
|
||||||
# Follow system accent color if it is supported by theme and desktop
|
|
||||||
UseAccentColor=True
|
|
||||||
# Use Per Screen DPI on X11
|
|
||||||
PerScreenDPI=False
|
|
||||||
# Force font DPI on Wayland
|
|
||||||
ForceWaylandDPI=0
|
|
||||||
# Enable fractional scale under Wayland
|
|
||||||
EnableFractionalScale=True
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
|||||||
# Hidden Notifications
|
[HiddenNotifications]
|
||||||
HiddenNotifications=
|
0=fcitx-rime-deploy
|
||||||
|
|
||||||
|
140
fcitx5/conf/pinyin.conf
Normal file
140
fcitx5/conf/pinyin.conf
Normal file
@ -0,0 +1,140 @@
|
|||||||
|
# Shuangpin Profile
|
||||||
|
ShuangpinProfile=Ziranma
|
||||||
|
# Show current shuangpin mode
|
||||||
|
ShowShuangpinMode=True
|
||||||
|
# Page size
|
||||||
|
PageSize=7
|
||||||
|
# Enable Spell
|
||||||
|
SpellEnabled=True
|
||||||
|
# Enable Symbols
|
||||||
|
SymbolsEnabled=True
|
||||||
|
# Enable Chaizi
|
||||||
|
ChaiziEnabled=True
|
||||||
|
# Enable Characters in Unicode CJK Extension B
|
||||||
|
ExtBEnabled=True
|
||||||
|
# Enable Cloud Pinyin
|
||||||
|
CloudPinyinEnabled=False
|
||||||
|
# Cloud Pinyin Index
|
||||||
|
CloudPinyinIndex=2
|
||||||
|
# Show animation when Cloud Pinyin is loading
|
||||||
|
CloudPinyinAnimation=True
|
||||||
|
# Always show Cloud Pinyin place holder
|
||||||
|
KeepCloudPinyinPlaceHolder=False
|
||||||
|
# Preedit Mode
|
||||||
|
PreeditMode="Composing pinyin"
|
||||||
|
# Fix embedded preedit cursor at the beginning of the preedit
|
||||||
|
PreeditCursorPositionAtBeginning=True
|
||||||
|
# Show complete pinyin in preedit
|
||||||
|
PinyinInPreedit=False
|
||||||
|
# Enable Prediction
|
||||||
|
Prediction=False
|
||||||
|
# Prediction Size
|
||||||
|
PredictionSize=49
|
||||||
|
# Action when switching input method
|
||||||
|
SwitchInputMethodBehavior="Commit current preedit"
|
||||||
|
# Select 2nd Candidate
|
||||||
|
SecondCandidate=
|
||||||
|
# Select 3rd Candidate
|
||||||
|
ThirdCandidate=
|
||||||
|
# Use Keypad as Selection key
|
||||||
|
UseKeypadAsSelection=False
|
||||||
|
# Use BackSpace to cancel the selection
|
||||||
|
BackSpaceToUnselect=True
|
||||||
|
# Number of Sentences
|
||||||
|
Number of sentence=2
|
||||||
|
# Prompt long word length when input length over (0 for disable)
|
||||||
|
LongWordLengthLimit=4
|
||||||
|
# Key to trigger quickphrase
|
||||||
|
QuickPhraseKey=semicolon
|
||||||
|
# Use V to trigger quickphrase
|
||||||
|
VAsQuickphrase=True
|
||||||
|
# FirstRun
|
||||||
|
FirstRun=False
|
||||||
|
|
||||||
|
[ForgetWord]
|
||||||
|
0=Control+7
|
||||||
|
|
||||||
|
[PrevPage]
|
||||||
|
0=minus
|
||||||
|
1=Up
|
||||||
|
2=KP_Up
|
||||||
|
3=Page_Up
|
||||||
|
|
||||||
|
[NextPage]
|
||||||
|
0=equal
|
||||||
|
1=Down
|
||||||
|
2=KP_Down
|
||||||
|
3=Next
|
||||||
|
|
||||||
|
[PrevCandidate]
|
||||||
|
0=Shift+Tab
|
||||||
|
|
||||||
|
[NextCandidate]
|
||||||
|
0=Tab
|
||||||
|
|
||||||
|
[CurrentCandidate]
|
||||||
|
0=space
|
||||||
|
1=KP_Space
|
||||||
|
|
||||||
|
[CommitRawInput]
|
||||||
|
0=Return
|
||||||
|
1=KP_Enter
|
||||||
|
2=Control+Return
|
||||||
|
3=Control+KP_Enter
|
||||||
|
4=Shift+Return
|
||||||
|
5=Shift+KP_Enter
|
||||||
|
6=Control+Shift+Return
|
||||||
|
7=Control+Shift+KP_Enter
|
||||||
|
|
||||||
|
[ChooseCharFromPhrase]
|
||||||
|
0=bracketleft
|
||||||
|
1=bracketright
|
||||||
|
|
||||||
|
[FilterByStroke]
|
||||||
|
0=grave
|
||||||
|
|
||||||
|
[QuickPhraseTriggerRegex]
|
||||||
|
0=.(/|@)$
|
||||||
|
1=^(www|bbs|forum|mail|bbs)\\.
|
||||||
|
2=^(http|https|ftp|telnet|mailto):
|
||||||
|
|
||||||
|
[Fuzzy]
|
||||||
|
# ue -> ve
|
||||||
|
VE_UE=True
|
||||||
|
# Common Typo
|
||||||
|
NG_GN=True
|
||||||
|
# Inner Segment (xian -> xi'an)
|
||||||
|
Inner=True
|
||||||
|
# Inner Segment for Short Pinyin (qie -> qi'e)
|
||||||
|
InnerShort=True
|
||||||
|
# Match partial finals (e -> en, eng, ei)
|
||||||
|
PartialFinal=True
|
||||||
|
# Match partial shuangpin if input length is longer than 4
|
||||||
|
PartialSp=False
|
||||||
|
# u <-> v
|
||||||
|
V_U=False
|
||||||
|
# an <-> ang
|
||||||
|
AN_ANG=False
|
||||||
|
# en <-> eng
|
||||||
|
EN_ENG=False
|
||||||
|
# ian <-> iang
|
||||||
|
IAN_IANG=False
|
||||||
|
# in <-> ing
|
||||||
|
IN_ING=False
|
||||||
|
# u <-> ou
|
||||||
|
U_OU=False
|
||||||
|
# uan <-> uang
|
||||||
|
UAN_UANG=False
|
||||||
|
# c <-> ch
|
||||||
|
C_CH=False
|
||||||
|
# f <-> h
|
||||||
|
F_H=False
|
||||||
|
# l <-> n
|
||||||
|
L_N=False
|
||||||
|
# s <-> sh
|
||||||
|
S_SH=False
|
||||||
|
# z <-> zh
|
||||||
|
Z_ZH=False
|
||||||
|
# Correction Layout
|
||||||
|
Correction=None
|
||||||
|
|
10
fcitx5/conf/punctuation.conf
Normal file
10
fcitx5/conf/punctuation.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Half width punctuation after latin letter or number
|
||||||
|
HalfWidthPuncAfterLetterOrNumber=True
|
||||||
|
# Type paired punctuations together (e.g. Quote)
|
||||||
|
TypePairedPunctuationsTogether=False
|
||||||
|
# Enabled
|
||||||
|
Enabled=True
|
||||||
|
|
||||||
|
[Hotkey]
|
||||||
|
0=Control+period
|
||||||
|
|
13
fcitx5/conf/rime.conf
Normal file
13
fcitx5/conf/rime.conf
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Preedit Mode
|
||||||
|
PreeditMode="Composing text"
|
||||||
|
# Shared Input State
|
||||||
|
InputState=All
|
||||||
|
# Fix embedded preedit cursor at the beginning of the preedit
|
||||||
|
PreeditCursorPositionAtBeginning=True
|
||||||
|
# Action when switching input method
|
||||||
|
SwitchInputMethodBehavior="Commit commit preview"
|
||||||
|
# Deploy
|
||||||
|
Deploy=
|
||||||
|
# Synchronize
|
||||||
|
Synchronize=
|
||||||
|
|
@ -11,7 +11,7 @@ EnumerateSkipFirst=False
|
|||||||
ModifierOnlyKeyTimeout=250
|
ModifierOnlyKeyTimeout=250
|
||||||
|
|
||||||
[Hotkey/TriggerKeys]
|
[Hotkey/TriggerKeys]
|
||||||
0=Control+space
|
0=Control+Shift+Shift_L
|
||||||
1=Zenkaku_Hankaku
|
1=Zenkaku_Hankaku
|
||||||
2=Hangul
|
2=Hangul
|
||||||
|
|
||||||
|
137
fish/cachyos-config.fish
Normal file
137
fish/cachyos-config.fish
Normal file
@ -0,0 +1,137 @@
|
|||||||
|
## Source from conf.d before our fish config
|
||||||
|
source ~/.config/fish/conf.d/done.fish
|
||||||
|
|
||||||
|
## Set values
|
||||||
|
## Run fastfetch as welcome message
|
||||||
|
function fish_greeting
|
||||||
|
fastfetch
|
||||||
|
end
|
||||||
|
|
||||||
|
# Format man pages
|
||||||
|
set -x MANROFFOPT -c
|
||||||
|
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
||||||
|
|
||||||
|
# Set settings for https://github.com/franciscolourenco/done
|
||||||
|
set -U __done_min_cmd_duration 10000
|
||||||
|
set -U __done_notification_urgency_level low
|
||||||
|
|
||||||
|
## Environment setup
|
||||||
|
# Apply .profile: use this to put fish compatible .profile stuff in
|
||||||
|
if test -f ~/.fish_profile
|
||||||
|
source ~/.fish_profile
|
||||||
|
end
|
||||||
|
|
||||||
|
# Add ~/.local/bin to PATH
|
||||||
|
if test -d ~/.local/bin
|
||||||
|
if not contains -- ~/.local/bin $PATH
|
||||||
|
set -p PATH ~/.local/bin
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# Add depot_tools to PATH
|
||||||
|
if test -d ~/Applications/depot_tools
|
||||||
|
if not contains -- ~/Applications/depot_tools $PATH
|
||||||
|
set -p PATH ~/Applications/depot_tools
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
# Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang
|
||||||
|
function __history_previous_command
|
||||||
|
switch (commandline -t)
|
||||||
|
case "!"
|
||||||
|
commandline -t $history[1]
|
||||||
|
commandline -f repaint
|
||||||
|
case "*"
|
||||||
|
commandline -i !
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function __history_previous_command_arguments
|
||||||
|
switch (commandline -t)
|
||||||
|
case "!"
|
||||||
|
commandline -t ""
|
||||||
|
commandline -f history-token-search-backward
|
||||||
|
case "*"
|
||||||
|
commandline -i '$'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if [ "$fish_key_bindings" = fish_vi_key_bindings ]
|
||||||
|
|
||||||
|
bind -Minsert ! __history_previous_command
|
||||||
|
bind -Minsert '$' __history_previous_command_arguments
|
||||||
|
else
|
||||||
|
bind ! __history_previous_command
|
||||||
|
bind '$' __history_previous_command_arguments
|
||||||
|
end
|
||||||
|
|
||||||
|
# Fish command history
|
||||||
|
function history
|
||||||
|
builtin history --show-time='%F %T '
|
||||||
|
end
|
||||||
|
|
||||||
|
function backup --argument filename
|
||||||
|
cp $filename $filename.bak
|
||||||
|
end
|
||||||
|
|
||||||
|
# Copy DIR1 DIR2
|
||||||
|
function copy
|
||||||
|
set count (count $argv | tr -d \n)
|
||||||
|
if test "$count" = 2; and test -d "$argv[1]"
|
||||||
|
set from (echo $argv[1] | trim-right /)
|
||||||
|
set to (echo $argv[2])
|
||||||
|
command cp -r $from $to
|
||||||
|
else
|
||||||
|
command cp $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
## Useful aliases
|
||||||
|
# Replace ls with eza
|
||||||
|
alias ls='eza -al --color=always --group-directories-first --icons' # preferred listing
|
||||||
|
alias la='eza -a --color=always --group-directories-first --icons' # all files and dirs
|
||||||
|
alias ll='eza -l --color=always --group-directories-first --icons' # long format
|
||||||
|
alias lt='eza -aT --color=always --group-directories-first --icons' # tree listing
|
||||||
|
alias l.="eza -a | grep -e '^\.'" # show only dotfiles
|
||||||
|
|
||||||
|
# Common use
|
||||||
|
alias grubup="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
||||||
|
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
|
||||||
|
alias tarnow='tar -acf '
|
||||||
|
alias untar='tar -zxvf '
|
||||||
|
alias wget='wget -c '
|
||||||
|
alias psmem='ps auxf | sort -nr -k 4'
|
||||||
|
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
|
||||||
|
alias ..='cd ..'
|
||||||
|
alias ...='cd ../..'
|
||||||
|
alias ....='cd ../../..'
|
||||||
|
alias .....='cd ../../../..'
|
||||||
|
alias ......='cd ../../../../..'
|
||||||
|
alias dir='dir --color=auto'
|
||||||
|
alias vdir='vdir --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias fgrep='fgrep --color=auto'
|
||||||
|
alias egrep='egrep --color=auto'
|
||||||
|
alias hw='hwinfo --short' # Hardware Info
|
||||||
|
alias big="expac -H M '%m\t%n' | sort -h | nl" # Sort installed packages according to size in MB
|
||||||
|
alias gitpkg='pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages
|
||||||
|
alias update='sudo pacman -Syu'
|
||||||
|
|
||||||
|
# Get fastest mirrors
|
||||||
|
alias mirror="sudo cachyos-rate-mirrors"
|
||||||
|
|
||||||
|
# Help people new to Arch
|
||||||
|
alias apt='man pacman'
|
||||||
|
alias apt-get='man pacman'
|
||||||
|
alias please='sudo'
|
||||||
|
alias tb='nc termbin.com 9999'
|
||||||
|
|
||||||
|
# Cleanup orphaned packages
|
||||||
|
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'
|
||||||
|
|
||||||
|
# Get the error messages from journalctl
|
||||||
|
alias jctl="journalctl -p 3 -xb"
|
||||||
|
|
||||||
|
# Recent installed packages
|
||||||
|
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl"
|
133
fish/config.fish
133
fish/config.fish
@ -1,128 +1,7 @@
|
|||||||
## Source from conf.d before our fish config
|
source ~/.config/fish/cachyos-config.fish
|
||||||
source ~/.config/fish/conf.d/done.fish
|
|
||||||
atuin init fish | source
|
atuin init fish | source
|
||||||
## Set values
|
# overwrite greeting
|
||||||
## Run fastfetch as welcome message
|
# potentially disabling fastfetch
|
||||||
function fish_greeting
|
#function fish_greeting
|
||||||
fastfetch
|
# # smth smth
|
||||||
end
|
#end
|
||||||
|
|
||||||
# Format man pages
|
|
||||||
set -x MANROFFOPT -c
|
|
||||||
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"
|
|
||||||
|
|
||||||
# Set settings for https://github.com/franciscolourenco/done
|
|
||||||
set -U __done_min_cmd_duration 10000
|
|
||||||
set -U __done_notification_urgency_level low
|
|
||||||
|
|
||||||
## Environment setup
|
|
||||||
# Apply .profile: use this to put fish compatible .profile stuff in
|
|
||||||
if test -f ~/.fish_profile
|
|
||||||
source ~/.fish_profile
|
|
||||||
end
|
|
||||||
|
|
||||||
# Add ~/.local/bin to PATH
|
|
||||||
if test -d ~/.local/bin
|
|
||||||
if not contains -- ~/.local/bin $PATH
|
|
||||||
set -p PATH ~/.local/bin
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Add depot_tools to PATH
|
|
||||||
if test -d ~/Applications/depot_tools
|
|
||||||
if not contains -- ~/Applications/depot_tools $PATH
|
|
||||||
set -p PATH ~/Applications/depot_tools
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
## Functions
|
|
||||||
# Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang
|
|
||||||
function __history_previous_command
|
|
||||||
switch (commandline -t)
|
|
||||||
case "!"
|
|
||||||
commandline -t $history[1]
|
|
||||||
commandline -f repaint
|
|
||||||
case "*"
|
|
||||||
commandline -i !
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function __history_previous_command_arguments
|
|
||||||
switch (commandline -t)
|
|
||||||
case "!"
|
|
||||||
commandline -t ""
|
|
||||||
commandline -f history-token-search-backward
|
|
||||||
case "*"
|
|
||||||
commandline -i '$'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if [ "$fish_key_bindings" = fish_vi_key_bindings ]
|
|
||||||
|
|
||||||
bind -Minsert ! __history_previous_command
|
|
||||||
bind -Minsert '$' __history_previous_command_arguments
|
|
||||||
else
|
|
||||||
bind ! __history_previous_command
|
|
||||||
bind '$' __history_previous_command_arguments
|
|
||||||
end
|
|
||||||
|
|
||||||
# Fish command history
|
|
||||||
function history
|
|
||||||
builtin history --show-time='%F %T '
|
|
||||||
end
|
|
||||||
|
|
||||||
function backup --argument filename
|
|
||||||
cp $filename $filename.bak
|
|
||||||
end
|
|
||||||
|
|
||||||
# Copy DIR1 DIR2
|
|
||||||
function copy
|
|
||||||
set count (count $argv | tr -d \n)
|
|
||||||
if test "$count" = 2; and test -d "$argv[1]"
|
|
||||||
set from (echo $argv[1] | trim-right /)
|
|
||||||
set to (echo $argv[2])
|
|
||||||
command cp -r $from $to
|
|
||||||
else
|
|
||||||
command cp $argv
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
## Useful aliases
|
|
||||||
# Replace ls with eza
|
|
||||||
alias ls='eza -al --color=always --group-directories-first --icons' # preferred listing
|
|
||||||
alias la='eza -a --color=always --group-directories-first --icons' # all files and dirs
|
|
||||||
alias ll='eza -l --color=always --group-directories-first --icons' # long format
|
|
||||||
alias lt='eza -aT --color=always --group-directories-first --icons' # tree listing
|
|
||||||
alias l.="eza -a | grep -e '^\.'" # show only dotfiles
|
|
||||||
|
|
||||||
# Common use
|
|
||||||
alias grubup="sudo grub-mkconfig -o /boot/grub/grub.cfg"
|
|
||||||
alias tarnow='tar -acf '
|
|
||||||
alias untar='tar -zxvf '
|
|
||||||
alias wget='wget -c '
|
|
||||||
alias psmem='ps auxf | sort -nr -k 4'
|
|
||||||
alias psmem10='ps auxf | sort -nr -k 4 | head -10'
|
|
||||||
alias ..='cd ..'
|
|
||||||
alias ...='cd ../..'
|
|
||||||
alias ....='cd ../../..'
|
|
||||||
alias .....='cd ../../../..'
|
|
||||||
alias ......='cd ../../../../..'
|
|
||||||
alias dir='dir --color=auto'
|
|
||||||
alias vdir='vdir --color=auto'
|
|
||||||
alias grep='grep --color=auto'
|
|
||||||
alias fgrep='fgrep --color=auto'
|
|
||||||
alias egrep='egrep --color=auto'
|
|
||||||
alias hw='hwinfo --short' # Hardware Info
|
|
||||||
alias big="expac -H M '%m\t%n' | sort -h | nl" # Sort installed packages according to size in MB
|
|
||||||
|
|
||||||
# Get fastest mirrors
|
|
||||||
alias mirror="sudo cachyos-rate-mirrors"
|
|
||||||
|
|
||||||
# Cleanup orphaned packages
|
|
||||||
alias cleanup='sudo pacman -Rns (pacman -Qtdq)'
|
|
||||||
|
|
||||||
# Get the error messages from journalctl
|
|
||||||
alias jctl="journalctl -p 3 -xb"
|
|
||||||
|
|
||||||
# Recent installed packages
|
|
||||||
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl"
|
|
||||||
|
99
fish/fish_variables
Normal file
99
fish/fish_variables
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
# This file contains fish universal variable definitions.
|
||||||
|
# VERSION: 3.0
|
||||||
|
SETUVAR __done_min_cmd_duration:10000
|
||||||
|
SETUVAR __done_notification_urgency_level:low
|
||||||
|
SETUVAR __fish_initialized:3800
|
||||||
|
SETUVAR fish_color_autosuggestion:brblack
|
||||||
|
SETUVAR fish_color_cancel:\x2dr
|
||||||
|
SETUVAR fish_color_command:normal
|
||||||
|
SETUVAR fish_color_comment:red
|
||||||
|
SETUVAR fish_color_cwd:green
|
||||||
|
SETUVAR fish_color_cwd_root:red
|
||||||
|
SETUVAR fish_color_end:green
|
||||||
|
SETUVAR fish_color_error:brred
|
||||||
|
SETUVAR fish_color_escape:brcyan
|
||||||
|
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||||
|
SETUVAR fish_color_host:normal
|
||||||
|
SETUVAR fish_color_host_remote:yellow
|
||||||
|
SETUVAR fish_color_normal:normal
|
||||||
|
SETUVAR fish_color_operator:brcyan
|
||||||
|
SETUVAR fish_color_param:cyan
|
||||||
|
SETUVAR fish_color_quote:yellow
|
||||||
|
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
|
||||||
|
SETUVAR fish_color_search_match:white\x1e\x2d\x2dbackground\x3dbrblack
|
||||||
|
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||||
|
SETUVAR fish_color_status:red
|
||||||
|
SETUVAR fish_color_user:brgreen
|
||||||
|
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||||
|
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||||
|
SETUVAR fish_pager_color_completion:normal
|
||||||
|
SETUVAR fish_pager_color_description:yellow\x1e\x2di
|
||||||
|
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||||
|
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||||
|
SETUVAR fish_pager_color_selected_background:\x2dr
|
||||||
|
SETUVAR pure_begin_prompt_with_current_directory:true
|
||||||
|
SETUVAR pure_check_for_new_release:false
|
||||||
|
SETUVAR pure_color_at_sign:pure_color_mute
|
||||||
|
SETUVAR pure_color_aws_profile:pure_color_warning
|
||||||
|
SETUVAR pure_color_command_duration:pure_color_warning
|
||||||
|
SETUVAR pure_color_current_directory:pure_color_primary
|
||||||
|
SETUVAR pure_color_danger:red
|
||||||
|
SETUVAR pure_color_dark:black
|
||||||
|
SETUVAR pure_color_git_branch:pure_color_mute
|
||||||
|
SETUVAR pure_color_git_dirty:pure_color_mute
|
||||||
|
SETUVAR pure_color_git_stash:pure_color_info
|
||||||
|
SETUVAR pure_color_git_unpulled_commits:pure_color_info
|
||||||
|
SETUVAR pure_color_git_unpushed_commits:pure_color_info
|
||||||
|
SETUVAR pure_color_hostname:pure_color_mute
|
||||||
|
SETUVAR pure_color_info:cyan
|
||||||
|
SETUVAR pure_color_jobs:pure_color_normal
|
||||||
|
SETUVAR pure_color_k8s_context:pure_color_success
|
||||||
|
SETUVAR pure_color_k8s_namespace:pure_color_primary
|
||||||
|
SETUVAR pure_color_k8s_prefix:pure_color_info
|
||||||
|
SETUVAR pure_color_light:white
|
||||||
|
SETUVAR pure_color_mute:brblack
|
||||||
|
SETUVAR pure_color_nixdevshell_prefix:pure_color_info
|
||||||
|
SETUVAR pure_color_nixdevshell_symbol:pure_color_mute
|
||||||
|
SETUVAR pure_color_normal:normal
|
||||||
|
SETUVAR pure_color_prefix_root_prompt:pure_color_danger
|
||||||
|
SETUVAR pure_color_primary:blue
|
||||||
|
SETUVAR pure_color_prompt_on_error:pure_color_danger
|
||||||
|
SETUVAR pure_color_prompt_on_success:pure_color_success
|
||||||
|
SETUVAR pure_color_success:magenta
|
||||||
|
SETUVAR pure_color_system_time:pure_color_mute
|
||||||
|
SETUVAR pure_color_username_normal:pure_color_mute
|
||||||
|
SETUVAR pure_color_username_root:pure_color_light
|
||||||
|
SETUVAR pure_color_virtualenv:pure_color_mute
|
||||||
|
SETUVAR pure_color_warning:yellow
|
||||||
|
SETUVAR pure_enable_aws_profile:true
|
||||||
|
SETUVAR pure_enable_container_detection:true
|
||||||
|
SETUVAR pure_enable_git:true
|
||||||
|
SETUVAR pure_enable_k8s:false
|
||||||
|
SETUVAR pure_enable_nixdevshell:false
|
||||||
|
SETUVAR pure_enable_single_line_prompt:false
|
||||||
|
SETUVAR pure_enable_virtualenv:true
|
||||||
|
SETUVAR pure_reverse_prompt_symbol_in_vimode:true
|
||||||
|
SETUVAR pure_separate_prompt_on_error:false
|
||||||
|
SETUVAR pure_shorten_prompt_current_directory_length:0
|
||||||
|
SETUVAR pure_shorten_window_title_current_directory_length:0
|
||||||
|
SETUVAR pure_show_jobs:false
|
||||||
|
SETUVAR pure_show_prefix_root_prompt:false
|
||||||
|
SETUVAR pure_show_subsecond_command_duration:false
|
||||||
|
SETUVAR pure_show_system_time:false
|
||||||
|
SETUVAR pure_symbol_aws_profile_prefix:
|
||||||
|
SETUVAR pure_symbol_container_prefix:
|
||||||
|
SETUVAR pure_symbol_git_dirty:\x2a
|
||||||
|
SETUVAR pure_symbol_git_stash:\u2261
|
||||||
|
SETUVAR pure_symbol_git_unpulled_commits:\u21e3
|
||||||
|
SETUVAR pure_symbol_git_unpushed_commits:\u21e1
|
||||||
|
SETUVAR pure_symbol_k8s_prefix:\u2638
|
||||||
|
SETUVAR pure_symbol_nixdevshell_prefix:\u2744\ufe0f
|
||||||
|
SETUVAR pure_symbol_prefix_root_prompt:\x23
|
||||||
|
SETUVAR pure_symbol_prompt:\u276f
|
||||||
|
SETUVAR pure_symbol_reverse_prompt:\u276e
|
||||||
|
SETUVAR pure_symbol_ssh_prefix:
|
||||||
|
SETUVAR pure_symbol_title_bar_separator:\x2d
|
||||||
|
SETUVAR pure_symbol_virtualenv_prefix:
|
||||||
|
SETUVAR pure_threshold_command_duration:5
|
||||||
|
SETUVAR pure_truncate_prompt_current_directory_keeps:\x2d1
|
||||||
|
SETUVAR pure_truncate_window_title_current_directory_keeps:\x2d1
|
@ -1,21 +0,0 @@
|
|||||||
[colors]
|
|
||||||
background=1e1e2edd
|
|
||||||
text=cdd6f4ff
|
|
||||||
prompt=bac2deff
|
|
||||||
placeholder=7f849cff
|
|
||||||
input=cdd6f4ff
|
|
||||||
match=b4befeff
|
|
||||||
selection=585b70ff
|
|
||||||
selection-text=cdd6f4ff
|
|
||||||
selection-match=b4befeff
|
|
||||||
counter=7f849cff
|
|
||||||
border=b4befeff
|
|
||||||
|
|
||||||
[main]
|
|
||||||
font=Sarasa Gothic SC:size=18
|
|
||||||
icon-theme=Papirus-Dark
|
|
||||||
icons-enabled=no
|
|
||||||
delayed-filter-ms=0
|
|
||||||
delayed-filter-limit=0
|
|
||||||
lines=10
|
|
||||||
sort-result=yes
|
|
@ -9,7 +9,6 @@ exec-once = swww-daemon
|
|||||||
exec-once = waybar &
|
exec-once = waybar &
|
||||||
exec-once = fcitx5 -d &
|
exec-once = fcitx5 -d &
|
||||||
exec-once = swayosd-server
|
exec-once = swayosd-server
|
||||||
exec-once = wl-clip-persist --clipboard regular
|
|
||||||
# exec-once = mako &
|
# exec-once = mako &
|
||||||
exec-once = nm-applet --indicator &
|
exec-once = nm-applet --indicator &
|
||||||
exec-once = bash -c "mkfifo /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob && tail -f /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob | wob & disown" &
|
exec-once = bash -c "mkfifo /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob && tail -f /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob | wob & disown" &
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
$browser = floorp
|
$browser = floorp
|
||||||
$filemanager = nemo
|
$filemanager = nemo
|
||||||
#$applauncher = rofi -show combi -modi window,run,combi -combi-modi window,run
|
#$applauncher = rofi -show combi -modi window,run,combi -combi-modi window,run
|
||||||
$applauncher = fuzzel
|
$applauncher = wofi
|
||||||
$terminal = alacritty
|
$terminal = alacritty
|
||||||
#$idlehandler = swayidle -w timeout 300 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 000000'
|
#$idlehandler = swayidle -w timeout 300 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 000000'
|
||||||
$capturing = grim -g "$(slurp)" - | swappy -f -
|
$capturing = grim -g "$(slurp)" - | swappy -f -
|
||||||
|
23
lazygit/config.yml
Normal file
23
lazygit/config.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
gui:
|
||||||
|
authorColors:
|
||||||
|
"*": "#b4befe"
|
||||||
|
theme:
|
||||||
|
activeBorderColor:
|
||||||
|
- "#cba6f7"
|
||||||
|
- bold
|
||||||
|
inactiveBorderColor:
|
||||||
|
- "#a6adc8"
|
||||||
|
optionsTextColor:
|
||||||
|
- "#89b4fa"
|
||||||
|
selectedLineBgColor:
|
||||||
|
- "#313244"
|
||||||
|
cherryPickedCommitBgColor:
|
||||||
|
- "#45475a"
|
||||||
|
cherryPickedCommitFgColor:
|
||||||
|
- "#cba6f7"
|
||||||
|
unstagedChangesColor:
|
||||||
|
- "#f38ba8"
|
||||||
|
defaultFgColor:
|
||||||
|
- "#cdd6f4"
|
||||||
|
searchingActiveBorderColor:
|
||||||
|
- "#f9e2af"
|
@ -1,82 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
SCRIPT_NAME=$(basename "$0")
|
|
||||||
echo "\n=== Ubuntu Repos and Plugins Setup Script ===\n"
|
|
||||||
|
|
||||||
# Determine Ubuntu codename
|
|
||||||
CODENAME=$(lsb_release -cs)
|
|
||||||
echo "Detected Ubuntu codename: $CODENAME"
|
|
||||||
|
|
||||||
# Function to add PPA if not present
|
|
||||||
add_ppa() {
|
|
||||||
local PPA="$1"
|
|
||||||
if ! grep -Rq "${PPA#*:}" /etc/apt/sources.list.d; then
|
|
||||||
echo "Adding PPA: $PPA"
|
|
||||||
sudo add-apt-repository -y "$PPA"
|
|
||||||
else
|
|
||||||
echo "PPA already exists: $PPA"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Function to add Docker repo
|
|
||||||
add_docker_repo() {
|
|
||||||
local KEYRING="/usr/share/keyrings/docker-archive-keyring.gpg"
|
|
||||||
if [ ! -f "$KEYRING" ]; then
|
|
||||||
echo "Adding Docker GPG key and repository"
|
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg |
|
|
||||||
sudo gpg --dearmor -o "$KEYRING"
|
|
||||||
echo "deb [arch=amd64 signed-by=$KEYRING] https://download.docker.com/linux/ubuntu $CODENAME stable" |
|
|
||||||
sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
|
|
||||||
else
|
|
||||||
echo "Docker repository already configured"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Add PPAs
|
|
||||||
add_ppa ppa:fish-shell/release-3
|
|
||||||
add_ppa ppa:neovim-ppa/unstable
|
|
||||||
add_ppa ppa:zhangsongcui3371/fastfetch
|
|
||||||
|
|
||||||
# Add Docker repo
|
|
||||||
add_docker_repo
|
|
||||||
|
|
||||||
# Update package list
|
|
||||||
echo "\nUpdating package lists..."
|
|
||||||
sudo apt update
|
|
||||||
|
|
||||||
# Core packages to install
|
|
||||||
CORE_PKGS=(docker-ce docker-ce-cli containerd.io fastfetch neovim fish tealdeer)
|
|
||||||
|
|
||||||
# Install each package, skip if not found
|
|
||||||
for pkg in "${CORE_PKGS[@]}"; do
|
|
||||||
if apt-cache show "$pkg" >/dev/null 2>&1; then
|
|
||||||
echo "Installing $pkg..."
|
|
||||||
sudo apt install -y "$pkg"
|
|
||||||
else
|
|
||||||
echo "Package not found in repos, skipping: $pkg"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Fisher and fish plugins
|
|
||||||
echo "\nInstalling Fisher and fish plugins..."
|
|
||||||
fish -c 'curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher'
|
|
||||||
fish -c 'fisher install bruno-ricard/fish-autopair Pure-Fish/pure'
|
|
||||||
|
|
||||||
# Atuin installation
|
|
||||||
if ! command -v atuin >/dev/null 2>&1; then
|
|
||||||
echo "\nInstalling Atuin"
|
|
||||||
curl -sS https://raw.githubusercontent.com/ellie/atuin/main/install.sh | bash
|
|
||||||
else
|
|
||||||
echo "Atuin already installed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Change default shell to fish
|
|
||||||
if [ "$SHELL" != "$(which fish)" ]; then
|
|
||||||
echo "Changing default shell to fish"
|
|
||||||
chsh -s "$(which fish)"
|
|
||||||
else
|
|
||||||
echo "Default shell is already fish"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "\n=== Setup Complete! Restart your terminal to apply changes. ==="
|
|
@ -2,15 +2,15 @@
|
|||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "top",
|
"position": "top",
|
||||||
//"height": 20,
|
//"height": 20,
|
||||||
"margin-left": 0,
|
"margin-left": 10,
|
||||||
"margin-bottom": 0,
|
"margin-bottom": 0,
|
||||||
"margin-right": 0,
|
"margin-right": 10,
|
||||||
"spacing": 8,
|
"spacing": 8,
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"custom/startmenu",
|
"custom/startmenu",
|
||||||
"backlight",
|
"backlight",
|
||||||
"wireplumber",
|
|
||||||
"battery",
|
"battery",
|
||||||
|
// "network",
|
||||||
"hyprland/workspaces",
|
"hyprland/workspaces",
|
||||||
"niri/workspaces",
|
"niri/workspaces",
|
||||||
"sway/workspaces"
|
"sway/workspaces"
|
||||||
@ -21,8 +21,9 @@
|
|||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/screenshot",
|
"custom/screenshot",
|
||||||
"tray",
|
"tray",
|
||||||
// "custom/wl-gammarelay-brightness",
|
"custom/wl-gammarelay-brightness",
|
||||||
// "custom/wl-gammarelay-temperature",
|
"custom/wl-gammarelay-temperature",
|
||||||
|
"wireplumber",
|
||||||
"clock",
|
"clock",
|
||||||
"custom/swaync",
|
"custom/swaync",
|
||||||
],
|
],
|
||||||
@ -58,7 +59,16 @@
|
|||||||
"format-plugged": " {capacity}%",
|
"format-plugged": " {capacity}%",
|
||||||
"format-icons": ["", "", "", "", ""],
|
"format-icons": ["", "", "", "", ""],
|
||||||
},
|
},
|
||||||
|
/*
|
||||||
|
"network": {
|
||||||
|
"interval": 3,
|
||||||
|
"format": "{bandwidthUpBytes} {bandwidthDownBytes}",
|
||||||
|
"format-disconnected": " ",
|
||||||
|
"on-click": "alacritty -e zenith",
|
||||||
|
"on-click-right": "corestats",
|
||||||
|
"tooltip-format": "{ifname}\n{ipaddr}/{cidr}\n",
|
||||||
|
},
|
||||||
|
*/
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"all-outputs": true,
|
"all-outputs": true,
|
||||||
"format": "{name}",
|
"format": "{name}",
|
||||||
@ -86,7 +96,7 @@
|
|||||||
"on-click": "activate",
|
"on-click": "activate",
|
||||||
"on-click-middle": "close",
|
"on-click-middle": "close",
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
"custom/screenshot": {
|
"custom/screenshot": {
|
||||||
"format": " ",
|
"format": " ",
|
||||||
"on-click": "sh ~/.config/waybar/scripts/Screenshot-Area.sh",
|
"on-click": "sh ~/.config/waybar/scripts/Screenshot-Area.sh",
|
||||||
@ -94,7 +104,7 @@
|
|||||||
"on-click-middle": "sh ~/.config/waybar/scripts/Screenshot-Fullscreen.sh",
|
"on-click-middle": "sh ~/.config/waybar/scripts/Screenshot-Fullscreen.sh",
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
},
|
},
|
||||||
*/
|
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 8,
|
"spacing": 8,
|
||||||
},
|
},
|
||||||
@ -117,6 +127,7 @@
|
|||||||
"on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n -100",
|
"on-scroll-down": "busctl --user -- call rs.wl-gammarelay / rs.wl.gammarelay UpdateTemperature n -100",
|
||||||
"tooltip": false
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
"wireplumber": {
|
"wireplumber": {
|
||||||
"on-click": "pwvucontrol",
|
"on-click": "pwvucontrol",
|
||||||
@ -133,13 +144,12 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
*/
|
*/
|
||||||
|
|
||||||
"wireplumber": {
|
"wireplumber": {
|
||||||
"on-click": "pwvucontrol",
|
"on-click": "pwvucontrol",
|
||||||
"on-click-right": "easyeffects",
|
"on-click-right": "easyeffects",
|
||||||
"on-click-middle": "pamixer -t && swayosd-client --output-volume mute-toggle",
|
"on-click-middle": "pamixer -t && swayosd-client --output-volume mute-toggle",
|
||||||
"on-scroll-down": "pamixer -d 1 && swayosd-client --output-volume -1",
|
"on-scroll-down": "pamixer -d 2 && swayosd-client --output-volume -2",
|
||||||
"on-scroll-up": "pamixer -i 1 && swayosd-client --output-volume +1",
|
"on-scroll-up": "pamixer -i 2 && swayosd-client --output-volume +2",
|
||||||
"format": "{icon} {volume}%",
|
"format": "{icon} {volume}%",
|
||||||
"format-muted": "MUTE",
|
"format-muted": "MUTE",
|
||||||
"format-source": "",
|
"format-source": "",
|
||||||
@ -148,22 +158,14 @@
|
|||||||
"default": ["", "", ""]
|
"default": ["", "", ""]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
"clock": {
|
"clock": {
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"align": 0,
|
"align": 0,
|
||||||
"rotate": 0,
|
"rotate": 0,
|
||||||
"tooltip-format": "<tt><big>{calendar}</big></tt>",
|
"tooltip-format": "<tt><big>{calendar}</big></tt>",
|
||||||
"format": " {:%d.%m.%Y}",
|
"format": " {:%H:%M}",
|
||||||
"format-alt": " {:%b%d %a,%G}",
|
"format-alt": " {:%a %b %d, %G}",
|
||||||
},
|
|
||||||
*/
|
|
||||||
"clock": {
|
|
||||||
"interval": 60,
|
|
||||||
"align": 0,
|
|
||||||
"rotate": 0,
|
|
||||||
"format": " {:%a %d %H:%M}",
|
|
||||||
"tooltip-format": "<tt><big>{:%A, %d %B %Y}</big></tt>",
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/swaync": {
|
"custom/swaync": {
|
||||||
@ -182,3 +184,4 @@
|
|||||||
"escape": true,
|
"escape": true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
waybar/scripts/Screenshot-Area.sh
Normal file
3
waybar/scripts/Screenshot-Area.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
grim -g "$(slurp)" - | swappy -f -
|
3
waybar/scripts/Screenshot-Fullscreen.sh
Normal file
3
waybar/scripts/Screenshot-Fullscreen.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
grim - | wl-copy -t image/png;notify-send "Screenshot copied to clipboard"
|
3
waybar/scripts/Screenshot-Hyprland-Window.sh
Normal file
3
waybar/scripts/Screenshot-Hyprland-Window.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
grim -g "$(hyprctl clients -j | jq '.[] | select(.hidden | not) | "\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"' -r | slurp)" - | swappy -f -
|
4
waybar/scripts/Screenshot-OCR.sh
Normal file
4
waybar/scripts/Screenshot-OCR.sh
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
## only support EN
|
||||||
|
grim -g "$(slurp)" - | tesseract -l "eng" stdin stdout | wl-copy;notify-send "OCR content copied to clipboard"
|
3
waybar/scripts/Screenshot-sway-Window.sh
Normal file
3
waybar/scripts/Screenshot-sway-Window.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
grim -g "$(swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp)" - | swappy -f -
|
6
wofi/config
Normal file
6
wofi/config
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
allow_images=true
|
||||||
|
hide_scroll=true
|
||||||
|
no_actions=false
|
||||||
|
term=alacritty
|
||||||
|
mode=drun
|
||||||
|
--show
|
46
wofi/style.css
Normal file
46
wofi/style.css
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
* {
|
||||||
|
font-family: "Hack", monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
background-color: #3B4252;
|
||||||
|
}
|
||||||
|
|
||||||
|
#input {
|
||||||
|
margin: 5px;
|
||||||
|
border-radius: 0px;
|
||||||
|
border: none;
|
||||||
|
background-color: #3B4252;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#inner-box {
|
||||||
|
background-color: #383C4A;
|
||||||
|
}
|
||||||
|
|
||||||
|
#outer-box {
|
||||||
|
margin: 2px;
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #383C4A;
|
||||||
|
}
|
||||||
|
|
||||||
|
#scroll {
|
||||||
|
margin: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#text {
|
||||||
|
padding: 4px;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#entry:nth-child(even){
|
||||||
|
background-color: #404552;
|
||||||
|
}
|
||||||
|
|
||||||
|
#entry:selected {
|
||||||
|
background-color: #4C566A;
|
||||||
|
}
|
||||||
|
|
||||||
|
#text:selected {
|
||||||
|
background: transparent;
|
||||||
|
}
|
Reference in New Issue
Block a user