aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorXander Swan <email>2025-12-03 10:00:41 -0500
committerXander Swan <email>2025-12-03 10:00:41 -0500
commit9fdb3c70f6cec1ee9ad32ac4257e8deb1fef2525 (patch)
tree7ea586ce90bae714a81219a0188942f599aeda97 /.config
parentc43f28aaa0f24bb442810ccebca03e2376998048 (diff)
update
Diffstat (limited to '.config')
-rw-r--r--.config/i3/config6
-rw-r--r--.config/nvim/ftdetect/hobbylang.vim1
-rw-r--r--.config/nvim/ftplugin/cs.vim3
-rw-r--r--.config/nvim/lua/map.lua6
-rw-r--r--.config/nvim/lua/plugin/lsp.lua7
-rw-r--r--.config/nvim/lua/plugin/packer.lua4
-rw-r--r--.config/nvim/lua/plugin/setup.lua2
-rw-r--r--.config/nvim/syntax/hobbylang.vim41
-rw-r--r--.config/picom/picom.conf4
-rw-r--r--.config/polybar/config.ini10
10 files changed, 27 insertions, 57 deletions
diff --git a/.config/i3/config b/.config/i3/config
index a4e1a61..b6f95a5 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -60,7 +60,7 @@ bindsym $mod+Shift+$right move right
bindsym $mod+g split h
bindsym $mod+v split v
-bindsym $mod+a fullscreen toggle
+bindsym $mod+f fullscreen toggle
bindsym $mod+y layout stacking
bindsym $mod+w layout tabbed
@@ -96,6 +96,7 @@ bindsym $mod+0 workspace number $ws10
bindsym $mod+z workspace number $ws9
bindsym $mod+x workspace number $ws10
+bindsym $mod+c workspace number $ws8
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
@@ -110,13 +111,14 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
bindsym $mod+Shift+z move container to workspace number $ws9
bindsym $mod+Shift+x move container to workspace number $ws10
+bindsym $mod+Shift+c move container to workspace number $ws8
bindsym $mod+Shift+t reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# class border backgr. text indicator child_border
-client.focused #ff4499 #ff4499 #000000 #2e9ef4 #ff4499
+client.focused #ff3399 #ff3399 #ffffff #2e9ef4 #ff3399
client.focused_inactive #333333 #333333 #999999 #484e50 #333333
client.unfocused #000000 #000000 #999999 #292d2e #000000
client.urgent #ff0000 #ff0000 #000000 #900000 #ffff00
diff --git a/.config/nvim/ftdetect/hobbylang.vim b/.config/nvim/ftdetect/hobbylang.vim
deleted file mode 100644
index ea320c0..0000000
--- a/.config/nvim/ftdetect/hobbylang.vim
+++ /dev/null
@@ -1 +0,0 @@
-au BufNewFile,BufRead *.hs set filetype=hobbylang
diff --git a/.config/nvim/ftplugin/cs.vim b/.config/nvim/ftplugin/cs.vim
new file mode 100644
index 0000000..2dc3520
--- /dev/null
+++ b/.config/nvim/ftplugin/cs.vim
@@ -0,0 +1,3 @@
+set tabstop=4
+set shiftwidth=4
+set expandtab
diff --git a/.config/nvim/lua/map.lua b/.config/nvim/lua/map.lua
index 94f57d2..6dcc1da 100644
--- a/.config/nvim/lua/map.lua
+++ b/.config/nvim/lua/map.lua
@@ -40,9 +40,11 @@ vim.keymap.set(nv, "G", "Gzz", {})
-- Make going to the end of a line as easy as going to the beginning
vim.keymap.set({"n", "v", "o"}, "+", "$", {})
--- Allow yanking to system clipboard
+-- Yanking and pasting
vim.keymap.set(nv, "<leader>y", "\"+y", {})
vim.keymap.set(nv, "<leader>p", "\"+p", {})
+vim.keymap.set("x", "p", "\"_dP", {})
+vim.keymap.set("x", "<leader>P", "p", {})
-- Commands
vim.keymap.set(nv, "<leader>c", "<CMD>set invhlsearch<CR>", {silent=true})
@@ -51,6 +53,8 @@ vim.keymap.set(nv, "<leader>t", function()
vim.cmd("split")
vim.cmd("term")
end, {silent=true})
+vim.keymap.set("n", "{", "<CMD>cp<CR>", {silent=true})
+vim.keymap.set("n", "}", "<CMD>cn<CR>", {silent=true})
-- Common typo with me
vim.api.nvim_create_user_command("W", "w", {bang=true})
diff --git a/.config/nvim/lua/plugin/lsp.lua b/.config/nvim/lua/plugin/lsp.lua
index 0c02c4f..fc4b869 100644
--- a/.config/nvim/lua/plugin/lsp.lua
+++ b/.config/nvim/lua/plugin/lsp.lua
@@ -30,11 +30,6 @@ cmp.setup {
})
}
-require("lsp-format").setup {}
-require("lspconfig").clangd.setup {
- on_attach = require("lsp-format").on_attach
-}
-
lsp.on_attach(function(client, buffer)
local opts = { buffer = buffer, remap = false }
@@ -51,3 +46,5 @@ lsp.setup()
vim.diagnostic.config {
virtual_text = true
}
+
+vim.g.zig_fmt_autosave = 0
diff --git a/.config/nvim/lua/plugin/packer.lua b/.config/nvim/lua/plugin/packer.lua
index f03cca2..eb980fc 100644
--- a/.config/nvim/lua/plugin/packer.lua
+++ b/.config/nvim/lua/plugin/packer.lua
@@ -1,6 +1,10 @@
return require("packer").startup(function(use)
use {"wbthomason/packer.nvim"}
+ use {"andweeb/presence.nvim"}
+
+ use {"hobby-engine/hobby-script-vim"}
+
use {
"nvim-telescope/telescope.nvim",
requires = {
diff --git a/.config/nvim/lua/plugin/setup.lua b/.config/nvim/lua/plugin/setup.lua
index 2eaeee8..c0db20d 100644
--- a/.config/nvim/lua/plugin/setup.lua
+++ b/.config/nvim/lua/plugin/setup.lua
@@ -10,6 +10,8 @@ require("oil").setup {
},
}
+require("presence").setup {}
+
vim.cmd.colorscheme("mine")
local colors = {
diff --git a/.config/nvim/syntax/hobbylang.vim b/.config/nvim/syntax/hobbylang.vim
deleted file mode 100644
index cb02b5b..0000000
--- a/.config/nvim/syntax/hobbylang.vim
+++ /dev/null
@@ -1,41 +0,0 @@
-if exists("b:current_syntax")
- finish
-endif
-
-syn keyword hlStatement break continue return self
-syn keyword hlLabel case
-syn keyword hlConditional if else match
-syn keyword hlRepeat while loop for
-syn keyword hlStructure struct enum var func
-syn keyword hlModifier static global
-syn keyword hlLiteral true false nil
-
-syn match hlFunction /\<\h\w*\ze\_s*(/
-
-syn match hlComment /\/\/.*/
-syn match hlType /[^a-z0-9_][A-Z][A-z0-9_]*/
-syn match hlNumber /\<\d\+\>/
-syn match hlNumber /\<\d\+\.\d*/
-syn match hlOperator /=|\+=|-=|\*=|\/=|%=|\*\*=|\+|-|\*\*|\*|\/|%|\<|\>|\<=|\>=|==|!=|!|\.\./
-
-syn region hlString start="\"" end="\"" contains=hlEscape
-syn region hlString start="'" end="'" contains=hlEscape
-
-syn match hlEscape /\\[ntra"'\\]/
-
-hi def link hlEscape Special
-hi def link hlStructure Structure
-hi def link hlFunction Function
-hi def link hlStatement Statement
-hi def link hlLabel Label
-hi def link hlConditional Conditional
-hi def link hlRepeat Repeat
-hi def link hlModifier StorageClass
-hi def link hlType Type
-hi def link hlString String
-hi def link hlOperator Operator
-hi def link hlNumber Constant
-hi def link hlLiteral Constant
-hi def link hlComment Comment
-
-let b:current_syntax = 'hl'
diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf
index 52d1587..dbf5de7 100644
--- a/.config/picom/picom.conf
+++ b/.config/picom/picom.conf
@@ -1,7 +1,7 @@
shadow = true;
shadow-radius = 15;
shadow-offset-x = -15;
-shadow-offset-y = -7;
+shadow-offset-y = -15;
shadow-exclude = [
"class_g = 'i3-frame' && argb",
];
@@ -16,7 +16,7 @@ inactive-opacity-override = false;
focus-exclude = [ "class_g = 'Cairo-clock'" ];
-corner-radius = 5
+corner-radius = 0
rounded-corners-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'"
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
index 90abf2b..a2e85ea 100644
--- a/.config/polybar/config.ini
+++ b/.config/polybar/config.ini
@@ -20,7 +20,7 @@
background = #222222
background-alt = #333333
foreground = #FFFFFF
-primary = #FF4499
+primary = #FF3399
secondary = #991133
alert = #A54242
disabled = #707880
@@ -75,8 +75,8 @@ tray-spacing = 16pt
[module/xworkspaces]
type = internal/xworkspaces
-icon-0 = 10;.
-icon-1 = 9;.
+icon-0 = 10; 
+icon-1 = 9; 
icon-default =
@@ -154,7 +154,7 @@ label-connected = %{F#FFFFFF}%ifname%%{F-} %essid%
type = internal/date
interval = 1
-time = %I:%M%p
+time = %I:%M %p
time-alt = %H:%M:%S
label = %time%
@@ -165,7 +165,7 @@ type = internal/date
interval = 3600
date = %a %m/%d
-date-alt = %b
+date-alt = %b %Z
label = %date%
label-foreground = ${colors.primary}