Màj confs

This commit is contained in:
Breizh 2018-07-29 15:08:47 +02:00
parent d2d3c6baae
commit a67dd266b1
20 changed files with 79 additions and 70 deletions

View file

@ -67,12 +67,12 @@ URxvt*mouseWheelScrollPage: false
URxvt*cursorBlink: true URxvt*cursorBlink: true
!URxvt*background: black !URxvt*background: black
!URxvt*foreground: #AAAAAA !URxvt*foreground: #AAAAAA
URxvt*saveLines: 50000 URxvt*saveLines: 0
! for 'fake' transparency (without Compton) uncomment the following three lines ! for 'fake' transparency (without Compton) uncomment the following three lines
!URxvt*inheritPixmap: true !URxvt*inheritPixmap: true
!URxvt*transparent: true URxvt*transparent: true
!URxvt*shading: 20 URxvt*shading: 25
! other possible settings: ! other possible settings:
! Rxvt.perl-ext-common: ...,clipboard ! Rxvt.perl-ext-common: ...,clipboard

View file

@ -1,8 +1,8 @@
[Filechooser Settings] [Filechooser Settings]
LocationMode=path-bar LocationMode=path-bar
ShowHidden=true ShowHidden=false
ShowSizeColumn=true ShowSizeColumn=true
GeometryX=516 GeometryX=996
GeometryY=246 GeometryY=246
GeometryWidth=887 GeometryWidth=887
GeometryHeight=585 GeometryHeight=585

View file

@ -1,7 +1,7 @@
[Settings] [Settings]
gtk-application-prefer-dark-theme=false gtk-application-prefer-dark-theme=false
gtk-theme-name=Adwaita-dark gtk-theme-name=Vertex-Dark
gtk-icon-theme-name=Adwaita gtk-icon-theme-name=Vertex-Icons
gtk-font-name=xos4 Terminus gtk-font-name=xos4 Terminus
gtk-button-images=1 gtk-button-images=1
gtk-menu-images=1 gtk-menu-images=1

View file

@ -1,6 +1,6 @@
[Settings] [Settings]
gtk-application-prefer-dark-theme=false gtk-application-prefer-dark-theme=false
gtk-theme-name=Adwaita-dark gtk-theme-name=Vertex
gtk-icon-theme-name=Vertex-Icons gtk-icon-theme-name=Vertex-Icons
gtk-font-name=xos4 Terminus gtk-font-name=xos4 Terminus
gtk-button-images=1 gtk-button-images=1

View file

