Compare commits
39 commits
e8aa03ecb6
...
896096599b
Author | SHA1 | Date | |
---|---|---|---|
|
896096599b | ||
|
4e72ee3aff | ||
|
0ae2027504 | ||
|
d7d95c4c52 | ||
|
64e8ecc560 | ||
|
eabeca8816 | ||
|
69ce1a4568 | ||
|
45d1d55c23 | ||
|
e1b8b08c12 | ||
|
cae1cbbad0 | ||
|
78bd5d62ff | ||
|
b126f629a5 | ||
|
b8abeecd32 | ||
|
b5c6748db6 | ||
|
c3dc90860f | ||
|
ba4afebe09 | ||
|
067d6f722d | ||
|
5930748fe5 | ||
|
1e3d8433bf | ||
|
53a30035ac | ||
|
5b5822746b | ||
|
d34e219414 | ||
|
e14a5ff310 | ||
|
00e3b9a609 | ||
|
64d87e1d86 | ||
|
4668a5cdd3 | ||
|
e64695a668 | ||
|
239cc7633a | ||
|
10120fa61e | ||
|
3b24aa589f | ||
|
71ebea0a9e | ||
|
2dabb80d6e | ||
|
6b2ea26b76 | ||
|
e23d3f951f | ||
|
01bb9339b1 | ||
|
0c8f792f01 | ||
|
b46f8fec80 | ||
|
934eac85fe | ||
|
fcd3b35aa6 |
34 changed files with 277 additions and 179 deletions
|
@ -1 +0,0 @@
|
|||
waylectron
|
5
bin/deezer
Executable file
5
bin/deezer
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
exec xargs /usr/bin/deezer \
|
||||
"$@" \
|
||||
< ~/.config/electron13-flags.conf
|
||||
|
103
bin/headlessvnc
103
bin/headlessvnc
|
@ -1,68 +1,82 @@
|
|||
#!/bin/sh
|
||||
# shellcheck disable=SC2317
|
||||
#!/bin/bash
|
||||
|
||||
# cd to the local VNC directory, exit if it fails
|
||||
cd "${HOME}/.vnc" || exit 5
|
||||
|
||||
# Variables
|
||||
file_base="./$(hostname):1."
|
||||
verbs="start|status|stop|restart|help"
|
||||
# Variable
|
||||
verbs="start status stop restart help"
|
||||
|
||||
echol() {
|
||||
col="$1"
|
||||
shift
|
||||
printf '\033['"${col}"'m%s\033[0m\n' "$*"
|
||||
# echo bold text
|
||||
echobf() {
|
||||
printf '\033[1m%s\033[0m\n' "$*"
|
||||
}
|
||||
|
||||
# Print an error message
|
||||
print_error() {
|
||||
(
|
||||
printf '\033[1;31m%s\033[0m ' "ERROR:"
|
||||
echobf "$*"
|
||||
) > /dev/stderr
|
||||
}
|
||||
|
||||
# Print an error and exit
|
||||
error() {
|
||||
>&2 printf '\033[1;31m%s\033[0m %s\n' "ERROR:" "$1"
|
||||
print_error "$1"
|
||||
shift
|
||||
exit "$1"
|
||||
}
|
||||
|
||||
help() {
|
||||
# Check if the VNC server is running
|
||||
is_running() {
|
||||
vncserver -list | grep -q '^:1'
|
||||
}
|
||||
|
||||
# Show a help message
|
||||
public_help() {
|
||||
local name
|
||||
name="$(basename "$0")"
|
||||
cat << EOF
|
||||
${name} - Start a VNC server
|
||||
|
||||
Usage:
|
||||
${name} ${verbs}
|
||||
${name} ${verbs// /|}
|
||||
EOF
|
||||
}
|
||||
|
||||
usage() {
|
||||
>&2 help
|
||||
error "Invalid usage: ${1}" 1
|
||||
# Show the same help with an error
|
||||
error_help() {
|
||||
print_error "Invalid usage"
|
||||
>&2 public_help
|
||||
return 1
|
||||
}
|
||||
|
||||
is_running() {
|
||||
vncserver -list | grep -q '^:1'
|
||||
}
|
||||
|
||||
start() {
|
||||
# Start the VNC server
|
||||
public_start() {
|
||||
if ! is_running; then
|
||||
set -e
|
||||
vncserver \
|
||||
-xstartup ./xstartup \
|
||||
-localhost \
|
||||
-alwaysshared \
|
||||
-securitytypes none
|
||||
-securitytypes none \
|
||||
-nocursor
|
||||
else
|
||||
error "The VNC server is already running!" 4
|
||||
fi
|
||||
}
|
||||
|
||||
status() {
|
||||
log_f="${file_base}log"
|
||||
# Check if the server is running
|
||||
public_status() {
|
||||
if is_running; then
|
||||
echol '1;32' "The VNC server is running."
|
||||
tail "$log_f"
|
||||
echobf "The VNC server is running."
|
||||
tail "./$(hostname):1.log" | sed 's/^/\t/g'
|
||||
else
|
||||
echol '1;31' "The VNC server is not running."
|
||||
echobf "The VNC server is not running."
|
||||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
# Stop the VNC server
|
||||
public_stop() {
|
||||
if is_running; then
|
||||
vncserver -kill :1
|
||||
else
|
||||
|
@ -70,26 +84,23 @@ stop() {
|
|||
fi
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
# Restart the VNC server
|
||||
public_restart() {
|
||||
public_stop
|
||||
public_start
|
||||
}
|
||||
|
||||
# Argument parsing
|
||||
set -e; trap 'set +e; error "$error" "$?"' EXIT
|
||||
error="You must give an argument"
|
||||
[ -n "$1" ]; arg="$1"; shift
|
||||
unset error
|
||||
set +e; trap - EXIT
|
||||
# Parse argument
|
||||
if [ -n "$1" ]; then
|
||||
arg="$1"
|
||||
else
|
||||
arg=status
|
||||
fi
|
||||
|
||||
|
||||
# Main case statement
|
||||
case "$arg" in
|
||||
status|start|stop|restart|help)
|
||||
"$arg"
|
||||
;;
|
||||
*)
|
||||
usage "Invalid argument \"$arg\""
|
||||
;;
|
||||
esac
|
||||
# Main switch
|
||||
if echo "$verbs" | grep -q "$arg"; then
|
||||
"public_${arg}"
|
||||
else
|
||||
error_help
|
||||
fi
|
||||
|
||||
|
|
86
bin/ssh-fwd
86
bin/ssh-fwd
|
@ -1,64 +1,68 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
|
||||
shopt -s expand_aliases
|
||||
[[ $TERM = xterm-kitty ]] && alias ssh='kitty +kitten ssh'
|
||||
# Alias si le terminal est kitty
|
||||
if [ "$TERM" = xterm-kitty ]; then
|
||||
ssh=(kitty +kitten ssh)
|
||||
else
|
||||
ssh=(ssh)
|
||||
fi
|
||||
|
||||
# Variables
|
||||
ssh=ssh
|
||||
declare -a args
|
||||
|
||||
# Display the usage
|
||||
function usage {
|
||||
# Foncitons
|
||||
error() {
|
||||
>&2 printf '\033[1;31m%s\033[0m \033[1m%s\033[0m\n' ERROR: "$*"
|
||||
}
|
||||
|
||||
help() {
|
||||
local name
|
||||
name="$(basename "$0")"
|
||||
cat << EOF
|
||||
Usage: $(basename "$0") SSH_HOST LOCAL_PORT DISTANT_PORT [TARGET] [-- SSH_OPTIONS]
|
||||
${name}: utilisation:
|
||||
${name} SERVEUR PORT_LOCAL PORT_DISTANT [CIBLE] [-- ARGUMENTS_SSH...]
|
||||
EOF
|
||||
}
|
||||
|
||||
# Show an error
|
||||
function error {
|
||||
>&2 usage
|
||||
exit "${1:-1}"
|
||||
error_help() {
|
||||
error "Invalid usage"
|
||||
>&2 help
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check if TCP port number is free
|
||||
port_is_free() {
|
||||
! lsof -i -P -n | grep -q ':'"${1}"' (LISTEN)'
|
||||
requested_port_bridge_pid() {
|
||||
lsof -nP -i TCP -s TCP:LISTEN | awk '($1 == "ssh" && $9 ~ /.*:'"${1}"'/) { print $2 }' | uniq | head -n 1
|
||||
}
|
||||
|
||||
# Arguments
|
||||
while [[ -n $* ]]; do
|
||||
# Analyser les arguments
|
||||
while [ -n "$1" ]; do
|
||||
case "$1" in
|
||||
"--")
|
||||
--)
|
||||
shift
|
||||
ssh_options=("$@")
|
||||
set --
|
||||
;;
|
||||
break
|
||||
;;
|
||||
*)
|
||||
args+=("$1")
|
||||
shift
|
||||
;;
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Checking the validity of the args
|
||||
[[ -z ${args[2]} ]] && error 1
|
||||
[[ -z ${args[3]} ]] && args[3]=localhost
|
||||
# Il doit y avoir au moins 3 arguments dans le tableau
|
||||
if [ "${#args[@]}" -lt 3 ]; then
|
||||
error_help
|
||||
fi
|
||||
|
||||
# Command building
|
||||
ssh_com=(
|
||||
"$ssh"
|
||||
"${ssh_options[@]}"
|
||||
-f
|
||||
-N
|
||||
-L "${args[1]}:${args[3]}:${args[2]}"
|
||||
"${args[0]}"
|
||||
)
|
||||
|
||||
# Debug
|
||||
#echo "${ssh_com[@]}"
|
||||
#exit 0
|
||||
|
||||
# Execution
|
||||
set -x
|
||||
"${ssh_com[@]}"
|
||||
pid="$(requested_port_bridge_pid "${args[1]}")"
|
||||
if [ -z "$pid" ]; then
|
||||
exec "${ssh[@]}" \
|
||||
-f \
|
||||
-N \
|
||||
-L "${args[1]}:${args[3]:-localhost}:${args[2]}" \
|
||||
"${args[0]}" \
|
||||
"$@"
|
||||
else
|
||||
echo "Suppression de la redirection..."
|
||||
kill "$pid"
|
||||
fi
|
||||
|
||||
|
|
21
bin/togglescreen
Executable file
21
bin/togglescreen
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
screen_is_on() {
|
||||
[ "$(brightnessctl g)" -ne 0 ]
|
||||
}
|
||||
|
||||
turn_on_screen() {
|
||||
brightnessctl -r
|
||||
}
|
||||
|
||||
turn_off_screen() {
|
||||
brightnessctl -s
|
||||
brightnessctl s 0
|
||||
}
|
||||
|
||||
if screen_is_on; then
|
||||
turn_off_screen
|
||||
else
|
||||
turn_on_screen
|
||||
fi
|
||||
|
|
@ -7,6 +7,8 @@ realpath="$(readlink -f "$0")"
|
|||
cd "$(dirname "$realpath")/../share/$(basename "$realpath")" || exit
|
||||
unset realpath
|
||||
|
||||
scripts_d=./scripts.d
|
||||
|
||||
# Fonction pour fabriquer une ligne de la longueur d'un tiers du terminal
|
||||
makeline() {
|
||||
local cols line
|
||||
|
@ -25,8 +27,22 @@ separator() {
|
|||
}
|
||||
|
||||
# Procédure principale
|
||||
for i in ./commands.d/*; do
|
||||
separator "$(basename "$i")"
|
||||
"$i"
|
||||
done
|
||||
main() {
|
||||
for i in "${scripts_d}/"*; do
|
||||
separator "$(basename "$i")"
|
||||
"$i"
|
||||
done
|
||||
}
|
||||
|
||||
script="$1"
|
||||
shift
|
||||
|
||||
case "$script" in
|
||||
"")
|
||||
main "$@"
|
||||
;;
|
||||
*)
|
||||
"${scripts_d}/${script}" "$@"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
|
|
@ -1,37 +1,47 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Variables
|
||||
declare -a make_ssh_bridge open_vnc_session
|
||||
ssh_fwd=ssh-fwd
|
||||
vncviewer=wlvncc
|
||||
localhost=localhost
|
||||
declare -a ssh_args
|
||||
|
||||
# Fonction
|
||||
ssh_bridge_already_exists() {
|
||||
[ -n "$(lsof -nP -i TCP -s TCP:LISTEN | awk '($1 == "ssh" && $9 ~ /.*:'"${1}"'/) { print }')" ]
|
||||
}
|
||||
|
||||
# Sélectionner le viewer adapté à la session
|
||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||
vncviewer=wlvncc
|
||||
else
|
||||
vncviewer=vncviewer
|
||||
separator=:
|
||||
fi
|
||||
|
||||
# Arguments
|
||||
ssh_host="$1" ; shift
|
||||
local_port="${1:-9900}" ; shift
|
||||
distant_port="${1:-5900}"; shift
|
||||
target="$1" ; shift
|
||||
while [ -n "$1" ]; do
|
||||
case "$1" in
|
||||
--)
|
||||
shift
|
||||
break
|
||||
;;
|
||||
*)
|
||||
ssh_args+=("$1")
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Commands building
|
||||
# Make SSH bridge
|
||||
make_ssh_bridge+=(
|
||||
"$ssh_fwd"
|
||||
"$ssh_host"
|
||||
"$local_port"
|
||||
"$distant_port"
|
||||
"$target"
|
||||
)
|
||||
# Initialiser les arguments du viewer
|
||||
args=(localhost "${ssh_args[1]}")
|
||||
if [ -n "$separator" ]; then
|
||||
args=("${args[*]// /${separator}/}")
|
||||
fi
|
||||
|
||||
# Open VNC session
|
||||
open_vnc_session+=(
|
||||
"$vncviewer"
|
||||
"$@"
|
||||
"${localhost}"
|
||||
"${local_port}"
|
||||
)
|
||||
|
||||
# Execution
|
||||
set -xe
|
||||
"${make_ssh_bridge[@]}"
|
||||
"${open_vnc_session[@]}"
|
||||
# Exécution
|
||||
if ! ssh_bridge_already_exists; then
|
||||
ssh-fwd "${ssh_args[@]}" -- "$@" || exit
|
||||
else
|
||||
echo "Le pont SSH existe déjà !"
|
||||
fi
|
||||
exec "$vncviewer" \
|
||||
"${args[@]}"
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
program="$(basename "$0")"
|
||||
PATH="$(echo "$PATH" | sed 's|'"$(dirname "$(which "$program")")"'||g' | sed 's/^://g' | sed 's/::/:/g')"
|
||||
readarray -t wayland_args < ~/.config/electron-flags.conf
|
||||
PATH="$(echo "$PATH" | sed "s|$(dirname "$(which "$program")")||g" | sed 's/^://g' | sed 's/::/:/g')"
|
||||
exec "$program" \
|
||||
"$@" \
|
||||
--ozone-platform-hint=wayland
|
||||
"${wayland_args[@]}" \
|
||||
"$@"
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
--enable-features=UseOzonePlatform
|
||||
--ozone-platform=wayland
|
||||
--enable-features=WaylandWindowDecorations
|
||||
--ozone-platform-hint=auto
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
electron-flags.conf
|
2
config/electron13-flags.conf
Normal file
2
config/electron13-flags.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
--enable-features=UseOzonePlatform
|
||||
--ozone-platform=wayland
|
1
config/electron22-flags.conf
Symbolic link
1
config/electron22-flags.conf
Symbolic link
|
@ -0,0 +1 @@
|
|||
electron-flags.conf
|
|
@ -1 +0,0 @@
|
|||
--ozone-platform-hint=auto
|
|
@ -30,7 +30,8 @@ general {
|
|||
border_size = 2
|
||||
col.active_border = rgba(df80ffff) rgba(cc33ffff) 90deg
|
||||
col.inactive_border = rgba(886c9322)
|
||||
|
||||
col.group_border = rgba(f2f2f280)
|
||||
col.group_border_active = rgb(3366ff) rgb(33ccff)
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
# Vulkan
|
||||
env = AMD_VULKAN_ICD, RADV
|
||||
|
||||
# Backend
|
||||
env = GDK_BACKEND, wayland,x11
|
||||
env = SDL_VIDEODRIVER, wayland
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
set $mod Mod4
|
||||
floating_modifier $mod
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
set $browser librewolf
|
||||
|
||||
# Font
|
||||
font pango:monospace 9
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# Controls
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl s +5%
|
||||
bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl s +5%
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl s 5%-
|
||||
|
||||
# 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 sensible-browser
|
||||
bindsym $mod+F2 exec --no-startup-id $browser
|
||||
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
|
@ -86,15 +86,15 @@ bindsym $mod+Shift+r restart
|
|||
bindsym $mod+Shift+e exec i3-msg exit
|
||||
|
||||
mode "resize" {
|
||||
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
|
||||
bindsym h resize shrink width 5 px or 5 ppt
|
||||
bindsym j resize grow height 5 px or 5 ppt
|
||||
bindsym k resize shrink height 5 px or 5 ppt
|
||||
bindsym l resize grow width 5 px or 5 ppt
|
||||
|
||||
bindsym Left resize shrink width 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 Right resize grow width 10 px or 10 ppt
|
||||
bindsym Left resize shrink width 5 px or 5 ppt
|
||||
bindsym Down resize grow height 5 px or 5 ppt
|
||||
bindsym Up resize shrink height 5 px or 5 ppt
|
||||
bindsym Right resize grow width 5 px or 5 ppt
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
|
|
12
config/kitty/kitty.conf
Normal file
12
config/kitty/kitty.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
# General
|
||||
enable_audio_bell no
|
||||
|
||||
# Fonts
|
||||
font_family Hack Nerd Font
|
||||
bold_font auto
|
||||
italic_font auto
|
||||
bold_italic_font auto
|
||||
|
||||
# Opacity
|
||||
background_opacity 0.8
|
||||
|
|
@ -92,3 +92,6 @@ bindsym Shift+Print exec glurp area clip
|
|||
bindsym Mod1+Print exec glurp full file
|
||||
bindsym Mod1+Shift+Print exec glurp area file
|
||||
|
||||
# When locked
|
||||
bindsym --locked XF86Display exec togglescreen
|
||||
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
# Assignements
|
||||
assign [app_id="^@joplin/app-desktop$"] 4
|
||||
assign [app_id="^WebCord$"] 4
|
||||
assign [class="^Deezer$"] 4
|
||||
assign [app_id="^com.ktechpit.whatsie$"] 4
|
||||
assign [app_id="^org.prismlauncher.PrismLauncher$"] 5
|
||||
|
||||
# Windows rules
|
||||
for_window [app_id="pavucontrol"] floating enable
|
||||
|
|
@ -1,6 +1,3 @@
|
|||
[core]
|
||||
xwayland=true
|
||||
|
||||
[shell]
|
||||
close-animation=none
|
||||
startup-animation=none
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
# Lines added by ahurac
|
||||
|
||||
# PS1
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
ps1_color_1=1
|
||||
|
@ -10,10 +8,3 @@ else
|
|||
fi
|
||||
export PS1="(\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_1}m\]\u@\h\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_2}m\]\W\[$(tput sgr0)\])\\$ \[$(tput sgr0)\]"
|
||||
|
||||
shrc_d=/usr/local/etc/sh/shrc.d
|
||||
if [ -d "$shrc_d" ]; then
|
||||
for i in "${shrc_d}/"*; do
|
||||
. "$i"
|
||||
done
|
||||
fi
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
# Lines added by ahurac
|
||||
|
||||
# PS1
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
ps1_color_1=1
|
||||
|
@ -10,10 +8,3 @@ else
|
|||
fi
|
||||
export PS1="[\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_1}m\]\u@\h\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_2}m\]\W\[$(tput sgr0)\]]\\$ \[$(tput sgr0)\]"
|
||||
|
||||
shrc_d=/usr/local/etc/sh/shrc.d
|
||||
if [ -d "$shrc_d" ]; then
|
||||
for i in "${shrc_d}/"*; do
|
||||
. "$i"
|
||||
done
|
||||
fi
|
||||
|
7
etc/bash/bashrc.d/ahurac.bashrc
Normal file
7
etc/bash/bashrc.d/ahurac.bashrc
Normal file
|
@ -0,0 +1,7 @@
|
|||
shrc_d=/usr/local/etc/sh/shrc.d
|
||||
if [ -d "$shrc_d" ]; then
|
||||
for i in "${shrc_d}/"*; do
|
||||
. "$i"
|
||||
done
|
||||
fi
|
||||
|
12
etc/bash/bashrc.d/tera-io.bashrc
Normal file
12
etc/bash/bashrc.d/tera-io.bashrc
Normal file
|
@ -0,0 +1,12 @@
|
|||
# PS1
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
ps1_color_1=1
|
||||
ps1_color_2=10
|
||||
else
|
||||
ps1_color_1=6
|
||||
ps1_color_2=4
|
||||
fi
|
||||
export PS1="{\[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_1}m\]\u@\h\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;${ps1_color_2}m\]\W\[$(tput sgr0)\]}\\$ \[$(tput sgr0)\]"
|
||||
|
||||
export SYSTEMD_PAGER=
|
||||
|
|
@ -4,6 +4,6 @@
|
|||
[core]
|
||||
editor = nvim
|
||||
[init]
|
||||
defaultBranch = master
|
||||
defaultbranch = master
|
||||
[pull]
|
||||
rebase = false
|
||||
rebase = true
|
||||
|
|
|
@ -9,3 +9,8 @@ command_not_found_handler() {
|
|||
return 127
|
||||
}
|
||||
|
||||
# sh
|
||||
set-display() {
|
||||
export DISPLAY=":${1:-1}"
|
||||
}
|
||||
|
||||
|
|
23
home/xinitrc
23
home/xinitrc
|
@ -6,33 +6,34 @@ sysresources=/etc/X11/xinit/.Xresources
|
|||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
if [ -f $sysresources ]; then
|
||||
xrdb -merge $sysresources
|
||||
xrdb -merge $sysresources
|
||||
fi
|
||||
|
||||
if [ -f $sysmodmap ]; then
|
||||
xmodmap $sysmodmap
|
||||
xmodmap $sysmodmap
|
||||
fi
|
||||
|
||||
if [ -f "$userresources" ]; then
|
||||
xrdb -merge "$userresources"
|
||||
xrdb -merge "$userresources"
|
||||
fi
|
||||
|
||||
if [ -f "$usermodmap" ]; then
|
||||
xmodmap "$usermodmap"
|
||||
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
|
||||
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
|
||||
TERMINAL=st \
|
||||
BROWSER=librewolf \
|
||||
DRI_PRIME=1 \
|
||||
QT_QPA_PLATFORMTHEME=qt5ct
|
||||
|
||||
numlockx &
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
if cd "${1:-${HOME}/Git}"; then
|
||||
for repo in *; do
|
||||
cd "$repo"
|
||||
cd "$repo" || continue
|
||||
printf '\n%s\n' "$repo"
|
||||
git pull
|
||||
cd ..
|
||||
done
|
3
share/updateall/scripts.d/nvim-packer
Executable file
3
share/updateall/scripts.d/nvim-packer
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
nvim +PackerUpdate +qall
|
||||
|
3
share/updateall/scripts.d/waydroid
Executable file
3
share/updateall/scripts.d/waydroid
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
sudo waydroid upgrade
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/sh
|
||||
cd
|
||||
artix-pipewire-loader &
|
||||
exec dbus-launch --exit-with-session \
|
||||
xfwm4
|
||||
|
|
Loading…
Reference in a new issue