mirror of https://github.com/orakless/i3-config
Synchronisation avec le gitlab
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,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…
Reference in New Issue