Compare commits

...

2 Commits

Author SHA1 Message Date
17ade19c8c update 2023-05-05 21:14:59 +02:00
3362107fc1 update i3 conf 2023-05-05 21:14:47 +02:00
5 changed files with 274 additions and 80 deletions

View File

@ -27,7 +27,7 @@ set_from_resource $color15 color15
# My colors # My colors
client.background $background client.background $background
client.focused $foreground $background $foreground $color2 $color2 client.focused $foreground $background $foreground #e60053 #e60053
client.unfocused $foreground $background $foreground $color4 $color4 client.unfocused $foreground $background $foreground $color4 $color4
client.focused_inactive $foreground $background $foreground $color4 $color4 client.focused_inactive $foreground $background $foreground $color4 $color4
client.urgent $foreground $background $foreground $color4 $color4 client.urgent $foreground $background $foreground $color4 $color4

View File

@ -20,7 +20,7 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
# bindsym $mod+d exec --no-startup-id dmenu_run # bindsym $mod+d exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi: # A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun" # bindcode $mod+40 exec "rofi -modi drun,run -show drun"
bindsym $mod+space exec "rofi -show drun" bindsym $mod+space exec ".config/rofi/launchers/type-3/launcher.sh"
# There also is i3-dmenu-desktop which only displays applications shipping a # There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed. # .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
@ -115,8 +115,8 @@ bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9 bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10 bindsym $mod+0 workspace number $ws10
bindsym $mod+Control+Left workspace prev bindsym $alt+Control+Left workspace prev
bindsym $mod+Control+Right workspace next bindsym $alt+Control+Right workspace next
# move focused container to workspace # move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1 bindsym $mod+Shift+1 move container to workspace number $ws1
@ -130,8 +130,8 @@ bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10 bindsym $mod+Shift+0 move container to workspace number $ws10
# bindsym $mod+Shift+Left move container to workspace prev bindsym $alt+Shift+Left move container to workspace prev
# bindsym $mod+Shift+Right move container to workspace next bindsym $alt+Shift+Right move container to workspace next
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload

View File

@ -13,7 +13,7 @@ exec --no-startup-id start-pulseaudioi-x11
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen. # screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork --image=/usr/share/backgrounds/cynicalteam/0143.jpg -t
exec --no-startup-id nm-applet exec --no-startup-id nm-applet

View File

@ -43,9 +43,10 @@ alert = #bd2c40
[bar/main] [bar/main]
;monitor = ${env:MONITOR:HDMI-1} monitor = DP-0.8
monitor-fallback = HDMI-0
width = 100% width = 100%
height = 27 height = 28
;offset-x = 1% ;offset-x = 1%
;offset-y = 1% ;offset-y = 1%
radius = 6.0 radius = 6.0
@ -66,13 +67,14 @@ padding-right = 2
module-margin-left = 1 module-margin-left = 1
module-margin-right = 2 module-margin-right = 2
font-0 = "Monofur Nerd Font Mono:size=12:weight=bold" font-0 = "FantasqueSansMono Nerd Font Mono:style=Bold"
; font-0 = "Monofur Nerd Font Mono:size=12:weight=bold"
font-1 = "FontAwesome:size=12" font-1 = "FontAwesome:size=12"
; modules-left = publicip filesystem ; modules-left = publicip filesystem
modules-left = filesystem modules-left = i3
modules-center = mpd modules-center = date
modules-right = pulseaudio modules-right = mpd pulseaudio
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 2
@ -83,6 +85,33 @@ cursor-scroll = ns-resize
enable-ipc = true enable-ipc = true
locale = fr_FR.UTF-8
[module/ewmh]
type = internal/xworkspaces
; Only show workspaces defined on the same output as the bar
;
; Useful if you want to show monitor specific workspaces
; on different bars
;
; Default: false
pin-workspaces = true
; Create click handler used to focus desktop
; Default: true
enable-click = false
; Create scroll handlers used to cycle desktops
; Default: true
enable-scroll = false
; Reverse the scroll direction
; Default: false
; New in version 3.6.0
reverse-scroll = true
[module/filesystem] [module/filesystem]
@ -90,6 +119,9 @@ type = internal/fs
interval = 25 interval = 25
mount-0 = / mount-0 = /
mount-1 = /home
spacing = 4
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted label-unmounted = %mountpoint% not mounted
@ -145,21 +177,150 @@ format-disconnected =
;label-disconnected = %ifname% disconnected ;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt} ;label-disconnected-foreground = ${colors.foreground-alt}
; [module/date]
; type = internal/date
; interval = 5
; date =
; date-alt = " %Y-%m-%d"
; time = %H:%M [module/date]
; time-alt = %H:%M:%S type = internal/date
interval = 5
; format-prefix =  ; date = %d/%m/%Y
; format-prefix-foreground = ${colors.foreground-alt} date = %A, %d %b %Y
; format-underline = #0a6cf5 date-alt = %A, %d %b %Y
; label = %date% %time% time = %H:%M
time-alt = %H:%M:%S
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% %time%
[module/i3]
type = internal/i3
; Only show workspaces defined on the same output as the bar
;
; Useful if you want to show monitor specific workspaces
; on different bars
;
; Default: false
pin-workspaces = true
; Show urgent workspaces regardless of whether the workspace is actually hidden
; by pin-workspaces.
;
; Default: false
; New in version 3.6.0
show-urgent = true
; This will split the workspace name on ':'
; Default: false
strip-wsnumbers = true
; Sort the workspaces by index instead of the default
; sorting that groups the workspaces by output
; Default: false
index-sort = true
; Create click handler used to focus workspace
; Default: true
enable-click = false
; Create scroll handlers used to cycle workspaces
; Default: true
enable-scroll = false
; Wrap around when reaching the first/last workspace
; Default: true
wrapping-scroll = false
; Set the scroll cycle direction
; Default: true
reverse-scroll = false
; Use fuzzy (partial) matching on labels when assigning
; icons to workspaces
; Example: code;♚ will apply the icon to all workspaces
; containing 'code' in the label
; Default: false
fuzzy-match = true
; ws-icon-[0-9]+ = <label>;<icon>
; NOTE: The <label> needs to match the name of the i3 workspace
; Neither <label> nor <icon> can contain a semicolon (;)
ws-icon-0 = 1;♚
ws-icon-1 = 2;♛
ws-icon-2 = 3;♜
ws-icon-3 = 4;♝
ws-icon-4 = 5;♞
ws-icon-default =
; NOTE: You cannot skip icons, e.g. to get a ws-icon-6
; you must also define a ws-icon-5.
; NOTE: Icon will be available as the %icon% token inside label-*
; Available tags:
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
; <label-mode> (default)
format = <label-state> <label-mode>
; Available tokens:
; %mode%
; Default: %mode%
label-mode = %mode%
label-mode-padding = 2
label-mode-background = #e60053
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-focused = %index%
label-focused-foreground = #ffffff
; label-focused-background = #3f3f3f
label-focused-background = #000
label-focused-underline = #e60053
label-focused-padding = 2
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-unfocused = %index%
label-unfocused-padding = 2
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-visible = %index%
label-visible-underline = #555555
label-visible-padding = 2
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-urgent = %index%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-padding = 2
; Separator in between workspaces
label-separator = |
label-separator-padding = 2
label-separator-foreground = #ffb52a
; label-separator-foreground = #3f3f3f

View File

@ -41,11 +41,16 @@ lvim.builtin.which_key.mappings["G"] = lvim.builtin.which_key.mappings["g"]
lvim.builtin.which_key.mappings["g"] = {} lvim.builtin.which_key.mappings["g"] = {}
lvim.builtin.which_key.mappings["Lv"] = lvim.builtin.which_key.mappings["L"] lvim.builtin.which_key.mappings["Lv"] = lvim.builtin.which_key.mappings["L"]
lvim.builtin.which_key.mappings["L"] = lvim.builtin.which_key.mappings["l"] lvim.builtin.which_key.mappings["Ll"] = lvim.builtin.which_key.mappings["l"]
lvim.builtin.which_key.mappings["L"] = {
name = "LSP, Lunar"
}
lvim.builtin.which_key.mappings["l"] = {} lvim.builtin.which_key.mappings["l"] = {}
lvim.builtin.which_key.mappings["o"] = { "<CMD>Telescope find_files<CR>", "Open a file" }
lvim.builtin.which_key.mappings["P"] = lvim.builtin.which_key.mappings["p"] lvim.builtin.which_key.mappings["P"] = lvim.builtin.which_key.mappings["p"]
lvim.builtin.which_key.mappings["p"] = { "<CMD>Telescope projects<CR>", "Projects" } lvim.builtin.which_key.mappings["p"] = { "<CMD>Telescope projects<CR>", "Projects"}
lvim.builtin.which_key.mappings["S"] = lvim.builtin.which_key.mappings["s"] lvim.builtin.which_key.mappings["S"] = lvim.builtin.which_key.mappings["s"]
lvim.builtin.which_key.mappings["s"] = { "<CMD>echom 'Sourcing' <BAR> source %<CR>", "Source current file" } lvim.builtin.which_key.mappings["s"] = { "<CMD>echom 'Sourcing' <BAR> source %<CR>", "Source current file" }
@ -189,6 +194,10 @@ lvim.builtin.treesitter.highlight.enable = true
-- --
lvim.plugins = { lvim.plugins = {
-- asyncrun
{
"skywind3000/asyncrun.vim",
},
-- colorschemes -- colorschemes
{ {
'Abstract-IDE/Abstract-cs', 'Abstract-IDE/Abstract-cs',
@ -235,28 +244,6 @@ lvim.plugins = {
}) })
end end
}, },
-- asyncrun
{
"skywind3000/asyncrun.vim",
},
-- trouble
{
'folke/trouble.nvim',
cmd = "TroubleToggle",
},
-- neuron: note taking
{
'oberblastmeister/neuron.nvim',
config = function()
require("neuron").setup({
virtual_titles = true,
mappings = true,
run = nil,
neuron_dir = "~/Notes",
leader = ";z",
})
end,
},
-- markdown previewer -- markdown previewer
{ {
'iamcco/markdown-preview.nvim', 'iamcco/markdown-preview.nvim',
@ -266,37 +253,6 @@ lvim.plugins = {
vim.g.mkdp_auto_start = 1 vim.g.mkdp_auto_start = 1
end, end,
}, },
-- suda
{
'lambdalisue/suda.vim',
},
-- vim-surround
{
'tpope/vim-surround',
config = function()
vim.o.timeoutlen = 500
end
-- make sure to change the value of `timeoutlen` if it's not triggering correctly, see https://github.com/tpope/vim-surround/issues/117
-- setup = function()
-- vim.o.timeoutlen = 500
-- end
},
-- colorizer: color highlighter
{
'norcalli/nvim-colorizer.lua',
config = function()
require("colorizer").setup({ '*' }, {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
RRGGBBAA = true, -- #RRGGBBAA hex codes
rgb_fn = true, -- CSS rgb() and rgba() functions
hsl_fn = true, -- CSS hsl() and hsla() functions
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
mode = 'background',
})
end,
},
-- minimap -- minimap
{ {
'echasnovski/mini.map', 'echasnovski/mini.map',
@ -326,6 +282,63 @@ lvim.plugins = {
}) })
end end
}, },
-- neoscroll: smooth scrolling
{
"karb94/neoscroll.nvim",
event = "WinScrolled",
config = function()
require('neoscroll').setup({
-- All these keys will be mapped to their corresponding default scrolling animation
mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>',
'<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
hide_cursor = true, -- Hide cursor while scrolling
stop_eof = true, -- Stop at <EOF> when scrolling downwards
use_local_scrolloff = false, -- Use the local scope of scrolloff instead of the global scope
respect_scrolloff = false, -- Stop scrolling when the cursor reaches the scrolloff margin of the file
cursor_scrolls_alone = true, -- The cursor will keep on scrolling even if the window cannot scroll further
easing_function = nil, -- Default easing function
pre_hook = nil, -- Function to run before the scrolling animation starts
post_hook = nil, -- Function to run after the scrolling animation ends
})
end
},
-- neuron: note taking
{
'oberblastmeister/neuron.nvim',
config = function()
require("neuron").setup({
virtual_titles = true,
mappings = true,
run = nil,
neuron_dir = "~/Notes",
leader = ";z",
})
end,
},
-- colorizer: color highlighter
{
'norcalli/nvim-colorizer.lua',
config = function()
require("colorizer").setup({ '*' }, {
RGB = true, -- #RGB hex codes
RRGGBB = true, -- #RRGGBB hex codes
RRGGBBAA = true, -- #RRGGBBAA hex codes
rgb_fn = true, -- CSS rgb() and rgba() functions
hsl_fn = true, -- CSS hsl() and hsla() functions
css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn
mode = 'background',
})
end,
},
-- suda
{
'lambdalisue/suda.vim',
-- setup = function()
-- -- vim.g.prompt = 'Mot de passe: ',
-- vim.g.suda_smart_edit = 1,
-- end,
},
-- telescope-project -- telescope-project
{ {
"nvim-telescope/telescope-project.nvim", "nvim-telescope/telescope-project.nvim",
@ -334,6 +347,26 @@ lvim.plugins = {
vim.cmd [[packadd telescope.nvim]] vim.cmd [[packadd telescope.nvim]]
end, end,
}, },
-- trouble
{
'folke/trouble.nvim',
cmd = "TroubleToggle",
},
-- vim-repeat: enable repeating supported plugin maps with "."
{
"tpope/vim-repeat"
},
-- vim-surround
{
'tpope/vim-surround',
config = function()
vim.o.timeoutlen = 500
end
-- make sure to change the value of `timeoutlen` if it's not triggering correctly, see https://github.com/tpope/vim-surround/issues/117
-- setup = function()
-- vim.o.timeoutlen = 500
-- end
},
} }