diff options
| -rw-r--r-- | .Xresources | 21 | ||||
| -rw-r--r-- | .config/alacritty.toml | 39 | ||||
| -rw-r--r-- | .config/nvim/colors/mini-theme.lua | 1 | ||||
| -rw-r--r-- | .config/nvim/init.lua | 11 | ||||
| -rwxr-xr-x | .local/bin/screenrecord | 5 | ||||
| -rwxr-xr-x | .local/bin/screenshot | 11 | ||||
| -rw-r--r-- | dwm_config.h | 2 | ||||
| -rw-r--r-- | update.sh | 8 |
8 files changed, 69 insertions, 29 deletions
diff --git a/.Xresources b/.Xresources deleted file mode 100644 index 0f1fe07..0000000 --- a/.Xresources +++ /dev/null @@ -1,21 +0,0 @@ -URxvt.geometry: 400x400 -URxvt.font: xft:CommitMono Nerd Font:pixelsize=18 -URxvt.scrollBar: false -URxvt.foreground: #FFFFFF -URxvt.background: #000000 -URxvt.color0: #333333 -URxvt.color1: #990911 -URxvt.color2: #099911 -URxvt.color3: #CC9900 -URxvt.color4: #5511CC -URxvt.color5: #990966 -URxvt.color6: #0077AA -URxvt.color7: #999999 -URxvt.color8: #666666 -URxvt.color9: #FF2222 -URxvt.color10: #22FF44 -URxvt.color11: #FFFF00 -URxvt.color12: #8833FF -URxvt.color13: #FF4499 -URxvt.color14: #22CCFF -URxvt.color15: #FFFFFF diff --git a/.config/alacritty.toml b/.config/alacritty.toml new file mode 100644 index 0000000..f121594 --- /dev/null +++ b/.config/alacritty.toml @@ -0,0 +1,39 @@ +[window] +dynamic_padding = true +opacity = 1 + +[font] +normal = {family="CommitMono", style="Regular"} +bold = {family="CommitMono", style="Bold"} +italic = {family="CommitMono", style="Italic"} +bold_italic = {family="CommitMono", style="Bold Italic"} +offset.x = 0 +offset.y = 0 +size = 14 + +[colors] +draw_bold_text_with_bright_colors = true + +[colors.primary] +foreground = "#FFFFFF" +background = "#000000" + +[colors.normal] +black = "#333333" +red = "#990911" +green = "#099911" +yellow = "#CC9900" +blue = "#5511CC" +magenta = "#990966" +cyan = "#0077AA" +white = "#999999" + +[colors.bright] +black = "#666666" +red = "#ff2222" +green = "#22ff44" +yellow = "#ffff00" +blue = "#8833FF" +magenta = "#ff4499" +cyan = "#22ccff" +white = "#FFFFFF" diff --git a/.config/nvim/colors/mini-theme.lua b/.config/nvim/colors/mini-theme.lua index a960479..0d706dc 100644 --- a/.config/nvim/colors/mini-theme.lua +++ b/.config/nvim/colors/mini-theme.lua @@ -28,6 +28,7 @@ local colors = { ["LineNr"] = {fg="#CCCCCC", bg="#121115"}, ["LineNrAbove"] = {fg="#888888", bg="#121115"}, ["LineNrBelow"] = {fg="#888888", bg="#121115"}, + ["SignColumn"] = {fg="#888888", bg="#121115"}, ["MatchParen"] = {fg="#EE66AA", bold=true}, ["Normal"] = {fg="#AAAAAA", bg="#1A191C"}, ["Pmenu"] = {fg="#FFFFFF", bg="#333333"}, diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index e39405d..301f329 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -6,7 +6,7 @@ vim.o.cc = "80" vim.o.updatetime = 1000 vim.o.splitright = true vim.o.splitbelow = true -vim.o.signcolumn = "no" -- diagnostics are already inline +vim.o.signcolumn = "yes" vim.o.ignorecase = true vim.o.tabstop = 2 vim.o.shiftwidth = 0 @@ -87,7 +87,6 @@ local function get_symbols(kind) end_lnum = func.range["end"].line + 1, col = func.range.start.character, end_col = func.range.start.character, - -- nr = i, text = func.name .. "()", }) end @@ -108,10 +107,10 @@ vim.keymap.set("n", "<leader>o", function() end) vim.lsp.enable({"lua_ls", "clangd", "ols"}) -vim.diagnostic.config({ - virtual_text = true, - severity_sort = true, -}) +-- vim.diagnostic.config({ +-- virtual_text = true, +-- severity_sort = true, +-- }) vim.api.nvim_create_autocmd("LspAttach", { callback = function(ev) local opts = {silent=true, buffer=ev.buf} diff --git a/.local/bin/screenrecord b/.local/bin/screenrecord new file mode 100755 index 0000000..ac5c2e3 --- /dev/null +++ b/.local/bin/screenrecord @@ -0,0 +1,5 @@ +#!/bin/bash + +name=`date +"%b-%d-%y_%H-%M-%S"` +audio_dev=`pactl list short sources | awk '/output/ {print $2}' | head -n 1` +ffmpeg -f x11grab -s $(awk '/dimensions/ {print $2}' <(xdpyinfo)) -i :0.0 -f pulse -i $audio_dev ~/media/vid/$name.mp4 diff --git a/.local/bin/screenshot b/.local/bin/screenshot new file mode 100755 index 0000000..20c98af --- /dev/null +++ b/.local/bin/screenshot @@ -0,0 +1,11 @@ +#!/bin/bash + +maim -u | feh -F - & +id=$! + +maim -suc 1,1,1 > /tmp/cropped.png +xclip -selection clipboard -t image/png /tmp/cropped.png + +kill $id + +notify-send -u low -a "maim" -i /tmp/cropped.png "Screenshot captured" diff --git a/dwm_config.h b/dwm_config.h index ccd5570..a3e3fd0 100644 --- a/dwm_config.h +++ b/dwm_config.h @@ -63,7 +63,7 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = {"dmenu_run", NULL}; -static const char *termcmd[] = {"urxvt", NULL}; +static const char *termcmd[] = {"alacritty", NULL}; static const char *sscmd[] = {"screenshot", NULL}; static const char *pausecmd[] = {"playerctl", "play-pause", NULL}; static const char *nextcmd[] = {"playerctl", "next", NULL}; @@ -1,7 +1,10 @@ rm -rf .config/ mkdir .config/ -cp -r ~/.Xresources . +mkdir -p .local/bin + +# alacritty +cp ~/.config/alacritty.toml .config # st cp ~/git/dwm/config.h ./dwm_config.h @@ -12,3 +15,6 @@ cp -r ~/.config/nvim .config rm -rf .config/nvim/plugin rm -rf .config/nvim/live-server rm -rf .config/nvim/nvim-pack-lock.json + +cp ~/.local/bin/screenshot ./.local/bin +cp ~/.local/bin/screenrecord ./.local/bin |
