diff --git a/.SpaceVim.d/autoload/maconfig.vim b/.SpaceVim.d/autoload/maconfig.vim new file mode 100644 index 0000000..65f2c76 --- /dev/null +++ b/.SpaceVim.d/autoload/maconfig.vim @@ -0,0 +1,7 @@ +" Affiche une colonne au caractère 80 et 120 +set cc=80,120 + +" Coupe les lignes automatiquement +func! maconfig#after() abort + set wrap +endf diff --git a/.SpaceVim.d/init.toml b/.SpaceVim.d/init.toml new file mode 100644 index 0000000..dc43e37 --- /dev/null +++ b/.SpaceVim.d/init.toml @@ -0,0 +1,48 @@ +#============================================================================= +# dark_powered.toml --- dark powered configuration example for SpaceVim +# Copyright (c) 2016-2017 Wang Shidong & Contributors +# Author: Wang Shidong < wsdjeg at 163.com > +# URL: https://spacevim.org +# License: GPLv3 +#============================================================================= + +# All SpaceVim option below [option] section +[options] + # set spacevim theme. by default colorscheme layer is not loaded, + # if you want to use more colorscheme, please load the colorscheme + # layer + colorscheme = "gruvbox" + colorscheme_bg = "dark" + # Disable guicolors in basic mode, many terminal do not support 24bit + # true colors + enable_guicolors = true + # Disable statusline separator, if you want to use other value, please + # install nerd fonts + statusline_separator = "arrow" + statusline_inactive_separator = "arrow" + buffer_index_type = 4 + enable_tabline_filetype_icon = true + enable_statusline_mode = false + # La colonne verticale suit le curseur + enable_cursorcolumn = 1 + # colonne maximum à 80 + max_column = 80 + # Configuration VIM personnelle + bootstrap_after = "maconfig#after" + +# Enable autocomplete layer +[[layers]] +name = 'autocomplete' +auto-completion-return-key-behavior = "complete" +auto-completion-tab-key-behavior = "smart" + +[[layers]] +name = 'shell' +default_position = 'top' +default_height = 30 + +[[layers]] + name = "lang#javascript" + +[[layers]] + name = "fzf" diff --git a/.config/clipit/clipitrc b/.config/clipit/clipitrc new file mode 100644 index 0000000..a2af3ba --- /dev/null +++ b/.config/clipit/clipitrc @@ -0,0 +1,25 @@ +[rc] +use_copy=true +use_primary=true +synchronize=false +automatic_paste=false +show_indexes=false +save_uris=true +use_rmb_menu=false +save_history=true +history_limit=25 +items_menu=20 +statics_show=false +statics_items=10 +hyperlinks_only=false +confirm_clear=false +single_line=true +reverse_history=false +item_length=50 +ellipsize=2 +history_key=H +actions_key=A +menu_key=P +search_key=F +offline_key=O +offline_mode=false diff --git a/.config/i3/config b/.config/i3/config index ab34332..f4f11e1 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -190,8 +190,18 @@ bindsym XF86AudioMute exec pactl set-sink-mute $sink toggle # mute sound bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness +# Player controls (via MPRIS, in example mpv-mpris) +# play/pause +bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.mpv /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause" +# next file/music/movie +bindsym XF86AudioNext exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.mpv /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next" +# previous file/music/movie +bindsym XF86AudioPrev exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.mpv /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous" +# stop file/music/movie +bindsym XF86AudioStop exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.mpv /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Stop" + # Lock screen -bindsym $mod+l exec xscreensaver-command --lock +bindsym $mod+l exec i3lock -bfte -i ~/.config/i3/matrix-elements-design.png # Print screen bindsym Print exec --no-startup-id scrot '%Y-%m-%d-%s_screenshot_$wx$h.jpg' -e 'mv $f ~/Images/' @@ -203,8 +213,8 @@ bindsym XF86Sleep exec systemctl suspend ## STARTUP PROGRAMS ### -# Transparency (need compton) -exec_always --no-startup-id "killall compton; compton" +# Transparency (need picom) +exec_always --no-startup-id "killall picom; picom -b" # DBUS daemon (needed for keyboard applet and more I think) #exec --no-startup-id /usr/lib/gnome-settings-daemon/gnome-settings-daemon @@ -213,13 +223,7 @@ exec_always --no-startup-id "killall compton; compton" exec --no-startup-id redshift -l 48.666977:7.706748 # Lock screen -exec_always --no-startup-id xscreensaver # if not launched via systemd or xinitrc - -# XFCE panel instead of i3status -#exec --no-startup-id xfce4-panel --disable-wm-check - -# Time tracking -#exec --no-startup-id hamster-indicator +exec --no-startup-id xautolock -locker "i3lock -bfte -i ~/.config/i3/matrix-elements-design.png" -corners "--00" -cornersize 30 # Default terminal exec --no-startup-id i3-sensible-terminal @@ -235,9 +239,6 @@ smart_gaps on # https://github.com/blankoworld/dotfiles/blob/master/bin/random_wallpaper) exec_always --no-startup-id "kill -9 `ps aux | grep random_wallpaper |grep -v 'grep'| awk '{print $2}'`; random_wallpaper &" -# Network management -# exec --no-startup-id nm-applet - # Hasmter indicator exec --no-startup-id hamster diff --git a/.config/i3/matrix-elements-design.png b/.config/i3/matrix-elements-design.png new file mode 100644 index 0000000..3bae11d Binary files /dev/null and b/.config/i3/matrix-elements-design.png differ diff --git a/.config/mpv/scripts/mpris.so b/.config/mpv/scripts/mpris.so new file mode 120000 index 0000000..057bede --- /dev/null +++ b/.config/mpv/scripts/mpris.so @@ -0,0 +1 @@ +/usr/lib/mpv/mpris.so \ No newline at end of file diff --git a/.config/polybar/config b/.config/polybar/config index e031124..b319110 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -335,6 +335,11 @@ type = internal/temperature thermal-zone = 0 warn-temperature = 60 +; Full path of temperature sysfs path +; Use `sensors` to find preferred temperature source, then run +; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done +; to find path to desired file +; Default reverts to thermal zone setting hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input ;format =