Skip to content

Commit

Permalink
i don't know
Browse files Browse the repository at this point in the history
Signed-off-by: saygo-png <[email protected]>
  • Loading branch information
saygo-png committed Feb 16, 2025
1 parent efc826a commit b9c6340
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 60 deletions.
16 changes: 13 additions & 3 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@
gphoto2fs

# GUI.
simplescreenrecorder
godot_4 # Game engine
gdtoolkit_4 # Tools (needed for formatter addon)
nsxiv # Image viewer
qalculate-gtk # Gui calculator
kdePackages.dolphin # File manager
Expand All @@ -331,7 +334,6 @@
ncdu
rclone
exiftool
texliveBasic
jq # Json parser
gcc # C compiling
vim # Text editor
Expand Down Expand Up @@ -754,9 +756,18 @@
tokei # Line counter
cbonsai # pretty tree

# Writing
pandoc # document converter
texliveBasic
asciidoctor
typst

zoxide # Cd alternative
htop-vim # TUI task manager
pulsemixer # Volume control

# Volume control
pulsemixer

ffmpeg # Video and magic editor
gmic # Image processing language

Expand Down Expand Up @@ -1470,4 +1481,3 @@
# }}}
}
## vim:foldmethod=marker

96 changes: 48 additions & 48 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 31 additions & 1 deletion modules/myNeovim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ in {
pkgs.isort # Python import sorter
pkgs.yapf # Python formatter
pkgs.prettierd # Javascript formatter
pkgs.tinymist # Typst lsp
# nodePackages.bash-language-server
pkgs.markdownlint-cli # Markdown linter
pkgs.haskellPackages.fourmolu # Haskell formatter
Expand Down Expand Up @@ -93,9 +94,11 @@ in {
extraLuaPackages = luaPkgs: [luaPkgs.luautf8];

extraPlugins = [
pkgs.vimPlugins.img-clip-nvim
pkgs.vimPlugins.vim-pencil
pkgs.vimPlugins.gruvbox-material
pkgs.vimPlugins.dial-nvim
pkgs.vimPlugins.typst-preview-nvim
# pkgs.vimPlugins.vim-dispatch
# pkgs.vimPlugins.vim-jack-in
(pkgs.vimUtils.buildVimPlugin {
Expand Down Expand Up @@ -148,7 +151,7 @@ in {
shiftwidth = 2;
softtabstop = 2;
expandtab = true;
smartindent = true;
# smartindent = true;
breakindent = true; # Indent when wrapping

# Wrapping.
Expand Down Expand Up @@ -699,6 +702,30 @@ in {
vim.keymap.set("v", "g<C-x>", function() require("dial.map").manipulate("decrement", "gvisual") end)
-- }}}
-- img-clip.nvim {{{
require('img-clip').setup({
default = {
-- file and directory options
dir_path = "assets", ---@type string | fun(): string
extension = "png", ---@type string | fun(): string
file_name = "%Y-%m-%d-%H-%M-%S", ---@type string | fun(): string
use_absolute_path = false, ---@type boolean | fun(): boolean
relative_to_current_file = false, ---@type boolean | fun(): boolean
-- template options
template = "$FILE_PATH", ---@type string | fun(context: table): string
url_encode_path = false, ---@type boolean | fun(): boolean
relative_template_path = true, ---@type boolean | fun(): boolean
use_cursor_in_template = true, ---@type boolean | fun(): boolean
insert_mode_after_paste = false, ---@type boolean | fun(): boolean
-- prompt options
prompt_for_file_name = true, ---@type boolean | fun(): boolean
copy_images = true, ---@type boolean | fun(): boolean
}
})
-- }}}
-- Cutlass (Delete copy registers) {{{
require("cutlass").setup({
override_del = true,
Expand Down Expand Up @@ -1151,6 +1178,9 @@ in {
# Bash
bashls.enable = true;

# Typst
tinymist.enable = true;

# Typos.
typos_lsp = {
enable = true;
Expand Down
8 changes: 8 additions & 0 deletions modules/myPackages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@
'';
})

(writeShellApplication {
name = "pasteimg";
runtimeInputs = [xclip coreutils];
text = ''
xclip -selection clipboard -t image/png -o | tee "$1" >/dev/null
'';
})

(writeShellApplication {
name = "myAutostart.sh";
runtimeInputs = [xorg.xrandr polkit-kde-agent xmousepasteblock xssproxy];
Expand Down
12 changes: 6 additions & 6 deletions resources/haskell/xmonad/lib/KeyBindings.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ myKeys conf@(XConfig{XMonad.modMask = modm}) =
M.fromList $
-- launch a terminal
[ ((modm, xK_Return), safeSpawn (XMonad.terminal conf) []),

((modm, xK_y), toggleFullscreen),
-- launch browser
((modm, xK_b), safeSpawn myBrowser []),
Expand All @@ -47,12 +48,11 @@ myKeys conf@(XConfig{XMonad.modMask = modm}) =
-- Toggle fullscreen layout
((modm, xK_f), toggleFullscreenWithStruts),
-- Audio keys
((0, xF86XK_AudioPlay), spawn "playerctl play-pause"),
((0, xF86XK_AudioPrev), spawn "playerctl previous"),
((0, xF86XK_AudioNext), spawn "playerctl next"),
-- ((0, xF86XK_AudioRaiseVolume), spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%"),
-- ((0, xF86XK_AudioLowerVolume), spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%"),
-- ((0, xF86XK_AudioMute), spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle"),
-- ((0, xF86XK_AudioPlay), spawn "playerctl play-pause"),
-- ((0, xF86XK_AudioPrev), spawn "playerctl previous"),
-- ((0, xF86XK_AudioNext), spawn "playerctl next"),
((modm, xK_KP_Subtract), spawn "wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"),
((modm, xK_KP_Equal), spawn "wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"),

-- -- Brightness keys
-- ((0, xF86XK_MonBrightnessUp), spawn "brightnessctl s +10%"),
Expand Down
Loading

0 comments on commit b9c6340

Please sign in to comment.