Add kitty configuration

Split confs to template colors only and have different confs for
different monitors
This commit is contained in:
SALVI Jérémie
2024-08-30 12:52:39 +02:00
parent 7015021483
commit 78a0e2e2e3
15 changed files with 309 additions and 142 deletions

View File

@@ -2,7 +2,7 @@
Name=Teams
Comment=Microsoft Call, Chat, o365 interface...
GenericName=Teams - Client for linux
Exec=flatpak run com.github.IsmaelMartinez.teams_for_linux --no-sandbox 2&>1 > /dev/null
Exec=flatpak run com.github.IsmaelMartinez.teams_for_linux --no-sandbox > /dev/null 2>&1
Icon=teams
Type=Application
StartupNotify=false

View File

@@ -50,47 +50,7 @@ bindsym F6 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
# Workspaces #
##############
set $monitor0 HDMI-0
set $monitor1 HDMI-1
#set $monitor0 eDP-1
#set $monitor1 DP-5
#set $monitor2 DP-4
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
workspace $ws1 output $monitor0
workspace $ws2 output $monitor0
workspace $ws3 output $monitor0
workspace $ws4 output $monitor0
workspace $ws5 output $monitor1
workspace $ws6 output $monitor1
workspace $ws7 output $monitor1
workspace $ws8 output $monitor1
bindsym $mod+mod2+KP_1 workspace $ws1
bindsym $mod+mod2+KP_2 workspace $ws2
bindsym $mod+mod2+KP_3 workspace $ws3
bindsym $mod+mod2+KP_4 workspace $ws4
bindsym $mod+mod2+KP_5 workspace $ws5
bindsym $mod+mod2+KP_6 workspace $ws6
bindsym $mod+mod2+KP_7 workspace $ws7
bindsym $mod+mod2+KP_8 workspace $ws8
bindsym $mod+Control+mod2+KP_1 move container to workspace $ws1
bindsym $mod+Control+mod2+KP_2 move container to workspace $ws2
bindsym $mod+Control+mod2+KP_3 move container to workspace $ws3
bindsym $mod+Control+mod2+KP_4 move container to workspace $ws4
bindsym $mod+Control+mod2+KP_5 move container to workspace $ws5
bindsym $mod+Control+mod2+KP_6 move container to workspace $ws6
bindsym $mod+Control+mod2+KP_7 move container to workspace $ws7
bindsym $mod+Control+mod2+KP_8 move container to workspace $ws8
include /etc/i3/home
###########################
#Design
@@ -112,36 +72,33 @@ set $font ComicShannsMono Nerd Font Bold
font pango:$font 11
#colors
set_from_resource $fg i3wm.foreground #abb2bf
set_from_resource $fgli i3wm.foreground-light #d4d8df
set_from_resource $fglier i3wm.foreground-lighter #f6f7f9
set_from_resource $bg i3wm.background #282c34
set_from_resource $bgli i3wm.background-light #323842
set_from_resource $bgda i3wm.background-dark #21252b
set_from_resource $bgdaer i3wm.background-darker #1e2227
set_from_resource $black i3wm.color0 #1e2227
set_from_resource $red i3wm.color1 #e06c75
set_from_resource $green i3wm.color2 #98c379
set_from_resource $yellow i3wm.color3 #e5c07b
set_from_resource $blue i3wm.color4 #000000
set_from_resource $purple i3wm.color5 #c678dd
set_from_resource $cyan i3wm.color6 #56b6c2
set_from_resource $white i3wm.color7 #f6f7f9
set_from_resource $fg i3wm.foreground
set_from_resource $fgli i3wm.foreground-light
set_from_resource $fglier i3wm.foreground-lighter
set_from_resource $bg i3wm.background
set_from_resource $bgli i3wm.background-light
set_from_resource $bgda i3wm.background-dark
set_from_resource $bgdaer i3wm.background-darker
set_from_resource $black i3wm.color0
set_from_resource $red i3wm.color1
set_from_resource $green i3wm.color2
set_from_resource $yellow i3wm.color3
set_from_resource $blue i3wm.color4
set_from_resource $purple i3wm.color5
set_from_resource $cyan i3wm.color6
set_from_resource $white i3wm.color7
# class border backgr. text indicator child_border
client.focused $blue $bg $blue $purple $blue
client.focused_inactive $bgda $bgli $fglier $purple $bgda
client.unfocused $bgdaer $bg $fg $purple $bgdaer
client.urgent $red $bg $fg $purple $red
client.placeholder $bgdaer $bg $fg $purple $bgdaer
client.background $bg
###########
# Startup #
###########
exec --no-startup-id xrandr --output HDMI-1 --primary --right-of HDMI-0
#exec --no-startup-id xrandr --output eDP-1 --primary --output DP-5 --left-of eDP-1 --output DP-4 --left-of DP-5
exec_always --no-startup-id /usr/local/share/dotfiles/scripts/wallpapers.sh
exec_always --no-startup-id "killall picom ; picom"

40
links/i3wm/home Normal file
View File

@@ -0,0 +1,40 @@
set $monitor0 HDMI-0
set $monitor1 HDMI-1
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
workspace $ws1 output $monitor0
workspace $ws2 output $monitor0
workspace $ws3 output $monitor0
workspace $ws4 output $monitor0
workspace $ws5 output $monitor1
workspace $ws6 output $monitor1
workspace $ws7 output $monitor1
workspace $ws8 output $monitor1
bindsym $mod+mod2+KP_1 workspace $ws1
bindsym $mod+mod2+KP_2 workspace $ws2
bindsym $mod+mod2+KP_3 workspace $ws3
bindsym $mod+mod2+KP_4 workspace $ws4
bindsym $mod+mod2+KP_5 workspace $ws5
bindsym $mod+mod2+KP_6 workspace $ws6
bindsym $mod+mod2+KP_7 workspace $ws7
bindsym $mod+mod2+KP_8 workspace $ws8
bindsym $mod+Control+mod2+KP_1 move container to workspace $ws1
bindsym $mod+Control+mod2+KP_2 move container to workspace $ws2
bindsym $mod+Control+mod2+KP_3 move container to workspace $ws3
bindsym $mod+Control+mod2+KP_4 move container to workspace $ws4
bindsym $mod+Control+mod2+KP_5 move container to workspace $ws5
bindsym $mod+Control+mod2+KP_6 move container to workspace $ws6
bindsym $mod+Control+mod2+KP_7 move container to workspace $ws7
bindsym $mod+Control+mod2+KP_8 move container to workspace $ws8
exec --no-startup-id xrandr --output HDMI-1 --primary --right-of HDMI-0

0
links/i3wm/work Normal file
View File

View File

@@ -0,0 +1,80 @@
# vim:ft=kitty
## name: Catppuccin-Frappe
## author: Pocco81 (https://github.com/Pocco81)
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/frappe.conf
## blurb: Soothing pastel theme for the high-spirited!
# The basic colors
foreground #C6D0F5
background #303446
selection_foreground #303446
selection_background #F2D5CF
# Cursor colors
cursor #F2D5CF
cursor_text_color #303446
# URL underline color when hovering with mouse
url_color #F2D5CF
# Kitty window border colors
active_border_color #BABBF1
inactive_border_color #737994
bell_border_color #E5C890
# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system
# Tab bar colors
active_tab_foreground #232634
active_tab_background #CA9EE6
inactive_tab_foreground #C6D0F5
inactive_tab_background #292C3C
tab_bar_background #232634
# Colors for marks (marked text in the terminal)
mark1_foreground #303446
mark1_background #BABBF1
mark2_foreground #303446
mark2_background #CA9EE6
mark3_foreground #303446
mark3_background #85C1DC
# The 16 terminal colors
# black
color0 #51576D
color8 #626880
# red
color1 #E78284
color9 #E78284
# green
color2 #A6D189
color10 #A6D189
# yellow
color3 #E5C890
color11 #E5C890
# blue
color4 #8CAAEE
color12 #8CAAEE
# magenta
color5 #F4B8E4
color13 #F4B8E4
# cyan
color6 #81C8BE
color14 #81C8BE
# white
color7 #B5BFE2
color15 #A5ADCE

51
links/kitty/kitty.conf Normal file
View File

@@ -0,0 +1,51 @@
# BEGIN_KITTY_THEME
# Catppuccin-Frappe
include current-theme.conf
# END_KITTY_THEME
#Fonts
font_family DejaVuSansM Nerd Font Mono
bold_font auto
italic_font auto
bold_italic_font auto
font_size 14.0
# Scroll
scrollback_lines 65635
scrollback_indicator_opacity 0.5
#Url
open_url_with firefox
underline_hyperlinks always
copy_on_select clipboard
select_by_word_characters @-./_~?&%+#
sync_to_monitor yes
# Layout
enabled_layouts vertical
### Shortcut
# Global
map alt+up change_font_size all +2.0
map alt+down change_font_size all -2.0
map alt+= change_font_size all 0
map alt+u open_url_with_hints
map shift+up scroll_line_up
map shift+down scroll_line_down
map shift+page_up scroll_page_up
map shift+page_down scroll_page_down
mouse_map alt+middle press ungrabbed paste_from_clipboard
# Layout
map alt+s new_window
map alt+p previous_window
map alt+n next_window
# Tab
map alt+enter new_tab
map alt+left previous_tab
map alt+right next_tab
map alt+tab next_tab
map alt+t set_tab_title

200
links/polybar/config.ini Normal file
View File

@@ -0,0 +1,200 @@
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
include-file = /etc/polybar/colors.ini
include-file = /etc/polybar/home.ini
[module/separator]
type = custom/text
format = <label>
format-padding = 6px
label = |
[module/arch]
type = custom/text
format = <label>
label = ""
label-font = 2
label-padding-right = 5px
label-foreground = ${colors.primary}
click-left = /usr/local/share/dotfiles/scripts/disconnect.sh
[module/systray]
type = internal/tray
format-margin = 0px
tray-spacing = 5px
tray-padding = 0px
tray-size = 90%
[module/i3]
type = internal/i3
pin-workspaces = true
show-urgent = true
enable-scroll = false
format = <label-state>
label-focused = %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 15px
label-unfocused = %name%
label-unfocused-background = ${colors.background-alt}
label-unfocused-padding = 15px
label-urgent = %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 15px
label-separator = " "
label-separator-padding = 0px
label-separator-foreground = #ffb52a
[module/filesystemprefix]
type = custom/text
format = <label>
fotmat-font = 1
format-foreground=${colors.primary}
label = " "
label-font = 2
label-padding-right = 10px
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F8caaee}%{F-}%percentage_used%%
label-mounted-font = 1
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume>
format-volume-prefix = " "
format-volume-prefix-font = 3
format-volume-prefix-padding-right = 5px
format-volume-prefix-foreground = ${colors.primary}
label-volume = "%percentage%%"
label-volume-font = 1
label-muted = %{F#8caaee}󰝟%{F-} mute
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %layout%
label-layout-foreground = ${colors.primary}
label-indicator-foreground = ${colors.background}
label-indicator-background = ${colors.primary}
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-font = 3
format-prefix-foreground = ${colors.primary}
label = %percentage_used:2%%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-font = 2
format-prefix-padding-right = 8px
format-prefix-foreground = ${colors.primary}
label = %percentage%%
[module/eth]
type = internal/network
interface-type = wired
interval = 5
format-connected = <label-connected>
format-connected-prefix = " "
format-connected-prefix-font = 2
format-connected-prefix-padding-right = 8px
format-connected-prefix-foreground = ${colors.primary}
label-connected = %ifname% %local_ip%
[module/ethspeed]
type = internal/network
interface-type = wired
interval = 5
format-connected = <label-connected>
format-connected-prefix = "󰾆 "
format-connected-prefix-font = 3
format-connected-prefix-padding-right = 5px
format-connected-prefix-foreground = ${colors.primary}
label-connected = %upspeed% %downspeed%
[module/pacman]
type = custom/script
exec = pacman -Syup | head -n -4 | wc -l
interval = 600
format = <label>
format-prefix = " "
format-prefix-font = 2
format-prefix-padding-right = 5px
format-prefix-foreground=${colors.primary}
[module/dateprefix]
type = custom/text
format = <label>
format-foreground=${colors.primary}
label = " "
label-font = 3
label-padding-right = 5px
click-left = /usr/local/share/dotfiles/scripts/calendar.sh
[module/date]
type = internal/date
interval = 1.0
date = %a %Y-%m-%d %H:%M
date-alt = %H:%M:%S
format = <label>
label = %date%
label-padding-right = 10px
[settings]
screenchange-reload = true
pseudo-transparency = false

61
links/polybar/home.ini Normal file
View File

@@ -0,0 +1,61 @@
[bar/HDMI-0]
monitor = HDMI-0
width = 100%
height = 30px
radius = 0
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3px
border-size = 0pt
padding-left = 10px
padding-right = 0px
font-0 = ComicShannsMono Nerd Font:size=14;2
font-1 = ComicShannsMono Nerd Font:size=14;1
font-2 = ComicShannsMono Nerd Font:size=14;0
fixed-center = true
modules-left = arch separator cpu separator memory separator filesystemprefix filesystem separator eth separator ethspeed separator pulseaudio
modules-center = i3
modules-right = xkeyboard separator dateprefix date
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
[bar/HDMI-1]
monitor = HDMI-1
width = 100%
height = 30px
radius = 0
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3px
border-size = 0pt
padding-left = 10px
padding-right = 0px
font-0 = ComicShannsMono Nerd Font:size=14;2
font-1 = ComicShannsMono Nerd Font:size=14;1
font-2 = ComicShannsMono Nerd Font:size=14;0
fixed-center = true
modules-left = arch separator cpu separator memory separator filesystemprefix filesystem separator eth separator ethspeed separator pulseaudio
modules-center = i3
modules-right = pacman separator xkeyboard separator dateprefix date systray
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true

0
links/polybar/work.ini Normal file
View File