Synchronisation avec le gitlab

master
gnu/oräkle 5 years ago
parent 9f697009e8
commit c3d0708f6c

@ -1 +1,19 @@
# i3-config
# i3-config
## Installation des paquets
Divers paquets sont nécessaires, dont voici une liste de paquets à installer au préalable
* [Nitrogen](https://github.com/l3ib/nitrogen) : *Pour les fonds d'écrans.*
* [i3-gaps](https://github.com/Airblader/i3) : *Le WM (Windows Manager)*
* [Compton](https://github.com/chjj/compton) : *Le compositeur d'écran*
* [Polybar](https://github.com/jaagr/polybar) : *La barre d'état*
* [rofi](https://github.com/DaveDavenport/rofi) : *Pour lancer les applications*
* [URxvt](http://software.schmorp.de/pkg/rxvt-unicode.html) : *L'émulateur de terminal*
* [scrot](https://github.com/dreamer/scrot) : *Pour les screenshots*
Des polices d'écritures sont elles aussi nécessaires :
* [Font Awesome](https://fontawesome.com/) : *Pour les icônes diverses sur la barre d'état*
* [Ubuntu Font Family](https://design.ubuntu.com/font/) : *Pour la barre d'état et l'émulateur de terminal*
* [Font Logos](https://github.com/lukas-w/font-logos) : *Pour le logo Tux sur la barre d'état*
## Ajouter les configurations

@ -0,0 +1,58 @@
! ------------------------------------------------------------------------------
! URxvt
URxvt*transparent: true
URxvt*shading: 50
URxvt*blurRadius: 50
URxvt*foreground: #AAFFFFFF
URxvt*font: xft:Ubuntu Mono:style=Regular:size=10
URxvt*saveLines: 10000
URxvt*scrollBar: true
URxvt*scrollBar_right: true
URxvt*scrollColor: #000000
URxvt*scrollBar_floating: true
URxvt*scrollstyle: plain
! ------------------------------------------------------------------------------
! Couleurs de terminal
! noir
*.color0: #151515
*.color8: #505050
! rouge
*.color1: #fb9fb1
*.color9: #fb9fb1
! vert
*.color2: #acc267
*.color10: #acc267
! jaune
*.color3: #ddb26f
*.color11: #ddb26f
! bleu
*.color4: #6fc2ef
*.color12: #6fc2ef
! magenta
*.color5: #e1a3ee
*.color13: #e1a3ee
! cyan
*.color6: #12cfc0
*.color14: #12cfc0
! blanc
*.color7: #d0d0d0
*.color15: #f5f5f5
! ------------------------------------------------------------------------------
! ROFI
rofi.color-enabled: true
rofi.color-window: argb:72000000, #6e9bad, #6e9bad
rofi.color-normal: argb:7e000000, #ffffff, argb:83000000, argb:7e586e75, #ffffff
rofi.color-active: #6e9bad, #ffffff, #6e9bad, #97d6f0, #000000
rofi.color-urgent: argb:86000000, #dc322f, argb:81000000, argb:89dc322f, #fdf6e3

@ -0,0 +1,201 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Ubuntu Mono 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesnt scale on retina/hidpi displays.
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+A kill
# start dmenu (a program launcher)
bindsym $mod+d exec rofi -show run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+m focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+M move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+z layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+q focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+ampersand workspace $ws1
bindsym $mod+eacute workspace $ws2
bindsym $mod+quotedbl workspace $ws3
bindsym $mod+apostrophe workspace $ws4
bindsym $mod+parenleft workspace $ws5
bindsym $mod+minus workspace $ws6
bindsym $mod+egrave workspace $ws7
bindsym $mod+underscore workspace $ws8
bindsym $mod+ccedilla workspace $ws9
bindsym $mod+agrave workspace $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+eacute move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+egrave move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+ccedilla move container to workspace $ws9
bindsym $mod+Shift+agrave move container to workspace $ws10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Voulez-vous mettre fin à votre session X?' -B 'Oui' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# 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 1 px or 1 ppt
bindsym k resize grow height 1 px or 1 ppt
bindsym l resize shrink height 1 px or 1 ppt
bindsym m resize grow width 1 px or 1 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 1 px or 1 ppt
bindsym Down resize grow height 1 px or 1 ppt
bindsym Up resize shrink height 1 px or 1 ppt
bindsym Right resize grow width 1 px or 1 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
mode "screenshot" {
# Fullscreen
bindsym f exec gnome-screenshot
# Fenêtre
bindsym w exec gnome-screenshot -w
# Sélection
bindsym s exec gnome-screenshot -a
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+Print mode "screenshot"
# Autorun
exec_always compton
exec_always nitrogen --restore
exec_always ~/.scripts/launchbar.sh
# i3gaps
gaps inner 10
gaps outer 10
for_window [class="^.*"] border none
for_window [class="URxvt"] border pixel 2
# Workspace related gaps
workspace "9" gaps outer 0
workspace "9" gaps inner 0
workspace "10" gaps outer 100

@ -0,0 +1,30 @@
monitor = ${env:MONITOR:HDMI1}
bottom = false
fixed-center = true
width = 100%
height = 30px
background-0 = #99000000
background-1 = #88000000
background-2 = #77000000
background-3 = #66000000
background-4 = #55000000
background-5 = #44000000
background-6 = #33000000
background-7 = #22000000
background-8 = #11000000
background-9 = #00000000
radius = 0.0
override-redirect = false
font-0 = "Ubuntu Mono:style=Bold:size=13"
font-1 = "font\-logos:style=logos:size=15"
font-2 = "Font Awesome 5 Free:style=Solid:size=13"
modules-left = archlogo finder focusedwindows
modules-center = i3
modules-right = filesystem ram battery pulseaudio hour menu-power
padding = 2px
module-margin = 1

@ -0,0 +1,47 @@
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;==========================================================
[bar/transparent]
include-file = ~/.config/polybar/bar/transparent
[module/i3]
include-file = ~/.config/polybar/modules/generaux/i3wm
[module/menu-power]
include-file = ~/.config/polybar/modules/generaux/power-button
[module/hour]
include-file = ~/.config/polybar/modules/generaux/hour
[module/archlogo]
include-file = ~/.config/polybar/modules/generaux/archlogo
[module/focusedwindows]
include-file = ~/.config/polybar/modules/generaux/xwindows
[module/battery]
include-file = ~/.config/polybar/modules/generaux/battery
[module/finder]
include-file = ~/.config/polybar/modules/generaux/finder
[module/ram]
include-file = ~/.config/polybar/modules/generaux/ram
[module/pulseaudio]
include-file = ~/.config/polybar/modules/generaux/pulseaudio

@ -0,0 +1,2 @@
type = custom/text
content = 

@ -0,0 +1,12 @@
[module/battery]
type = internal/battery
full-at = 99
battery = BAT0
adapter = AC0
poll-interval = 1
label-charging =  %percentage%%
label-discharging =  %percentage%%

@ -0,0 +1,3 @@
type = custom/text
content = finder
click-left = rofi -show run

@ -0,0 +1,5 @@
type = internal/date
interval = 1.0
time = %H:%M
label = %time%

@ -0,0 +1,30 @@
type = internal/i3
pin-workspaces = true
strip-wsnumbers = false
enable-scroll = true
wrapping-scroll = true
label-active-font = 4
label-focused-foreground = #FFFFFF00
label-focused = %icon%
label-unfocused-foreground = #55FFFF00
label-unfocused = %icon%
label-urgent-foreground = #FFFF0000
label-urgent = "%icon% "
ws-icon-0 = 1;I
ws-icon-1 = 2;II
ws-icon-2 = 3;III
ws-icon-3 = 4;IV
ws-icon-4 = 5;V
ws-icon-5 = 6;VI
ws-icon-6 = 7;VII
ws-icon-7 = 8;VIII
ws-icon-8 = 9;IX
ws-icon-9 = 10;X
label-separator = " "

@ -0,0 +1,10 @@
type = custom/menu
menu-0-0 = Shutdown
menu-0-0-exec = shutdown now
menu-0-1 = Reboot
menu-0-1-exec = reboot
label-open = 
label-close = 
label-separator = " | "

@ -0,0 +1,30 @@
type = internal/pulseaudio
use-ui-max = true
interval = 1
; Available tags:
; <label-volume> (default)
; <ramp-volume>
; <bar-volume>
format-volume = <ramp-volume> <label-volume>
; Available tags:
; <label-muted> (default)
; <ramp-volume>
; <bar-volume>
;format-muted = <label-muted>
; Available tokens:
; %percentage% (default)
;label-volume = %percentage%%
; Available tokens:
; %percentage% (default)
label-muted =  muted
label-muted-foreground = #666
; Only applies if <ramp-volume> is used
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 

@ -0,0 +1,68 @@
type = internal/memory
; Seconds to sleep between updates
; Default: 1
interval = 1
; Available tags:
; <label> (default)
; <bar-used>
; <bar-free>
; <ramp-used>
; <ramp-free>
; <bar-swap-used> (unreleased)
; <bar-swap-free> (unreleased)
; <ramp-swap-used> (unreleased)
; <ramp-swap-free> (unreleased)
format = <label> <bar-used>
; Available tokens:
; %percentage_used% (default)
; %percentage_free%
; %gb_used%
; %gb_free%
; %gb_total%
; %mb_used%
; %mb_free%
; %mb_total%
; %percentage_swap_used%
; %percentage_swap_free%
; %mb_swap_total%
; %mb_swap_free%
; %mb_swap_used%
; %gb_swap_total%
; %gb_swap_free%
; %gb_swap_used%
label = RAM %gb_used%/%gb_free%
; Only applies if <bar-used> is used
bar-used-indicator =
bar-used-width = 50
bar-used-foreground-0 = #55aa55
bar-used-foreground-1 = #557755
bar-used-foreground-2 = #f5a70a
bar-used-foreground-3 = #ff5555
bar-used-fill = ▐
bar-used-empty = ▐
bar-used-empty-foreground = #444444
; Only applies if <ramp-used> is used
ramp-used-0 = ▁
ramp-used-1 = ▂
ramp-used-2 = ▃
ramp-used-3 = ▄
ramp-used-4 = ▅
ramp-used-5 = ▆
ramp-used-6 = ▇
ramp-used-7 = █
; Only applies if <ramp-free> is used
ramp-free-0 = ▁
ramp-free-1 = ▂
ramp-free-2 = ▃
ramp-free-3 = ▄
ramp-free-4 = ▅
ramp-free-5 = ▆
ramp-free-6 = ▇
ramp-free-7 = █

@ -0,0 +1,22 @@
type = internal/xwindow
label-active-font = 4
; Available tags:
; <label> (default)
format = <label>
label-foreground = #AAAAAA
; Available tokens:
; %title%
; Default: %title%
label = %title%
label-maxlen = 30
; Used instead of label when there is no window title
; Available tokens:
; None
label-empty = None
label-empty-foreground = #707880

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch bar1 and bar2
polybar transparent
echo "Bars launched..."
Loading…
Cancel
Save