@ -56,9 +56,9 @@ font xft:xos4 Terminus
floating_modifier $mod floating_modifier $mod
# start a i3-sensible-terminal # start a i3-sensible-terminal
bindsym $mod+Return exec i3-sensible-terminal -e fish bindsym $mod+Return exec i3-sensible-terminal -sl 65535 -e fish
bindsym $mod+Ctrl+Return exec i3-sensible-terminal bindsym $mod+Ctrl+Return exec i3-sensible-terminal -sl 65535
bindsym $mod+Shift+Return exec i3-sensible-terminal -fn -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1 -e fish bindsym $mod+Shift+Return exec i3-sensible-terminal -sl 65535 -fn -xos4-terminus-medium-r-normal--32-320-72-72-c-160-iso10646-1 -e fish
# kill focused window # kill focused window
@ -85,7 +85,7 @@ bindsym $mod+Ctrl+d exec --no-startup-id dmenu_run -f -p "Execute:" -nb '#2d2d2d
#exec --no-startup-id volumeicon #exec --no-startup-id volumeicon
#bindsym $mod+Ctrl+m exec i3-sensible-terminal -e 'alsamixer' #bindsym $mod+Ctrl+m exec i3-sensible-terminal -e 'alsamixer'
exec --no-startup-id pulseaudio exec --no-startup-id sleep 10 && pulseaudio
#exec --no-startup-id pa-applet #exec --no-startup-id pa-applet
bindsym $mod+Ctrl+m exec pavucontrol bindsym $mod+Ctrl+m exec pavucontrol
@ -106,15 +106,15 @@ bindsym --release Caps_Lock exec --no-startup-id pkill -SIGRTMIN+11 i3blocks
bindsym --release Num_Lock exec --no-startup-id pkill -SIGRTMIN+12 i3blocks bindsym --release Num_Lock exec --no-startup-id pkill -SIGRTMIN+12 i3blocks
# Start Applications # Start Applications
bindsym $mod+Ctrl+b exec i3-sensible-terminal +sb -e fish -c bmenu bindsym $mod+Ctrl+b exec i3-sensible-terminal -e fish -c bmenu
bindsym $mod+F2 exec $BROWSER bindsym $mod+F2 exec $BROWSER
bindsym $mod+Shift+F2 exec $BROWSER --private-window bindsym $mod+Shift+F2 exec $BROWSER --private-window
bindsym $mod+Ctrl+F2 exec surf "https://www.qwant.com?l=fr&h=1&hc=2&a=1&s=1&b=0&i=1&r=FR&sr=fr" bindsym $mod+Ctrl+F2 exec surf "https://www.qwant.com?l=fr&h=1&hc=2&a=1&s=1&b=0&i=1&r=FR&sr=fr"
bindsym $mod+Ctrl+F3 exec pcmanfm bindsym $mod+Ctrl+F3 exec pcmanfm
bindsym $mod+F3 exec i3-sensible-terminal +sb -e fish -c ranger bindsym $mod+F3 exec i3-sensible-terminal -e fish -c ranger
bindsym $mod+F4 exec i3-sensible-terminal +sb -e fish -c bashmount bindsym $mod+F4 exec i3-sensible-terminal -e fish -c bashmount
bindsym $mod+Shift+F3 exec gksu pcmanfm bindsym $mod+Shift+F3 exec gksu pcmanfm
bindsym $mod+F5 exec i3-sensible-terminal +sb -e fish -c mocp bindsym $mod+F5 exec i3-sensible-terminal -e fish -c mocp
bindsym $mod+t exec --no-startup-id pkill compton bindsym $mod+t exec --no-startup-id pkill compton
bindsym $mod+Ctrl+t exec --no-startup-id compton -b bindsym $mod+Ctrl+t exec --no-startup-id compton -b
bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'Dunst' 'Restarted'" bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'Dunst' 'Restarted'"
@ -123,7 +123,7 @@ bindsym $mod+Print --release exec --no-startup-id i3-scrot -w
bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
bindsym $mod+Shift+h exec dctl bindsym $mod+Shift+h exec dctl
bindsym $mod+Ctrl+x --release exec --no-startup-id xkill bindsym $mod+Ctrl+x --release exec --no-startup-id xkill
bindsym XF86MyComputer exec passmenu --type -l 10 bindsym $mod+l exec passmenu --type -l 10
#set $mode_ide (a)tom (t)exmaker #set $mode_ide (a)tom (t)exmaker
#mode "$mode_ide" { #mode "$mode_ide" {
@ -138,10 +138,10 @@ bindsym XF86MyComputer exec passmenu --type -l 10
# focus_follows_mouse no # focus_follows_mouse no
# change focus # change focus
bindsym $mod+j focus left #bindsym $mod+j focus left
bindsym $mod+k focus down #bindsym $mod+k focus down
bindsym $mod+l focus up #bindsym $mod+l focus up
bindsym $mod+m focus right #bindsym $mod+m focus right
# alternatively, you can use the cursor keys: # alternatively, you can use the cursor keys:
bindsym $mod+Left focus left bindsym $mod+Left focus left
@ -348,11 +348,11 @@ exec --no-startup-id conky
# exec --no-startup-id start_conky_green # exec --no-startup-id start_conky_green
exec --no-startup-id xscreensaver -no-splash exec --no-startup-id xscreensaver -no-splash
exec_always --no-startup-id setcursor exec_always --no-startup-id setcursor
exec claws-mail exec claws-mail --online
exec ring.cx -r #exec ring.cx -r
exec --no-startup-id sleep 2 && urxvtc +sb -e fish -c newsboat exec --no-startup-id sleep 2 && urxvtc -e fish -c newsboat
exec --no-startup-id sleep 5 && i3-msg '[class="URxvt"] move scratchpad' exec --no-startup-id sleep 5 && i3-msg '[class="URxvt"] move scratchpad'
#exec --no-startup-id variety exec --no-startup-id variety
#exec --no-startup-id while true; do feh --bg-center $HOME/Images/wallpapers/396396-blackangel.jpg; sleep 5m; feh --bg-max $HOME/Images/wallpapers/other-clock-tower-time-brick-gears-steampunk-high-quality-picture.jpg; sleep 5m; done #exec --no-startup-id while true; do feh --bg-center $HOME/Images/wallpapers/396396-blackangel.jpg; sleep 5m; feh --bg-max $HOME/Images/wallpapers/other-clock-tower-time-brick-gears-steampunk-high-quality-picture.jpg; sleep 5m; done
exec --no-startup-id xinput --disable "AlpsPS/2 ALPS DualPoint TouchPad" exec --no-startup-id xinput --disable "AlpsPS/2 ALPS DualPoint TouchPad"
exec --no-startup-id redshift-gtk exec --no-startup-id redshift-gtk
@ -382,7 +382,7 @@ bar {
colors { colors {
background $base00 background $base00
separator $base01 separator $base02
statusline $base05 statusline $base05
# State Border BG Text # State Border BG Text

View file

@ -1,5 +1,6 @@
conky.config = { conky.config = {
alignment = 'top_right', alignment = 'top_right',
xinerama_head = 1,
background = true, background = true,
cpu_avg_samples = 2, cpu_avg_samples = 2,
double_buffer = true, double_buffer = true,
@ -7,14 +8,14 @@ conky.config = {
draw_shades = false, draw_shades = false,
minimum_width = 260, minimum_width = 260,
maximum_width = 260, maximum_width = 260,
minimum_height = 1080, minimum_height = 930,
gap_y = 5, gap_y = 5,
gap_x = 5, gap_x = 5,
no_buffers = true, no_buffers = true,
own_window = true, own_window = true,
own_window_class = Conky, own_window_class = Conky,
own_window_type = 'override', own_window_type = 'override',
own_window_transparent = false, own_window_transparent = true,
own_window_colour = '#2D2D2D', own_window_colour = '#2D2D2D',
update_interval = 1.0, update_interval = 1.0,
use_xft = true, use_xft = true,
@ -101,17 +102,17 @@ ${if_match $battery_percent<20}${color CC99CC}$else${if_match $battery_percent<6
Rétro-éclairage ${exec echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))}%$alignr${exec redshift -p | head -n 3 | tail -n 1 | cut -d':' -f2} Rétro-éclairage ${exec echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))}%$alignr${exec redshift -p | head -n 3 | tail -n 1 | cut -d':' -f2}
${execbar echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))} ${execbar echo $((( $(cat /sys/class/backlight/intel_backlight/actual_brightness) * 100 / $(cat /sys/class/backlight/intel_backlight/max_brightness) )))}
${color2}${font xos4 Terminus:pixelsize=14}Music On Console${font}${alignr}${if_match "$moc_state"=="??"}STOP$color$else$moc_state${color} #${color2}${font xos4 Terminus:pixelsize=14}Music On Console${font}${alignr}${if_match "$moc_state"=="??"}STOP$color$else$moc_state${color}
$moc_curtime / $moc_totaltime$alignr$moc_timeleft #$moc_curtime / $moc_totaltime$alignr$moc_timeleft
${execibar 3 echo $(($(mocp -Q "%cs") * 100 / $(mocp -Q "%ts")))} #${execibar 3 echo $(($(mocp -Q "%cs") * 100 / $(mocp -Q "%ts")))}
Titre$alignr${scroll wait 32 1 4 $moc_song} #Titre$alignr${scroll wait 32 1 4 $moc_song}
Artiste$alignr${scroll wait 32 1 4 $moc_artist} #Artiste$alignr${scroll wait 32 1 4 $moc_artist}
Album$alignr${scroll wait 32 1 4 $moc_album} #Album$alignr${scroll wait 32 1 4 $moc_album}
# #
# #
#Bitrate$alignr$moc_bitrate #Bitrate$alignr$moc_bitrate
#Rate$alignr$moc_rate #Rate$alignr$moc_rate
Fichier$alignr${scroll wait 32 1 4 $moc_file}$endif #Fichier$alignr${scroll wait 32 1 4 $moc_file}$endif
#${color2}${font xos4 Terminus:pixelsize=14}Tracker${font}$color #${color2}${font xos4 Terminus:pixelsize=14}Tracker${font}$color
#${execi 300 curl https://tracker.breizh.me/stats} #${execi 300 curl https://tracker.breizh.me/stats}

View file

@ -25,7 +25,7 @@
# The top properties below are applied to every block, but can be overridden. # The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate. # Each block command defaults to the script name to avoid boilerplate.
command=${HOME}/.i3blocks/$BLOCK_NAME command=${HOME}/.i3blocks/$BLOCK_NAME
separator_block_width=15 separator_block_width=11
markup=pango markup=pango
#[window_title] #[window_title]
@ -153,7 +153,8 @@ interval=600
#instance=0 #instance=0
#interval=5 #interval=5
[batterybar] #[batterybar]
[battery]
label=bat label=bat
interval=10 interval=10
#min_width="bat █████" #min_width="bat █████"
@ -164,7 +165,7 @@ interval=10
# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others. # Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others.
[mocp] [mocp]
#instance=spotify #instance=spotify
interval=20 interval=1
signal=13 signal=13
markup=none markup=none

View file

@ -26,18 +26,18 @@ output=$(acpi battery)
percentage=$(echo "$output" | grep -o -m1 '[0-9]\{1,3\}%' | tr -d '%') percentage=$(echo "$output" | grep -o -m1 '[0-9]\{1,3\}%' | tr -d '%')
status=$(echo "$output" | egrep -o -m1 'Discharging|Charging|AC|Full|Unknown') status=$(echo "$output" | egrep -o -m1 'Discharging|Charging|AC|Full|Unknown')
remaining=$( echo "$output" | egrep -o -m1 '[0-9][0-9]:[0-9][0-9]') remaining=$( echo "$output" | egrep -o -m1 '[0-9][0-9]:[0-9][0-9]')
[[ -n $remaining ]] && remaining_formatted="($remaining)" [[ -n $remaining ]] && remaining_formatted=" ($remaining)"
icon="" icon=""
#There are 8 colors that reflect the current battery percentage when #There are 8 colors that reflect the current battery percentage when
#discharging #discharging
dis_colors=("#f2777a" "#f99157" "#f99157" "#ffcc66" "#ffcc66" "#99cc99" dis_colors=("#f2777a" "#f99157" "#f99157" "#ffcc66" "#ffcc66" "#99cc99"
"#99cc99" "#66cccc") "#99cc99" "#99cc99")
charging_color="#6699cc" charging_color="#66cccc"
full_color="#6699cc" full_color="#66cccc"
ac_color="#6699cc" ac_color="#66cccc"
while getopts 1:2:3:4:5:6:7:8:c:f:a:h opt; do while getopts 1:2:3:4:5:6:7:8:c:f:a:h opt; do
case "$opt" in case "$opt" in
@ -89,12 +89,12 @@ done
# icon="" # icon=""
#fi #fi
icon="bat " icon=""
case "$status" in case "$status" in
"Charging") "Charging")
color="$charging_color" color="$charging_color"
icon="$icon" icon="$icon"
if (( percentage >= 0 && percentage <= 10 )); then if (( percentage >= 0 && percentage <= 10 )); then
color="${dis_colors[0]}" color="${dis_colors[0]}"
echo 0 on > /proc/acpi/ibm/led echo 0 on > /proc/acpi/ibm/led
@ -120,11 +120,11 @@ case "$status" in
;; ;;
"AC") "AC")
color="$ac_color" color="$ac_color"
icon="$icon" icon="$icon"
echo 0 on > /proc/acpi/ibm/led echo 0 on > /proc/acpi/ibm/led
;; ;;
"Discharging"|"Unknown") "Discharging"|"Unknown")
icon="$icon" icon="$icon"
if (( percentage >= 0 && percentage <= 10 )); then if (( percentage >= 0 && percentage <= 10 )); then
color="${dis_colors[0]}" color="${dis_colors[0]}"
echo 0 blink > /proc/acpi/ibm/led echo 0 blink > /proc/acpi/ibm/led
@ -146,6 +146,4 @@ case "$status" in
;; ;;
esac esac
echo "$icon $percentage% $remaining_formatted" printf "$icon <span color=\"$color\">%2d%%</span>$remaining_formatted\n" $percentage
echo "$percentage%"
echo "$color"

View file

@ -50,4 +50,4 @@ else
color15="#F2777A" color15="#F2777A"
fi fi
echo "<span foreground=\"$color\">$load</span> <span foreground=\"$color5\">$load5</span> <span foreground=\"$color15\">$load15</span>" printf "<span foreground=\"$color\">%4.4s</span> <span foreground=\"$color5\">%4.4s</span> <span foreground=\"$color15\">%4.4s</span>" ${load} ${load5} ${load15}

View file

@ -63,18 +63,18 @@ END {
# full text # full text
if (type == "swap") if (type == "swap")
#printf("%.1fG\n", swap_free/1024/1024) #printf("%.1fG\n", swap_free/1024/1024)
printf("%4.1f%</span>\n", (swap_total-swap_free)*100/swap_total) printf("%2d%</span>\n", (swap_total-swap_free)*100/swap_total)
else else
#printf("%.1f%\n", mem_free/1024/1024) #printf("%.1f%\n", mem_free/1024/1024)
printf("%4.1f%</span>\n", (mem_total-mem_free)*100/mem_total) printf("%2d%</span>\n", (mem_total-mem_free)*100/mem_total)
# TODO: short text
if (type == "swap")
#printf("%.1fG\n", swap_free/1024/1024)
printf("%2.0f%</span>\n", (swap_total-swap_free)*100/swap_total)
else
#printf("%.1f%\n", mem_free/1024/1024)
printf("%2.0f%</span>\n", (mem_total-mem_free)*100/mem_total)
# # TODO: short text
# if (type == "swap")
# #printf("%.1fG\n", swap_free/1024/1024)
# printf("%2.0f%</span>\n", (swap_total-swap_free)*100/swap_total)
# else
# #printf("%.1f%\n", mem_free/1024/1024)
# printf("%2.0f%</span>\n", (mem_total-mem_free)*100/mem_total)
#
} }
' /proc/meminfo ' /proc/meminfo

View file

@ -25,4 +25,4 @@ then
dots="…" dots="…"
fi fi
echo $status ${song:0:30}$dots echo $status ${song:0:30}$dots $(mocp -Q "%ct %tt %tl")

View file

@ -112,7 +112,7 @@ FormatString = "%(n:%n :)%(a:%a - :)%(t:%t - :)%(A:%A:)"
# This can't be greater than the value of InputBuffer. While this has # This can't be greater than the value of InputBuffer. While this has
# a positive effect for network streams, it also causes the broadcast # a positive effect for network streams, it also causes the broadcast
# audio to be delayed. # audio to be delayed.
Prebuffering = 256 Prebuffering = 64
# Use this HTTP proxy server for internet streams. If not set, the # Use this HTTP proxy server for internet streams. If not set, the
# environment variables http_proxy and ALL_PROXY will be used if present. # environment variables http_proxy and ALL_PROXY will be used if present.

View file

@ -1,3 +1,5 @@
let g:netrw_dirhistmax =10 let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =1 let g:netrw_dirhist_cnt =3
let g:netrw_dirhist_1='/home/breizh/.config/cava' let g:netrw_dirhist_1='/home/breizh/.config/cava'
let g:netrw_dirhist_2='/home/breizh/.vim/bundle/base16-vim/colors'
let g:netrw_dirhist_3='/sys/class/net'

@ -1 +1 @@
Subproject commit 7959654e57c05511134e55bda20e9a6bcb8fcfb0 Subproject commit fcce6bce6a2f4b14eea7ea388031c0aa65e4b67d

@ -1 +1 @@
Subproject commit 8ef6341bab8d542a3f6651e40867a3c660370d8c Subproject commit cabf8e6df08345df5c5f3fe1e46c20ebed374429

@ -0,0 +1 @@
Subproject commit a93ee1b7a4dadb82ca7ba793faf3047f6f6863d7

@ -0,0 +1 @@
Subproject commit 9855f084d0751dbd40a8cb56518f239e5eb1a624

@ -1 +1 @@
Subproject commit e646bee5c45201b52f8f879eddf84b5c2e360e98 Subproject commit 5483e163bd0a67e729e0e8436315f33f9e126baf

View file

@ -12,11 +12,15 @@ nnoremap <F3> :set hlsearch!<CR>
let g:vimtex_view_method = 'zathura' let g:vimtex_view_method = 'zathura'
let g:table_mode_corner_corner='+' let g:table_mode_corner_corner='+'
let g:table_mode_header_fillchar='=' let g:table_mode_header_fillchar='='
let g:grammalecte_cli_py='/usr/share/grammalecte-fr/grammalecte-cli.py' let g:grammalecte_cli_py='/usr/bin/grammalecte-cli.py'
if filereadable(expand("~/.vimrc_background")) if filereadable(expand("~/.vimrc_background"))
if &t_Co >= 256 if &t_Co >= 256
let base16colorspace=256 let base16colorspace=256
source ~/.vimrc_background source ~/.vimrc_background
hi Normal guibg=NONE ctermbg=NONE
elseif has("gui_running")
source ~/.vimrc_background
set guifont=xos4\ Terminus
else else
colorscheme default colorscheme default
endif endif
@ -26,6 +30,7 @@ endif
"nnoremap <Down> jzz "nnoremap <Down> jzz
"nnoremap <Up> kzz "nnoremap <Up> kzz
"set scrolloff=999 "set scrolloff=999
let g:livepreview_previewer = 'zathura'
let g:livepreview_engine = 'pdflatex' . ' -interaction=nonstopmode --shell-escape'
cmap w!! w !sudo tee > /dev/null % cmap w!! w !sudo tee > /dev/null %

View file

@ -1,5 +1,5 @@
# XScreenSaver Preferences File # XScreenSaver Preferences File
# Written by xscreensaver-demo 5.39 for breizh on Sun Apr 22 13:17:44 2018. # Written by xscreensaver-demo 5.39 for breizh on Sun Jun 17 17:27:20 2018.
# https://www.jwz.org/xscreensaver/ # https://www.jwz.org/xscreensaver/
timeout: 0:15:00 timeout: 0:15:00