From a23541914516df4d5ca02df7705f548602451b85 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Fri, 13 Aug 2021 11:51:52 +0200 Subject: Tengwar icons in polybar --- i3/.config/i3/config | 47 +++++++++++++++++++---------- i3/.config/i3/workspaces/51:code.json | 6 ++++ i3/scripts/i3/gaps.sh | 2 +- i3_workspaces/.config/i3_workspaces/config | 8 ++--- polybar/.config/polybar/config | 46 ++-------------------------- polybar/.config/polybar/icons.ini | 27 +++++++++++++++++ tengwar/.config/polybar/teng-fra.pdf | Bin 0 -> 222514 bytes tengwar/.config/polybar/tengwar_icons.ini | 29 ++++++++++++++++++ tengwar/.fonts/Telcontar.zip | Bin 0 -> 185354 bytes tengwar/.fonts/tengwar_annatar.zip | Bin 0 -> 431853 bytes 10 files changed, 98 insertions(+), 67 deletions(-) create mode 100644 polybar/.config/polybar/icons.ini create mode 100644 tengwar/.config/polybar/teng-fra.pdf create mode 100644 tengwar/.config/polybar/tengwar_icons.ini create mode 100644 tengwar/.fonts/Telcontar.zip create mode 100644 tengwar/.fonts/tengwar_annatar.zip diff --git a/i3/.config/i3/config b/i3/.config/i3/config index e1b66c7..715300f 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -53,9 +53,9 @@ set $workspace_11 11: set $workspace_12 12: set $Messages 98: set $Inkscape 99: -set $Mail 100: -set $Web 101: -set $Musique 102: +set $Mail mail: +set $Web web: +set $Musique Musique: set_from_resource $black i3wm.COLOR0 #444444 @@ -190,18 +190,18 @@ bindsym XF86Calculator workspace $Musique bindsym XF86HomePage workspace $Web # move focused container to workspace -bindsym $modAltkey+Shift+F1 move container to workspace $workspace_1 -bindsym $modAltkey+Shift+F2 move container to workspace $workspace_2 -bindsym $modAltkey+Shift+F3 move container to workspace $workspace_3 -bindsym $modAltkey+Shift+F4 move container to workspace $workspace_4 -bindsym $modAltkey+Shift+F5 move container to workspace $workspace_5 -bindsym $modAltkey+Shift+F6 move container to workspace $workspace_6 -bindsym $modAltkey+Shift+F7 move container to workspace $workspace_7 -bindsym $modAltkey+Shift+F8 move container to workspace $workspace_8 -bindsym $modAltkey+Shift+F9 move container to workspace $workspace_9 -bindsym $modAltkey+Shift+F10 move container to workspace $workspace_10 -bindsym $modAltkey+Shift+F11 move container to workspace $workspace_11 -bindsym $modAltkey+Shift+F12 move container to workspace $workspace_12 +bindsym $modAltkey+Shift+F1 move container to workspace number $workspace_1 +bindsym $modAltkey+Shift+F2 move container to workspace number $workspace_2 +bindsym $modAltkey+Shift+F3 move container to workspace number $workspace_3 +bindsym $modAltkey+Shift+F4 move container to workspace number $workspace_4 +bindsym $modAltkey+Shift+F5 move container to workspace number $workspace_5 +bindsym $modAltkey+Shift+F6 move container to workspace number $workspace_6 +bindsym $modAltkey+Shift+F7 move container to workspace number $workspace_7 +bindsym $modAltkey+Shift+F8 move container to workspace number $workspace_8 +bindsym $modAltkey+Shift+F9 move container to workspace number $workspace_9 +bindsym $modAltkey+Shift+F10 move container to workspace number $workspace_10 +bindsym $modAltkey+Shift+F11 move container to workspace number $workspace_11 +bindsym $modAltkey+Shift+F12 move container to workspace number $workspace_12 bindsym $mod+Shift+XF86HomePage move container to workspace $Web bindsym $mod+Shift+XF86Mail move container to workspace $Mail @@ -238,9 +238,23 @@ mode $mode_resize { bindsym Return mode "default" bindsym Escape mode "default" } - bindsym $mod+o mode $mode_resize +set $mode_move "Déplacer" +mode $mode_move { + # These bindings trigger as soon as you enter the move mode + + bindsym Left move left + bindsym Down move down + bindsym Up move up + bindsym Right move right + + # back to normal: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+m mode $mode_move + bindsym $modAltkey+Escape workspace back_and_forth bindsym shift+$modAltkey+Escape move container to workspace back_and_forth bindsym shift+XF86HomePage exec pcmanfm-qt @@ -248,6 +262,7 @@ bindsym shift+XF86HomePage exec pcmanfm-qt assign [class="Microsoft Teams"] $Messages assign [class="Signal"] $Messages assign [class="Inkscape"] $Inkscape +assign [class="Gmpc"] $Musique # Add background, with a gradient on top exec --no-startup-id ~/scripts/i3/wallpaper.sh ~/wallpaper/current.jpg diff --git a/i3/.config/i3/workspaces/51:code.json b/i3/.config/i3/workspaces/51:code.json index bea0ccb..a5a81ba 100644 --- a/i3/.config/i3/workspaces/51:code.json +++ b/i3/.config/i3/workspaces/51:code.json @@ -52,6 +52,12 @@ "instance": "^urxvt$", // Prevent vim to be here "title": "^((?!vim).)*$" + }, + { + "class": "^kitty$", + "instance": "kitty$", + // Prevent vim to be here + "title": "^((?!vim).)*$" } ], "type": "con" diff --git a/i3/scripts/i3/gaps.sh b/i3/scripts/i3/gaps.sh index 4e09c01..d1f1a6f 100755 --- a/i3/scripts/i3/gaps.sh +++ b/i3/scripts/i3/gaps.sh @@ -1,4 +1,4 @@ #!/bin/sh -i3-msg gaps inner all set 5 +i3-msg gaps inner all set 15 i3-msg gaps outer all set 0 diff --git a/i3_workspaces/.config/i3_workspaces/config b/i3_workspaces/.config/i3_workspaces/config index 0b6b138..baac590 100644 --- a/i3_workspaces/.config/i3_workspaces/config +++ b/i3_workspaces/.config/i3_workspaces/config @@ -26,15 +26,11 @@ image=~/wallpaper/i3_wallpapers/6.jpg [51:] image=~/wallpaper/i3_wallpapers/5.jpg -[100:] +[mail:] on_init=thunderbird on_init_swallow_class=thunderbird -[101:] +[web:] image=~/wallpaper/i3_wallpapers/ESnflJn.jpg on_init=firefox on_init_swallow_class=Firefox-esr - -[102:] -on_init=gmpc -on_init_swallow_class=Gmpc diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 9c5f683..a8094af 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -7,6 +7,8 @@ ; ;===================================================== +include-file = ~/.config/polybar/tengwar_icons.ini + [colors] #pseudo-transparency = true #background = #fffffff @@ -24,12 +26,9 @@ alert = ${xrdb:color1} margin-top = 0 margin-bottom = 0 - [bar/i3] -;monitor = ${env:MONITOR:HDMI-1} width = 100% height = 30 -#offset-x = 0 offset-y = 0 ; Prefer fixed center position for the `modules-center` block @@ -99,7 +98,6 @@ label-empty-padding = 2 [module/i3] label-active-font = 0 type = internal/i3 -format = [] index-sort = false wrapping-scroll = false @@ -137,29 +135,6 @@ strip-wsnumbers = true fuzzy-match = true -# All the characters comes from materialdesignicons. -ws-icon-0 = 1:; -ws-icon-1 = 2:; -ws-icon-2 = 3:; -ws-icon-3 = 4:; -ws-icon-4 = 5:; -ws-icon-5 = 6:; -ws-icon-6 = 7:; -ws-icon-7 = 8:; -ws-icon-8 = 9:; -ws-icon-9 = 10:; -ws-icon-10 = 11:; -ws-icon-11 = 12:; -ws-icon-12 = 50:;︹ -ws-icon-13 = 51:; -ws-icon-14 = 98:;𣏕 -ws-icon-15 = 99:; -ws-icon-16 = 100:; -ws-icon-17 = 101:; -ws-icon-18 = 102:; -ws-icon-19 = Musique;䀘 -ws-icon-20 = Edit; -;ws-icon-default =  ; Separator in between workspaces #label-separator = " " @@ -173,20 +148,3 @@ tail = true click-left = ~/scripts/polybar/cal.sh #click-left = kill -USR1 %pid% format-prefix = " " -#type = internal/date -#interval = 30 -# -#date = -#date-alt = " %Y-%m-%d" -# -#time = " %H:%M" -#time-alt =  %d %b %H:%M -# -#format-prefix = -#format-foreground = ${colors.foreground-alt} -##format-underline = #0a6cf5 -# -##label = %date% %time% -#label = %time% - -; vim:ft=dosini diff --git a/polybar/.config/polybar/icons.ini b/polybar/.config/polybar/icons.ini new file mode 100644 index 0000000..ca69053 --- /dev/null +++ b/polybar/.config/polybar/icons.ini @@ -0,0 +1,27 @@ +[module/i3] + +format = [] + +# All the characters comes from materialdesignicons. +ws-icon-0 = 1:; +ws-icon-1 = 2:; +ws-icon-2 = 3:; +ws-icon-3 = 4:; +ws-icon-4 = 5:; +ws-icon-5 = 6:; +ws-icon-6 = 7:; +ws-icon-7 = 8:; +ws-icon-8 = 9:; +ws-icon-9 = 10:; +ws-icon-10 = 11:; +ws-icon-11 = 12:; +ws-icon-12 = 50:;︹ +ws-icon-13 = 51:; +ws-icon-14 = 98:; +ws-icon-15 = 99:; +ws-icon-16 = mail:; +ws-icon-17 = web:; +ws-icon-18 = 102:; +ws-icon-19 = Musique; +ws-icon-20 = Edit; + diff --git a/tengwar/.config/polybar/teng-fra.pdf b/tengwar/.config/polybar/teng-fra.pdf new file mode 100644 index 0000000..0da9262 Binary files /dev/null and b/tengwar/.config/polybar/teng-fra.pdf differ diff --git a/tengwar/.config/polybar/tengwar_icons.ini b/tengwar/.config/polybar/tengwar_icons.ini new file mode 100644 index 0000000..6e8444c --- /dev/null +++ b/tengwar/.config/polybar/tengwar_icons.ini @@ -0,0 +1,29 @@ +[bar/i3] +font-2 = Tengwar Annatar:size=14 + +[module/i3] +format = + +# Pour s'aider, voir le PDF de la police, ainsi que la table de charmap +ws-icon-0 = 1:;%{T3}ñ%{T-} +ws-icon-1 = 2:;%{T3}ò%{T-} +ws-icon-2 = 3:;%{T3}ó%{T-} +ws-icon-3 = 4:;%{T3}ô%{T-} +ws-icon-4 = 5:;%{T3}õ%{T-} +ws-icon-5 = 6:; +ws-icon-6 = 7:; +ws-icon-7 = 8:; +ws-icon-8 = 9:; +ws-icon-9 = 10:; +ws-icon-10 = 11:; +ws-icon-11 = 12:; +ws-icon-12 = 50:;︹ +ws-icon-13 = 51:;%{T3}a2È^%{T-} +ws-icon-14 = 98:;%{T3}d1E%{T-} +ws-icon-15 = 99:; +ws-icon-16 = mail:;%{T3}tmFj%{T-} +ws-icon-17 = web:;%{T3}.Fw%{T-} +ws-icon-18 = 102:; +ws-icon-19 = Musique;%{T3}t4ÙaTÈ%{T-} +ws-icon-20 = Edit;%{T3}2$1T%{T-} + diff --git a/tengwar/.fonts/Telcontar.zip b/tengwar/.fonts/Telcontar.zip new file mode 100644 index 0000000..5c1728e Binary files /dev/null and b/tengwar/.fonts/Telcontar.zip differ diff --git a/tengwar/.fonts/tengwar_annatar.zip b/tengwar/.fonts/tengwar_annatar.zip new file mode 100644 index 0000000..72f36c4 Binary files /dev/null and b/tengwar/.fonts/tengwar_annatar.zip differ -- cgit v1.2.3