Skip to content

Instantly share code, notes, and snippets.

@ftfries
ftfries / iiiiinit.el
Last active August 30, 2025 14:10
Emacs Config
;; WAYLAND-SPECIFIC
;; https://emacs.stackexchange.com/questions/69037/how-can-i-copy-out-of-emacs-in-terminal-emulator-with-wayland
(when (getenv "WAYLAND_DISPLAY")
(setq wl-copy-process nil)
(defun wl-copy (text)
(setq wl-copy-process (make-process :name "wl-copy"
:buffer nil
:command '("wl-copy" "-f" "-n")
:connection-type 'pipe
:noquery t))
@ftfries
ftfries / .clang-format
Created June 6, 2025 15:36
Clang Format Default
IndentWidth: 4
Language: Cpp
ColumnLimit: 80
AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Right
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: true
AcrossComments: true
AlignCompound: true
@ftfries
ftfries / wezterm.lua
Created May 13, 2025 19:23
wezterm config
-- ~/.config/wezterm/wezterm.lua
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
config.default_prog = { 'nu', '-c', 'nvim; nu' }
config.default_cwd = wezterm.home_dir
config.window_decorations = "NONE"
@ftfries
ftfries / hyprland.conf
Created May 13, 2025 19:22
hyprland config
# #######################################################################################
# AUTOGENERATED HYPRLAND CONFIG.
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hyprland.conf AND EDIT IT,
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################
# EDIT autogenerated = 1 # remove this line to remove the warning
# This is an example Hyprland config file.
@ftfries
ftfries / init.lua
Last active May 20, 2025 02:01
neovim config
vim.o.number = true
vim.o.clipboard = "unnamedplus"
vim.o.breakindent = true
vim.o.textwidth = 80
vim.o.cursorline = true
vim.o.expandtab = true
vim.o.tabstop = 2
vim.o.shiftwidth = 2
vim.o.swapfile = false
vim.o.backup = false