Compare commits

...
10 Commits
Author SHA1 Message Date
Le_Foucheur 06f5b28291 oups 2026-01-01 14:48:20 +01:00
Le_Foucheur 9eb6226619 output_logging_20240912T002337 2026-01-01 14:46:55 +01:00
Le_Foucheur cb1a0ca69d update 2024-09-21 17:03:44 +02:00
Le_Foucheur 9be3dce474 cp to ln 2024-09-21 16:40:01 +02:00
Le_Foucheur d9e1f50d1e update 2024-09-21 16:29:21 +02:00
Le_Foucheur 189838a491 add veille 2024-09-15 22:29:33 +02:00
Le_Foucheur e3de01bde8 add 2024-09-15 22:10:50 +02:00
Le-foucheur bd49911eca add 2024-09-14 19:27:37 +02:00
Le-foucheur 55a4425379 Add files via upload 2024-09-14 19:18:58 +02:00
Le-foucheur 84ab8eb2ad add file 2024-09-14 19:16:24 +02:00
31 changed files with 1855 additions and 3 deletions

No files matched your search

+652
View File
@@ -0,0 +1,652 @@
# Generated by Powerlevel10k configuration wizard on 2024-03-26 at 18:46 CET.
# Based on romkatv/powerlevel10k/config/p10k-lean.zsh, checksum 52020.
# Wizard options: awesome-fontconfig, small icons, unicode, lean, 24h time, 1 line,
# compact, many icons, fluent, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with lean prompt style. Type `p10k configure` to generate
# your own config based on it.
#
# Tip: Looking for a nice color? Here's a one-liner to print colormap.
#
# for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done
# Temporarily change options.
'builtin' 'local' '-a' 'p10k_config_opts'
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
() {
emulate -L zsh -o extended_glob
# Unset all configuration options. This allows you to apply configuration changes without
# restarting zsh. Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`.
unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'
# Zsh >= 5.1 is required.
[[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return
# The list of segments shown on the left. Fill it with the most important segments.
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
# os_icon # os identifier
dir # current directory
vcs # git status
prompt_char # prompt symbol
)
# The list of segments shown on the right. Fill it with less important segments.
# Right prompt on the last prompt line (where you are typing your commands) gets
# automatically hidden when the input line reaches it. Right prompt above the
# last prompt line gets hidden if it would overlap with left prompt.
typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
status # exit code of the last command
command_execution_time # duration of the last command
background_jobs # presence of background jobs
# direnv # direnv status (https://direnv.net/)
# asdf # asdf version manager (https://github.com/asdf-vm/asdf)
# virtualenv # python virtual environment (https://docs.python.org/3/library/venv.html)
# anaconda # conda environment (https://conda.io/)
# pyenv # python environment (https://github.com/pyenv/pyenv)
# goenv # go environment (https://github.com/syndbg/goenv)
# nodenv # node.js version from nodenv (https://github.com/nodenv/nodenv)
# nvm # node.js version from nvm (https://github.com/nvm-sh/nvm)
# nodeenv # node.js environment (https://github.com/ekalinin/nodeenv)
# node_version # node.js version
# go_version # go version (https://golang.org)
# rust_version # rustc version (https://www.rust-lang.org)
# dotnet_version # .NET version (https://dotnet.microsoft.com)
# php_version # php version (https://www.php.net/)
# laravel_version # laravel php framework version (https://laravel.com/)
# java_version # java version (https://www.java.com/)
# package # name@version from package.json (https://docs.npmjs.com/files/package.json)
# rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
# rvm # ruby version from rvm (https://rvm.io)
# fvm # flutter version management (https://github.com/leoafarias/fvm)
# luaenv # lua version from luaenv (https://github.com/cehoffman/luaenv)
# jenv # java version from jenv (https://github.com/jenv/jenv)
# plenv # perl version from plenv (https://github.com/tokuhirom/plenv)
# perlbrew # perl version from perlbrew (https://github.com/gugod/App-perlbrew)
# phpenv # php version from phpenv (https://github.com/phpenv/phpenv)
# scalaenv # scala version from scalaenv (https://github.com/scalaenv/scalaenv)
# haskell_stack # haskell version from stack (https://haskellstack.org/)
# kubecontext # current kubernetes context (https://kubernetes.io/)
# terraform # terraform workspace (https://www.terraform.io)
# terraform_version # terraform version (https://www.terraform.io)
# aws # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)
# aws_eb_env # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)
# azure # azure account name (https://docs.microsoft.com/en-us/cli/azure)
# gcloud # google cloud cli account and project (https://cloud.google.com/)
# google_app_cred # google application credentials (https://cloud.google.com/docs/authentication/production)
# toolbox # toolbox name (https://github.com/containers/toolbox)
# context # user@hostname
# nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
# ranger # ranger shell (https://github.com/ranger/ranger)
# yazi # yazi shell (https://github.com/sxyazi/yazi)
# nnn # nnn shell (https://github.com/jarun/nnn)
# lf # lf shell (https://github.com/gokcehan/lf)
# xplr # xplr shell (https://github.com/sayanarijit/xplr)
# vim_shell # vim shell indicator (:sh)
# midnight_commander # midnight commander shell (https://midnight-commander.org/)
# nix_shell # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html)
# chezmoi_shell # chezmoi shell (https://www.chezmoi.io/)
# vpn_ip # virtual private network indicator
# load # CPU load
# disk_usage # disk usage
# ram # free RAM
# swap # used swap
# todo # todo items (https://github.com/todotxt/todo.txt-cli)
# timewarrior # timewarrior tracking status (https://timewarrior.net/)
# taskwarrior # taskwarrior task count (https://taskwarrior.org/)
# per_directory_history # Oh My Zsh per-directory-history local/global indicator
# cpu_arch # CPU architecture
time # current time
# ip # ip address and bandwidth usage for a specified network interface
# public_ip # public IP address
# proxy # system-wide http/https/ftp proxy
# battery # internal battery
# wifi # wifi speed
# example # example user-defined segment (see prompt_example function below)
)
# Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.
typeset -g POWERLEVEL9K_MODE=awesome-fontconfig
# When set to `moderate`, some icons will have an extra space after them. This is meant to avoid
# icon overlap when using non-monospace fonts. When set to `none`, spaces are not added.
typeset -g POWERLEVEL9K_ICON_PADDING=none
# Basic style options that define the overall look of your prompt. You probably don't want to
# change them.
typeset -g POWERLEVEL9K_BACKGROUND= # transparent background
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_{LEFT,RIGHT}_WHITESPACE= # no surrounding whitespace
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SUBSEGMENT_SEPARATOR='' # separate segments with a space
typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SEGMENT_SEPARATOR= # no end-of-line symbol
# When set to true, icons appear before content on both sides of the prompt. When set
# to false, icons go after content. If empty or not set, icons go before content in the left
# prompt and after content in the right prompt.
#
# You can also override it for a specific segment:
#
# POWERLEVEL9K_STATUS_ICON_BEFORE_CONTENT=false
#
# Or for a specific segment in specific state:
#
# POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false
typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=true
# Add an empty line before each prompt.
typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=false
# Connect left prompt lines with these symbols.
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX=
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX=
# Connect right prompt lines with these symbols.
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX=
typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX=
typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX=
# The left end of left prompt.
typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=''
# The right end of right prompt.
typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
# Ruler, a.k.a. the horizontal line before each prompt. If you set it to true, you'll
# probably want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false above and
# POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' ' below.
typeset -g POWERLEVEL9K_SHOW_RULER=false
typeset -g POWERLEVEL9K_RULER_CHAR='─' # reasonable alternative: '·'
typeset -g POWERLEVEL9K_RULER_FOREGROUND=242
# Filler between left and right prompt on the first prompt line. You can set it to '·' or '─'
# to make it easier to see the alignment between left and right prompt and to separate prompt
# from command output. It serves the same purpose as ruler (see above) without increasing
# the number of prompt lines. You'll probably want to set POWERLEVEL9K_SHOW_RULER=false
# if using this. You might also like POWERLEVEL9K_PROMPT_ADD_NEWLINE=false for more compact
# prompt.
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=''
if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then
# The color of the filler.
typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=242
# Add a space between the end of left prompt and the filler.
typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=' '
# Add a space between the filler and the start of right prompt.
typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL=' '
# Start filler from the edge of the screen if there are no left segments on the first line.
typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'
# End filler on the edge of the screen if there are no right segments on the first line.
typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}'
fi
#################################[ os_icon: os identifier ]##################################
# OS identifier color.
typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=
# Custom icon.
# typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐'
################################[ prompt_char: prompt symbol ]################################
# Green prompt symbol if the last command succeeded.
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=002
# Red prompt symbol if the last command failed.
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=001
# Default prompt symbol.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='>'
# Prompt symbol in command vi mode.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮'
# Prompt symbol in visual vi mode.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V'
# Prompt symbol in overwrite vi mode.
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶'
typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true
# No line terminator if prompt_char is the last segment.
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=''
# No line introducer if prompt_char is the first segment.
typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=
##################################[ dir: current directory ]##################################
# Default current directory color.
typeset -g POWERLEVEL9K_DIR_FOREGROUND=36
# If directory is too long, shorten some of its segments to the shortest possible unique
# prefix. The shortened directory can be tab-completed to the original.
typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique
# Replace removed segment suffixes with this symbol.
typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=
# Color of the shortened directory segments.
typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=103
# Color of the anchor directory segments. Anchor segments are never shortened. The first
# segment is always an anchor.
typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=36
# Display anchor directory segments in bold.
typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true
# Don't shorten directories that contain any of these files. They are anchors.
local anchor_files=(
.bzr
.citc
.git
.hg
.node-version
.python-version
.go-version
.ruby-version
.lua-version
.java-version
.perl-version
.php-version
.tool-versions
.shorten_folder_marker
.svn
.terraform
CVS
Cargo.toml
composer.json
go.mod
package.json
stack.yaml
)
typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})"
# If set to "first" ("last"), remove everything before the first (last) subdirectory that contains
# files matching $POWERLEVEL9K_SHORTEN_FOLDER_MARKER. For example, when the current directory is
# /foo/bar/git_repo/nested_git_repo/baz, prompt will display git_repo/nested_git_repo/baz (first)
# or nested_git_repo/baz (last). This assumes that git_repo and nested_git_repo contain markers
# and other directories don't.
#
# Optionally, "first" and "last" can be followed by ":<offset>" where <offset> is an integer.
# This moves the truncation point to the right (positive offset) or to the left (negative offset)
# relative to the marker. Plain "first" and "last" are equivalent to "first:0" and "last:0"
# respectively.
typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false
# Don't shorten this many last directory segments. They are anchors.
typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
# Shorten directory if it's longer than this even if there is space for it. The value can
# be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty,
# directory will be shortened only when prompt doesn't fit or when other parameters demand it
# (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below).
# If set to `0`, directory will always be shortened to its minimum length.
typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80
# When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this
# many columns for typing commands.
typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40
# When `dir` segment is on the last prompt line, try to shorten it enough to leave at least
# COLUMNS * POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT * 0.01 columns for typing commands.
typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50
# If set to true, embed a hyperlink into the directory. Useful for quickly
# opening a directory in the file manager simply by clicking the link.
# Can also be handy when the directory is shortened, as it allows you to see
# the full directory that was used in previous commands.
typeset -g POWERLEVEL9K_DIR_HYPERLINK=false
# Enable special styling for non-writable and non-existent directories. See POWERLEVEL9K_LOCK_ICON
# and POWERLEVEL9K_DIR_CLASSES below.
# typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=v3
# The default icon shown next to non-writable and non-existent directories when
# POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3.
# typeset -g POWERLEVEL9K_LOCK_ICON='⭐'
# POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons and colors for different
# directories. It must be an array with 3 * N elements. Each triplet consists of:
#
# 1. A pattern against which the current directory ($PWD) is matched. Matching is done with
# extended_glob option enabled.
# 2. Directory class for the purpose of styling.
# 3. An empty string.
#
# Triplets are tried in order. The first triplet whose pattern matches $PWD wins.
#
# If POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3, non-writable and non-existent directories
# acquire class suffix _NOT_WRITABLE and NON_EXISTENT respectively.
#
# For example, given these settings:
#
# typeset -g POWERLEVEL9K_DIR_CLASSES=(
# '~/work(|/*)' WORK ''
# '~(|/*)' HOME ''
# '*' DEFAULT '')
#
# Whenever the current directory is ~/work or a subdirectory of ~/work, it gets styled with one
# of the following classes depending on its writability and existence: WORK, WORK_NOT_WRITABLE or
# WORK_NON_EXISTENT.
#
# Simply assigning classes to directories doesn't have any visible effects. It merely gives you an
# option to define custom colors and icons for different directory classes.
#
# # Styling for WORK.
# typeset -g POWERLEVEL9K_DIR_WORK_VISUAL_IDENTIFIER_EXPANSION='⭐'
# typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=31
# typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=103
# typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=39
#
# # Styling for WORK_NOT_WRITABLE.
# typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
# typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND=31
# typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_SHORTENED_FOREGROUND=103
# typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_ANCHOR_FOREGROUND=39
#
# # Styling for WORK_NON_EXISTENT.
# typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_VISUAL_IDENTIFIER_EXPANSION='⭐'
# typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_FOREGROUND=31
# typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_SHORTENED_FOREGROUND=103
# typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_ANCHOR_FOREGROUND=39
#
# If a styling parameter isn't explicitly defined for some class, it falls back to the classless
# parameter. For example, if POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND is not set, it falls
# back to POWERLEVEL9K_DIR_FOREGROUND.
#
typeset -g POWERLEVEL9K_DIR_CLASSES=()
# Custom prefix.
typeset -g POWERLEVEL9K_DIR_PREFIX='%F{green}['
typeset -g POWERLEVEL9K_DIR_PREFIX_FOREGROUND=103
typeset -g POWERLEVEL9K_DIR_SUFFIX='%F{green}]'
#####################################[ vcs: git status ]######################################
# Branch icon. Set this parameter to '\UE0A0 ' for the popular Powerline branch icon.
typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\uF126 '
# Untracked files icon. It's really a question mark, your font isn't broken.
# Change the value of this parameter to show a different icon.
typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?'
# Formatter for Git status.
#
# Example output: master wip ⇣42⇡42 *42 merge ~42 +42 !42 ?42.
#
# You can edit the function to customize how Git status looks.
#
# VCS_STATUS_* parameters are set by gitstatus plugin. See reference:
# https://github.com/romkatv/gitstatus/blob/master/gitstatus.plugin.zsh.
function my_git_formatter() {
emulate -L zsh
if [[ -n $P9K_CONTENT ]]; then
# If P9K_CONTENT is not empty, use it. It's either "loading" or from vcs_info (not from
# gitstatus plugin). VCS_STATUS_* parameters are not available in this case.
typeset -g my_git_format=$P9K_CONTENT
return
fi
if (( $1 )); then
# Styling for up-to-date Git status.
local meta='%f' # default foreground
local clean='%31F' # green foreground
local modified='%178F' # yellow foreground
local untracked='%39F' # blue foreground
local conflicted='%196F' # red foreground
else
# Styling for incomplete and stale Git status.
local meta='%244F' # grey foreground
local clean='%244F' # grey foreground
local modified='%244F' # grey foreground
local untracked='%244F' # grey foreground
local conflicted='%244F' # grey foreground
fi
local res
if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then
local branch=${(V)VCS_STATUS_LOCAL_BRANCH}
# If local branch name is at most 32 characters long, show it in full.
# Otherwise show the first 12 … the last 12.
# Tip: To always show local branch name in full without truncation, delete the next line.
(( $#branch > 32 )) && branch[13,-13]="…" # <-- this line
res+="${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\%/%%}"
fi
if [[ -n $VCS_STATUS_TAG
# Show tag only if not on a branch.
# Tip: To always show tag, delete the next line.
&& -z $VCS_STATUS_LOCAL_BRANCH # <-- this line
]]; then
local tag=${(V)VCS_STATUS_TAG}
# If tag name is at most 32 characters long, show it in full.
# Otherwise show the first 12 … the last 12.
# Tip: To always show tag name in full without truncation, delete the next line.
(( $#tag > 32 )) && tag[13,-13]="…" # <-- this line
res+="${meta}#${clean}${tag//\%/%%}"
fi
# Display the current Git commit if there is no branch and no tag.
# Tip: To always display the current Git commit, delete the next line.
[[ -z $VCS_STATUS_LOCAL_BRANCH && -z $VCS_STATUS_TAG ]] && # <-- this line
res+="${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}"
# Show tracking branch name if it differs from local branch.
if [[ -n ${VCS_STATUS_REMOTE_BRANCH:#$VCS_STATUS_LOCAL_BRANCH} ]]; then
res+="${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\%/%%}"
fi
# Display "wip" if the latest commit's summary contains "wip" or "WIP".
if [[ $VCS_STATUS_COMMIT_SUMMARY == (|*[^[:alnum:]])(wip|WIP)(|[^[:alnum:]]*) ]]; then
res+=" ${modified}wip"
fi
if (( VCS_STATUS_COMMITS_AHEAD || VCS_STATUS_COMMITS_BEHIND )); then
# ⇣42 if behind the remote.
(( VCS_STATUS_COMMITS_BEHIND )) && res+=" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}"
# ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42.
(( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=" "
(( VCS_STATUS_COMMITS_AHEAD )) && res+="${clean}⇡${VCS_STATUS_COMMITS_AHEAD}"
elif [[ -n $VCS_STATUS_REMOTE_BRANCH ]]; then
# Tip: Uncomment the next line to display '=' if up to date with the remote.
# res+=" ${clean}="
fi
# ⇠42 if behind the push remote.
(( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}"
(( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=" "
# ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42.
(( VCS_STATUS_PUSH_COMMITS_AHEAD )) && res+="${clean}⇢${VCS_STATUS_PUSH_COMMITS_AHEAD}"
# *42 if have stashes.
(( VCS_STATUS_STASHES )) && res+=" ${clean}*${VCS_STATUS_STASHES}"
# 'merge' if the repo is in an unusual state.
[[ -n $VCS_STATUS_ACTION ]] && res+=" ${conflicted}${VCS_STATUS_ACTION}"
# ~42 if have merge conflicts.
(( VCS_STATUS_NUM_CONFLICTED )) && res+=" ${conflicted}~${VCS_STATUS_NUM_CONFLICTED}"
# +42 if have staged changes.
(( VCS_STATUS_NUM_STAGED )) && res+=" ${modified}+${VCS_STATUS_NUM_STAGED}"
# !42 if have unstaged changes.
(( VCS_STATUS_NUM_UNSTAGED )) && res+=" ${modified}!${VCS_STATUS_NUM_UNSTAGED}"
# ?42 if have untracked files. It's really a question mark, your font isn't broken.
# See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon.
# Remove the next line if you don't want to see untracked files at all.
(( VCS_STATUS_NUM_UNTRACKED )) && res+=" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}"
# "─" if the number of unstaged files is unknown. This can happen due to
# POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower
# than the number of files in the Git index, or due to bash.showDirtyState being set to false
# in the repository config. The number of staged and untracked files may also be unknown
# in this case.
(( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=" ${modified}─"
typeset -g my_git_format=$res
}
functions -M my_git_formatter 2>/dev/null
# Don't count the number of unstaged, untracked and conflicted files in Git repositories with
# more than this many files in the index. Negative value means infinity.
#
# If you are working in Git repositories with tens of millions of files and seeing performance
# sagging, try setting POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY to a number lower than the output
# of `git ls-files | wc -l`. Alternatively, add `bash.showDirtyState = false` to the repository's
# config: `git config bash.showDirtyState false`.
typeset -g POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1
# Don't show Git status in prompt for repositories whose workdir matches this pattern.
# For example, if set to '~', the Git repository at $HOME/.git will be ignored.
# Multiple patterns can be combined with '|': '~(|/foo)|/bar/baz/*'.
typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~'
# Disable the default Git status formatting.
typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true
# Install our own Git status formatter.
typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter(1)))+${my_git_format}}'
typeset -g POWERLEVEL9K_VCS_LOADING_CONTENT_EXPANSION='${$((my_git_formatter(0)))+${my_git_format}}'
# Enable counters for staged, unstaged, etc.
typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED,CONFLICTED,COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=-1
# Icon color.
typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_COLOR=31
typeset -g POWERLEVEL9K_VCS_LOADING_VISUAL_IDENTIFIER_COLOR=244
# Custom icon.
# typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_EXPANSION='⭐'
# Custom prefix.
typeset -g POWERLEVEL9K_VCS_PREFIX=' %fon '
typeset -g POWERLEVEL9K_VCS_SUFFIX=' '
# Show status of repositories of these types. You can add svn and/or hg if you are
# using them. If you do, your prompt may become slow even when your current directory
# isn't in an svn or hg repository.
typeset -g POWERLEVEL9K_VCS_BACKENDS=(git)
# These settings are used for repositories other than Git or when gitstatusd fails and
# Powerlevel10k has to fall back to using vcs_info.
typeset -g POWERLEVEL9K_VCS_CLEAN_FOREGROUND=76
typeset -g POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND=76
typeset -g POWERLEVEL9K_VCS_MODIFIED_FOREGROUND=178
##########################[ status: exit code of the last command ]###########################
# Enable OK_PIPE, ERROR_PIPE and ERROR_SIGNAL status states to allow us to enable, disable and
# style them independently from the regular OK and ERROR state.
typeset -g POWERLEVEL9K_STATUS_EXTENDED_STATES=true
# Status on success. No content, just an icon. No need to show it if prompt_char is enabled as
# it will signify success by turning green.
typeset -g POWERLEVEL9K_STATUS_OK=false
typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=70
typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔'
# Status when some part of a pipe command fails but the overall exit status is zero. It may look
# like this: 1|0.
typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=70
typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔'
# Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as
# it will signify error by turning red.
typeset -g POWERLEVEL9K_STATUS_ERROR=true
typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=160
typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘'
# Status when the last command was terminated by a signal.
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=160
# Use terse signal names: "INT" instead of "SIGINT(2)".
typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false
typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='✘'
# Status when some part of a pipe command fails and the overall exit status is also non-zero.
# It may look like this: 1|0.
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=160
typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='✘'
typeset -g POWERLEVEL9K_STATUS_SUFFIX=' '
###################[ command_execution_time: duration of the last command ]###################
# Show duration of the last command if takes at least this many seconds.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3
# Show this many fractional digits. Zero means round to seconds.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0
# Execution time color.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=3
# Duration format: 1d 2h 3m 4s.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s'
# Custom icon.
# typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'
# Custom prefix.
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='%ftook '
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_SUFFIX=' '
#######################[ background_jobs: presence of background jobs ]#######################
# Don't show the number of background jobs.
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false
# Background jobs color.
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=70
typeset -g POWERLEVEL9K_BACKGROUND_JOBS_SUFFIX=' '
# Custom icon.
# typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐'
####################################[ time: current time ]####################################
# Current time color.
typeset -g POWERLEVEL9K_TIME_FOREGROUND=12
# Format for the current time: 09:51:02. See `man 3 strftime`.
typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'
# If set to true, time will update when you hit enter. This way prompts for the past
# commands will contain the start times of their commands as opposed to the default
# behavior where they contain the end times of their preceding commands.
typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false
# Custom icon.
# typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'
# Custom prefix.
typeset -g POWERLEVEL9K_TIME_PREFIX='%fat '
# Example of a user-defined prompt segment. Function prompt_example will be called on every
# prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or
# POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and orange text greeting the user.
#
# Type `p10k help segment` for documentation and a more sophisticated example.
function prompt_example() {
p10k segment -f 208 -i '⭐' -t 'hello, %n'
}
# User-defined prompt segments may optionally provide an instant_prompt_* function. Its job
# is to generate the prompt segment for display in instant prompt. See
# https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.
#
# Powerlevel10k will call instant_prompt_* at the same time as the regular prompt_* function
# and will record all `p10k segment` calls it makes. When displaying instant prompt, Powerlevel10k
# will replay these calls without actually calling instant_prompt_*. It is imperative that
# instant_prompt_* always makes the same `p10k segment` calls regardless of environment. If this
# rule is not observed, the content of instant prompt will be incorrect.
#
# Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If
# instant_prompt_* is not defined for a segment, the segment won't be shown in instant prompt.
function instant_prompt_example() {
# Since prompt_example always makes the same `p10k segment` calls, we can call it from
# instant_prompt_example. This will give us the same `example` prompt segment in the instant
# and regular prompts.
prompt_example
}
# User-defined prompt segments can be customized the same way as built-in segments.
# typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=208
# typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='⭐'
# Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt
# when accepting a command line. Supported values:
#
# - off: Don't change prompt when accepting a command line.
# - always: Trim down prompt when accepting a command line.
# - same-dir: Trim down prompt when accepting a command line unless this is the first command
# typed after changing current working directory.
typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off
# Instant prompt mode.
#
# - off: Disable instant prompt. Choose this if you've tried instant prompt and found
# it incompatible with your zsh configuration files.
# - quiet: Enable instant prompt and don't print warnings when detecting console output
# during zsh initialization. Choose this if you've read and understood
# https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.
# - verbose: Enable instant prompt and print a warning when detecting console output during
# zsh initialization. Choose this if you've never tried instant prompt, haven't
# seen the warning, or if you are unsure what this all means.
typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload
# can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you
# really need it.
typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true
# If p10k is already loaded, reload configuration.
# This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true.
(( ! $+functions[p10k] )) || p10k reload
}
# Tell `p10k configure` which file it should overwrite.
typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a}
(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}
'builtin' 'unset' 'p10k_config_opts'
Executable
+7
View File
@@ -0,0 +1,7 @@
export LC_ALL=C
#fastfetch -s " " -l asahi && fastfetch -s " " -l fedora && fastfetch -s " " -l bedrock && fastfetch -l arch
/home/jvj/Rust/fastfeth/target/release/fastfeth
eval $(ssh-agent) > /dev/null
+2
View File
@@ -0,0 +1,2 @@
. "$HOME/.cargo/env"
+23 -3
View File
@@ -69,19 +69,28 @@ bindkey '\e[1;5A' sudo-previous
# alias # alias
alias sway="~/script/init-sway" alias sway="~/script/init-sway"
alias ls="eza --icons auto" alias ls="eza --icons auto"
alias sl="sl; eza --icons auto"
alias cd=z
comprdiap () {
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \
-dNOPAUSE -dQUIET -dBATCH -sOutputFile=$2 $1
}
#env #env
export XKB_DEFAULT_LAYOUT=fr export XKB_DEFAULT_LAYOUT=fr
export PROMPT='%(!.%F{red}.%F{green})[%F{cyan}%5~%(?.. %F{red}%?)%(!.%F{red}.%F{green})]%f%(!.%F{red}#.%F{green}>)%f' export PROMPT='%(!.%F{red}.%F{green})[%F{cyan}%5~%(?.. %F{red}%?)%(!.%F{red}.%F{green})]%f%(!.%F{red}#.%F{green}>)%f'
export EDITOR=code
#wayland #wayland
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
export MOZ_DBUS_REMOTE=1 export MOZ_DBUS_REMOTE=1
export QT_QPA_PLATFORM="wayland;xcb" export QT_QPA_PLATFORM="wayland;xcb"
export QT_DEBUG_PLUGINS=1
export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins export QT_QPA_PLATFORM_PLUGIN_PATH=/usr/lib/qt/plugins
export CLUTTER_BACKEND=wayland export CLUTTER_BACKEND=wayland
export SDL_VIDEODRIVER=wayland export SDL_VIDEODRIVER=wayland
export GTK_THEME=Adwaita:dark export GTK_THEME=Adwaita:dark
export HELIX_RUNTIME=/home/jvj/install/helix/runtime
export GDK_BACKEND=wayland export GDK_BACKEND=wayland
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
@@ -94,10 +103,15 @@ if [[ $TERM = "alacritty" ]]; then # Load modules only in alacritt y, not in TT
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
fi fi
alias deezer="deezer-enhanced --enable-features=UseOzonePlatform --ozone-platform=wayland" alias deezer="deezer-enhanced.js --enable-features=UseOzonePlatform --ozone-platform=wayland"
alias fastfetch="fastfetch -l arch" alias circuit="circuitjs1-electron"
alias gccsafe='gcc -g -Wall -Wextra -std=c99 -fsanitize=address,undefined' alias gcafe='gcc -g -Wall -Wextra -std=c99 -fsanitize=address,undefined'
alias fastfetch="~/Rust/fastfeth/target/release/fastfeth"
alias wifi='watch -c -n 0.1 "nmcli -colors yes d w l"'
alias cat=bat
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
source ~/.zoxide
# BEGIN opam configuration # BEGIN opam configuration
@@ -107,3 +121,9 @@ source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
# This section can be safely removed at any time if needed. # This section can be safely removed at any time if needed.
[[ ! -r '/home/jvj/.opam/opam-init/init.zsh' ]] || source '/home/jvj/.opam/opam-init/init.zsh' > /dev/null 2> /dev/null [[ ! -r '/home/jvj/.opam/opam-init/init.zsh' ]] || source '/home/jvj/.opam/opam-init/init.zsh' > /dev/null 2> /dev/null
# END opam configuration # END opam configuration
#atuin
eval "$(atuin init zsh)"
#alias pour les app x86 avec muvm
alias Vial='muvm -- "/home/jvj/install/vial/Vial-v0.7.3-x86_64.AppImage"'
+71
View File
@@ -0,0 +1,71 @@
# Default colors
[colors.primary]
# background = '#0f0e0f'
background = "#000000"
bright_foreground = "#ffffff"
dim_foreground = "#dddddd"
foreground = '#fff1f3'
# Normal colors
[colors.normal]
black = '#2c2525'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# Bright colors
[colors.bright]
black = '#72696a'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# [colors.bright]
# black = "#666666"
# blue = "#7aa6da"
# cyan = "#70c0b1"
# green = "#b9ca4a"
# magenta = "#c397d8"
# red = "#d54e53"
# white = "#eaeaea"
# yellow = "#e7c547"
# [colors.normal]
# black = "#151515"
# blue = "#81a2be"
# cyan = "#8abeb7"
# green = "#b5bd68"
# magenta = "#b294bb"
# red = "#cc6666"
# white = "#efefef"
# yellow = "#f0c674"
# [colors.primary]
# background = "#000000"
# bright_foreground = "#ffffff"
# dim_foreground = "#dddddd"
# foreground = "#eeeeee"
[font]
#size=10
size=12
[font.normal]
#family = "mono"
#family = "MesloLGS Nerd Font"
#family = "Monocraft"
family = "Cozette"
[scrolling]
history = 1000
[window]
opacity = 0.75
#opacity = 0
+95
View File
@@ -0,0 +1,95 @@
theme = "monokai_custom"
[editor]
auto-save.focus-lost = true # default: false
auto-save.after-delay.enable = true # default: false
auto-save.after-delay.timeout = 500 # range: [0; u64::MAX] default: 3000
color-modes = true
bufferline = "multiple"
preview-completion-insert = false
completion-replace = true
[editor.lsp]
display-inlay-hints = true
display-messages = true
[editor.cursor-shape]
insert = "bar"
normal = "block"
select = "underline"
[editor.file-picker]
hidden = false
[editor.indent-guides]
render = true
[editor.statusline]
left = ["mode", "spinner", "version-control", "spacer", "diagnostics"]
center = ["file-name"]
right = ["position", "total-line-numbers", "separator", "file-encoding", "file-line-ending", "file-type"]
separator = "│"
mode.normal = "NORMAL"
mode.insert = "INSERT"
mode.select = "SELECT"
[editor.inline-diagnostics]
cursor-line = "hint"
other-lines = "error"
[keys.normal]
"S-A-e" = ":fmt"
"C-h" = "toggle_comments"
"C-c" = ":clipboard-yank"
"C-x" = [":clipboard-yank", "delete_selection"]
"C-v" = ":clipboard-paste-replace"
# custom movements and key swaps
"n" = "move_char_right"
"s" = "move_char_left"
"h" = "move_visual_line_down"
"l" = "move_visual_line_up"
"j" = "select_regex"
"C-i" = "page_cursor_half_down"
"C-d" = ["search_selection", "select_mode", "extend_search_next", "normal_mode"]
"tab" = "indent"
"S-tab" = "unindent"
A-down = ["extend_to_line_bounds", "delete_selection", "paste_after"]
A-up = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before"]
"C-q" = ":quit"
[keys.select]
"S-A-e" = ":fmt"
"C-h" = "toggle_comments"
"C-c" = ":clipboard-yank"
"C-x" = [":clipboard-yank", "delete_selection"]
"C-v" = ":clipboard-paste-replace"
# custom movements and key swaps
"n" = "extend_char_right"
"s" = "extend_char_left"
"h" = "extend_visual_line_down"
"l" = "extend_visual_line_up"
"j" = "select_regex"
"k" = "extend_search_next"
"K" = "extend_search_prev"
"tab" = "indent"
"S-tab" = "unindent"
[keys.insert]
"S-A-e" = ":fmt"
"C-h" = "toggle_comments"
"C-c" = ":clipboard-yank"
"C-x" = [":clipboard-yank", "delete_selection"]
"C-v" = ":clipboard-paste-replace"
"C-space" = "completion"
A-down = ["extend_to_line_bounds", "delete_selection", "paste_after", "move_line_down"]
A-up = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before", "move_line_up"]
+1
View File
@@ -0,0 +1 @@
target/**
+84
View File
@@ -0,0 +1,84 @@
[language-server]
emmet-ls = { command = "emmet-ls", args = [ "--stdio" ]}
[language-server.eslint]
command = "vscode-eslint-language-server"
args = ["--stdio"]
[language-server.eslint.config]
codeActionsOnSave = { mode = "all", "source.fixAll.eslint" = true }
format = { enable = true }
nodePath = ""
quiet = false
rulesCustomizations = []
run = "onType"
validate = "on"
experimental = {}
problems = { shortenToSingleLine = false }
[language-server.eslint.config.codeAction]
disableRuleComment = { enable = true, location = "separateLine" }
showDocumentation = { enable = true }
[language-server.eslint.config.workingDirectory]
mode = "location"
[language-server.vscode-json-language-server.config]
json = { validate = { enable = true }, format = { enable = true } }
provideFormatter = true
[language-server.vscode-css-language-server.config]
css = { validate = { enable = true } }
scss = { validate = { enable = true } }
less = { validate = { enable = true } }
provideFormatter = true
[language-server.cssmodules]
command = "cssmodules-language-server"
args = []
[language-server.rust-analyzer]
config = { cargo = { features = "all" } }
[language-server.gpt]
command = "helix-gpt"
args = ["--handler", "copilot", "--copilotApiKey", "KEY_HERE"]
[[language]]
name = "typescript"
indent = { tab-width = 4, unit = " " }
language-servers = [ "typescript-language-server", "eslint", "emmet-ls" ]
[[language]]
name = "tsx"
indent = { tab-width = 4, unit = " " }
language-servers = [ "typescript-language-server", "eslint", "cssmodules", "emmet-ls" ]
# auto-format = true
[[language]]
name = "rust"
indent = { tab-width = 4, unit = " " }
formatter = { command = "rustfmt" }
auto-format = false
[[language]]
name = "scss"
indent = { tab-width = 4, unit = " " }
language-servers = [ "vscode-css-language-server", "cssmodules" ]
auto-format = true
[[grammar]]
name = "scss"
# source = { path = "/home/julien/code/tree-sitter-scss" }
source = { git = "https://github.com/tree-sitter-grammars/tree-sitter-scss", rev = "8f47fa8be72ac299cab4c6aa02668635f2dcd4be" }
[[language]]
name = "toml"
language-servers = [
"gpt",
]
[[language]]
name = "ocaml"
indent = { tab-width = 4, unit = " " }
formatter = { command = "ocamlformat", args=["-", "--impl", "--enable-outside-detected-project"] }
+1
View File
@@ -0,0 +1 @@
/home/jvj/runtime
+32
View File
@@ -0,0 +1,32 @@
inherits = "monokai_pro"
"constant" = "purple"
"variable.builtin" = "base8"
"constant.builtin" = "purple"
"constant.character.escape" = "purple"
"constant.character" = "yellow"
# classes, types, primitives
"type" = "blue"
"type.builtin" = "blue"
"punctuation.embedded.jsx" = "orange"
# Custom
"tag" = "red"
"attribute.jsx" = { fg = "blue", modifiers = ["italic"] }
"ui.virtual.indent-guide" = "base3"
"ui.statusline.select" = { fg = "base4", bg = "red" }
"ui.statusline.separator" = "base6"
"variable.scss" = { fg = "orange", modifiers = ["italic"] }
"variable.scss.ident" = "green"
"classname" = { fg = "green", modifiers = ["italic"] }
"idname" = { fg = "orange", modifiers = ["italic"] }
"punctuation.italic" = { fg = "base6", modifiers = ["italic"] }
"string.delimiter" = "base6"
"punctuation.delimiter.rust" = "red"
"variable.builtin.self" = { fg = "base7", modifiers = ["italic"] }
+3
View File
@@ -0,0 +1,3 @@
bg=$(find ~/wallpaper/ -type f,l | shuf -n 1)
swaylock --effect-blur 10x10 --font-size 35 --font Monocraft -f -F -l --clock -i $bg
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
#augmente la luminosité de arg%, 10% si non spécifié
#retourne le % de luminosité en fin de commande
max=$(cat /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/max_brightness)
if [ -n "$1" ]
then
augment=$1
else
augment=10
fi
next=$(expr $(cat /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness) + $max '*' "$augment" '/' 100)
if [ -z "$next" ]
then
exit 1
fi
if [ $next -gt $max ]
then
next=$max
fi
echo $next > /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness
echo $(expr $next "*" 100 "/" $max)
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
#augmente la luminosité de arg%, 10% si non spécifié
#retourne le % de luminosité en fin de commande
max=$(cat /sys/class/leds/kbd_backlight/max_brightness)
if [ -n "$1" ]
then
augment=$1
else
augment=10
fi
next=$(expr $(cat /sys/class/leds/kbd_backlight/brightness) + $max '*' "$augment" '/' 100)
if [ -z "$next" ]
then
exit 1
fi
if [ $next -gt $max ]
then
next=$max
fi
echo $next > /sys/class/leds/kbd_backlight/brightness
echo $(expr $next "*" 100 "/" $max)
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
#augmente la luminosité de arg%, 10% si non spécifié
#retourne le % de luminosité en fin de commande
max=$(cat /sys/class/backlight/apple-panel-bl/max_brightness)
if [ -n "$1" ]
then
dim=$1
else
dim=10
fi
next=$(expr $(cat /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness) - $max '*' "$dim" '/' 100)
if [ -z "$next" ]
then
exit 1
fi
if [ $next -lt 0 ]
then
next=0
fi
echo $next > /sys/class/backlight/apple-panel-bl/subsystem/apple-panel-bl/brightness
echo $(expr $next "*" 100 "/" $max)
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
#augmente la luminosité de arg%, 10% si non spécifié
#retourne le % de luminosité en fin de commande
max=$(cat /sys/class/leds/kbd_backlight/max_brightness)
if [ -n "$1" ]
then
dim=$1
else
dim=10
fi
next=$(expr $(cat /sys/class/leds/kbd_backlight/brightness) - $max '*' "$dim" '/' 100)
if [ -z "$next" ]
then
exit 1
fi
if [ $next -lt 0 ]
then
next=0
fi
echo $next > /sys/class/leds/kbd_backlight/brightness
echo $(expr $next "*" 100 "/" $max)
+23
View File
@@ -0,0 +1,23 @@
#!/bin/sh
sudo cpupower frequency-set --governor powersave
sudo cpupower frequency-set --max 1.5GHz
echo 0 | sudo tee /sys/devices/system/cpu/cpu4/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu5/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu6/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu7/online
sudo rc-service custom-asus-numpad stop
sudo rc-service bluetoothd stop
sudo rc-service custom-rclone stop
sudo rc-service connmand stop
sudo rc-service iwd stop
sudo rc-service dhcpcd stop
sudo killall pipewire pipewire-pulse wireplumber ssh-agent connman-vpnd waybar gammastep keepassxc
rfkill block all
# Launch a new bar
exec waybar -c ~/.config/waybar/config_eco&
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
sudo cpupower frequency-set --governor powersave
sudo cpupower frequency-set --max 1.5GHz
echo 0 | sudo tee /sys/devices/system/cpu/cpu4/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu5/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu6/online
echo 0 | sudo tee /sys/devices/system/cpu/cpu7/online
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# Stop keepassXC
keepassxc --lock
killall keepassxc
Stop gammastep
killall gammastep
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
# Retourne le cwd de la fenetre qui a le focus
pid=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.type=="con") | select(.focused==true).pid')
ppid=$(pgrep --newest --parent ${pid})
readlink /proc/${ppid}/cwd || echo $HOME
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
# Wait until waybar is fully available (for tray)
wait_waybar () {
# Ask dbus to check if waybar is available
while [[ -z $(dbus-send --session --dest=org.freedesktop.DBus --type=method_call --print-reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames | grep "fr.arouillard.waybar" ) ]]
do
sleep 0.5
done
}
# Per computer processus
gammastep& # Blue light reducer
bluetoothctl power off # power off bluetooth at startup
# Start other processus
wait_waybar
keepassxc&
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
export XDG_CURRENT_DESKTOP=sway
# Start sway
dbus-run-session sway -Vd
# dbus-launch
#sway -Vd
+21
View File
@@ -0,0 +1,21 @@
while true;
do
rien=$(echo $(ps -A | grep swayidle))
if [[ $(ps -A | grep deezer-enhanced) != "" ]]; then
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
else
class="stopped"
fi
if [[ $class == "playing" ]]&&[[ $rien != "" ]]; then
killall swayidle
else
if [[ $rien == "" ]]; then
swayidle -w \
timeout 269 '~/script/dim_lum.sh 0 > /run/user/$UID/lum.txt'\
timeout 270 '~/script/dim_lum.sh 100'\
resume '~/script/augment_lum.sh $(( $(cat /run/user/$UID/lum.txt) + 1 ))'\
timeout 300 '~/script/Clock.sh'
fi
fi
done
+4
View File
@@ -0,0 +1,4 @@
path=$(pwd $1)
path=$(echo $path"/"$1)
echo "alias $2=\"muvm -- '$path'\"" >> ~/.zshrc
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
protonhax init "/home/jvj/Games/SidMeiersCivilizationVI/Base/Binaries/Win64EOS/CivilizationVI.exe" $@
:
+81
View File
@@ -0,0 +1,81 @@
rm -r "/home/jvj/wallpaper/"
mkdir -p "/home/jvj/wallpaper"
######################
# #
# Parametre #
# #
######################
listLeg=("OuterWilds/fabicdeleted.jpg")
listrare=("minecraft/terralith-1.png")
listcomm=("OuterWilds/NewSpaceTime.png" "OuterWilds/O_SolarSyi.jpg")
Total=100
nb_leg=${#listLeg[@]}
legendary=1
nb_Rare=${#listrare[@]}
rare=10
nb_com=${#listcomm[@]}
commun=$(( ( $Total - $legendary * $nb_leg - $rare * $nb_Rare) / $nb_com ))
######################
# #
# création symlink #
# #
######################
#Legendaire
for j in "${listLeg[@]}"
do
mkdir -p "/home/jvj/wallpaper/$(echo "$j" | rev | cut -d "/" -f 2- | rev)"
for i in $(seq $legendary)
do
if [[ $1 == "-d" ]];then
echo "$j : $i"
fi
ln -sf "/home/jvj/wallpaperperm/$j" "/home/jvj/wallpaper/$(echo $j | cut -d "." -f 1)_$i"
done
done
#Rare
for j in "${listrare[@]}"
do
mkdir -p "/home/jvj/wallpaper/$(echo "$j" | rev | cut -d "/" -f 2- | rev)"
for i in $(seq $rare)
do
if [[ $1 == "-d" ]];then
echo "$j : $i"
fi
ln -sf "/home/jvj/wallpaperperm/$j" "/home/jvj/wallpaper/$(echo $j | cut -d "." -f 1)_$i"
done
done
#Commun
for j in "${listcomm[@]}"
do
mkdir -p "/home/jvj/wallpaper/$(echo "$j" | rev | cut -d "/" -f 2- | rev)"
for i in $(seq $commun)
do
if [[ $1 == "-d" ]];then
echo "$j : $i"
fi
ln -sf "/home/jvj/wallpaperperm/$j" "/home/jvj/wallpaper/$(echo $j | cut -d "." -f 1)_$i"
done
done
if [[ $1 == "-d" ]];then
echo "—————————————————————————
nombre de legendaire : $nb_leg
Rareté legendaire : $legendary
nombre de commun : $nb_Rare
Rareté commun : $rare
nombre de commun : $nb_com
Rareté commun : $commun
Total : $Total
liste legendaire : ${listLeg[@]}
liste Rare : ${listrare[@]}
liste Commun : ${listcomm[@]}
—————————————————————————"
fi
+280
View File
@@ -0,0 +1,280 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
output * bg $(find ~/wallpaper/ -type f,l | shuf -n 1) fill
#output * bg #ffffff solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
output * {
resolution 2560x1664 scale 1.5
}
### Idle configuration
#
exec ~/script/lockdee.sh
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr,fr,gr,us"
xkb_variant "ergol,bepo_afnor,mac,polytonic,intl"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
dwt disabled
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -sb "#b4d273" -sf "#2e2e2e" -nb "#2e2e2e" -h 20 -i -fn "Cozette 15"
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused,en window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
$bindsym $mod+Shift+Left move left
$bindsym $mod+Shift+Down move down
$bindsym $mod+Shift+Up move up
$bindsym $mod+Shift+Right move right
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+1 workspace number 1
$bindsym $mod+2 workspace number 2
$bindsym $mod+3 workspace number 3
$bindsym $mod+4 workspace number 4
$bindsym $mod+5 workspace number 5
$bindsym $mod+6 workspace number 6
$bindsym $mod+7 workspace number 7
$bindsym $mod+8 workspace number 8
$bindsym $mod+9 workspace number 9
$bindsym $mod+0 workspace number 10
# Move focused container to workspace
$bindsym $mod+EuroSign move container to workspace number 1
$bindsym $mod+guillemotleft move container to workspace number 2
$bindsym $mod+guillemotright move container to workspace number 3
$bindsym $mod+dollar move container to workspace number 4
$bindsym $mod+percent move container to workspace number 5
$bindsym $mod+asciicircum move container to workspace number 6
$bindsym $mod+ampersand move container to workspace number 7
$bindsym $mod+asterisk move container to workspace number 8
$bindsym $mod+numbersign move container to workspace number 9
$bindsym $mod+at move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+z layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#luminosité clavier
$bindsym Shift_L+XF86MonBrightnessUp exec /home/jvj/script/augment_lum_keyboard.sh 10
$bindsym Shift_L+XF86MonBrightnessDown exec /home/jvj/script/dim_lum_keyboard.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
$bindsym Shift+XF86AudioNext exec playerctl position 5+
$bindsym Shift+XF86AudioPrev exec playerctl position 5-
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot csaveawindows ~/screenshote/capture.jpg
$bindsym $mod+Shift+S exec grimshot save area ~/screenshote/$(date +"%Y-%m-%d-%H-%M-%S").png
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
#font custom
font pango:CozetteVector Regular 10
exec /home/jvj/script/init
+151
View File
@@ -0,0 +1,151 @@
{
"layer": "bottom",
"position": "bottom",
"height": 30,
"modules-center": [
"sway/workspaces",
"sway/mode"
],
"modules-left": [
"cpu",
"custom/separator",
"disk",
"custom/separator",
"memory",
"custom/separator",
"temperature",
"custom/separator",
"sway/language"
],
"modules-right": [
"custom/spotify",
"network",
"custom/separator",
"pulseaudio",
"bluetooth",
"custom/separator",
"battery",
"custom/separator",
"custom/clock",
"tray"
],
"sway/mode": {
"format": "{}"
},
"sway/workspaces": {
"format": "{name}",
"disable-scroll": true
},
"custom/separator": {
"format": "¦",
"tooltip": false
},
"clock": {
"interval": 5,
"format": "{:%H:%M:%S | %d %a %Y}",
"timezone": "Europe/Paris"
},
"custom/clock": {
"interval": 5,
"return-type": "json",
"exec": "~/.config/waybar/modules/date.sh",
"tooltip": true
},
"battery": {
"format": "{icon} {capacity}%",
"format-alt": "{time}",
"format-charging": "{icon} {capacity}%",
"format-icons":{
"default":["󰂎", "󰁻", "󰁼", "󰁾", "󰂀","󰂁","󰁹"],
"charging":["󰢟", "󰂆","󰂇", "󰢝", "󰢞", "󰂊", "󰂅"],
"full":"󰁹"
},
"format-full": "{icon}",
"interval": 1,
"states": {
"good": 80,
"warning": 30,
"critical": 15
},
"tooltip": false
},
"network": {
"interval": 5,
"format": "{signalStrength}% {icon}",
"format-disconnected": " Déconécté",
"tooltip": true,
"states": {
"nice": 80,
"good": 30,
"bad": 15
},
"tooltip-format": "{essid} \n ↑ - {bandwidthUpOctets} \n ↓ - {bandwidthDownOctets} \n {ipaddr}",
"format-icons": ["\udb82\udd2f", "\udb82\udd1f", "\udb82\udd22", "\udb82\udd25", "\udb82\udd28"],
"on-click": "process=$(pidof impala) ; if [[ -z $process ]]; then exec alacritty -T 'Alacritty - impala' -e impala& else swaymsg '[title=\"Alacritty - impala\"]' focus; fi"
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-muted": " ",
"scroll-step": 1,
"format-icons":["", "", ""],
"on-click": "process=$(pidof pavucontrol) ; if [[ -z $process ]]; then pavucontrol& else swaymsg '[app_id=pavucontrol]' focus; fi",
"on-click-right": "if [[ $(bluetoothctl show | grep PowerState | cut -c14-) = 'on' ]]; then bluetoothctl power off; else bluetoothctl power on; fi",
"tooltip": false
},
"bluetooth": {
"format": "",
"format-on": "\uf293 ",
"format-connected": "\uf293 ",
"format-connected-battery": "\uf293 ",
"on-click": "exec alacritty -T 'Alacritty - bluetoothctl' -e bluetoothctl&",
"on-click-right": "if [[ $(bluetoothctl show | grep PowerState | cut -c14-) = 'on' ]]; then bluetoothctl power off; else bluetoothctl power on; fi",
"tooltip": true,
"tooltip-format-connected": "{device_alias}",
"tooltip-format-connected-battery": "{device_alias} {device_battery_percentage}%"
},
"custom/spotify": {
"format": "{} <span fgcolor='#d9d8d880' font_weight='bold'>¦</span>",
"interval": 1,
"return-type": "json",
"exec": "~/.config/waybar/modules/spotify.sh",
"exec-if": "pgrep deezer-enhanced",
"escape": true,
"on-click": "swaymsg '[title=\"Deezer Enhanced\"]' focus"
},
"disk": {
"interval": 30,
"tooltip": false,
"format": "{free}",
"path": "/"
},
"memory": {
"interval": 15,
"format": "{used:.1f} GiB/{total:.1f} GiB",
"tooltip": false,
"on-click": "process=$(pidof htop) ; if [[ -z $process ]]; then exec alacritty -T 'Alacritty - htop' -e htop& else swaymsg '[title=\"Alacritty - htop\"]' focus; fi"
},
"cpu": {
"interval": 5,
"format": "cpu {usage:02}%",
"states": {
"warning": 80,
"critical": 95
},
"on-click": "process=$(pidof htop) ; if [[ -z $process ]]; then exec alacritty -T 'Alacritty - htop' -e htop& else swaymsg '[title=\"Alacritty - htop\"]' focus; fi"
},
"temperature": {
"interval": 10,
"format": "{icon} {temperatureC}°C",
"tooltip": false,
"critical-threshold": 90,
"format-icons":["","", "","",""],
"on-click": "process=$(pidof watch sensors) ; if [[ -z $process ]]; then exec alacritty -T 'Alacritty - sensors' -e watch sensors& else swaymsg '[title=\"Alacritty - sensors\"]' focus; fi"
},
"sway/language": {
"format": " {variant}"
},
"tray": {
"icon-size": 21,
"spacing": 10
}
}
+43
View File
@@ -0,0 +1,43 @@
{
"layer": "bottom",
"position": "bottom",
"height": 30,
"modules-left": [
"sway/workspaces",
"sway/mode"
],
"modules-right": [
"battery",
"custom/separator",
"clock"
],
"sway/mode": {
"format": "{}"
},
"sway/workspaces": {
"format": "{name}",
"disable-scroll": true
},
"custom/separator": {
"format": "|",
"tooltip": false
},
"clock": {
"interval": 60,
"format": "{:%d-%m-%Y %H:%M:%S}",
"tooltip": false
},
"battery": {
"format": "BAT {capacity}%",
"format-alt": "{time}",
"format-charging": "CHR {capacity}%",
"format-full": "FULL",
"interval": 120,
"states": {
"good": 80,
"warning": 30,
"critical": 15
},
"tooltip": false
}
}
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
text=$(date +' %H:%M:%S | %d %a %Y ')
tooltip=$(cal)
tooltip=$(echo ${tooltip//$'\n'/\\\\n})
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}}"
+25
View File
@@ -0,0 +1,25 @@
#!/bin/sh
class=$(playerctl metadata --player=Deezer --format '{{lc(status)}}')
icon=""
if [[ $class == "playing" ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}} - {{artist}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
if [[ ${#info} -ge 33 ]]; then
info=$(playerctl metadata --player=Deezer --format '{{title}}')
info=$(echo ${info//\"/\\\"}) # Escape quote with \"
fi
if [[ ${#info} -ge 38 ]]; then
info=$(echo $info | cut -c1-35)"..."
fi
tooltip=$(playerctl metadata --format "{{duration(position)}}/{{duration(mpris:length)}}")
text=$info" "$icon
tooltip="🜁 "$tooltip" 🜃"
elif [[ $class == "paused" ]]; then
text="󰏤 "$icon
elif [[ $class == "stopped" ]]; then
text=""
fi
echo -e "{\"text\":\""$text"\", \"tooltip\":\""$tooltip"\"}, \"class\":\""$class"\"}"
+110
View File
@@ -0,0 +1,110 @@
* {
border: none;
border-radius: 0;
font-size: 17px;
font-family: "CozetteVector","Monocraft","JetBrainsMono Nerd Font Mono","MesloLGS Nerd Font", "Cantarell", "Mononoki Nerd Font", "Font Awesome", "Icons";
box-shadow: none;
text-shadow: none;
transition-duration: 0s;
}
window {
color: rgb(255, 255, 255);
background: rgb(0, 0, 0);
}
#workspaces {
margin: 0 5px;
}
#workspaces button {
padding: 0 5px;
color: rgba(217, 216, 216, 0.6);
}
#workspaces button.visible {
color: rgba(217, 216, 216, 1);
}
#workspaces button.focused {
border-top: 3px solid rgba(217, 216, 216, 1);
border-bottom: 3px solid transparent;
color: #fc9867;
}
#workspaces button.urgent {
color: rgba(238, 46, 36, 1);
}
#mode,
#battery,
#cpu,
#temperature,
#memory,
#network,
#pulseaudio,
#disk {
margin: 0px 6px 0px 5px;
}
#custom-spotify {
margin: 0px 0px 0px 5px;
}
#custom-separator {
color: rgba(217, 216, 216, 0.5);
font-weight: bold;
}
#clock, #custom-clock {
margin: 0px 10px 0px 5px;
font-weight: bold;
}
#tray {
margin: 0px 5px 0px 0px;
}
#cpu.warning, #battery.warning {
color: #FFD866;
}
#cpu.critical, #temperature.critical {
color: #FF6188;
}
#battery.critical {
color: #FF6188;
}
#battery.good {
color: #759f02;
}
#battery, #battery.full {
color: #349f02;
}
#battery.charging {
color: #b3b305;
}
#network {
color:#349f02
}
#network.nice {
color:#7a9f02
}
#network.good {
color:#959f02
}
#network.bad {
color:#9f0702
}
#network.disconnected {
color:#9f0702
}