diff --git a/.config/fish/config.fish b/.config/fish/config.fish index d7ca751..8d2eb14 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,6 +1,6 @@ if status --is-login if test -z "$DISPLAY" -a $XDG_VTNR = 1 - exec Hyprland > ~/.hyprland.log + exec Hyprland &> ~/.hyprland.log end end diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 1408510..65488a8 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -16,13 +16,12 @@ monitor=,1920x1080,auto,1 # exec-once = waybar & hyprpaper & firefox exec-once = light -S 40 -# exec-once = /home/q/bin/setwallpaper ~/Pictures/wallpapers/Anime/wallhaven-4ow217_1920x1080.png -exec-once = swww init +exec-once = $HOME/bin/start-wallpaper exec-once = waybar exec-once = dunst -config ~/.config/dunst/dunstrc exec-once = telegram-desktop exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & -exec-once = /usr/bin/chromium-browser-stable --disable-gpu --disable-software-rasterizer +# exec-once = /usr/bin/chromium-browser-stable --disable-gpu --disable-software-rasterizer exec-once = $HOME/bin/battery-daemon & # Source a file (multi-file configs) @@ -133,6 +132,7 @@ windowrulev2 = workspace 1 silent,title:^(chromium-browser)$ $mainMod = SUPER bind = $mainMod SHIFT, S,exec, bin/w-screenrecord +bind = $mainMod SHIFT, b, exec, chromium-browser-stable --disable-gpu --disable-software-rasterizer # bindl=,switch:[switch name],exec,$HOME/bin/lockscreen @@ -155,7 +155,19 @@ bind = $mainMod, RETURN, exec, foot bind = $mainMod, N, exec, foot -e lf bind = $mainMod, M, exec, foot -e cmus bind = $mainMod, d, exec, wofi --style ~/.cache/wal/style-wofi.css --show drun -I i -bind = ,Print, exec, makescreenshot + +bind = ,Print, exec, hyprshot -c --mode output --clipboard-only +bind = SHIFT, Print, exec, hyprshot -c --mode output -o $HOME/Pictures/screenshots --filename "$(date +"%Y-%m-%d_%H-%M-%S").png" + +bind = CONTROL, Print, exec, hyprshot -c --mode region --clipboard-only +bind = CONTROL SHIFT, Print, exec, hyprshot -c --mode region -o $HOME/Pictures/screenshots --filename "$(date +"%Y-%m-%d_%H-%M-%S").png" + +bind = $mainMod, Print, exec, hyprshot -c --mode window --clipboard-only +bind = $mainMod SHIFT, Print, exec, hyprshot -c --mode window -o $HOME/Pictures/screenshots --filename "$(date +"%Y-%m-%d_%H-%M-%S").png" + +bind = ALT, Print, exec, flameshot-makescreenshot-to-clipboard +bind = ALT SHIFT, Print, exec, flameshot-makescreenshot + # bind = $mainMod, SHIFT, L, exec, lockscreen bind = ALT, L, exec, lockscreen diff --git a/.config/lf/lfrc b/.config/lf/lfrc index b220fb0..bcccc46 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -177,6 +177,7 @@ map f map t map u map a +map b map ua unarchive @@ -186,6 +187,7 @@ map md push %mkdir map gp jump-prev map y copy +map by %wl-copy < "$f" 2>&1 /dev/null map p paste map x cut diff --git a/.config/nvim/lua/core/options.lua b/.config/nvim/lua/core/options.lua index 54dbd3a..40fdbab 100644 --- a/.config/nvim/lua/core/options.lua +++ b/.config/nvim/lua/core/options.lua @@ -33,6 +33,7 @@ end opt.encoding = "utf-8" opt.swapfile = false +opt.clipboard = "unnamedplus" opt.number = true opt.relativenumber = true diff --git a/.config/nvim/lua/core/plugins.lua b/.config/nvim/lua/core/plugins.lua index 9833839..0952125 100644 --- a/.config/nvim/lua/core/plugins.lua +++ b/.config/nvim/lua/core/plugins.lua @@ -27,14 +27,13 @@ require("lazy").setup({ }, -- { "gbprod/nord.nvim" } - -- { "rebelot/kanagawa.nvim" } + { "rebelot/kanagawa.nvim" }, -- { "ellisonleao/gruvbox.nvim" } -- { "ray-x/aurora" } - -- {"catppuccin/nvim"} + {"catppuccin/nvim"}, -- {"tiagovla/tokyodark.nvim"} -- {'Everblush/everblush.nvim'} -- {"frenzyexists/aquarium-vim"} - -- {"rebelot/kanagawa.nvim"} -- {"projekt0n/github-nvim-theme"} -- {"Mofiqul/vscode.nvim"} diff --git a/.config/nvim/lua/plugins/luasnip.lua b/.config/nvim/lua/plugins/luasnip.lua index 30260b3..c854390 100644 --- a/.config/nvim/lua/plugins/luasnip.lua +++ b/.config/nvim/lua/plugins/luasnip.lua @@ -3,8 +3,6 @@ if not ok then vim.notify("Failed load luasnip\n") end -local s = ls.s - local fmt = require("luasnip.extras.fmt") local i = ls.insert_node @@ -13,9 +11,7 @@ local rep = require("luasnip.extras").rep ls.setup({ history = true, - update_events = "TextChanged,TextChangedI", - enable_autosnippets = true, }) diff --git a/bin/makescreenshot b/bin/flameshot-makescreenshot similarity index 100% rename from bin/makescreenshot rename to bin/flameshot-makescreenshot diff --git a/bin/flameshot-makescreenshot-to-clipboard b/bin/flameshot-makescreenshot-to-clipboard new file mode 100755 index 0000000..e05fef8 --- /dev/null +++ b/bin/flameshot-makescreenshot-to-clipboard @@ -0,0 +1,3 @@ +#!/bin/sh +XDG_CURRENT_DESKTOP="sway" +flameshot gui --raw | wl-copy