mirror of
https://git.sr.ht/~coasteen/dotfiles
synced 2026-02-04 06:03:45 +01:00
push before new pc
This commit is contained in:
parent
f3deb5b366
commit
bf190cca21
29 changed files with 2646 additions and 2878 deletions
|
|
@ -22,3 +22,7 @@ alias cmatrix="cmatrix -C white"
|
|||
fixaud() {
|
||||
pactl set-card-profile alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic "HiFi (HDMI1, HDMI2, HDMI3, Mic1, Mic2, Speaker)"
|
||||
}
|
||||
|
||||
fixaud2() {
|
||||
pactl set-default-sink alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink
|
||||
}
|
||||
|
|
|
|||
6
.zshrc
6
.zshrc
|
|
@ -1,5 +1,4 @@
|
|||
#!/bin/zsh
|
||||
. /etc/profile
|
||||
HISTFILE=$HOME/.cache/zsh/history
|
||||
SAVEHIST=100000000
|
||||
HISTSIZE=$SAVEHIST
|
||||
|
|
@ -10,8 +9,7 @@ zmodload zsh/complist
|
|||
compinit
|
||||
comp_options+=(globdots)
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
||||
source ~/.local/zsh/zsh-autosuggestions.zsh
|
||||
source ~/.local/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source ~/.zsh.d/*
|
||||
autoload -U colors && colors && setopt prompt_subst
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=5"
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=12"
|
||||
|
|
@ -19,4 +17,4 @@ LIBCLANG_PATH=/usr/lib/llvm/20/lib64
|
|||
source ~/.zprofile
|
||||
PATH=$PATH:/home/coast/.spicetify
|
||||
|
||||
PROMPT="[%n@%m %~]%% "
|
||||
PROMPT="0 %n %1~ "
|
||||
|
|
|
|||
82
config/bspwm/bspwmrc
Executable file
82
config/bspwm/bspwmrc
Executable file
|
|
@ -0,0 +1,82 @@
|
|||
#!/bin/sh
|
||||
# my bspwmrc
|
||||
|
||||
# desktops
|
||||
bspc monitor -d I II III IV V VI VII VIII IX X
|
||||
|
||||
# borders
|
||||
bspc config focused_border_color "#383838"
|
||||
bspc config normal_border_color "#282828"
|
||||
bspc config border_width 2
|
||||
|
||||
# layout
|
||||
bspc config window_gap 10
|
||||
bspc config split_ratio 0.5
|
||||
bspc config smart_gap true
|
||||
|
||||
# focus behavior
|
||||
bspc config focus_follows_pointer true
|
||||
bspc config click_to_focus false
|
||||
bspc config pointer_follows_monitor true
|
||||
|
||||
# monitor / window behavior
|
||||
bspc config remove_disabled_monitors true
|
||||
bspc config auto_cancel true
|
||||
bspc config auto_alternate true
|
||||
|
||||
# padding
|
||||
bspc config bottom_padding 0
|
||||
|
||||
|
||||
### {{{ find and stop processes
|
||||
|
||||
pidb() {
|
||||
pgrep -x "$1" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
run() {
|
||||
proc="$1"
|
||||
cmd="$2"
|
||||
|
||||
if ! pidb "$proc"; then
|
||||
sh -c "$cmd" &
|
||||
fi
|
||||
}
|
||||
|
||||
### }}}
|
||||
|
||||
|
||||
### {{{ rerun/start processes
|
||||
|
||||
# piss
|
||||
run "piss" "piss"
|
||||
|
||||
# picom
|
||||
run "picom" "picom --backend glx"
|
||||
|
||||
# dunst
|
||||
run "dunst" "dunst"
|
||||
|
||||
# bspbar
|
||||
run "bspbar" "bspbar"
|
||||
|
||||
# polkit gnome
|
||||
run "polkit-gnome-authentication-agent-1" \
|
||||
"/usr/libexec/polkit-gnome-authentication-agent-1"
|
||||
|
||||
# xsettingsd
|
||||
run "xsettingsd" "xsettingsd"
|
||||
|
||||
# pulseaudio
|
||||
run "pulseaudio" "pulseaudio --start"
|
||||
|
||||
# pipewire
|
||||
run "pipewire" "pipewire"
|
||||
|
||||
# xtkhd
|
||||
run "xtkhd" "xtkhd"
|
||||
|
||||
xrandr --output eDP-1 --off
|
||||
hsetroot -center "$HOME/Downloads/wall4.png"
|
||||
|
||||
### }}}
|
||||
|
|
@ -7,5 +7,5 @@ require("config")
|
|||
require("plugins/render-markdown")
|
||||
--require("status_line").setup()
|
||||
require("plugins/lualine")
|
||||
require("plugins/pinkfly")
|
||||
require("plugins/catppuccin")
|
||||
require("colorizer").setup() -- #ffffff #edb511
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
"cmp-vsnip": { "branch": "main", "commit": "989a8a73c44e926199bfd05fa7a516d51f2d2752" },
|
||||
"comfy-line-numbers.nvim": { "branch": "main", "commit": "31e2f9287b4491ad72defb9e0185eb2739983799" },
|
||||
"fterm.nvim": { "branch": "master", "commit": "d1320892cc2ebab472935242d9d992a2c9570180" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "db067881fff0fd4be8c00e5bde7492e0e1c77a2f" },
|
||||
"gruvbox": { "branch": "master", "commit": "697c00291db857ca0af00ec154e5bd514a79191f" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||
"lsp_signature.nvim": { "branch": "master", "commit": "d50e40b3bf9324128e71b0b7e589765ce89466d2" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
|
||||
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
|
||||
|
|
@ -33,7 +34,6 @@
|
|||
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
|
||||
"twilight.nvim": { "branch": "main", "commit": "664e752f4a219801265cc3fc18782b457b58c1e1" },
|
||||
"typst-preview.nvim": { "branch": "master", "commit": "e544812bba84b4f7976590f2b6c0dfbd099e1893" },
|
||||
"vim": { "branch": "main", "commit": "ea0ad226b851b3aa132e2e234cc74ceecf9f4c7c" },
|
||||
"vim-closetag": { "branch": "master", "commit": "d0a562f8bdb107a50595aefe53b1a690460c3822" },
|
||||
"vim-vsnip": { "branch": "master", "commit": "0a4b8419e44f47c57eec4c90df17567ad4b1b36e" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@ local opt = vim.opt
|
|||
local map = vim.keymap.set
|
||||
local g = vim.g
|
||||
|
||||
--filetypes
|
||||
vim.cmd("autocmd BufRead,BufNewFile *.m set filetype=objc")
|
||||
|
||||
g.mapleader = " "
|
||||
|
||||
opt.shiftwidth = 4
|
||||
|
|
@ -26,7 +29,7 @@ opt.termguicolors = true
|
|||
opt.spell = false
|
||||
opt.spelllang = { "en_us" }
|
||||
|
||||
opt.shell = "/run/current-system/sw/bin/nu"
|
||||
opt.shell = "/usr/bin/zsh"
|
||||
|
||||
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
|
||||
border = "single",
|
||||
|
|
|
|||
|
|
@ -1,74 +1 @@
|
|||
require("catppuccin").setup({
|
||||
flavour = "auto", -- latte, frappe, macchiato, mocha
|
||||
background = { -- :h background
|
||||
light = "latte",
|
||||
dark = "mocha",
|
||||
},
|
||||
transparent_background = false, -- disables setting the background color.
|
||||
float = {
|
||||
transparent = false, -- enable transparent floating windows
|
||||
solid = false, -- use solid styling for floating windows, see |winborder|
|
||||
},
|
||||
show_end_of_buffer = false, -- shows the '~' characters after the end of buffers
|
||||
term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`)
|
||||
dim_inactive = {
|
||||
enabled = false, -- dims the background color of inactive window
|
||||
shade = "dark",
|
||||
percentage = 0.15, -- percentage of the shade to apply to the inactive window
|
||||
},
|
||||
no_italic = false, -- Force no italic
|
||||
no_bold = false, -- Force no bold
|
||||
no_underline = false, -- Force no underline
|
||||
styles = { -- Handles the styles of general hi groups (see `:h highlight-args`):
|
||||
comments = { "italic" }, -- Change the style of comments
|
||||
conditionals = { "italic" },
|
||||
loops = {},
|
||||
functions = {},
|
||||
keywords = {},
|
||||
strings = {},
|
||||
variables = {},
|
||||
numbers = {},
|
||||
booleans = {},
|
||||
properties = {},
|
||||
types = {},
|
||||
operators = {},
|
||||
-- miscs = {}, -- Uncomment to turn off hard-coded styles
|
||||
},
|
||||
lsp_styles = { -- Handles the style of specific lsp hl groups (see `:h lsp-highlight`).
|
||||
virtual_text = {
|
||||
errors = { "italic" },
|
||||
hints = { "italic" },
|
||||
warnings = { "italic" },
|
||||
information = { "italic" },
|
||||
ok = { "italic" },
|
||||
},
|
||||
underlines = {
|
||||
errors = { "underline" },
|
||||
hints = { "underline" },
|
||||
warnings = { "underline" },
|
||||
information = { "underline" },
|
||||
ok = { "underline" },
|
||||
},
|
||||
inlay_hints = {
|
||||
background = true,
|
||||
},
|
||||
},
|
||||
color_overrides = {},
|
||||
custom_highlights = {},
|
||||
default_integrations = true,
|
||||
auto_integrations = false,
|
||||
integrations = {
|
||||
cmp = true,
|
||||
gitsigns = true,
|
||||
nvimtree = true,
|
||||
notify = false,
|
||||
mini = {
|
||||
enabled = true,
|
||||
indentscope_color = "",
|
||||
},
|
||||
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
|
||||
},
|
||||
})
|
||||
|
||||
-- setup must be called before loading
|
||||
vim.cmd.colorscheme("catppuccin")
|
||||
vim.cmd.colorscheme("gruvbox")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
return {
|
||||
{
|
||||
"andweeb/presence.nvim",
|
||||
"rose-pine/vim",
|
||||
--"catppuccin/nvim",
|
||||
"morhetz/gruvbox",
|
||||
"neovim/nvim-lspconfig",
|
||||
"williamboman/mason.nvim",
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,124 +0,0 @@
|
|||
vim.cmd("colorscheme moonfly")
|
||||
|
||||
local palette = {
|
||||
black = "#0f0f0f",
|
||||
surface = "#1a1a1a",
|
||||
overlay = "#2a2a2a",
|
||||
text = "#e0def4",
|
||||
dim = "#6e6a86",
|
||||
pink = "#ebbcba",
|
||||
magenta = "#f2a7b0",
|
||||
peach = "#f6c177",
|
||||
white = "#ffffff",
|
||||
comment = "#55505c",
|
||||
}
|
||||
|
||||
vim.cmd("hi clear")
|
||||
if vim.fn.exists("syntax_on") then
|
||||
vim.cmd("syntax reset")
|
||||
end
|
||||
vim.o.background = "dark"
|
||||
vim.g.colors_name = "pinkfly"
|
||||
|
||||
local ui = {
|
||||
Normal = { fg = palette.text, bg = palette.black },
|
||||
NormalNC = { fg = palette.text, bg = palette.black },
|
||||
NormalFloat = { fg = palette.text, bg = palette.surface },
|
||||
FloatBorder = { fg = palette.pink, bg = palette.surface },
|
||||
VertSplit = { fg = palette.overlay, bg = palette.black },
|
||||
StatusLine = { fg = palette.pink, bg = palette.black },
|
||||
StatusLineNC = { fg = palette.dim, bg = palette.black },
|
||||
TabLine = { fg = palette.text, bg = palette.overlay },
|
||||
TabLineSel = { fg = palette.black, bg = palette.pink, bold = true },
|
||||
Pmenu = { fg = palette.text, bg = palette.surface },
|
||||
PmenuSel = { fg = palette.black, bg = palette.pink },
|
||||
CursorLine = { bg = palette.surface },
|
||||
CursorLineNr = { fg = palette.pink, bold = true },
|
||||
LineNr = { fg = palette.comment },
|
||||
Visual = { bg = "#2a1f2a" },
|
||||
Search = { bg = palette.pink, fg = palette.black },
|
||||
IncSearch = { bg = palette.magenta, fg = palette.black },
|
||||
MatchParen = { fg = palette.pink, bold = true },
|
||||
}
|
||||
|
||||
local syntax = {
|
||||
Comment = { fg = palette.comment, italic = true },
|
||||
Constant = { fg = palette.pink },
|
||||
String = { fg = palette.peach },
|
||||
Character = { fg = palette.peach },
|
||||
Number = { fg = palette.magenta },
|
||||
Boolean = { fg = palette.magenta, bold = true },
|
||||
Identifier = { fg = palette.pink },
|
||||
Function = { fg = palette.pink, bold = true },
|
||||
Statement = { fg = palette.magenta },
|
||||
Conditional = { fg = palette.pink, bold = true },
|
||||
Repeat = { fg = palette.pink },
|
||||
Label = { fg = palette.magenta },
|
||||
Operator = { fg = palette.pink },
|
||||
Keyword = { fg = palette.magenta, bold = true },
|
||||
Exception = { fg = palette.pink },
|
||||
PreProc = { fg = palette.pink },
|
||||
Type = { fg = palette.pink },
|
||||
StorageClass = { fg = palette.magenta },
|
||||
Structure = { fg = palette.pink },
|
||||
Typedef = { fg = palette.pink },
|
||||
Delimiter = { fg = palette.text },
|
||||
Special = { fg = palette.magenta },
|
||||
}
|
||||
|
||||
local diagnostics = {
|
||||
DiagnosticError = { fg = "#ff7b7b" },
|
||||
DiagnosticWarn = { fg = palette.peach },
|
||||
DiagnosticInfo = { fg = palette.pink },
|
||||
DiagnosticHint = { fg = palette.magenta },
|
||||
}
|
||||
|
||||
for group, opts in pairs(ui) do
|
||||
vim.api.nvim_set_hl(0, group, opts)
|
||||
end
|
||||
for group, opts in pairs(syntax) do
|
||||
vim.api.nvim_set_hl(0, group, opts)
|
||||
end
|
||||
for group, opts in pairs(diagnostics) do
|
||||
vim.api.nvim_set_hl(0, group, opts)
|
||||
end
|
||||
|
||||
local ok, lualine = pcall(require, "lualine")
|
||||
if ok then
|
||||
local lualine_pink = {
|
||||
normal = {
|
||||
a = { bg = palette.pink, fg = palette.black, gui = "bold" },
|
||||
b = { bg = palette.surface, fg = palette.pink },
|
||||
c = { bg = palette.black, fg = palette.text },
|
||||
},
|
||||
insert = {
|
||||
a = { bg = palette.magenta, fg = palette.black, gui = "bold" },
|
||||
},
|
||||
visual = {
|
||||
a = { bg = palette.peach, fg = palette.black, gui = "bold" },
|
||||
},
|
||||
replace = {
|
||||
a = { bg = palette.pink, fg = palette.black, gui = "bold" },
|
||||
},
|
||||
inactive = {
|
||||
a = { bg = palette.surface, fg = palette.dim },
|
||||
b = { bg = palette.surface, fg = palette.dim },
|
||||
c = { bg = palette.black, fg = palette.dim },
|
||||
},
|
||||
}
|
||||
|
||||
lualine.setup({
|
||||
options = {
|
||||
theme = lualine_pink,
|
||||
section_separators = { left = "", right = "" },
|
||||
component_separators = { left = "", right = "" },
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
vim.g.barbar_highlight = {
|
||||
background = { fg = palette.dim, bg = palette.black },
|
||||
buffer_visible = { fg = palette.text, bg = palette.black },
|
||||
buffer_selected = { fg = palette.pink, bg = palette.black, bold = true },
|
||||
modified_selected = { fg = palette.peach, bg = palette.black, bold = true },
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
/nix/store/jpb55c1pi5jlxhsgrvakbq4abf1pcldl-home-manager-files/.config/nvim
|
||||
43
config/piss/pissrc
Executable file
43
config/piss/pissrc
Executable file
|
|
@ -0,0 +1,43 @@
|
|||
#!/usr/bin/lua
|
||||
|
||||
local piss = os.getenv("PISS_BIN") or "piss"
|
||||
|
||||
os.execute(piss .. " wait")
|
||||
|
||||
local function bind(key, cmd)
|
||||
os.execute(string.format('%s bind "%s" "%s"', piss, key, cmd))
|
||||
end
|
||||
|
||||
bind("Super + Ctrl + l", "slock")
|
||||
bind("Super + Return", "alacritty")
|
||||
bind("Super + s", "bspc node -c")
|
||||
bind("Super + Ctrl + r", "bspc wm -r")
|
||||
|
||||
local dirs = {
|
||||
{"h", "west"},
|
||||
{"j", "south"},
|
||||
{"k", "north"},
|
||||
{"l", "east"}
|
||||
}
|
||||
|
||||
for _, dir in ipairs(dirs) do
|
||||
bind("Super + " .. dir[1], "bspc node -f " .. dir[2])
|
||||
bind("Super + Shift + " .. dir[1], "bspc node -s " .. dir[2])
|
||||
end
|
||||
|
||||
bind("Super + p", "pkill picom && picom --backend glx & disown")
|
||||
bind("Super + Shift + p", string.format("pkill piss && %s ~/.config/piss/pissrc & disown", piss))
|
||||
|
||||
local desktops = {"I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX"}
|
||||
for i, d in ipairs(desktops) do
|
||||
bind("Super + " .. i, "bspc desktop -f " .. d)
|
||||
bind("Super + Shift + " .. i, "bspc node -d " .. d)
|
||||
end
|
||||
|
||||
bind("Super + r", "rofi -show drun -config ~/.config/rofi/gruvbox.rasi")
|
||||
bind("Super + Shift + Return", "rofi -show run -config ~/.config/rofi/gruvbox.rasi")
|
||||
bind("Super + Shift + q", "bspc quit")
|
||||
bind("Super + Shift + s", "flameshot gui")
|
||||
bind("Super + f", "pcmanfm")
|
||||
bind("Super + space", "bspc node -t floating")
|
||||
bind("Super + Shift + space", "bspc node -t tiled")
|
||||
13
config/xmobar/xmobarrc
Normal file
13
config/xmobar/xmobarrc
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Config {
|
||||
font = "xft:JetBrainsMono Nerd Font-12",
|
||||
bgColor = "#282828",
|
||||
fgColor = "#EBDBB2",
|
||||
position = TopSize L 100 30,
|
||||
commands = [
|
||||
Run XMonadLog,
|
||||
Run Date "TIME %I:%M %p" "date" 10,
|
||||
Run Com "sh" ["-c", "ip -4 addr show | grep inet | grep -v 127.0.0.1 | awk '{print $2}' | cut -d/ -f1 | head -n1"] "localip" 50
|
||||
],
|
||||
alignSep = "}{",
|
||||
template = " %XMonadLog%}{ NET %localip% : %date% "
|
||||
}
|
||||
51
config/xmonad/xmonad.hs
Normal file
51
config/xmonad/xmonad.hs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
import XMonad
|
||||
import XMonad.Util.EZConfig (additionalKeysP)
|
||||
import XMonad.Util.Run
|
||||
import XMonad.Hooks.DynamicLog
|
||||
import XMonad.Hooks.StatusBar
|
||||
import XMonad.Hooks.ManageDocks
|
||||
import XMonad.Layout.Spacing
|
||||
import System.IO
|
||||
|
||||
keybinds =
|
||||
[
|
||||
("M-<Return>", spawn "alacritty"),
|
||||
("M-r", spawn "rofi -show drun -config ~/.config/rofi/gruvbox.rasi"),
|
||||
("M-S-s", spawn "flameshot gui"),
|
||||
("M-s", kill)
|
||||
]
|
||||
|
||||
cLayoutHook = avoidStruts $ spacing 5 $ layoutHook def
|
||||
|
||||
cXMobarPP :: PP
|
||||
cXMobarPP = def
|
||||
{
|
||||
ppCurrent = xmobarColor "#83A598" "" ,
|
||||
ppHidden = xmobarColor "#EBDBB2" "",
|
||||
ppHiddenNoWindows = xmobarColor "#EBDBB2" "",
|
||||
ppTitle = xmobarColor "#EBDBB2" "" . shorten 60 . wrap "[" "]",
|
||||
ppLayout = \layout -> ""
|
||||
}
|
||||
|
||||
cXStatusBar = statusBarProp "xmobar" (pure cXMobarPP)
|
||||
|
||||
logHook = dynamicLogWithPP $ def
|
||||
{ ppOutput = \s -> return (),
|
||||
ppCurrent = id,
|
||||
ppVisible = id,
|
||||
ppHidden = id,
|
||||
ppUrgent = id,
|
||||
ppTitle = id
|
||||
}
|
||||
|
||||
main = xmonad . withSB (statusBarProp "xmobar -f 'xft:JetBrainsMono Nerd Font-14'" (pure cXMobarPP)) $ withEasySB cXStatusBar defToggleStrutsKey $ def
|
||||
{
|
||||
modMask = mod4Mask,
|
||||
terminal = "alacritty",
|
||||
borderWidth = 2,
|
||||
normalBorderColor = "#282828",
|
||||
focusedBorderColor = "#383838",
|
||||
workspaces = map show [1..9],
|
||||
layoutHook = cLayoutHook
|
||||
}
|
||||
`additionalKeysP` keybinds
|
||||
32
local/bin/Xrec
Executable file
32
local/bin/Xrec
Executable file
|
|
@ -0,0 +1,32 @@
|
|||
#!/usr/bin/env sh
|
||||
VIDEO_SIZE="1920x1080"
|
||||
DISPLAY_NUM=":0.0"
|
||||
AUDIO_SOURCE="default"
|
||||
FPS="60"
|
||||
OUTPUT_FILE="recording_$(date +%Y%m%d_%H%M%S).mkv"
|
||||
AUDIO_BITRATE="128k"
|
||||
record() {
|
||||
local out_file="${1:-$OUTPUT_FILE}"
|
||||
echo "Starting screen + mic recording..."
|
||||
echo "Resolution: $VIDEO_SIZE @ ${FPS}fps"
|
||||
echo "Audio source: $AUDIO_SOURCE"
|
||||
echo "Output: $out_file"
|
||||
ffmpeg -y \
|
||||
-thread_queue_size 1024 \
|
||||
-f x11grab -framerate "$FPS" -video_size "$VIDEO_SIZE" -i "$DISPLAY_NUM" \
|
||||
-thread_queue_size 1024 \
|
||||
-f pulse -i "$AUDIO_SOURCE" \
|
||||
-c:v h264_nvenc -preset p1 -rc vbr -cq 23 \
|
||||
-pix_fmt yuv420p \
|
||||
-c:a aac -b:a "$AUDIO_BITRATE" \
|
||||
-vsync 1 \
|
||||
"$out_file"
|
||||
}
|
||||
show_help() {
|
||||
echo "Usage: $0 record [output_file]"
|
||||
}
|
||||
if [ "$1" = "--record" ]; then
|
||||
record "$2"
|
||||
else
|
||||
show_help
|
||||
fi
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python3.13
|
||||
#!/usr/bin/python3
|
||||
import sys
|
||||
from mutagen._tools.mid3v2 import entry_point
|
||||
from hyfetch.__main__ import run_rust
|
||||
if __name__ == '__main__':
|
||||
if sys.argv[0].endswith('.exe'):
|
||||
sys.argv[0] = sys.argv[0][:-4]
|
||||
sys.exit(entry_point())
|
||||
sys.exit(run_rust())
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python3.13
|
||||
#!/usr/bin/python3
|
||||
import sys
|
||||
from mutagen._tools.mid3cp import entry_point
|
||||
from hyfetch.__main__ import run_rust
|
||||
if __name__ == '__main__':
|
||||
if sys.argv[0].endswith('.exe'):
|
||||
sys.argv[0] = sys.argv[0][:-4]
|
||||
sys.exit(entry_point())
|
||||
sys.exit(run_rust())
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python3.13
|
||||
#!/usr/bin/python3
|
||||
import sys
|
||||
from mutagen._tools.moggsplit import entry_point
|
||||
from hyfetch.__main__ import run_py
|
||||
if __name__ == '__main__':
|
||||
if sys.argv[0].endswith('.exe'):
|
||||
sys.argv[0] = sys.argv[0][:-4]
|
||||
sys.exit(entry_point())
|
||||
sys.exit(run_py())
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/python3.13
|
||||
import sys
|
||||
from mutagen._tools.mid3iconv import entry_point
|
||||
if __name__ == '__main__':
|
||||
if sys.argv[0].endswith('.exe'):
|
||||
sys.argv[0] = sys.argv[0][:-4]
|
||||
sys.exit(entry_point())
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/python3.13
|
||||
import sys
|
||||
from mutagen._tools.mutagen_inspect import entry_point
|
||||
if __name__ == '__main__':
|
||||
if sys.argv[0].endswith('.exe'):
|
||||
sys.argv[0] = sys.argv[0][:-4]
|
||||
sys.exit(entry_point())
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/python3.13
|
||||
import sys
|
||||
from mutagen._tools.mutagen_pony import entry_point
|
||||
if __name__ == '__main__':
|
||||
if sys.argv[0].endswith('.exe'):
|
||||
sys.argv[0] = sys.argv[0][:-4]
|
||||
sys.exit(entry_point())
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/usr/lib/python-exec/python3.13/python
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
if __name__ == '__main__':
|
||||
from tqdm.cli import main
|
||||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
|
||||
sys.exit(main())
|
||||
37
st/config.h
37
st/config.h
|
|
@ -1,4 +1,5 @@
|
|||
static char *font = "monospace:size=13:antialias=true:autohint=true";
|
||||
static char *font =
|
||||
"JetBrainsMono Nerd Font:size=14:antialias=true:autohint=true";
|
||||
static int borderpx = 2;
|
||||
|
||||
static char *shell = "/bin/sh";
|
||||
|
|
@ -29,7 +30,7 @@ static unsigned int cursorthickness = 2;
|
|||
|
||||
static int bellvolume = 0;
|
||||
|
||||
char *termname = "st-256color";
|
||||
char *termname = "xterm";
|
||||
|
||||
unsigned int tabspaces = 8;
|
||||
|
||||
|
|
@ -37,27 +38,13 @@ float alpha = 0.95;
|
|||
float alpha_def;
|
||||
|
||||
static const char *colorname[] = {
|
||||
"#282828",
|
||||
"#fb4934",
|
||||
"#b8bb26",
|
||||
"#fabd2f",
|
||||
"#83a598",
|
||||
"#d3869b",
|
||||
"#8ec07c",
|
||||
"#ebdbb2",
|
||||
"#1E1E2E", "#F38BA8", "#A6E3A1", "#F9E2AF",
|
||||
"#89B4FA", "#F5C2E7", "#94E2D5", "#CDD6F4",
|
||||
|
||||
"#3c3836",
|
||||
"#cc241d",
|
||||
"#98971a",
|
||||
"#d79921",
|
||||
"#458588",
|
||||
"#b16286",
|
||||
"#689d6a",
|
||||
"#f9f5d7",
|
||||
"#6C7086", "#F38BA8", "#A6E3A1", "#F9E2AF",
|
||||
"#89B4FA", "#F5C2E7", "#94E2D5", "#ECEFFF",
|
||||
|
||||
[255] = 0,
|
||||
"#ebdbb2",
|
||||
"#1a1a1a",
|
||||
[255] = 0, "#CDD6F4", "#1E1E2E",
|
||||
};
|
||||
|
||||
unsigned int defaultfg = 256;
|
||||
|
|
@ -72,8 +59,7 @@ static unsigned int defaultrcs = 257;
|
|||
* 6: Pipe ("|")
|
||||
* 7: Snowman ("☃")
|
||||
*/
|
||||
static unsigned int cursorshape = 4;
|
||||
|
||||
static unsigned int cursorshape = 2;
|
||||
|
||||
static unsigned int cols = 160;
|
||||
static unsigned int rows = 40;
|
||||
|
|
@ -117,12 +103,10 @@ static Shortcut shortcuts[] = {
|
|||
{MODKEY, XK_j, kscrolldown, {.i = 1}},
|
||||
};
|
||||
|
||||
|
||||
static KeySym mappedkeys[] = {-1};
|
||||
|
||||
static uint ignoremod = Mod2Mask | XK_SWITCH_MOD;
|
||||
|
||||
|
||||
static Key key[] = {
|
||||
/* keysym mask string appkey appcursor */
|
||||
{XK_KP_Home, ShiftMask, "\033[2J", 0, -1},
|
||||
|
|
@ -351,7 +335,6 @@ static uint selmasks[] = {
|
|||
* Printable characters in ASCII, used to estimate the advance width
|
||||
* of single wide characters.
|
||||
*/
|
||||
static char ascii_printable[] =
|
||||
" !\"#$%&'()*+,-./0123456789:;<=>?"
|
||||
static char ascii_printable[] = " !\"#$%&'()*+,-./0123456789:;<=>?"
|
||||
"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
|
||||
"`abcdefghijklmnopqrstuvwxyz{|}~";
|
||||
|
|
|
|||
|
|
@ -35,4 +35,4 @@ STLDFLAGS = $(LIBS) $(LDFLAGS)
|
|||
#MANPREFIX = ${PREFIX}/man
|
||||
|
||||
# compiler and linker
|
||||
# CC = c99
|
||||
CC = clang
|
||||
|
|
|
|||
BIN
st/hb.o
Normal file
BIN
st/hb.o
Normal file
Binary file not shown.
BIN
st/st
Executable file
BIN
st/st
Executable file
Binary file not shown.
BIN
st/st.o
Normal file
BIN
st/st.o
Normal file
Binary file not shown.
BIN
st/x.o
Normal file
BIN
st/x.o
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue