This commit is contained in:
Le_Foucheur committed 2024-09-15 22:10:50 +02:00
1 parent bd49911eca
commit e3de01bde8
3742 files changed
+64316

No files matched your search

@@ -0,0 +1,21 @@
// This configuration file allows you to pass permanent command line arguments to VS Code.
// Only a subset of arguments is currently supported to reduce the likelihood of breaking
// the installation.
//
// PLEASE DO NOT CHANGE WITHOUT UNDERSTANDING THE IMPACT
//
// NOTE: Changing this file requires a restart of VS Code.
{
// Use software rendering instead of hardware accelerated rendering.
// This can help in cases where you see rendering issues in VS Code.
// "disable-hardware-acceleration": true,
// Allows to disable crash reporting.
// Should restart the app if the value is changed.
"enable-crash-reporter": true,
// Unique id used for correlating crash reports sent from this instance.
// Do not edit this value.
"crash-reporter-id": "bc3f2341-1477-4eab-8d21-8a35154fe55a",
"password-store": "basic"
}
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/.vscode/argv.json","entries":[{"id":"3Jbl.json","timestamp":1724784382773}]}
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# Stop keepassXC
keepassxc --lock
killall keepassxc
# Stop gammastep
#killall gammastep
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "FreeSerif")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "FreeSerif")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "LT Perfume")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = str.from-unicode(0x16A2) + h(0.5pt)
#let tur = str.from-unicode(0x16A6)+ h(0.5pt)
#let an = str.from-unicode(0x16A8)+ h(0.5pt)
#let rai = str.from-unicode(0x16B1)+ h(0.5pt)
#let kau = str.from-unicode(0x16B2)+ h(0.5pt)
#let geb = str.from-unicode(0x16B7)+ h(0.5pt)
#let wun = str.from-unicode(0x16B9)+ h(0.5pt)
#let hag = str.from-unicode(0x16BA)+ h(0.5pt)
#let nau = str.from-unicode(0x16BE)+ h(0.5pt)
#let je = str.from-unicode(0x16C3)+ h(0.5pt)
#let ei = str.from-unicode(0x16C7)+ h(0.5pt)
//symbole math
#let ing = h(2pt) + str.from-unicode(0x16DD) + h(2pt)
#let ti = h(2pt) + str.from-unicode(0x16CF) + h(2pt)
#let al = h(2pt) + str.from-unicode(0x16C9) + h(2pt)
#let dag = h(2pt) + str.from-unicode(0x16DE) + h(2pt)
#let lag = h(2pt) + str.from-unicode(0x16DA) + h(2pt)
#let so = h(2pt) + str.from-unicode(0x16CA) + h(2pt)
#let man = h(2pt) + str.from-unicode(0x16D7) + h(2pt)
#let eh = h(2pt) + str.from-unicode(0x16D6) + h(2pt)
#let per = h(2pt) + str.from-unicode(0x16C8) + h(2pt)
#let ber = h(2pt) + str.from-unicode(0x16D2) + h(2pt)
#let uber = h(2pt) + "!" + str.from-unicode(0x16D2) + h(2pt)
#let naing = h(2pt) + str.from-unicode(0x16DC) + h(2pt)
#let ehwing = h(2pt) + str.from-unicode(0x16D6) + str.from-unicode(0x16DD) + h(2pt)
#let maning = h(2pt) + str.from-unicode(0x16D7) + str.from-unicode(0x16DD) + h(2pt)
#let suz = h(2pt) + str.from-unicode(0x16AD) + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "FreeMono")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = str.from-unicode(0x16A2) + h(0.5pt)
#let tur = str.from-unicode(0x16A6)+ h(0.5pt)
#let an = str.from-unicode(0x16A8)+ h(0.5pt)
#let rai = str.from-unicode(0x16B1)+ h(0.5pt)
#let kau = str.from-unicode(0x16B2)+ h(0.5pt)
#let geb = str.from-unicode(0x16B7)+ h(0.5pt)
#let wun = str.from-unicode(0x16B9)+ h(0.5pt)
#let hag = str.from-unicode(0x16BA)+ h(0.5pt)
#let nau = str.from-unicode(0x16BE)+ h(0.5pt)
#let je = str.from-unicode(0x16C3)+ h(0.5pt)
#let ei = str.from-unicode(0x16C7)+ h(0.5pt)
//symbole math
#let ing = h(2pt) + str.from-unicode(0x16DD) + h(2pt)
#let ti = h(2pt) + str.from-unicode(0x16CF) + h(2pt)
#let al = h(2pt) + str.from-unicode(0x16C9) + h(2pt)
#let dag = h(2pt) + str.from-unicode(0x16DE) + h(2pt)
#let lag = h(2pt) + str.from-unicode(0x16DA) + h(2pt)
#let so = h(2pt) + str.from-unicode(0x16CA) + h(2pt)
#let man = h(2pt) + str.from-unicode(0x16D7) + h(2pt)
#let eh = h(2pt) + str.from-unicode(0x16D6) + h(2pt)
#let per = h(2pt) + str.from-unicode(0x16C8) + h(2pt)
#let ber = h(2pt) + str.from-unicode(0x16D2) + h(2pt)
#let uber = h(2pt) + "!" + str.from-unicode(0x16D2) + h(2pt)
#let naing = h(2pt) + str.from-unicode(0x16DC) + h(2pt)
#let ehwing = h(2pt) + str.from-unicode(0x16D6) + str.from-unicode(0x16DD) + h(2pt)
#let maning = h(2pt) + str.from-unicode(0x16D7) + str.from-unicode(0x16DD) + h(2pt)
#let suz = h(2pt) + str.from-unicode(0x16AD) + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "FreeMono")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "FreeMono")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "FreeMono")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "FreeMono")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "FreeMono")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "FreeMono")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "FreeMono")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "FreeMono")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "FreeMono")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "FreeMono")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "FreeMono")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "FreeMono")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "FreeMono")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D6)] + text(font: "FreeMono")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D7)] + text(font: "FreeMono")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#text(font: "FreeMono")[#str.from-unicode(0x16AD)]]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Futhark A")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Noto Sans")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Rune")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/gith/typst-file/Typstfile/transposition.typ","entries":[{"id":"8zUl.typ","timestamp":1725716123960},{"id":"pbUi.typ","timestamp":1725716252672},{"id":"wvf6.typ","timestamp":1725716298871},{"id":"N3Fp.typ","timestamp":1725716317013},{"id":"pJws.typ","timestamp":1725716456582},{"id":"dF2d.typ","timestamp":1725717344406},{"id":"RrhD.typ","timestamp":1725717359246},{"id":"6QNV.typ","timestamp":1725717395717},{"id":"mP58.typ","timestamp":1725719273701},{"id":"FhNr.typ","timestamp":1725719311066},{"id":"bkZv.typ","source":"undoRedo.source","timestamp":1725719315310},{"id":"JmKE.typ","timestamp":1725719366975},{"id":"6Jba.typ","timestamp":1725722168571},{"id":"VGv4.typ","timestamp":1725722196787},{"id":"6DCf.typ","timestamp":1725722255779},{"id":"LaKI.typ","timestamp":1725741786828},{"id":"ncvr.typ","timestamp":1725741828177},{"id":"tqrx.typ","timestamp":1725741859095},{"id":"PPP8.typ","timestamp":1725741901937}]}
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Standard Celtic Rune Extended")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "FreeMono")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "FreeMono")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "FreeMono")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "Noto Sans Runic")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "Noto Sans Runic")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "Noto Sans Runic")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D6)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16D7)] + text(font: "Noto Sans Runic")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "Noto Sans Runic")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "Noto Sans Runic")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = str.from-unicode(0x16A2) + h(0.5pt)
#let tur = str.from-unicode(0x16A6)+ h(0.5pt)
#let an = str.from-unicode(0x16A8)+ h(0.5pt)
#let rai = str.from-unicode(0x16B1)+ h(0.5pt)
#let kau = str.from-unicode(0x16B2)+ h(0.5pt)
#let geb = str.from-unicode(0x16B7)+ h(0.5pt)
#let wun = str.from-unicode(0x16B9)+ h(0.5pt)
#let hag = str.from-unicode(0x16BA)+ h(0.5pt)
#let nau = str.from-unicode(0x16BE)+ h(0.5pt)
#let je = str.from-unicode(0x16C3)+ h(0.5pt)
#let ei = str.from-unicode(0x16C7)+ h(0.5pt)
//symbole math
#let ing = h(2pt) + str.from-unicode(0x16DD) + h(2pt)
#let ti = h(2pt) + str.from-unicode(0x16CF) + h(2pt)
#let al = h(2pt) + str.from-unicode(0x16C9) + h(2pt)
#let dag = h(2pt) + str.from-unicode(0x16DE) + h(2pt)
#let lag = h(2pt) + str.from-unicode(0x16DA) + h(2pt)
#let so = h(2pt) + str.from-unicode(0x16CA) + h(2pt)
#let man = h(2pt) + str.from-unicode(0x16D7) + h(2pt)
#let eh = h(2pt) + str.from-unicode(0x16D6) + h(2pt)
#let per = h(2pt) + str.from-unicode(0x16C8) + h(2pt)
#let ber = h(2pt) + str.from-unicode(0x16D2) + h(2pt)
#let uber = h(2pt) + "!" + str.from-unicode(0x16D2) + h(2pt)
#let naing = h(2pt) + str.from-unicode(0x16DC) + h(2pt)
#let ehwing = h(2pt) + str.from-unicode(0x16D6) + str.from-unicode(0x16DD) + h(2pt)
#let maning = h(2pt) + str.from-unicode(0x16D7) + str.from-unicode(0x16DD) + h(2pt)
#let suz = h(2pt) + str.from-unicode(0x16AD) + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "FreeMono")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = text(font: "FreeMono")[#str.from-unicode(0x16A2)] + h(0.5pt)
#let tur = text(font: "FreeMono")[#str.from-unicode(0x16A6)]+ h(0.5pt)
#let an = text(font: "FreeMono")[#str.from-unicode(0x16A8)]+ h(0.5pt)
#let rai = text(font: "FreeMono")[#str.from-unicode(0x16B1)]+ h(0.5pt)
#let kau = text(font: "FreeMono")[#str.from-unicode(0x16B2)]+ h(0.5pt)
#let geb = text(font: "FreeMono")[#str.from-unicode(0x16B7)]+ h(0.5pt)
#let wun = text(font: "FreeMono")[#str.from-unicode(0x16B9)]+ h(0.5pt)
#let hag = text(font: "FreeMono")[#str.from-unicode(0x16BA)]+ h(0.5pt)
#let nau = text(font: "FreeMono")[#str.from-unicode(0x16BE)]+ h(0.5pt)
#let je = text(font: "FreeMono")[#str.from-unicode(0x16C3)]+ h(0.5pt)
#let ei = text(font: "FreeMono")[#str.from-unicode(0x16C7)]+ h(0.5pt)
//symbole math
#let ing = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16DD)] + h(2pt)
#let ti = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16CF)] + h(2pt)
#let al = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16C9)] + h(2pt)
#let dag = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16DE)] + h(2pt)
#let lag = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16DA)] + h(2pt)
#let so = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16CA)] + h(2pt)
#let man = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D7)] + h(2pt)
#let eh = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D6)] + h(2pt)
#let per = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16C8)] + h(2pt)
#let ber = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D2)] + h(2pt)
#let uber = h(2pt) + "!" + text(font: "FreeMono")[#str.from-unicode(0x16D2)] + h(2pt)
#let naing = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16DC)] + h(2pt)
#let ehwing = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D6)] + text(font: "FreeMono")[#str.from-unicode(0x16DD)] + h(2pt)
#let maning = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16D7)] + text(font: "FreeMono")[#str.from-unicode(0x16DD)] + h(2pt)
#let suz = h(2pt) + text(font: "FreeMono")[#str.from-unicode(0x16AD)] + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
@@ -0,0 +1,184 @@
//chiffre
#let fe = text(font: "JetBrains Mono")[#str.from-unicode(0x16A0)] + h(0.5pt)
#let ur = str.from-unicode(0x16A2) + h(0.5pt)
#let tur = str.from-unicode(0x16A6)+ h(0.5pt)
#let an = str.from-unicode(0x16A8)+ h(0.5pt)
#let rai = str.from-unicode(0x16B1)+ h(0.5pt)
#let kau = str.from-unicode(0x16B2)+ h(0.5pt)
#let geb = str.from-unicode(0x16B7)+ h(0.5pt)
#let wun = str.from-unicode(0x16B9)+ h(0.5pt)
#let hag = str.from-unicode(0x16BA)+ h(0.5pt)
#let nau = str.from-unicode(0x16BE)+ h(0.5pt)
#let je = str.from-unicode(0x16C3)+ h(0.5pt)
#let ei = str.from-unicode(0x16C7)+ h(0.5pt)
//symbole math
#let ing = h(2pt) + str.from-unicode(0x16DD) + h(2pt)
#let ti = h(2pt) + str.from-unicode(0x16CF) + h(2pt)
#let al = h(2pt) + str.from-unicode(0x16C9) + h(2pt)
#let dag = h(2pt) + str.from-unicode(0x16DE) + h(2pt)
#let lag = h(2pt) + str.from-unicode(0x16DA) + h(2pt)
#let so = h(2pt) + str.from-unicode(0x16CA) + h(2pt)
#let man = h(2pt) + str.from-unicode(0x16D7) + h(2pt)
#let eh = h(2pt) + str.from-unicode(0x16D6) + h(2pt)
#let per = h(2pt) + str.from-unicode(0x16C8) + h(2pt)
#let ber = h(2pt) + str.from-unicode(0x16D2) + h(2pt)
#let uber = h(2pt) + "!" + str.from-unicode(0x16D2) + h(2pt)
#let naing = h(2pt) + str.from-unicode(0x16DC) + h(2pt)
#let ehwing = h(2pt) + str.from-unicode(0x16D6) + str.from-unicode(0x16DD) + h(2pt)
#let maning = h(2pt) + str.from-unicode(0x16D7) + str.from-unicode(0x16DD) + h(2pt)
#let suz = h(2pt) + str.from-unicode(0x16AD) + h(2pt)
#let zus =h(2pt) + rotate(180deg)[#str.from-unicode(0x16AD)]+ h(2pt)
//variable
#let inc = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10901) #h(0.5pt)]
#let v1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10907) #h(0.5pt)]
#let com = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10900) #h(0.5pt)]
#let ens = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10988) #h(0.5pt)]
#let v2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090C) #h(0.5pt)]
#let v3 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x10919) #h(0.5pt)]
#let pol1 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x178D) #h(0.5pt)]
#let pol2 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1788) #h(0.5pt)]
#let v4 = text(font: "Noto Sans Phoenician")[#str.from-unicode(0x1090E) #h(0.5pt)]
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let rac(body) = context {
let taille = measure(dm(body))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
}
#let nrac(body, n) = context {
let taille = measure(dm(body))
let taillen = measure(dm(n))
line(start: (-1pt,5.6pt), end: (-1pt, -taille.height))
body
line(start: (1pt,5.6pt), end: (1pt, -taille.height))
line(start: (-taille.width -2pt,-taille.height+2pt), end: (0pt, -taille.height -2.34pt))
line(start: (-taille.width -2pt,-taille.height -2.34pt), end: (0pt, -taille.height +2pt))
move(text(taille.height/1.4)[#n], dx: -(taille.width + taillen.width -3pt)/2, dy: -taille.height -3.5pt)
h(-taillen.width + 1.5pt)
}
#table(
columns: 3,
align: center,
//chiffre
[symbole usuel],[symbole du DM],[prononciation],
[0],$fe$,[fé],
[1],$ur$,[ur],
[2],$tur$,[tur],
[3],$an$,[an],
[4],$rai$,[rai],
[5],$kau$,[kau],
[6],$geb$,[gèb],
[7],$wun$,[wun],
[8],$hag$,[hag],
[9],$nau$,[nau],
[10],$je$,[je],
[11],$ei$,[ei],
//symbole math
$=$,$ing$,[ing/i ng],
$+$,$ti$,[ti],
$-$,$al$,[al],
$times$,$dag$,[dag],
$div$,$lag$,[lag],
$sqrt(a)$,$rac(a)$,[naz],
$root(n,a)$,$nrac(a,n)$,[$n$-naz],
$in$,$so$,[so],
$forall$,$per$,[per],
$exists$,$ber$,[ber],
$>$,$man$,[man],
$<$,$eh$,[e],
$>=$,$man ing$,[maning],
$<=$,$eh ing$,[ehwing],
$!=$,$naing$, [naing/na i ng],
$subset$,$suz$, [suz],
$supset$,$zus$, [zus],
)
#let b12(n) ={ let rep = ""
let tmp = 0
if n == 1 {"1"}
else if n == 0 {"0"}
else{
for i in range(calc.ceil(calc.log(n,base :10))){
tmp = calc.rem(n,12)
if tmp == 11 {
rep = rep + "b"
}
else if tmp == 10 {
rep = rep + "a"
}
else{
rep = rep + str(tmp)
}
n = calc.quo(n,12)
}
rep = str.rev(rep)
let i = 0
while rep.first() == "0"{
rep = rep.slice(1, rep.len())
}
rep
}
}
#let na(n) ={ let rep = b12(n)
let r = ""
for i in range(rep.len()){
if rep.at(i) == "b" {
r = r + ei
}
else if rep.at(i) == "a" {
r = r + je
}
else if rep.at(i) == "9" {
r = r + nau
}
else if rep.at(i) == "8" {
r = r + hag
}
else if rep.at(i) == "7" {
r = r + wun
}
else if rep.at(i) == "6" {
r = r +geb
}
else if rep.at(i) == "5" {
r = r + kau
}
else if rep.at(i) == "4" {
r = r + rai
}
else if rep.at(i) == "3" {
r = r + an
}
else if rep.at(i) == "2" {
r = r + tur
}
else if rep.at(i) == "1" {
r = r + ur
}
else if rep.at(i) == "0" {
r = r + fe
}
}
r
}
#pagebreak()
#set par(leading: -3pt)
#let oui(s,n) = for i in range(s,n+1){
($#i _10 = #b12(i)_(12) ing #nrac(na(i), na(i))$,)
}
#grid(
columns: 1,
gutter: 5pt,
..oui(0,300)
)
+3
View File
@@ -0,0 +1,3 @@
eval `ssh-agent` > /dev/null
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
. "$HOME/.cargo/env"
# Use > /dev/null to hide output and paren to hide & output
# 2>&1 to redirect stderr to stdout, pipewire, wireplumber and pipewire-pulse always output errors
#eval $(echo "export "$(dbus-launch | tr '\n' ' '))
(pipewire > ~/.logs/pipewire.log 2>&1 &) > /dev/null
(pipewire-pulse > ~/.logs/pipewire-pulse.log 2>&1 &) > /dev/null
(wireplumber > ~/.logs/wireplumber.log 2>&1 &) > /dev/null
eval `ssh-agent` > /dev/null
zsh
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
. "$HOME/.cargo/env"
# Use > /dev/null to hide output and paren to hide & output
# 2>&1 to redirect stderr to stdout, pipewire, wireplumber and pipewire-pulse always output errors
#eval $(echo "export "$(dbus-launch | tr '\n' ' '))
(pipewire > ~/.logs/pipewire.log 2>&1 &) > /dev/null
(pipewire-pulse > ~/.logs/pipewire-pulse.log 2>&1 &) > /dev/null
(wireplumber > ~/.logs/wireplumber.log 2>&1 &) > /dev/null
eval `ssh-agent` > /dev/null
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/.zprofile","entries":[{"id":"YHmL","timestamp":1724251275446},{"id":"Yw9F","timestamp":1724974038231}]}
+8
View File
@@ -0,0 +1,8 @@
# Use > /dev/null to hide output and paren to hide & output
# 2>&1 to redirect stderr to stdout, pipewire, wireplumber and pipewire-pulse always output errors
#eval $(echo "export "$(dbus-launch | tr '\n' ' '))
(pipewire > ~/.logs/pipewire.log 2>&1 &) > /dev/null
(pipewire-pulse > ~/.logs/pipewire-pulse.log 2>&1 &) > /dev/null
(wireplumber > ~/.logs/wireplumber.log 2>&1 &) > /dev/null
eval `ssh-agent` > /dev/null
@@ -0,0 +1,66 @@
# Default colors
[colors.primary]
# background = '#0f0e0f'
background = "#000000"
bright_foreground = "#ffffff"
dim_foreground = "#dddddd"
foreground = '#fff1f3'
# Normal colors
[colors.normal]
black = '#2c2525'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# Bright colors
[colors.bright]
black = '#72696a'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# [colors.bright]
# black = "#666666"
# blue = "#7aa6da"
# cyan = "#70c0b1"
# green = "#b9ca4a"
# magenta = "#c397d8"
# red = "#d54e53"
# white = "#eaeaea"
# yellow = "#e7c547"
# [colors.normal]
# black = "#151515"
# blue = "#81a2be"
# cyan = "#8abeb7"
# green = "#b5bd68"
# magenta = "#b294bb"
# red = "#cc6666"
# white = "#efefef"
# yellow = "#f0c674"
# [colors.primary]
# background = "#000000"
# bright_foreground = "#ffffff"
# dim_foreground = "#dddddd"
# foreground = "#eeeeee"
[font]
size = 11.0
[font.normal]
family = "MesloLGS Nerd Font"
[scrolling]
history = 1000
[window]
opacity = 0.75
@@ -0,0 +1,66 @@
# Default colors
[colors.primary]
# background = '#0f0e0f'
background = "#000000"
bright_foreground = "#ffffff"
dim_foreground = "#dddddd"
foreground = '#fff1f3'
# Normal colors
[colors.normal]
black = '#2c2525'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# Bright colors
[colors.bright]
black = '#72696a'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# [colors.bright]
# black = "#666666"
# blue = "#7aa6da"
# cyan = "#70c0b1"
# green = "#b9ca4a"
# magenta = "#c397d8"
# red = "#d54e53"
# white = "#eaeaea"
# yellow = "#e7c547"
# [colors.normal]
# black = "#151515"
# blue = "#81a2be"
# cyan = "#8abeb7"
# green = "#b5bd68"
# magenta = "#b294bb"
# red = "#cc6666"
# white = "#efefef"
# yellow = "#f0c674"
# [colors.primary]
# background = "#000000"
# bright_foreground = "#ffffff"
# dim_foreground = "#dddddd"
# foreground = "#eeeeee"
[font]
size = 11.0
[font.normal]
family = "MesloLGS Nerd Font"
[scrolling]
history = 1000
[window]
opacity = 0.75
@@ -0,0 +1,66 @@
# Default colors
[colors.primary]
# background = '#0f0e0f'
background = "#000000"
bright_foreground = "#ffffff"
dim_foreground = "#dddddd"
foreground = '#fff1f3'
# Normal colors
[colors.normal]
black = '#2c2525'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# Bright colors
[colors.bright]
black = '#72696a'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# [colors.bright]
# black = "#666666"
# blue = "#7aa6da"
# cyan = "#70c0b1"
# green = "#b9ca4a"
# magenta = "#c397d8"
# red = "#d54e53"
# white = "#eaeaea"
# yellow = "#e7c547"
# [colors.normal]
# black = "#151515"
# blue = "#81a2be"
# cyan = "#8abeb7"
# green = "#b5bd68"
# magenta = "#b294bb"
# red = "#cc6666"
# white = "#efefef"
# yellow = "#f0c674"
# [colors.primary]
# background = "#000000"
# bright_foreground = "#ffffff"
# dim_foreground = "#dddddd"
# foreground = "#eeeeee"
[font]
size = 11.0
[font.normal]
family = "MesloLGS Nerd Font"
[scrolling]
history = 1000
[window]
#opacity = 0.75
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/.config/alacritty.toml","entries":[{"id":"ONI2.toml","timestamp":1726261193772},{"id":"iuJK.toml","timestamp":1726332810465},{"id":"0QV0.toml","timestamp":1726408722468},{"id":"XlRJ.toml","timestamp":1726412986360}]}
@@ -0,0 +1,66 @@
# Default colors
[colors.primary]
# background = '#0f0e0f'
background = "#000000"
bright_foreground = "#ffffff"
dim_foreground = "#dddddd"
foreground = '#fff1f3'
# Normal colors
[colors.normal]
black = '#2c2525'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# Bright colors
[colors.bright]
black = '#72696a'
red = '#fd6883'
green = '#adda78'
yellow = '#f9cc6c'
blue = '#f38d70'
magenta ='#a8a9eb'
cyan = '#85dacc'
white = '#fff1f3'
# [colors.bright]
# black = "#666666"
# blue = "#7aa6da"
# cyan = "#70c0b1"
# green = "#b9ca4a"
# magenta = "#c397d8"
# red = "#d54e53"
# white = "#eaeaea"
# yellow = "#e7c547"
# [colors.normal]
# black = "#151515"
# blue = "#81a2be"
# cyan = "#8abeb7"
# green = "#b5bd68"
# magenta = "#b294bb"
# red = "#cc6666"
# white = "#efefef"
# yellow = "#f0c674"
# [colors.primary]
# background = "#000000"
# bright_foreground = "#ffffff"
# dim_foreground = "#dddddd"
# foreground = "#eeeeee"
[font]
size = 11.0
[font.normal]
family = "MesloLGS Nerd Font"
[scrolling]
history = 1000
[window]
#opacity = 0.75
@@ -0,0 +1,110 @@
#import "transposition.typ": *
#import "@preview/drafting:0.2.0": *
#let question = counter("questions")
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let dfrac(x, y) = math.frac(dm(x), dm(y))
#let lbar(..args) = math.display(math.cases(delim: "|", ..args))
#let ubar(body, col: red) = rect(
inset: 0pt,
outset: (bottom: 3pt, rest: 0pt),
stroke: (bottom: (0.5pt + col), rest: 0pt),
)[#body]
#let frame(x) = rect(stroke: 1pt + red, outset: (x: -2pt, y: 2pt))[#x]
#let dframe(x) = frame(dm(x))
#let donc = "donc" + h(3pt)
#let Donc = "Donc" + h(3pt)
#let onA = "On a" + h(3pt)
#let tq = "tel que" + h(3pt)
#let et = "et" + h(3pt)
#let dt = math.dif + "t"
#let Id(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
if y == x {
l.push(1)
} else { l.push(0) }
}
(l,)
})
#let M0(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
l.push(0)
}
(l,)
})
#let tend(n, val) = $limits(-->)_(#n -> #val)$
#let undermath(body, col: red)= {
style(styles => {
let size = measure(dm(body), styles);
let size2 = measure(body, styles);
let offshet = ((size.height) - (size2.height)) / 1.1 + 1.3pt;
box(stroke: (bottom: col + 1pt), outset: (bottom: offshet), body);
})
}
#let th = "th"
#let t(x) = for i in range(x) {
h(1em)
}
#let cv = "converge" + h(3pt)
#let bi = math.beta.alt
#let soitn(body, ens) = [soit $#body in #ens$]
#let soietn(body, ens) = [soient $#body in #ens$]
#let Soitn(body, ens) = [Soit $#body in #ens$]
#let Soietn(body, ens) = [Soient $#body in #ens$]
#let ssi = "si et seulement si" + h(1pt)
#let vect(body) = "Vect("+ body + ")"
#let ateb = math.beta.alt
#let Ker(body) = if (body.fields().keys() == ("text",)) {[Ker #body]} else {[Ker(#body) ]}
#let Im(body) = if (body.fields().keys() == ("text",)) {[Im #body]} else {[Im(#body) ]}
#let Vect = "Vect"
#let ou = "ou" + h(3pt)
#let G = $#text(font: "LT Perfume")[G]$+ h(4pt)
#let C = $#text(font: "LT Perfume")[C]$+ h(4pt)
#let ar(body) = $arrow(#body)$
#let ve(..body) = {grid(columns: 1,row-gutter: 3pt ,grid.vline(), ..body)}
#let equi(n : $n$, k : $+oo$) = $ tilde_(#n -> #k) $
#let po(ele : $x$ , vers : $0$ ) = $ =_(#ele -> #vers) $
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
#let a = text[#h(-16pt) a.]
//tout les set rule :
#let template(doc) = [
#set heading(numbering: (..numbers) => {
let n = numbers.pos().len()
if n == 1 {
question.update(1)
} else if n == 2 {
[Partie ]
numbering("I", numbers.pos().at(1) - 1)
"."
} else if n == 3 {
question.step()
if question.get().last() < 10 {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
} else {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
}
} else if n == 4 {
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
} else if n == 5 {
numbering("i.", numbers.pos().at(4))
}
})
#set underline(stroke: red + 1pt)
#set par(leading: 0.8em)
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
#set math.cancel(stroke: red)
#set text(font:"Linux Libertine")
#doc
]
@@ -0,0 +1,110 @@
#import "transposition.typ": *
#import "@preview/drafting:0.2.0": *
#let question = counter("questions")
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let dfrac(x, y) = math.frac(dm(x), dm(y))
#let lbar(..args) = math.display(math.cases(delim: "|", ..args))
#let ubar(body, col: red) = rect(
inset: 0pt,
outset: (bottom: 3pt, rest: 0pt),
stroke: (bottom: (0.5pt + col), rest: 0pt),
)[#body]
#let frame(x) = rect(stroke: 1pt + red, outset: (x: -2pt, y: 2pt))[#x]
#let dframe(x) = frame(dm(x))
#let donc = "donc" + h(3pt)
#let Donc = "Donc" + h(3pt)
#let onA = "On a" + h(3pt)
#let tq = "tel que" + h(3pt)
#let et = "et" + h(3pt)
#let dt = math.dif + "t"
#let Id(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
if y == x {
l.push(1)
} else { l.push(0) }
}
(l,)
})
#let M0(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
l.push(0)
}
(l,)
})
#let tend(n, val) = $limits(-->)_(#n -> #val)$
#let undermath(body, col: red)= {
style(styles => {
let size = measure(dm(body), styles);
let size2 = measure(body, styles);
let offshet = ((size.height) - (size2.height)) / 1.1 + 1.3pt;
box(stroke: (bottom: col + 1pt), outset: (bottom: offshet), body);
})
}
#let th = "th"
#let t(x) = for i in range(x) {
h(1em)
}
#let cv = "converge" + h(3pt)
#let bi = math.beta.alt
#let soitn(body, ens) = [soit $#body in #ens$]
#let soietn(body, ens) = [soient $#body in #ens$]
#let Soitn(body, ens) = [Soit $#body in #ens$]
#let Soietn(body, ens) = [Soient $#body in #ens$]
#let ssi = "si et seulement si" + h(1pt)
#let vect(body) = "Vect("+ body + ")"
#let ateb = math.beta.alt
#let Ker(body) = if (body.fields().keys() == ("text",)) {[Ker #body]} else {[Ker(#body) ]}
#let Im(body) = if (body.fields().keys() == ("text",)) {[Im #body]} else {[Im(#body) ]}
#let Vect = "Vect"
#let ou = "ou" + h(3pt)
#let G = $#text(font: "LT Perfume")[G]$+ h(4pt)
#let C = $#text(font: "LT Perfume")[C]$+ h(4pt)
#let ar(body) = $arrow(#body)$
#let ve(..body) = {grid(columns: 1,row-gutter: 3pt ,grid.vline(), ..body)}
#let equi(n : $n$, k : $+oo$) = $ tilde_(#n -> #k) $
#let po(ele : $x$ , vers : $0$ ) = $ =_(#ele -> #vers) $
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
#let a = text[#h(-16pt) a.]
#let card = "Card"
//tout les set rule :
#let template(doc) = [
#set heading(numbering: (..numbers) => {
let n = numbers.pos().len()
if n == 1 {
question.update(1)
} else if n == 2 {
[Partie ]
numbering("I", numbers.pos().at(1) - 1)
"."
} else if n == 3 {
question.step()
if question.get().last() < 10 {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
} else {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
}
} else if n == 4 {
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
} else if n == 5 {
numbering("i.", numbers.pos().at(4))
}
})
#set underline(stroke: red + 1pt)
#set par(leading: 0.8em)
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
#set math.cancel(stroke: red)
#set text(font:"Linux Libertine")
#doc
]
@@ -0,0 +1,110 @@
#import "transposition.typ": *
#import "@preview/drafting:0.2.0": *
#let question = counter("questions")
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let dfrac(x, y) = math.frac(dm(x), dm(y))
#let lbar(..args) = math.display(math.cases(delim: "|", ..args))
#let ubar(body, col: red) = rect(
inset: 0pt,
outset: (bottom: 3pt, rest: 0pt),
stroke: (bottom: (0.5pt + col), rest: 0pt),
)[#body]
#let frame(x) = rect(stroke: 1pt + red, outset: (x: -2pt, y: 2pt))[#x]
#let dframe(x) = frame(dm(x))
#let donc = "donc" + h(3pt)
#let Donc = "Donc" + h(3pt)
#let onA = "On a" + h(3pt)
#let tq = "tel que" + h(3pt)
#let et = "et" + h(3pt)
#let dt = math.dif + "t"
#let Id(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
if y == x {
l.push(1)
} else { l.push(0) }
}
(l,)
})
#let M0(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
l.push(0)
}
(l,)
})
#let tend(n, val) = $limits(-->)_(#n -> #val)$
#let undermath(body, col: red)= {
style(styles => {
let size = measure(dm(body), styles);
let size2 = measure(body, styles);
let offshet = ((size.height) - (size2.height)) / 1.1 + 1.3pt;
box(stroke: (bottom: col + 1pt), outset: (bottom: offshet), body);
})
}
#let th = "th"
#let t(x) = for i in range(x) {
h(1em)
}
#let cv = "converge" + h(3pt)
#let bi = math.beta.alt
#let soitn(body, ens) = [soit $#body in #ens$]
#let soietn(body, ens) = [soient $#body in #ens$]
#let Soitn(body, ens) = [Soit $#body in #ens$]
#let Soietn(body, ens) = [Soient $#body in #ens$]
#let ssi = "si et seulement si" + h(1pt)
#let vect(body) = "Vect("+ body + ")"
#let ateb = math.beta.alt
#let Ker(body) = if (body.fields().keys() == ("text",)) {[Ker #body]} else {[Ker(#body) ]}
#let Im(body) = if (body.fields().keys() == ("text",)) {[Im #body]} else {[Im(#body) ]}
#let Vect = "Vect"
#let ou = "ou" + h(3pt)
#let G = $#text(font: "LT Perfume")[G]$+ h(4pt)
#let C = $#text(font: "LT Perfume")[C]$+ h(4pt)
#let ar(body) = $arrow(#body)$
#let ve(..body) = {grid(columns: 1,row-gutter: 3pt ,grid.vline(), ..body)}
#let equi(n : $n$, k : $+oo$) = $ tilde_(#n -> #k) $
#let po(ele : $x$ , vers : $0$ ) = $ =_(#ele -> #vers) $
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
#let a = text[#h(-16pt) a.]
//tout les set rule :
#let template(doc) = [
#set heading(numbering: (..numbers) => {
let n = numbers.pos().len()
if n == 1 {
question.update(1)
} else if n == 2 {
[Partie ]
numbering("I", numbers.pos().at(1) - 1)
"."
} else if n == 3 {
question.step()
if question.get().last() < 10 {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
} else {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
}
} else if n == 4 {
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
} else if n == 5 {
numbering("i.", numbers.pos().at(4))
}
})
#set underline(stroke: red + 1pt)
#set par(leading: 0.8em)
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
#set math.cancel(stroke: red)
#set text(font:"FreeMono")
#doc
]
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/gith/typst-file/Typstfile/template.typ","entries":[{"id":"vdFy.typ","timestamp":1725715255105},{"id":"ylwX.typ","timestamp":1725715895429},{"id":"jvLw.typ","timestamp":1725721615283},{"id":"wrTQ.typ","timestamp":1725721970287},{"id":"llFx.typ","timestamp":1725722155354},{"id":"jOt9.typ","timestamp":1725722370513},{"id":"ReGJ.typ","timestamp":1725741805611},{"id":"3ylC.typ","timestamp":1725742980319},{"id":"KYfr.typ","timestamp":1725811755839}]}
@@ -0,0 +1,110 @@
#import "transposition.typ": *
#import "@preview/drafting:0.2.0": *
#let question = counter("questions")
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let dfrac(x, y) = math.frac(dm(x), dm(y))
#let lbar(..args) = math.display(math.cases(delim: "|", ..args))
#let ubar(body, col: red) = rect(
inset: 0pt,
outset: (bottom: 3pt, rest: 0pt),
stroke: (bottom: (0.5pt + col), rest: 0pt),
)[#body]
#let frame(x) = rect(stroke: 1pt + red, outset: (x: -2pt, y: 2pt))[#x]
#let dframe(x) = frame(dm(x))
#let donc = "donc" + h(3pt)
#let Donc = "Donc" + h(3pt)
#let onA = "On a" + h(3pt)
#let tq = "tel que" + h(3pt)
#let et = "et" + h(3pt)
#let dt = math.dif + "t"
#let Id(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
if y == x {
l.push(1)
} else { l.push(0) }
}
(l,)
})
#let M0(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
l.push(0)
}
(l,)
})
#let tend(n, val) = $limits(-->)_(#n -> #val)$
#let undermath(body, col: red)= {
style(styles => {
let size = measure(dm(body), styles);
let size2 = measure(body, styles);
let offshet = ((size.height) - (size2.height)) / 1.1 + 1.3pt;
box(stroke: (bottom: col + 1pt), outset: (bottom: offshet), body);
})
}
#let th = "th"
#let t(x) = for i in range(x) {
h(1em)
}
#let cv = "converge" + h(3pt)
#let bi = math.beta.alt
#let soitn(body, ens) = [soit $#body in #ens$]
#let soietn(body, ens) = [soient $#body in #ens$]
#let Soitn(body, ens) = [Soit $#body in #ens$]
#let Soietn(body, ens) = [Soient $#body in #ens$]
#let ssi = "si et seulement si" + h(1pt)
#let vect(body) = "Vect("+ body + ")"
#let ateb = math.beta.alt
#let Ker(body) = if (body.fields().keys() == ("text",)) {[Ker #body]} else {[Ker(#body) ]}
#let Im(body) = if (body.fields().keys() == ("text",)) {[Im #body]} else {[Im(#body) ]}
#let Vect = "Vect"
#let ou = "ou" + h(3pt)
#let G = $#text(font: "LT Perfume")[G]$+ h(4pt)
#let C = $#text(font: "LT Perfume")[C]$+ h(4pt)
#let ar(body) = $arrow(#body)$
#let ve(..body) = {grid(columns: 1,row-gutter: 3pt ,grid.vline(), ..body)}
#let equi(n : $n$, k : $+oo$) = $ tilde_(#n -> #k) $
#let po(ele : $x$ , vers : $0$ ) = $ =_(#ele -> #vers) $
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
#let a = text[#h(-16pt) a.]
//tout les set rule :
#let template(doc) = [
#set heading(numbering: (..numbers) => {
let n = numbers.pos().len()
if n == 1 {
question.update(1)
} else if n == 2 {
[Partie ]
numbering("I", numbers.pos().at(1) - 1)
"."
} else if n == 3 {
question.step()
if question.get().last() < 10 {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
} else {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
}
} else if n == 4 {
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
} else if n == 5 {
numbering("i.", numbers.pos().at(4))
}
})
#set underline(stroke: red + 1pt)
#set par(leading: 0.8em)
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
#set math.cancel(stroke: red)
#set text(font:"Futhark A")
#doc
]
@@ -0,0 +1,110 @@
#import "transposition.typ": *
#import "@preview/drafting:0.2.0": *
#let question = counter("questions")
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let dfrac(x, y) = math.frac(dm(x), dm(y))
#let lbar(..args) = math.display(math.cases(delim: "|", ..args))
#let ubar(body, col: red) = rect(
inset: 0pt,
outset: (bottom: 3pt, rest: 0pt),
stroke: (bottom: (0.5pt + col), rest: 0pt),
)[#body]
#let frame(x) = rect(stroke: 1pt + red, outset: (x: -2pt, y: 2pt))[#x]
#let dframe(x) = frame(dm(x))
#let donc = "donc" + h(3pt)
#let Donc = "Donc" + h(3pt)
#let onA = "On a" + h(3pt)
#let tq = "tel que" + h(3pt)
#let et = "et" + h(3pt)
#let dt = math.dif + "t"
#let Id(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
if y == x {
l.push(1)
} else { l.push(0) }
}
(l,)
})
#let M0(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
l.push(0)
}
(l,)
})
#let tend(n, val) = $limits(-->)_(#n -> #val)$
#let undermath(body, col: red)= {
style(styles => {
let size = measure(dm(body), styles);
let size2 = measure(body, styles);
let offshet = ((size.height) - (size2.height)) / 1.1 + 1.3pt;
box(stroke: (bottom: col + 1pt), outset: (bottom: offshet), body);
})
}
#let th = "th"
#let t(x) = for i in range(x) {
h(1em)
}
#let cv = "converge" + h(3pt)
#let bi = math.beta.alt
#let soitn(body, ens) = [soit $#body in #ens$]
#let soietn(body, ens) = [soient $#body in #ens$]
#let Soitn(body, ens) = [Soit $#body in #ens$]
#let Soietn(body, ens) = [Soient $#body in #ens$]
#let ssi = "si et seulement si" + h(1pt)
#let vect(body) = "Vect("+ body + ")"
#let ateb = math.beta.alt
#let Ker(body) = if (body.fields().keys() == ("text",)) {[Ker #body]} else {[Ker(#body) ]}
#let Im(body) = if (body.fields().keys() == ("text",)) {[Im #body]} else {[Im(#body) ]}
#let Vect = "Vect"
#let ou = "ou" + h(3pt)
#let G = $#text(font: "LT Perfume")[G]$+ h(4pt)
#let C = $#text(font: "LT Perfume")[C]$+ h(4pt)
#let ar(body) = $arrow(#body)$
#let ve(..body) = {grid(columns: 1,row-gutter: 3pt ,grid.vline(), ..body)}
#let equi(n : $n$, k : $+oo$) = $ tilde_(#n -> #k) $
#let po(ele : $x$ , vers : $0$ ) = $ =_(#ele -> #vers) $
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
#let a = text[#h(-16pt) a.]
//tout les set rule :
#let template(doc) = [
#set heading(numbering: (..numbers) => {
let n = numbers.pos().len()
if n == 1 {
question.update(1)
} else if n == 2 {
[Partie ]
numbering("I", numbers.pos().at(1) - 1)
"."
} else if n == 3 {
question.step()
if question.get().last() < 10 {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
} else {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
}
} else if n == 4 {
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
} else if n == 5 {
numbering("i.", numbers.pos().at(4))
}
})
#set underline(stroke: red + 1pt)
#set par(leading: 0.8em)
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
#set math.cancel(stroke: red)
#set text(font:"Standard Celtic Rune Extended")
#doc
]
@@ -0,0 +1,110 @@
#import "transposition.typ": *
#import "@preview/drafting:0.2.0": *
#let question = counter("questions")
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let dfrac(x, y) = math.frac(dm(x), dm(y))
#let lbar(..args) = math.display(math.cases(delim: "|", ..args))
#let ubar(body, col: red) = rect(
inset: 0pt,
outset: (bottom: 3pt, rest: 0pt),
stroke: (bottom: (0.5pt + col), rest: 0pt),
)[#body]
#let frame(x) = rect(stroke: 1pt + red, outset: (x: -2pt, y: 2pt))[#x]
#let dframe(x) = frame(dm(x))
#let donc = "donc" + h(3pt)
#let Donc = "Donc" + h(3pt)
#let onA = "On a" + h(3pt)
#let tq = "tel que" + h(3pt)
#let et = "et" + h(3pt)
#let dt = math.dif + "t"
#let Id(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
if y == x {
l.push(1)
} else { l.push(0) }
}
(l,)
})
#let M0(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
l.push(0)
}
(l,)
})
#let tend(n, val) = $limits(-->)_(#n -> #val)$
#let undermath(body, col: red)= {
style(styles => {
let size = measure(dm(body), styles);
let size2 = measure(body, styles);
let offshet = ((size.height) - (size2.height)) / 1.1 + 1.3pt;
box(stroke: (bottom: col + 1pt), outset: (bottom: offshet), body);
})
}
#let th = "th"
#let t(x) = for i in range(x) {
h(1em)
}
#let cv = "converge" + h(3pt)
#let bi = math.beta.alt
#let soitn(body, ens) = [soit $#body in #ens$]
#let soietn(body, ens) = [soient $#body in #ens$]
#let Soitn(body, ens) = [Soit $#body in #ens$]
#let Soietn(body, ens) = [Soient $#body in #ens$]
#let ssi = "si et seulement si" + h(1pt)
#let vect(body) = "Vect("+ body + ")"
#let ateb = math.beta.alt
#let Ker(body) = if (body.fields().keys() == ("text",)) {[Ker #body]} else {[Ker(#body) ]}
#let Im(body) = if (body.fields().keys() == ("text",)) {[Im #body]} else {[Im(#body) ]}
#let Vect = "Vect"
#let ou = "ou" + h(3pt)
#let G = $#text(font: "LT Perfume")[G]$+ h(4pt)
#let C = $#text(font: "LT Perfume")[C]$+ h(4pt)
#let ar(body) = $arrow(#body)$
#let ve(..body) = {grid(columns: 1,row-gutter: 3pt ,grid.vline(), ..body)}
#let equi(n : $n$, k : $+oo$) = $ tilde_(#n -> #k) $
#let po(ele : $x$ , vers : $0$ ) = $ =_(#ele -> #vers) $
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
#let a = text[#h(-16pt) a.]
//tout les set rule :
#let template(doc) = [
#set heading(numbering: (..numbers) => {
let n = numbers.pos().len()
if n == 1 {
question.update(1)
} else if n == 2 {
[Partie ]
numbering("I", numbers.pos().at(1) - 1)
"."
} else if n == 3 {
question.step()
if question.get().last() < 10 {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
} else {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
}
} else if n == 4 {
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
} else if n == 5 {
numbering("i.", numbers.pos().at(4))
}
})
#set underline(stroke: red + 1pt)
#set par(leading: 0.8em)
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
#set math.cancel(stroke: red)
#set text(font:"Linux Libertine")
#doc
]
@@ -0,0 +1,110 @@
#import "transposition.typ": *
#import "@preview/drafting:0.2.0": *
#let question = counter("questions")
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let dfrac(x, y) = math.frac(dm(x), dm(y))
#let lbar(..args) = math.display(math.cases(delim: "|", ..args))
#let ubar(body, col: red) = rect(
inset: 0pt,
outset: (bottom: 3pt, rest: 0pt),
stroke: (bottom: (0.5pt + col), rest: 0pt),
)[#body]
#let frame(x) = rect(stroke: 1pt + red, outset: (x: -2pt, y: 2pt))[#x]
#let dframe(x) = frame(dm(x))
#let donc = "donc" + h(3pt)
#let Donc = "Donc" + h(3pt)
#let onA = "On a" + h(3pt)
#let tq = "tel que" + h(3pt)
#let et = "et" + h(3pt)
#let dt = math.dif + "t"
#let Id(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
if y == x {
l.push(1)
} else { l.push(0) }
}
(l,)
})
#let M0(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
l.push(0)
}
(l,)
})
#let tend(n, val) = $limits(-->)_(#n -> #val)$
#let undermath(body, col: red)= {
style(styles => {
let size = measure(dm(body), styles);
let size2 = measure(body, styles);
let offshet = ((size.height) - (size2.height)) / 1.1 + 1.3pt;
box(stroke: (bottom: col + 1pt), outset: (bottom: offshet), body);
})
}
#let th = "th"
#let t(x) = for i in range(x) {
h(1em)
}
#let cv = "converge" + h(3pt)
#let bi = math.beta.alt
#let soitn(body, ens) = [soit $#body in #ens$]
#let soietn(body, ens) = [soient $#body in #ens$]
#let Soitn(body, ens) = [Soit $#body in #ens$]
#let Soietn(body, ens) = [Soient $#body in #ens$]
#let ssi = "si et seulement si" + h(1pt)
#let vect(body) = "Vect("+ body + ")"
#let ateb = math.beta.alt
#let Ker(body) = if (body.fields().keys() == ("text",)) {[Ker #body]} else {[Ker(#body) ]}
#let Im(body) = if (body.fields().keys() == ("text",)) {[Im #body]} else {[Im(#body) ]}
#let Vect = "Vect"
#let ou = "ou" + h(3pt)
#let G = $#text(font: "LT Perfume")[G]$+ h(4pt)
#let C = $#text(font: "LT Perfume")[C]$+ h(4pt)
#let ar(body) = $arrow(#body)$
#let ve(..body) = {grid(columns: 1,row-gutter: 3pt ,grid.vline(), ..body)}
#let equi(n : $n$, k : $+oo$) = $ tilde_(#n -> #k) $
#let po(ele : $x$ , vers : $0$ ) = $ =_(#ele -> #vers) $
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
#let a = text[#h(-16pt) a.]
//tout les set rule :
#let template(doc) = [
#set heading(numbering: (..numbers) => {
let n = numbers.pos().len()
if n == 1 {
question.update(1)
} else if n == 2 {
[Partie ]
numbering("I", numbers.pos().at(1) - 1)
"."
} else if n == 3 {
question.step()
if question.get().last() < 10 {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
} else {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
}
} else if n == 4 {
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
} else if n == 5 {
numbering("i.", numbers.pos().at(4))
}
})
#set underline(stroke: red + 1pt)
#set par(leading: 0.8em)
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
#set math.cancel(stroke: red)
#set text(font:"Linux Libertine")
#doc
]
@@ -0,0 +1,110 @@
#import "transposition.typ": *
#import "@preview/drafting:0.2.0": *
#let question = counter("questions")
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let dfrac(x, y) = math.frac(dm(x), dm(y))
#let lbar(..args) = math.display(math.cases(delim: "|", ..args))
#let ubar(body, col: red) = rect(
inset: 0pt,
outset: (bottom: 3pt, rest: 0pt),
stroke: (bottom: (0.5pt + col), rest: 0pt),
)[#body]
#let frame(x) = rect(stroke: 1pt + red, outset: (x: -2pt, y: 2pt))[#x]
#let dframe(x) = frame(dm(x))
#let donc = "donc" + h(3pt)
#let Donc = "Donc" + h(3pt)
#let onA = "On a" + h(3pt)
#let tq = "tel que" + h(3pt)
#let et = "et" + h(3pt)
#let dt = math.dif + "t"
#let Id(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
if y == x {
l.push(1)
} else { l.push(0) }
}
(l,)
})
#let M0(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
l.push(0)
}
(l,)
})
#let tend(n, val) = $limits(-->)_(#n -> #val)$
#let undermath(body, col: red)= {
style(styles => {
let size = measure(dm(body), styles);
let size2 = measure(body, styles);
let offshet = ((size.height) - (size2.height)) / 1.1 + 1.3pt;
box(stroke: (bottom: col + 1pt), outset: (bottom: offshet), body);
})
}
#let th = "th"
#let t(x) = for i in range(x) {
h(1em)
}
#let cv = "converge" + h(3pt)
#let bi = math.beta.alt
#let soitn(body, ens) = [soit $#body in #ens$]
#let soietn(body, ens) = [soient $#body in #ens$]
#let Soitn(body, ens) = [Soit $#body in #ens$]
#let Soietn(body, ens) = [Soient $#body in #ens$]
#let ssi = "si et seulement si" + h(1pt)
#let vect(body) = "Vect("+ body + ")"
#let ateb = math.beta.alt
#let Ker(body) = if (body.fields().keys() == ("text",)) {[Ker #body]} else {[Ker(#body) ]}
#let Im(body) = if (body.fields().keys() == ("text",)) {[Im #body]} else {[Im(#body) ]}
#let Vect = "Vect"
#let ou = "ou" + h(3pt)
#let G = $#text(font: "LT Perfume")[G]$+ h(4pt)
#let C = $#text(font: "LT Perfume")[C]$+ h(4pt)
#let ar(body) = $arrow(#body)$
#let ve(..body) = {grid(columns: 1,row-gutter: 3pt ,grid.vline(), ..body)}
#let equi(n : $n$, k : $+oo$) = $ tilde_(#n -> #k) $
#let po(ele : $x$ , vers : $0$ ) = $ =_(#ele -> #vers) $
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
#let a = text[#h(-16pt) a.]
//tout les set rule :
#let template(doc) = [
#set heading(numbering: (..numbers) => {
let n = numbers.pos().len()
if n == 1 {
question.update(1)
} else if n == 2 {
[Partie ]
numbering("I", numbers.pos().at(1) - 1)
"."
} else if n == 3 {
question.step()
if question.get().last() < 10 {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
} else {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
}
} else if n == 4 {
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
} else if n == 5 {
numbering("i.", numbers.pos().at(4))
}
})
#set underline(stroke: red + 1pt)
#set par(leading: 0.8em)
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
#set math.cancel(stroke: red)
//#set text(font:"Linux Libertine")
#doc
]
@@ -0,0 +1,110 @@
#import "transposition.typ": *
#import "@preview/drafting:0.2.0": *
#let question = counter("questions")
#let nonumeq = math.equation.with(block: true, numbering: none)
#let dm(x) = box[#nonumeq[#x]]
#let dfrac(x, y) = math.frac(dm(x), dm(y))
#let lbar(..args) = math.display(math.cases(delim: "|", ..args))
#let ubar(body, col: red) = rect(
inset: 0pt,
outset: (bottom: 3pt, rest: 0pt),
stroke: (bottom: (0.5pt + col), rest: 0pt),
)[#body]
#let frame(x) = rect(stroke: 1pt + red, outset: (x: -2pt, y: 2pt))[#x]
#let dframe(x) = frame(dm(x))
#let donc = "donc" + h(3pt)
#let Donc = "Donc" + h(3pt)
#let onA = "On a" + h(3pt)
#let tq = "tel que" + h(3pt)
#let et = "et" + h(3pt)
#let dt = math.dif + "t"
#let Id(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
if y == x {
l.push(1)
} else { l.push(0) }
}
(l,)
})
#let M0(n) = math.mat(..for x in range(n){
let l = ()
for y in range(n){
l.push(0)
}
(l,)
})
#let tend(n, val) = $limits(-->)_(#n -> #val)$
#let undermath(body, col: red)= {
style(styles => {
let size = measure(dm(body), styles);
let size2 = measure(body, styles);
let offshet = ((size.height) - (size2.height)) / 1.1 + 1.3pt;
box(stroke: (bottom: col + 1pt), outset: (bottom: offshet), body);
})
}
#let th = "th"
#let t(x) = for i in range(x) {
h(1em)
}
#let cv = "converge" + h(3pt)
#let bi = math.beta.alt
#let soitn(body, ens) = [soit $#body in #ens$]
#let soietn(body, ens) = [soient $#body in #ens$]
#let Soitn(body, ens) = [Soit $#body in #ens$]
#let Soietn(body, ens) = [Soient $#body in #ens$]
#let ssi = "si et seulement si" + h(1pt)
#let vect(body) = "Vect("+ body + ")"
#let ateb = math.beta.alt
#let Ker(body) = if (body.fields().keys() == ("text",)) {[Ker #body]} else {[Ker(#body) ]}
#let Im(body) = if (body.fields().keys() == ("text",)) {[Im #body]} else {[Im(#body) ]}
#let Vect = "Vect"
#let ou = "ou" + h(3pt)
#let G = $#text(font: "LT Perfume")[G]$+ h(4pt)
#let C = $#text(font: "LT Perfume")[C]$+ h(4pt)
#let ar(body) = $arrow(#body)$
#let ve(..body) = {grid(columns: 1,row-gutter: 3pt ,grid.vline(), ..body)}
#let equi(n : $n$, k : $+oo$) = $ tilde_(#n -> #k) $
#let po(ele : $x$ , vers : $0$ ) = $ =_(#ele -> #vers) $
#let QED = align(right, text[*Q.E.D.*]) // Quod erat demonstratum
#let LAF = align(center, text(17pt)[*L.A.F.*]) //Labor ad facio
#let a = text[#h(-16pt) a.]
//tout les set rule :
#let template(doc) = [
#set heading(numbering: (..numbers) => {
let n = numbers.pos().len()
if n == 1 {
question.update(1)
} else if n == 2 {
[Partie ]
numbering("I", numbers.pos().at(1) - 1)
"."
} else if n == 3 {
question.step()
if question.get().last() < 10 {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(14pt)N=° #question.display().]
} else {
margin-note(side: left, dy: -16.4pt, stroke: none)[#h(8pt)N=° #question.display().]
}
} else if n == 4 {
margin-note(side: left, dy: -16.5pt, stroke: none)[#h(34pt)#numbering("a.", numbers.pos().at(3) + 1) ]
} else if n == 5 {
numbering("i.", numbers.pos().at(4))
}
})
#set underline(stroke: red + 1pt)
#set par(leading: 0.8em)
#set page(numbering: (..nums) => nums.pos().map(na).join("/"), number-align: right)
#set math.cancel(stroke: red)
#set text(font:"Linux Libertine")
#doc
]
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/gith/typst-file/Typstfile/.vscode/settings.json","entries":[{"id":"sNfp.json","timestamp":1725712300059}]}
@@ -0,0 +1,5 @@
{
"ocaml.sandbox": {
"kind": "global"
}
}
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay if [exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing']; then
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
$bindsym Shift+XF86AudioNext exec playerctl position 5+
$bindsym Shift+XF86AudioPrev exec playerctl position 5-
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec if [playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing']
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+k splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+b focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+à layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrevious exec playerctl previous
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+k splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
#$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
#$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
$bindsym Shift+XF86AudioNext exec playerctl position 30+
$bindsym Shift+XF86AudioPrev exec playerctl position 30-
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+261
View File
@@ -0,0 +1,261 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec if [[ exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing' ]]; then exec playerctl pause; else exec playerctl play fi
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec if
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+261
View File
@@ -0,0 +1,261 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10u
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshot
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
$bindsym Shift+XF86AudioNext exec playerctl position 5+
$bindsym Shift+XF86AudioPrev exec playerctl position 5-
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
@@ -0,0 +1 @@
{"version":1,"resource":"file:///home/jvj/.config/sway/config","entries":[{"id":"imxi","timestamp":1723656842626},{"id":"l6Ss","timestamp":1723656890470},{"id":"MudB","timestamp":1723656927316},{"id":"YvK6","timestamp":1723714684801},{"id":"QwB1","timestamp":1724449012732},{"id":"8UN2","timestamp":1724449065501},{"id":"3f3T","timestamp":1724449137552},{"id":"h8gU","timestamp":1724449258073},{"id":"uuNW","timestamp":1724449286484},{"id":"o4U7","timestamp":1724449331444},{"id":"P1VD","timestamp":1724449416579},{"id":"QUAP","timestamp":1724449838734},{"id":"n7P2","timestamp":1724449899480},{"id":"JEqK","timestamp":1724449944477},{"id":"MYC4","timestamp":1724449984445},{"id":"MNWc","timestamp":1724450498474},{"id":"DFVV","source":"undoRedo.source","timestamp":1724450516272},{"id":"zPwp","timestamp":1724450544752},{"id":"Gwv7","timestamp":1724450556493},{"id":"ZZpy","timestamp":1724450950414},{"id":"YtRZ","timestamp":1724581176145},{"id":"fowh","timestamp":1724713866708},{"id":"jnSW","timestamp":1724713880356},{"id":"ZROF","timestamp":1724974486334},{"id":"6Xyj","timestamp":1724974523529},{"id":"p8Om","timestamp":1724974560174},{"id":"TQkH","timestamp":1725014552190},{"id":"Khkm","source":"undoRedo.source","timestamp":1725014691410},{"id":"XqvC","timestamp":1725016273216},{"id":"HYNG","timestamp":1725016291491},{"id":"ZsWO","timestamp":1725016323279},{"id":"7JLg","timestamp":1725016348842},{"id":"hypY","timestamp":1725016482315},{"id":"QdJj","timestamp":1725017725258},{"id":"oexz","timestamp":1725017742410},{"id":"z6Y5","timestamp":1725017777268},{"id":"EVZ8","timestamp":1725017878193},{"id":"5mpP","timestamp":1725017905173},{"id":"PcIb","timestamp":1725018141206},{"id":"hVql","timestamp":1725018234289},{"id":"L0ui","timestamp":1725018358477},{"id":"6ccO","timestamp":1725018400938}]}
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec sudo /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec sudo /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay if [[ exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing' ]]; then
exec playerctl pause
else exec playerctl play
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+k splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+261
View File
@@ -0,0 +1,261 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/julien/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+261
View File
@@ -0,0 +1,261 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+o mode "default"
}
$bindsym $mod+o mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+264
View File
@@ -0,0 +1,264 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay if [[ exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing' ]]; then exec playerctl pause; else exec playerctl play fi
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+a kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+quotedbl workspace number 1
$bindsym $mod+guillemotleft workspace number 2
$bindsym $mod+guillemotright workspace number 3
$bindsym $mod+parenleft workspace number 4
$bindsym $mod+parenright workspace number 5
$bindsym $mod+at workspace number 6
$bindsym $mod+plus workspace number 7
$bindsym $mod+minus workspace number 8
$bindsym $mod+slash workspace number 9
$bindsym $mod+asterisk workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+period splitv
# Switch the current container between different layout styles
$bindsym $mod+u layout stacking
$bindsym $mod+agrave layout tabbed
$bindsym $mod+p layout toggle split
# Make the current focus fullscreen
$bindsym $mod+e fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+b focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input * {
xkb_layout "fr,fr"
xkb_variant "bepo,latin9"
}
input type:pointer {
pointer_accel 0.3
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+265
View File
@@ -0,0 +1,265 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay exec playerctl play-pause
$bindsym XF86AudioNext exec playerctl next
$bindsym XF86AudioPrev exec playerctl previous
# capture d'écran
#$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot save area ~/screenshote
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
+263
View File
@@ -0,0 +1,263 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu xargs swaymsg exec --
# Convert to keyscode to keep same keysbindings between layouts
set $bindsym bindsym --to-code
### Output configuration
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output HDMI-A-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
# output DP-1 bg $(find ~/wallpaper/ -type f | shuf -n 1) fill
#output * bg $(find ~/wallpaper/ -type f | shuf -n 1) fill ici le wallpaper connard !!
#output * bg #000000 solid_color
#
# Example configuration:
#
# output HDMI-A-1 resolution 1920x1080 position 1920,0
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
#
# Example configuration:
#
# exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
input type:keyboard {
xkb_numlock enabled
xkb_layout "fr,fr"
xkb_variant "latin9,bepo"
#
}
input type:pointer {
pointer_accel 0.5
# sensitivity 2.5
}
input type:touchpad {
natural_scroll enabled
accel_profile adaptive
pointer_accel 0.3
}
$bindsym $mod+Control+space input * xkb_switch_layout next
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
### Key bindings
#
# Customs
#
$bindsym $mod+Shift+KP_add output * dpms on
$bindsym $mod+Shift+KP_Subtract output * dpms off
$bindsym $mod+d exec dmenu-wl_run -i
#
# Basics:
#
# Start a terminal
$bindsym $mod+Return exec $term
$bindsym $mod+Shift+Return exec $term --working-directory $(~/script/getSwayCwd.sh)
# Kill focused window
$bindsym $mod+Shift+q kill
# Start your launcher
# $bindsym $mod+d exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
# Despite the name, also works for non-floating windows.
# Change normal to inverse to use left mouse button for resizing and right
# mouse button for dragging.
floating_modifier $mod normal
# Reload the configuration file
$bindsym $mod+Shift+c reload
# Exit sway (logs you out of your Wayland session)
# $bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
$bindsym $mod+Shift+e exec swaynag -t warning \
-m 'Do you really want to exit sway? This will end your Wayland session.' \
-b 'Yes, exit sway' '~/script/exit-sway; swaymsg exit'
#
# Moving around:
#
# Move your focus around
$bindsym $mod+$left focus left
$bindsym $mod+$down focus down
$bindsym $mod+$up focus up
$bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
$bindsym $mod+Left focus left
$bindsym $mod+Down focus down
$bindsym $mod+Up focus up
$bindsym $mod+Right focus right
# Move the focused window with the same, but add Shift
$bindsym $mod+Shift+$left move left
$bindsym $mod+Shift+$down move down
$bindsym $mod+Shift+$up move up
$bindsym $mod+Shift+$right move right
# Ditto, with arrow 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
#
# Workspaces:
#
# Switch to workspace
$bindsym $mod+ampersand workspace number 1
$bindsym $mod+eacute workspace number 2
$bindsym $mod+quotedbl workspace number 3
$bindsym $mod+apostrophe workspace number 4
$bindsym $mod+parenleft workspace number 5
$bindsym $mod+minus workspace number 6
$bindsym $mod+egrave workspace number 7
$bindsym $mod+underscore workspace number 8
$bindsym $mod+ccedilla workspace number 9
$bindsym $mod+agrave workspace number 10
# Move focused container to workspace
$bindsym $mod+1 move container to workspace number 1
$bindsym $mod+2 move container to workspace number 2
$bindsym $mod+3 move container to workspace number 3
$bindsym $mod+4 move container to workspace number 4
$bindsym $mod+5 move container to workspace number 5
$bindsym $mod+6 move container to workspace number 6
$bindsym $mod+7 move container to workspace number 7
$bindsym $mod+8 move container to workspace number 8
$bindsym $mod+9 move container to workspace number 9
$bindsym $mod+0 move container to workspace number 10
# Note: workspaces can have any name you want, not just numbers.
# We just use 1-10 as the default.
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
$bindsym $mod+b splith
$bindsym $mod+v splitv
# Switch the current container between different layout styles
$bindsym $mod+s layout stacking
$bindsym $mod+w layout tabbed
$bindsym $mod+e layout toggle split
# Make the current focus fullscreen
$bindsym $mod+f fullscreen
# Toggle the current focus between tiling and floating mode
$bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
$bindsym $mod+space focus mode_toggle
# Move focus to the parent container
$bindsym $mod+a focus parent
#
# Scratchpad:
#
# Sway has a "scratchpad", which is a bag of holding for windows.
# You can send windows there and get them back later.
# Move the currently focused window to the scratchpad
#$bindsym $mod+Shift+plus move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them.
#$bindsym $mod+plus scratchpad show
#
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
$bindsym $left resize shrink width 10px
$bindsym $down resize grow height 10px
$bindsym $up resize shrink height 10px
$bindsym $right resize grow width 10px
# Ditto, with arrow keys
$bindsym Left resize shrink width 10px
$bindsym Down resize grow height 10px
$bindsym Up resize shrink height 10px
$bindsym Right resize grow width 10px
# Return to default mode
$bindsym Return mode "default"
$bindsym Escape mode "default"
$bindsym $mod+r mode "default"
}
$bindsym $mod+r mode "resize"
mode "passtrough" {
$bindsym $mod+Escape mode "default"
$bindsym $mod+Pause mode "default"
}
$bindsym $mod+Escape mode "passtrough"
$bindsym $mod+Pause mode "passtrough"
#luminosité
$bindsym XF86MonBrightnessUp exec /home/jvj/script/augment_lum.sh 10
$bindsym XF86MonBrightnessDown exec /home/jvj/script/dim_lum.sh 10
#volume
$bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
$bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
$bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#music
$bindsym XF86AudioPlay if [[ exec playerctl metadata --player=Deezer --format '{{lc(status)}}' == 'playing' ]]; then exec playerctl pause; else exec playerctl play
# capture d'écran
$bindsym S+Shift_L+Mod2+XF86SelectiveScreenshot exec grimshot copy area
$bindsym Shift+S+$mod exec grimshot copy area
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar swaybar_command waybar
# bar {
# status_command i3status
# }
# Basic color configuration using the Base16 variables for windows and borders.
# Property Name Border BG Text Indicator Child Border
client.focused #058e99 #03767f #FFFFFF #03767f #03767f
client.focused_inactive #828182 #727072 #FFFFFF #727072 #727072
client.urgent #ff7899 #ff6188 #FFFFFF #ff6188 #ff6188
include /etc/sway/config.d/*
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
exec /home/jvj/script/init
Loaded 100 of 3742 files, more files were not shown because too many files have changed in this diff. Show more