diff options
| author | marcellus <msimon_fr@hotmail.com> | 2023-11-02 19:56:27 +0100 |
|---|---|---|
| committer | marcellus <msimon_fr@hotmail.com> | 2023-11-02 19:56:27 +0100 |
| commit | 1b7402b9e0d623cab9284aada81fb5429cf662e7 (patch) | |
| tree | 02066b7acca6f4038357e76121e7bcc05a50886b | |
| parent | 0e2d387565cb03c41cef33b9ff01eac5a5cb9132 (diff) | |
various
| -rw-r--r-- | .gitignore | 5 | ||||
| -rw-r--r-- | crontab | 4 | ||||
| -rw-r--r-- | dwmblocks/config | 2 | ||||
| -rw-r--r-- | picom/picom.conf | 2 | ||||
| -rw-r--r-- | redshift/redshift.conf | 70 | ||||
| -rwxr-xr-x[-rw-r--r--] | scripts/rotdir | 0 | ||||
| -rwxr-xr-x | scripts/ytdl | 22 | ||||
| -rwxr-xr-x | sx/sxrc | 7 | ||||
| -rw-r--r-- | sxhkd/sxhkdrc | 10 | ||||
| -rw-r--r-- | wallpapers/SFW/guitar/wallhaven-0pjzxm.jpg | bin | 0 -> 82874 bytes | |||
| -rw-r--r-- | wallpapers/SFW/guitar/wallhaven-0w78p6.jpg | bin | 0 -> 504584 bytes | |||
| -rw-r--r-- | wallpapers/SFW/guitar/wallhaven-4olmom.png | bin | 0 -> 73985 bytes | |||
| -rw-r--r-- | wallpapers/SFW/guitar/wallhaven-5w38p7.jpg | bin | 0 -> 945106 bytes | |||
| -rw-r--r-- | wallpapers/SFW/guitar/wallhaven-nzq17v.jpg | bin | 0 -> 208787 bytes | |||
| -rw-r--r-- | wallpapers/SFW/memes/Kmm7WsF_d.jpg | bin | 0 -> 56384 bytes | |||
| -rw-r--r-- | wallpapers/SFW/planes/shuttle.jpg | bin | 0 -> 35409 bytes | |||
| -rw-r--r-- | zsh/.zprofile | 3 | ||||
| -rw-r--r-- | zsh/.zshenv | 3 | ||||
| -rw-r--r-- | zsh/.zshrc | 19 | ||||
| -rw-r--r-- | zsh/gitHelp | 15 |
20 files changed, 133 insertions, 29 deletions
@@ -1,4 +1,9 @@ ## uninteresting configs +PCSX2/ +geany/ +supertuxkart/ +trizen/ +unity3d/ pulse/ var/ JetBrains/ @@ -1,2 +1,2 @@ -1/10 * * * * kill -52 $(pidof dwmblocks); randwp -1/30 * * * * kill -49 $(pidof dwmblocks) +0,10,20,30,40,50 * * * * kill -52 $(pidof dwmblocks); randwp +30 * * * * kill -49 $(pidof dwmblocks) diff --git a/dwmblocks/config b/dwmblocks/config index dc92fe0..76138b7 100644 --- a/dwmblocks/config +++ b/dwmblocks/config @@ -12,7 +12,7 @@ volume = true // 44 mic = false // 45 news = false // 46 mail = false // 47 -weather = true// 48 +weather = false // 48 daypercent = false // 49 date = true // 50 time = true // 51 diff --git a/picom/picom.conf b/picom/picom.conf index a5392f6..573f1d6 100644 --- a/picom/picom.conf +++ b/picom/picom.conf @@ -131,7 +131,7 @@ focus-exclude = [ "class_g = 'Cairo-clock'" ]; # Note we don't make any guarantee about possible conflicts with other # programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows. # example: -opacity-rule = [ "100:class_g= 'mpv'" ]; +opacity-rule = [ "100:class_g= 'mpv'", "95:name *= 'librewolf'" ]; # opacity-rule = [] diff --git a/redshift/redshift.conf b/redshift/redshift.conf new file mode 100644 index 0000000..9ad4cce --- /dev/null +++ b/redshift/redshift.conf @@ -0,0 +1,70 @@ +; Global settings for redshift +[redshift] +; Set the day and night screen temperatures +temp-day=5700 +temp-night=3500 + +; Disable the smooth fade between temperatures when Redshift starts and stops. +; 0 will cause an immediate change between screen temperatures. +; 1 will gradually apply the new screen temperature over a couple of seconds. +fade=1 + +; Solar elevation thresholds. +; By default, Redshift will use the current elevation of the sun to determine +; whether it is daytime, night or in transition (dawn/dusk). When the sun is +; above the degrees specified with elevation-high it is considered daytime and +; below elevation-low it is considered night. +;elevation-high=3 +;elevation-low=-6 + +; Custom dawn/dusk intervals. +; Instead of using the solar elevation, the time intervals of dawn and dusk +; can be specified manually. The times must be specified as HH:MM in 24-hour +; format. +;dawn-time=6:00-7:45 +;dusk-time=18:35-20:15 + +; Set the screen brightness. Default is 1.0. +; brightness=0.9 +; It is also possible to use different settings for day and night +; since version 1.8. +brightness-day=0.8 +brightness-night=0.6 +; Set the screen gamma (for all colors, or each color channel +; individually) +gamma=0.8 +;gamma=0.8:0.7:0.8 +; This can also be set individually for day and night since +; version 1.10. +;gamma-day=0.8:0.7:0.8 +;gamma-night=0.6 + +; Set the location-provider: 'geoclue2', 'manual' +; type 'redshift -l list' to see possible values. +; The location provider settings are in a different section. +location-provider=manual + +; Set the adjustment-method: 'randr', 'vidmode' +; type 'redshift -m list' to see all possible values. +; 'randr' is the preferred method, 'vidmode' is an older API. +; but works in some cases when 'randr' does not. +; The adjustment method settings are in a different section. +adjustment-method=randr + +; Configuration of the location-provider: +; type 'redshift -l PROVIDER:help' to see the settings. +; ex: 'redshift -l manual:help' +; Keep in mind that longitudes west of Greenwich (e.g. the Americas) +; are negative numbers. +[manual] +lat=48.864716 +lon=2.349014 + +; Configuration of the adjustment-method +; type 'redshift -m METHOD:help' to see the settings. +; ex: 'redshift -m randr:help' +; In this example, randr is configured to adjust only screen 0. +; Note that the numbering starts from 0, so this is actually the first screen. +; If this option is not specified, Redshift will try to adjust _all_ screens. +[randr] +screen=0 diff --git a/scripts/rotdir b/scripts/rotdir index 3b3f39d..3b3f39d 100644..100755 --- a/scripts/rotdir +++ b/scripts/rotdir diff --git a/scripts/ytdl b/scripts/ytdl index e69cf26..9aafb42 100755 --- a/scripts/ytdl +++ b/scripts/ytdl @@ -1,33 +1,33 @@ #!/bin/sh # wrapper for yt-dlp -MUSICDIR="${XDG_MUSIC_DIR:-$HOME/Music}" +MUSICDIR="${XDG_MUSIC_DIR:-$HOME/music}" VIDEODIR="${XDG_VIDEOS_DIR:-$HOME/Videos}" case $1 in v) mkdir -p "$VIDEODIR" - notify-send "Video download started" + herbe "Video download started" yt-dlp -f 'bv,ba' -o '%(title)s [%(id)s].%(ext)s'\ -P "$VIDEODIR" "$2" && - notify-send "Video downloaded" || - (notify-send "Error: No internet connection" && exit 1) ;; + herbe "Video downloaded" || + (herbe "Error: No internet connection" && exit 1) ;; m) mkdir -p "$MUSICDIR/download" - notify-send "Music download started" + herbe "Music download started" yt-dlp -f 'ba' -x --embed-thumbnail --audio-format mp3\ -o '%(title)s [%(id)s].%(ext)s' -P "$MUSICDIR/download" "$2" && - notify-send "Music downloaded" || - (notify-send "Error: No internet connection" && exit 1) ;; + herbe "Music downloaded" || + (herbe "Error: No internet connection" && exit 1) ;; p) NAME=$(printf '' | dmenu -p 'Name ') mkdir -p "$MUSICDIR/$NAME" - notify-send "Playlist download started" + herbe "Playlist download started" yt-dlp -f 'ba' -x --embed-thumbnail --audio-format mp3\ -o '%(playlist_index)s - %(title)s [%(id)s].%(ext)s'\ -P "$MUSICDIR/$NAME" "$2" && - notify-send "Playlist downloaded" || - (notify-send "Error: No internet connection" && exit 1) ;; + herbe "Playlist downloaded" || + (herbe "Error: No internet connection" && exit 1) ;; *) exit 1 ;; -esac
\ No newline at end of file +esac @@ -1,10 +1,9 @@ setxkbmap fr -curl -m 3 -s $CAL_PERSO | grep -v END:VCALENDAR >/tmp/calendar.ics -curl -m 3 -s $CAL_SCHOOL | grep -v BEGIN:VCALENDAR >> /tmp/calendar.ics -icstocal /tmp/calendar.ics /tmp/calendar >/dev/null -scron -f $XDG_CONFIG_HOME/crontab +killall scron +scron -f ~/.config/crontab $HOME/.config/scripts/randwp sxhkd& picom& dwmblocks& +redshift& exec dwm diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index 91436f3..01027a5 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -12,6 +12,12 @@ Scroll_Lock themeswap Print screenshot +XF86Explorer + st -e lfub ~ +super + g + st -e lfub ~/games +XF86WakeUp + nsxiv -f ~/img/wakeup.png XF86MonBrightnessUp BRIGHTNESS=$(($BRIGHTNESS+0.1));setbrightness $BRIGHTNESS XF86MonBrightnessDown @@ -24,8 +30,8 @@ XF86AudioMute pamixer -t; kill -44 $(pidof dwmblocks) XF86Mail betterbird -{super + n,super + shift + n} - $TERMINAL -e {lfub "$XDG_DATA_HOME/notes",newsboat} +XF86Calculator + $TERMINAL -e calc super + m music super + shift + m diff --git a/wallpapers/SFW/guitar/wallhaven-0pjzxm.jpg b/wallpapers/SFW/guitar/wallhaven-0pjzxm.jpg Binary files differnew file mode 100644 index 0000000..70780f3 --- /dev/null +++ b/wallpapers/SFW/guitar/wallhaven-0pjzxm.jpg diff --git a/wallpapers/SFW/guitar/wallhaven-0w78p6.jpg b/wallpapers/SFW/guitar/wallhaven-0w78p6.jpg Binary files differnew file mode 100644 index 0000000..670ea4a --- /dev/null +++ b/wallpapers/SFW/guitar/wallhaven-0w78p6.jpg diff --git a/wallpapers/SFW/guitar/wallhaven-4olmom.png b/wallpapers/SFW/guitar/wallhaven-4olmom.png Binary files differnew file mode 100644 index 0000000..165057f --- /dev/null +++ b/wallpapers/SFW/guitar/wallhaven-4olmom.png diff --git a/wallpapers/SFW/guitar/wallhaven-5w38p7.jpg b/wallpapers/SFW/guitar/wallhaven-5w38p7.jpg Binary files differnew file mode 100644 index 0000000..6b19987 --- /dev/null +++ b/wallpapers/SFW/guitar/wallhaven-5w38p7.jpg diff --git a/wallpapers/SFW/guitar/wallhaven-nzq17v.jpg b/wallpapers/SFW/guitar/wallhaven-nzq17v.jpg Binary files differnew file mode 100644 index 0000000..2a35f0e --- /dev/null +++ b/wallpapers/SFW/guitar/wallhaven-nzq17v.jpg diff --git a/wallpapers/SFW/memes/Kmm7WsF_d.jpg b/wallpapers/SFW/memes/Kmm7WsF_d.jpg Binary files differnew file mode 100644 index 0000000..af45845 --- /dev/null +++ b/wallpapers/SFW/memes/Kmm7WsF_d.jpg diff --git a/wallpapers/SFW/planes/shuttle.jpg b/wallpapers/SFW/planes/shuttle.jpg Binary files differnew file mode 100644 index 0000000..bcd78ff --- /dev/null +++ b/wallpapers/SFW/planes/shuttle.jpg diff --git a/zsh/.zprofile b/zsh/.zprofile index 2a73493..dad305e 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -1,2 +1,5 @@ +curl -m 3 -s "$CAL_PERSO" | grep -v END:VCALENDAR >/tmp/calendar.ics +curl -m 3 -s "$CAL_SCHOOL" | grep -v BEGIN:VCALENDAR >> /tmp/calendar.ics +icstocal /tmp/calendar.ics /tmp/calendar >/dev/null [ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec sx diff --git a/zsh/.zshenv b/zsh/.zshenv index 9b82ff7..a020302 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,3 +1,6 @@ +[ -f "$ZDOTDIR/paliasrc" ] && source "$ZDOTDIR/paliasrc" # Private aliases +[ -f "$ZDOTDIR/epitaliasrc" ] && source "$ZDOTDIR/epitaliasrc" # Private aliases + export PATH="$HOME/.config/scripts:$PATH" export TERMINAL="st" export EDITOR="nvim" @@ -1,23 +1,22 @@ -[ -f "$ZDOTDIR/paliasrc" ] && source "$ZDOTDIR/paliasrc" # Private aliases -[ -f "$ZDOTDIR/epitaliasrc" ] && source "$ZDOTDIR/epitaliasrc" # Private aliases +autoload -U colors && colors # Load colors +PS1="%B%F{214}%n %F{209}%~ %f%F{45} %f%b " +RPS1="%f(%B%(?.%F{green}0%f.%F{red}%?%f)%b%)" -# quand +# To do cat ~/todo -autoload -U colors && colors # Load colors -PS1="%B%(?.0.%F{red}%?) %F{blue}%n %F{green}%~ %f$%b " - alias ls="ls -a --color=auto" alias shut="sudo openrc-shutdown -p now" alias shutr="sudo openrc-shutdown -r now" -alias upd="sudo pacman -Syuu" +alias upd="sudo pacman -Syuu; setxkbmap fr" alias ins="sudo pacman -Syu" alias uins="sudo pacman -Rns" alias c="clear; cat ~/todo" # git +alias aled="cat $XDG_CONFIG_HOME/zsh/gitHelp" alias {clone,cloner}="git clone" alias {tirer,tir,poule}="git pull" alias {statut,sta}="git status" @@ -29,12 +28,15 @@ alias {difference,ference}="git diff" alias {tronc,tr}="git log" alias {resto,restau}="git restore" alias {étiquette,etiqu}="git tag" +alias branche="git branch" alias bri5="xrandr --output eDP-1 --brightness 0.5" alias bri6="xrandr --output eDP-1 --brightness 0.6" alias ascii="ascii -d" +alias sudo="sudo " alias lf="lfub" alias vmk="v Makefile" +alias cmk="xsel -bo > Makefile" alias cf="$HOME/.config/" alias cspt="$HOME/.config/scripts" alias cz="$HOME/.config/zsh" @@ -47,6 +49,7 @@ alias py="python3" alias wtr="curl wttr.in/Lyon" alias doc="$HOME/Documents" alias usbmnt="sudo mount /dev/sdb1 $HOME/usb" +alias sss="ssh root@140.82.10.231" autoload -U compinit zstyle ':completion:*' menu select @@ -60,7 +63,7 @@ autoload -Uz vcs_info precmd_vcs_info() { vcs_info } precmd_functions+=( precmd_vcs_info ) setopt prompt_subst -RPROMPT=\$vcs_info_msg_0_ +# RPROMPT=\$vcs_info_msg_0_ zstyle ':vcs_info:git:*' formats '%F{cyan}(%b)%f' zstyle ':vcs_info:*' enable git diff --git a/zsh/gitHelp b/zsh/gitHelp new file mode 100644 index 0000000..4d4d686 --- /dev/null +++ b/zsh/gitHelp @@ -0,0 +1,15 @@ +# Trouduction de Git + +clone / cloner : "git clone" +tirer / tir / poule : "git pull" +statut / sta : "git status" +ajouter / aj : "git add" +atome_de_code / ato : "git commit -m" # voir bitoduc.fr, Commit +pousser / pous : "git push" +poussétiquettes / poussE : "git push --follow-tags" +difference / ference / "git diff" +tronc / tr : "git log" +resto / restau : "git restore" +étiquette / etiqu : "git tag" +branche : "git branch" + |
