This commit is contained in:
Le_Foucheur committed 2026-01-01 14:48:20 +01:00
1 parent 9eb6226619
commit 06f5b28291
26 files changed

No files matched your search

+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
}