Move chezmoi root
This commit is contained in:
parent
319e92155d
commit
7dc536bd75
17 changed files with 1 additions and 0 deletions
194
home/dot_config/foot/foot.ini.tmpl
Normal file
194
home/dot_config/foot/foot.ini.tmpl
Normal file
|
|
@ -0,0 +1,194 @@
|
|||
# -*- conf -*-
|
||||
|
||||
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
||||
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
|
||||
# login-shell=no
|
||||
|
||||
# app-id=foot
|
||||
# title=foot
|
||||
# locked-title=no
|
||||
|
||||
font=monospace:size={{ .term_fontsize }}
|
||||
# font-bold=<bold variant of regular font>
|
||||
# font-italic=<italic variant of regular font>
|
||||
# font-bold-italic=<bold+italic variant of regular font>
|
||||
# line-height=<font metrics>
|
||||
# letter-spacing=0
|
||||
# horizontal-letter-offset=0
|
||||
# vertical-letter-offset=0
|
||||
# underline-offset=<font metrics>
|
||||
# box-drawings-uses-font-glyphs=no
|
||||
# dpi-aware=auto
|
||||
|
||||
# initial-window-size-pixels=700x500 # Or,
|
||||
# initial-window-size-chars=<COLSxROWS>
|
||||
# initial-window-mode=windowed
|
||||
# pad=2x2 # optionally append 'center'
|
||||
# resize-delay-ms=100
|
||||
|
||||
# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body}
|
||||
|
||||
# bold-text-in-bright=no
|
||||
# word-delimiters=,│`|:"'()[]{}<>
|
||||
# selection-target=primary
|
||||
# workers=<number of logical CPUs>
|
||||
|
||||
[environment]
|
||||
# name=value
|
||||
|
||||
[bell]
|
||||
# urgent=no
|
||||
# notify=no
|
||||
# command=
|
||||
# command-focused=no
|
||||
|
||||
[scrollback]
|
||||
# lines=1000
|
||||
# multiplier=3.0
|
||||
# indicator-position=relative
|
||||
# indicator-format=
|
||||
|
||||
[url]
|
||||
# launch=xdg-open ${url}
|
||||
# label-letters=sadfjklewcmpgh
|
||||
# osc8-underline=url-mode
|
||||
# protocols=http, https, ftp, ftps, file, gemini, gopher
|
||||
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]
|
||||
|
||||
[cursor]
|
||||
# style=block
|
||||
# color=<inverse foreground/background>
|
||||
# blink=no
|
||||
# beam-thickness=1.5
|
||||
# underline-thickness=<font underline thickness>
|
||||
|
||||
[mouse]
|
||||
# hide-when-typing=no
|
||||
# alternate-scroll-mode=yes
|
||||
|
||||
[colors]
|
||||
# alpha=1.0
|
||||
foreground=657b83
|
||||
background=fdf6e3
|
||||
|
||||
## Normal/regular colors (color palette 0-7)
|
||||
regular0=073642
|
||||
regular1=dc322f
|
||||
regular2=859900
|
||||
regular3=b58900
|
||||
regular4=268bd2
|
||||
regular5=d33682
|
||||
regular6=2aa198
|
||||
regular7=eee8d5
|
||||
## Bright colors (color palette 8-15)
|
||||
bright0=002b36
|
||||
bright1=cb4b16
|
||||
bright2=586e75
|
||||
bright3=657b83
|
||||
bright4=839496
|
||||
bright5=6c71c4
|
||||
bright6=93a1a1
|
||||
bright7=fdf6e3
|
||||
|
||||
## dimmed colors (see foot.ini(5) man page)
|
||||
# dim0=<not set>
|
||||
# ...
|
||||
# dim7=<not-set>
|
||||
|
||||
## The remaining 256-color palette
|
||||
# 16 = <256-color palette #16>
|
||||
# ...
|
||||
# 255 = <256-color palette #255>
|
||||
|
||||
## Misc colors
|
||||
# selection-foreground=<inverse foreground/background>
|
||||
# selection-background=<inverse foreground/background>
|
||||
# jump-labels=<regular0> <regular3> # black-on-yellow
|
||||
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
|
||||
# search-box-no-match=<regular0> <regular1> # black-on-red
|
||||
# search-box-match=<regular0> <regular3> # black-on-yellow
|
||||
# urls=<regular3>
|
||||
|
||||
[csd]
|
||||
# preferred=server
|
||||
# size=26
|
||||
# font=<primary font>
|
||||
# color=<foreground color>
|
||||
# hide-when-typing=no
|
||||
# border-width=0
|
||||
# border-color=<csd.color>
|
||||
# button-width=26
|
||||
# button-color=<background color>
|
||||
# button-minimize-color=<regular4>
|
||||
# button-maximize-color=<regular2>
|
||||
# button-close-color=<regular1>
|
||||
|
||||
[key-bindings]
|
||||
# scrollback-up-page=Shift+Page_Up
|
||||
# scrollback-up-half-page=none
|
||||
# scrollback-up-line=none
|
||||
# scrollback-down-page=Shift+Page_Down
|
||||
# scrollback-down-half-page=none
|
||||
# scrollback-down-line=none
|
||||
# clipboard-copy=Control+Shift+c XF86Copy
|
||||
# clipboard-paste=Control+Shift+v XF86Paste
|
||||
# primary-paste=Shift+Insert
|
||||
# search-start=Control+Shift+r
|
||||
# font-increase=Control+plus Control+equal Control+KP_Add
|
||||
# font-decrease=Control+minus Control+KP_Subtract
|
||||
# font-reset=Control+0 Control+KP_0
|
||||
# spawn-terminal=Control+Shift+n
|
||||
# minimize=none
|
||||
# maximize=none
|
||||
# fullscreen=none
|
||||
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||
# pipe-selected=[xargs -r firefox] none
|
||||
# show-urls-launch=Control+Shift+u
|
||||
# show-urls-copy=none
|
||||
# show-urls-persistent=none
|
||||
# prompt-prev=Control+Shift+z
|
||||
# prompt-next=Control+Shift+x
|
||||
# unicode-input=none
|
||||
# noop=none
|
||||
|
||||
[search-bindings]
|
||||
# cancel=Control+g Control+c Escape
|
||||
# commit=Return
|
||||
# find-prev=Control+r
|
||||
# find-next=Control+s
|
||||
# cursor-left=Left Control+b
|
||||
# cursor-left-word=Control+Left Mod1+b
|
||||
# cursor-right=Right Control+f
|
||||
# cursor-right-word=Control+Right Mod1+f
|
||||
# cursor-home=Home Control+a
|
||||
# cursor-end=End Control+e
|
||||
# delete-prev=BackSpace
|
||||
# delete-prev-word=Mod1+BackSpace Control+BackSpace
|
||||
# delete-next=Delete
|
||||
# delete-next-word=Mod1+d Control+Delete
|
||||
# extend-to-word-boundary=Control+w
|
||||
# extend-to-next-whitespace=Control+Shift+w
|
||||
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
|
||||
# primary-paste=Shift+Insert
|
||||
# unicode-input=none
|
||||
|
||||
[url-bindings]
|
||||
# cancel=Control+g Control+c Control+d Escape
|
||||
# toggle-url-visible=t
|
||||
|
||||
[text-bindings]
|
||||
# \x03=Mod4+c # Map Super+c -> Ctrl+c
|
||||
|
||||
[mouse-bindings]
|
||||
# selection-override-modifiers=Shift
|
||||
# primary-paste=BTN_MIDDLE
|
||||
# select-begin=BTN_LEFT
|
||||
# select-begin-block=Control+BTN_LEFT
|
||||
# select-extend=BTN_RIGHT
|
||||
# select-extend-character-wise=Control+BTN_RIGHT
|
||||
# select-word=BTN_LEFT-2
|
||||
# select-word-whitespace=Control+BTN_LEFT-2
|
||||
# select-row=BTN_LEFT-3
|
||||
|
||||
# vim: ft=dosini
|
||||
29
home/dot_config/nvim/ginit.vim
Normal file
29
home/dot_config/nvim/ginit.vim
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
" Enable Mouse
|
||||
set mouse=a
|
||||
|
||||
" Set Editor Font
|
||||
if exists(':GuiFont')
|
||||
" Use GuiFont! to ignore font errors
|
||||
GuiFont Monaco Nerd Font Mono:h10
|
||||
endif
|
||||
|
||||
" Disable GUI Tabline
|
||||
if exists(':GuiTabline')
|
||||
GuiTabline 0
|
||||
endif
|
||||
|
||||
" Disable GUI Popupmenu
|
||||
if exists(':GuiPopupmenu')
|
||||
GuiPopupmenu 0
|
||||
endif
|
||||
|
||||
" Enable GUI ScrollBar
|
||||
if exists(':GuiScrollBar')
|
||||
GuiScrollBar 1
|
||||
endif
|
||||
|
||||
" Right Click Context Menu (Copy-Cut-Paste)
|
||||
nnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>
|
||||
inoremap <silent><RightMouse> <Esc>:call GuiShowContextMenu()<CR>
|
||||
xnoremap <silent><RightMouse> :call GuiShowContextMenu()<CR>gv
|
||||
snoremap <silent><RightMouse> <C-G>:call GuiShowContextMenu()<CR>gv
|
||||
218
home/dot_config/nvim/init.lua
Normal file
218
home/dot_config/nvim/init.lua
Normal file
|
|
@ -0,0 +1,218 @@
|
|||
vim.g.mapleader = ','
|
||||
vim.g.maplocalleader = '\\'
|
||||
|
||||
local Plug = vim.fn['plug#']
|
||||
vim.call('plug#begin')
|
||||
|
||||
Plug 'junegunn/vim-plug'
|
||||
|
||||
-- Language Server protocol config
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
|
||||
-- Colorschemes
|
||||
Plug 'shaunsingh/solarized.nvim'
|
||||
|
||||
-- Syntax Highlighting and folding
|
||||
Plug('nvim-treesitter/nvim-treesitter', {['do'] = ':TSUpdate'})
|
||||
|
||||
Plug 'nvim-lualine/lualine.nvim'
|
||||
|
||||
-- Tags
|
||||
Plug 'liuchengxu/vista.vim'
|
||||
|
||||
-- Navigation
|
||||
Plug 'preservim/nerdtree'
|
||||
|
||||
-- Telescope finding shit
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug('nvim-telescope/telescope.nvim', {['branch'] = '0.1.x'})
|
||||
Plug('nvim-telescope/telescope-fzf-native.nvim', {['do'] = 'make' })
|
||||
Plug 'doctorfree/cheatsheet.nvim'
|
||||
|
||||
-- Omnisharp
|
||||
Plug 'Hoffs/omnisharp-extended-lsp.nvim'
|
||||
|
||||
-- Git
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'tommcdo/vim-fubitive'
|
||||
|
||||
-- ZK Zettlekasten Notes
|
||||
Plug 'zk-org/zk-nvim'
|
||||
|
||||
-- Misc
|
||||
Plug 'lukas-reineke/indent-blankline.nvim'
|
||||
|
||||
vim.call('plug#end')
|
||||
|
||||
require'lspconfig'.pylsp.setup{
|
||||
settings = { pylsp = {
|
||||
plugins = {
|
||||
pycodestyle = { enabled = false, },
|
||||
pyflakes = { enabled = false, },
|
||||
rope_autoimport = { enabled = true, },
|
||||
},
|
||||
configurationSources = 'flake8'
|
||||
}}
|
||||
}
|
||||
require'lspconfig'.omnisharp.setup{
|
||||
cmd = { "dotnet", "/usr/lib/omnisharp-roslyn/OmniSharp.dll" },
|
||||
enable_roslyn_analyzers = false,
|
||||
handlers = {
|
||||
["textDocument/definition"] = require('omnisharp_extended').handler,
|
||||
},
|
||||
}
|
||||
require'lspconfig'.marksman.setup{}
|
||||
require'lspconfig'.ruff_lsp.setup{}
|
||||
|
||||
require'zk'.setup()
|
||||
|
||||
vim.diagnostic.config{
|
||||
float = {
|
||||
source = 'always',
|
||||
}
|
||||
}
|
||||
|
||||
-- Global mappings.
|
||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||
vim.keymap.set('n', '<space>e', vim.diagnostic.open_float)
|
||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev)
|
||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next)
|
||||
vim.keymap.set('n', '<space>q', vim.diagnostic.setloclist)
|
||||
|
||||
-- Use LspAttach autocommand to only map the following keys
|
||||
-- after the language server attaches to the current buffer
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
|
||||
callback = function(ev)
|
||||
-- Enable completion triggered by <c-x><c-o>
|
||||
vim.bo[ev.buf].omnifunc = 'v:lua.vim.lsp.omnifunc'
|
||||
|
||||
-- Buffer local mappings.
|
||||
-- See `:help vim.lsp.*` for documentation on any of the below functions
|
||||
local opts = { buffer = ev.buf }
|
||||
vim.keymap.set('n', '<leader>gd', vim.lsp.buf.definition, opts)
|
||||
vim.keymap.set('n', '<leader>K', vim.lsp.buf.hover, opts)
|
||||
vim.keymap.set('n', '<leader>k', vim.lsp.buf.signature_help, opts)
|
||||
vim.keymap.set('n', '<leader>D', vim.lsp.buf.type_definition, opts)
|
||||
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, opts)
|
||||
vim.keymap.set('n', '<leader>fo', function() vim.lsp.buf.format { async = true } end, opts)
|
||||
vim.keymap.set({ 'n', 'v' }, '<leader>ca', vim.lsp.buf.code_action, opts)
|
||||
vim.keymap.set('n', '<space>f', function()
|
||||
vim.lsp.buf.format { async = true }
|
||||
end, opts)
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
-- Treesiter for syntax highlighting and folding
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
ensure_installed = { "c", "lua", "vim", "vimdoc", "python", "html" },
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
disable = { "markdown" },
|
||||
},
|
||||
indent = { enable = true, },
|
||||
}
|
||||
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt.foldenable = false
|
||||
|
||||
|
||||
-- Tag bar
|
||||
vim.g.vista_default_executive = 'nvim_lsp'
|
||||
vim.keymap.set('n', '<F8>', ':Vista!!<CR>')
|
||||
|
||||
|
||||
-- Colourscheme
|
||||
vim.opt.background = 'light'
|
||||
|
||||
vim.g.solarized_borders = true
|
||||
|
||||
|
||||
-- This setting needs to be set before solarized is loaded
|
||||
-- so it can't go into ginit.vim, since that is loaded after
|
||||
-- this file
|
||||
if vim.fn.has('gui_running') == 0 then
|
||||
vim.g.solarized_disable_background = true
|
||||
else
|
||||
vim.g.solarized_disable_background = false
|
||||
end
|
||||
require('solarized').set()
|
||||
|
||||
|
||||
-- Lualine (powerline like thing) setup
|
||||
require('lualine').setup {
|
||||
options = {
|
||||
theme = 'solarized'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
-- Nerdree mappings
|
||||
vim.keymap.set('n', '<C-n>', ':NERDTreeToggle<CR>')
|
||||
vim.keymap.set('n', '<C-f>', ':NERDTreeFind<CR>')
|
||||
|
||||
|
||||
-- Telescope
|
||||
require('telescope').setup{
|
||||
extensions = {
|
||||
fzf = {
|
||||
fuzzy = true, -- false will only do exact matching
|
||||
override_generic_sorter = true, -- override the generic sorter
|
||||
override_file_sorter = true, -- override the file sorter
|
||||
case_mode = "smart_case",
|
||||
}
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
theme = "dropdown",
|
||||
},
|
||||
live_grep = {
|
||||
theme = "dropdown",
|
||||
},
|
||||
lsp_references = {
|
||||
theme = "dropdown",
|
||||
},
|
||||
}
|
||||
}
|
||||
local tele_builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>ff', tele_builtin.find_files, {})
|
||||
vim.keymap.set('n', '<leader>fg', tele_builtin.live_grep, {})
|
||||
vim.keymap.set('n', '<leader>gr', tele_builtin.lsp_references, {})
|
||||
require('telescope').load_extension('fzf')
|
||||
|
||||
|
||||
-- General Setup
|
||||
-- Relative line numbering
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.number = true
|
||||
-- Ruler at 80 and 100 cols
|
||||
vim.o.colorcolumn = "80,100"
|
||||
|
||||
-- Show Spaces, newlines tabs etc
|
||||
vim.opt.listchars = {
|
||||
trail = '•',
|
||||
extends = '>',
|
||||
precedes = '<',
|
||||
nbsp = '␣',
|
||||
eol = '↲',
|
||||
tab = '→,',
|
||||
}
|
||||
vim.opt.list = true
|
||||
|
||||
-- Clear highlights from search with Ctrl-l
|
||||
vim.keymap.set('n', '<C-l>', ':noh<CR>')
|
||||
|
||||
|
||||
-- Indentline
|
||||
require("ibl").setup()
|
||||
|
||||
|
||||
-- Whitespace --
|
||||
vim.o.expandtab = true
|
||||
vim.o.smartindent = true
|
||||
vim.o.tabstop = 4
|
||||
vim.o.shiftwidth = 4
|
||||
412
home/dot_config/sway/config.tmpl
Normal file
412
home/dot_config/sway/config.tmpl
Normal file
|
|
@ -0,0 +1,412 @@
|
|||
|
||||
# Colors
|
||||
set $black #000000
|
||||
set $black_super #555555
|
||||
|
||||
set $red #f92672
|
||||
set $red_super #dd4278
|
||||
|
||||
set $green #74e22e
|
||||
set $green_super #9dc54b
|
||||
|
||||
set $yellow #e6db74
|
||||
set $yellow_super #d1ca89
|
||||
|
||||
set $blue #66d9ef
|
||||
set $blue_super #7accda
|
||||
|
||||
set $magenta #ae81ff
|
||||
set $magenta_super #b392ef
|
||||
|
||||
set $cyan #00d9d9
|
||||
set $cyan_super #c8f0f0
|
||||
|
||||
set $white #f5deb3
|
||||
set $white_super #ffffff
|
||||
|
||||
client.focused $black $yellow_super $black $black $black
|
||||
client.focused_inactive $black $black_super $white $black $black
|
||||
|
||||
# Slight gaps around windows
|
||||
gaps inner 6
|
||||
|
||||
# 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 foot
|
||||
# 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 rofi -show drun | xargs swaymsg exec --
|
||||
|
||||
include /etc/sway/config-vars.d/*
|
||||
|
||||
### Output configuration
|
||||
#
|
||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
|
||||
#
|
||||
# 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.
|
||||
|
||||
|
||||
|
||||
exec swayidle -w \
|
||||
timeout 300 "swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg" \
|
||||
timeout 600 'systemctl suspend' \
|
||||
before-sleep "swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg"
|
||||
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
||||
# dwt enabled
|
||||
# tap enabled
|
||||
# natural_scroll enabled
|
||||
# middle_emulation enabled
|
||||
# }
|
||||
#
|
||||
# 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.
|
||||
# This keyboard has this layout on all machines:
|
||||
|
||||
input 5426:133:Razer_Razer_Basilisk_V2 {
|
||||
accel_profile flat
|
||||
pointer_accel -0.5
|
||||
}
|
||||
|
||||
|
||||
input type:touchpad {
|
||||
dwt enabled
|
||||
tap enabled
|
||||
tap_button_map lmr
|
||||
natural_scroll enabled
|
||||
}
|
||||
|
||||
|
||||
input 1241:36:HOLDCHIP_USB_Keyboard {
|
||||
xkb_layout us
|
||||
xkb_variant colemak
|
||||
xkb_options ctrl:nocaps
|
||||
}
|
||||
|
||||
input 16700:8455:DELL_Dell_USB_Entry_Keyboard {
|
||||
xkb_layout gb
|
||||
xkb_variant colemak
|
||||
xkb_options ctrl:nocaps
|
||||
}
|
||||
|
||||
input 65261:4871:TMK/Cub_Ergodox {
|
||||
xkb_layout gb
|
||||
xkb_options compose:prsc
|
||||
}
|
||||
|
||||
input 9494:21:CM_Storm_Quickfire_Pro_Ultimate_6_key {
|
||||
xkb_layout gb
|
||||
xkb_variant colemak
|
||||
xkb_options ctrl:nocaps
|
||||
}
|
||||
|
||||
input 1:1:AT_Translated_Set_2_keyboard {
|
||||
xkb_layout gb
|
||||
xkb_variant colemak
|
||||
xkb_options ctrl:nocaps
|
||||
}
|
||||
|
||||
input 9610:4102:Gaming_KB__Gaming_KB {
|
||||
xkb_layout gb
|
||||
xkb_variant colemak
|
||||
xkb_options ctrl:nocaps
|
||||
}
|
||||
|
||||
|
||||
input 1133:49948:Logitech_USB_Keyboard {
|
||||
xkb_layout gb
|
||||
xkb_variant colemak
|
||||
xkb_options ctrl:nocaps
|
||||
}
|
||||
|
||||
### Key bindings
|
||||
#
|
||||
# Basics:
|
||||
#
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
# 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'
|
||||
#
|
||||
# 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+0 workspace number 0
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+0 move container to workspace number 0
|
||||
|
||||
bindsym $mod+1 workspace number 1
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number 1
|
||||
|
||||
bindsym $mod+2 workspace number 2
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+2 move container to workspace number 2
|
||||
|
||||
bindsym $mod+3 workspace number 3
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+3 move container to workspace number 3
|
||||
|
||||
bindsym $mod+4 workspace number 4
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+4 move container to workspace number 4
|
||||
|
||||
bindsym $mod+5 workspace number 5
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+5 move container to workspace number 5
|
||||
|
||||
bindsym $mod+6 workspace number 6
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+6 move container to workspace number 6
|
||||
|
||||
bindsym $mod+7 workspace number 7
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+7 move container to workspace number 7
|
||||
|
||||
bindsym $mod+8 workspace number 8
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+8 move container to workspace number 8
|
||||
|
||||
bindsym $mod+9 workspace number 9
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+9 move container to workspace number 9
|
||||
|
||||
|
||||
#
|
||||
# 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+minus 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+minus 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 "resize"
|
||||
|
||||
bindsym $mod+Alt+l exec 'swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg'
|
||||
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
# host specific section
|
||||
|
||||
{{- if eq .chezmoi.hostname "baryte" }}
|
||||
bar {
|
||||
id bar_right
|
||||
status_command ~/.local/bin/conky-i3bar ~/.conkyrc-net
|
||||
position top
|
||||
output "Acer Technologies VG270U P 0x05217924"
|
||||
font pango:Liberation Mono 11
|
||||
colors {
|
||||
background $black_super
|
||||
focused_background $black
|
||||
focused_workspace $black_super $yellow_super $black
|
||||
active_workspace $black_super $blue_super $black
|
||||
inactive_workspace $black_super $black_super $white_super
|
||||
urgent_workspace $black $red_super $white
|
||||
separator $white
|
||||
}
|
||||
}
|
||||
|
||||
bar {
|
||||
id bar_right_alt
|
||||
status_command ~/.local/bin/conky-i3bar ~/.conkyrc-net
|
||||
position top
|
||||
output HDMI-A-1
|
||||
font pango:Liberation Mono 11
|
||||
colors {
|
||||
background $black_super
|
||||
focused_background $black
|
||||
focused_workspace $black_super $yellow_super $black
|
||||
active_workspace $black_super $blue_super $black
|
||||
inactive_workspace $black_super $black_super $white_super
|
||||
urgent_workspace $black $red_super $white
|
||||
separator $white
|
||||
}
|
||||
}
|
||||
|
||||
bar {
|
||||
id bar_internal
|
||||
status_command ~/.local/bin/conky-i3bar ~/.conkyrc-main
|
||||
position top
|
||||
output "eDP-1"
|
||||
font pango:Liberation Mono 10
|
||||
colors {
|
||||
background $black_super
|
||||
focused_background $black
|
||||
focused_workspace $black_super $yellow_super $black
|
||||
active_workspace $black_super $blue_super $black
|
||||
inactive_workspace $black_super $black_super $white_super
|
||||
urgent_workspace $black $red_super $white
|
||||
separator $white
|
||||
}
|
||||
}
|
||||
|
||||
output eDP-1 {
|
||||
background ~/Pictures/Backgrounds/DSC02113.jpg fill
|
||||
position 231 1080
|
||||
scale 2
|
||||
}
|
||||
|
||||
output "Acer Technologies VG270U P 0x05217924" {
|
||||
background ~/Pictures/Backgrounds/DSC02111.jpg fill
|
||||
position 1670 810
|
||||
scale 1
|
||||
}
|
||||
|
||||
output "LG Electronics LG FULL HD Unknown" {
|
||||
background ~/Pictures/Backgrounds/DSC02111.jpg fill
|
||||
position 0 0
|
||||
scale 1
|
||||
}
|
||||
|
||||
workspace 1 output eDP-1
|
||||
workspace 3 output eDP-1
|
||||
workspace 2 output "Acer Technologies VG270U P 0x05217924"
|
||||
workspace 4 output "Acer Technologies VG270U P 0x05217924"
|
||||
|
||||
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||
exec mako&
|
||||
exec zoom&
|
||||
|
||||
for_window [class="zoom"] floating enable
|
||||
for_window [class="zoom" title="Zoom Workplace - Licensed account"] floating disable
|
||||
|
||||
for_window [app_id="firefox" title="Extension:*"] floating enable
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue