La configuration d'i3 acceptée est la nettoyée

This commit is contained in:
Hippolyte Chauvin 2023-04-16 18:01:17 +02:00
commit 25c05a02b6
8 changed files with 120 additions and 23 deletions

38
bin/makeprio Executable file
View file

@ -0,0 +1,38 @@
#!/bin/bash
# Variables
sudo=sudo
renice=renice
pid="$(pidof "$1")"
# Error function
error() {
>&2 echo -e "\033[1;31mERROR:\033[0m $1"; shift
exit "${1:-1}"
}
# Test if process exists
if [[ -z $pid ]]; then
error "No such process." 1
else
shift
fi
# Arguments
prio="${1:--20}"; shift
# Command building
renice=(
"$sudo"
"$renice"
"$prio"
"$pid"
)
# Debug
#echo "${renice[@]}"
#exit 0
# Execution
"${renice[@]}"

View file

@ -3,7 +3,7 @@
# Variables # Variables
declare -a make_ssh_bridge open_vnc_session declare -a make_ssh_bridge open_vnc_session
ssh_fwd=ssh-fwd ssh_fwd=ssh-fwd
vncviewer=vncviewer vncviewer=wlvncc
localhost=localhost localhost=localhost
# Arguments # Arguments
@ -25,7 +25,8 @@ make_ssh_bridge+=(
# Open VNC session # Open VNC session
open_vnc_session+=( open_vnc_session+=(
"$vncviewer" "$vncviewer"
"${localhost}:${local_port}" "${localhost}"
"${local_port}"
) )
# Execution # Execution

5
bin/webcord Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
exec /usr/bin/webcord \
--ozone-platform-hint=auto \
"$@"

View file

@ -3,8 +3,14 @@ set $mod Mod4
floating_modifier $mod floating_modifier $mod
set $refresh_i3status killall -SIGUSR1 i3status set $refresh_i3status killall -SIGUSR1 i3status
<<<<<<< HEAD
# Font # Font
font pango:monospace 8 font pango:monospace 8
=======
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace 9
>>>>>>> refs/remotes/origin/master
# Modifiers # Modifiers
tiling_drag modifier titlebar tiling_drag modifier titlebar

View file

@ -1,9 +1,11 @@
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status # Controls
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status bindsym XF86MonBrightnessUp exec brightnessctl s 5%-
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86MonBrightnessDown exec brightnessctl s +5%
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
bindsym $mod+Return exec i3-sensible-terminal # Launchers
bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
bindsym $mod+f1 exec --no-startup-id mixxx
bindsym $mod+f2 exec --no-startup-id librewolf
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@ -19,10 +21,10 @@ bindsym $mod+Down focus down
bindsym $mod+Up focus up bindsym $mod+Up focus up
bindsym $mod+Right focus right bindsym $mod+Right focus right
bindsym $mod+Shift+j move left bindsym $mod+Shift+h move left
bindsym $mod+Shift+k move down bindsym $mod+Shift+j move down
bindsym $mod+Shift+l move up bindsym $mod+Shift+k move up
bindsym $mod+Shift+semicolon move right bindsym $mod+Shift+l move right
bindsym $mod+Shift+Left move left bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down bindsym $mod+Shift+Down move down
@ -84,24 +86,16 @@ bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec i3-msg exit bindsym $mod+Shift+e exec i3-msg exit
mode "resize" { mode "resize" {
# These bindings trigger as soon as you enter the resize mode bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default" bindsym Return mode "default"
bindsym Escape mode "default" bindsym Escape mode "default"
bindsym $mod+r mode "default" bindsym $mod+r mode "default"
@ -109,3 +103,5 @@ mode "resize" {
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
bindsym $mod+Mod1+l exec i3lock

View file

@ -2,4 +2,6 @@ exec --no-startup-id swaybg -i $wallpaper
exec --no-startup-id swaync exec --no-startup-id swaync
exec --no-startup-id swayosd exec --no-startup-id swayosd
exec --no-startup-id xdg-session-start exec --no-startup-id xdg-session-start
exec --no-startup-id $term
exec --no-startup-id $term sudo -i

9
home/gitconfig Normal file
View file

@ -0,0 +1,9 @@
[user]
name = Hippolyte Chauvin
email = hchauvin38@outlook.fr
[core]
editor = nvim
[init]
defaultBranch = master
[pull]
rebase = false

40
home/xinitrc Executable file
View file

@ -0,0 +1,40 @@
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# Environment
export \
TERMINAL=st \
DRI_PRIME=1 \
QT_QPA_PLATFORMTHEME=qt5ct
numlockx &
exec /usr/bin/i3