From a4634fc2ad2b0139f54f6f9af272dab27c9c611d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 19:35:29 +0200 Subject: don't copy trailing on imgclip --- bin/guiscripts/imgclip | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/guiscripts/imgclip b/bin/guiscripts/imgclip index 710770b..466f2c6 100755 --- a/bin/guiscripts/imgclip +++ b/bin/guiscripts/imgclip @@ -3,8 +3,8 @@ tmppic="/tmp/imgclip.png" if [ "$WAYLAND_DISPLAY" ] then - clipo='wl-paste' - clipp='wl-copy' + clipo='wl-paste -n' + clipp='wl-copy -n' else clipo='xclip -o -selection clipboard -r' clipp='xclip -selection clipboard -r' -- cgit v1.2.3 From 25a509d2cbe8089cf1cde4a69f5f5f945c66ff27 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 19:35:47 +0200 Subject: added keybinds --- config/hyprland/foot/foot.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hyprland/foot/foot.ini b/config/hyprland/foot/foot.ini index 24df032..11bc728 100644 --- a/config/hyprland/foot/foot.ini +++ b/config/hyprland/foot/foot.ini @@ -113,7 +113,7 @@ alpha=0.90 # clipboard-copy=Control+Shift+c XF86Copy # clipboard-paste=Control+Shift+v XF86Paste # primary-paste=Shift+Insert -# search-start=Control+Shift+r +search-start=Control+Shift+r # font-increase=Control+plus Control+equal Control+KP_Add # font-decrease=Control+minus Control+KP_Subtract # font-reset=Control+0 Control+KP_0 @@ -125,7 +125,7 @@ alpha=0.90 # pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none # pipe-selected=[xargs -r firefox] none # show-urls-launch=Control+Shift+u -# show-urls-copy=none +show-urls-copy=Mod1+l # show-urls-persistent=none # prompt-prev=Control+Shift+z # prompt-next=Control+Shift+x -- cgit v1.2.3 From 577fbafc4de59700358a254e9c31145df669ab26 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 19:35:58 +0200 Subject: removed window title --- config/hyprland/waybar/config.jsonc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index 006d22b..633decc 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -1,8 +1,8 @@ { "layer": "top", "modules-left": ["battery", "wlr/workspaces", "mpd"], - "modules-center": ["hyprland/window"], - "modules-right": ["network", "pulseaudio", "temperature", "cpu", "custom/memory", "clock", "tray"], + "modules-center": ["clock"], + "modules-right": ["network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"], "wlr/workspaces": { "on-click": "activate", }, -- cgit v1.2.3 From b1fbec6a24e305ec9bf38c09b77c33d57a3c870a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 19:36:13 +0200 Subject: changed colors --- config/hyprland/waybar/schemes/base16.css | 37 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css index 68c5219..99ba8b2 100644 --- a/config/hyprland/waybar/schemes/base16.css +++ b/config/hyprland/waybar/schemes/base16.css @@ -46,7 +46,8 @@ window#waybar.PCSX2 #window { } #workspaces, #mpd, #battery, -#network, #pulseaudio, #temperature, #cpu, #custom-memory, #workspaces, #clock, #tray { +#network, #pulseaudio, #temperature, #cpu, #custom-memory, #clock, #tray { + border: solid @background 2px; margin-top: 4px; margin-bottom: 2px; transition: none; @@ -55,28 +56,29 @@ window#waybar.PCSX2 #window { #battery { color: @color6; background: @background; + border-color: @color4; } #workspaces { margin-left: 12px; border-radius: 26px; - background: @background; + background: @color1; } #workspaces button { transition: none; - color: @foreground; background: transparent; + color: @background; font-size: 16px; } #workspaces button.active { - color: @color12; + color: @color8; } #workspaces button:hover { transition: none; - color: @color11; + color: @color3; } #mpd { @@ -88,56 +90,53 @@ window#waybar.PCSX2 #window { #mpd.stopped { color: @foreground; background: @background; + border-color: @color4; } -#window { +#clock { margin-top: 4px; margin-bottom: 2px; margin-left: 8px; padding-left: 16px; padding-right: 16px; border-radius: 26px; - color: @color6; - color: @color4; + color: @color3; background: @background; + border-color: @color4; } #network { color: @background; - background: @color12; + background: @color5; } #pulseaudio { color: @background; - background: @color14; + background: @color4; } #temperature { color: @background; - background: @color7; + background: @color3; } #cpu { color: @background; - background: @color3; + background: @color4; } #custom-memory { - color: @background; - background: @color2; -} - -#clock { margin-left: 8px; margin-right: 12px; padding-left: 16px; padding-right: 16px; border-radius: 26px; - color: @foreground; - background: @background; + color: @background; + background: @color5; } #tray { + border: none; margin-right: 12px; color: @foreground; background: transparent; -- cgit v1.2.3 From b75dc6f462ed2f48a2c7476f3385d75020f5148e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 19:49:55 +0200 Subject: changed colors --- config/hyprland/waybar/schemes/base16.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css index 99ba8b2..8853b4b 100644 --- a/config/hyprland/waybar/schemes/base16.css +++ b/config/hyprland/waybar/schemes/base16.css @@ -62,23 +62,23 @@ window#waybar.PCSX2 #window { #workspaces { margin-left: 12px; border-radius: 26px; - background: @color1; + background: @color3; } #workspaces button { transition: none; background: transparent; - color: @background; font-size: 16px; + color: @color1; } #workspaces button.active { - color: @color8; + color: @background; } #workspaces button:hover { transition: none; - color: @color3; + color: @color8; } #mpd { -- cgit v1.2.3 From f5ae347f53ec9c88a22a98513e69056c204b3e3a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 20:42:57 +0200 Subject: don't copy newline --- config/essentials/zsh/aliases.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 7113147..ba35c35 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -8,8 +8,8 @@ fi if [ "$WAYLAND_DISPLAY" ] then - alias -g clipp='wl-copy' - alias -g clipo='wl-paste' + alias -g clipp='wl-copy -n' + alias -g clipo='wl-paste -n' else if which devour > /dev/null 2>&1 then -- cgit v1.2.3 From 9308efd6dd80ed4ec450a170a208d7fe3f4c6626 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 20:43:12 +0200 Subject: added scroll options --- config/hyprland/waybar/config.jsonc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index 633decc..a052e59 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -17,6 +17,8 @@ "paused": "", }, "on-click": "mpc toggle", + "on-scroll-up": "mpc volume +5", + "on-scroll-down": "mpc volume -5", }, "battery": { "format-charging": " {capacity}%", -- cgit v1.2.3 From e15b10f76188c52abcd4867f7e325ede8aab6a66 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 20:43:27 +0200 Subject: changed colors --- config/hyprland/waybar/schemes/base16.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css index 8853b4b..170a72c 100644 --- a/config/hyprland/waybar/schemes/base16.css +++ b/config/hyprland/waybar/schemes/base16.css @@ -69,11 +69,11 @@ window#waybar.PCSX2 #window { transition: none; background: transparent; font-size: 16px; - color: @color1; + color: @background; } #workspaces button.active { - color: @background; + text-shadow: 1px 0px 1px @background; } #workspaces button:hover { -- cgit v1.2.3 From 9f8f54a841b4f53922e10a41c727c43b2241b321 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 20:44:42 +0200 Subject: removed files --- .gitignore | 3 + config/common/btop/btop.conf | 212 ------------------------------------- config/hyprland/tofi/themes/colors | 14 --- config/theme/gtk-3.0/bookmarks | 0 4 files changed, 3 insertions(+), 226 deletions(-) delete mode 100644 config/common/btop/btop.conf delete mode 100644 config/hyprland/tofi/themes/colors delete mode 100644 config/theme/gtk-3.0/bookmarks diff --git a/.gitignore b/.gitignore index df0f75f..e076328 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ bin/common/stowdots +config/common/btop/ config/common/mpd/database config/common/mpv/playfile.txt config/common/mpv/watch_later/* @@ -12,6 +13,8 @@ config/essentials/zsh/.zcompdump config/extra/jftui/settings config/extra/mutt/muttrc config/hyprland/foot/colors +config/hyprland/tofi/themes/colors config/hyprland/waybar/colors.css config/old/vim/plugged/ config/old/vim/viminfo* +config/theme/gtk-3.0/bookmarks diff --git a/config/common/btop/btop.conf b/config/common/btop/btop.conf deleted file mode 100644 index 81ab72c..0000000 --- a/config/common/btop/btop.conf +++ /dev/null @@ -1,212 +0,0 @@ -#? Config file for btop v. 1.2.13 - -#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. -#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" -color_theme = "TTY" - -#* If the theme set background should be shown, set to False if you want terminal background transparency. -theme_background = False - -#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false. -truecolor = True - -#* Set to true to force tty mode regardless if a real tty has been detected or not. -#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols. -force_tty = False - -#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets. -#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box. -#* Use whitespace " " as separator between different presets. -#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty" -presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty" - -#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists. -#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift. -vim_keys = True - -#* Rounded corners on boxes, is ignored if TTY mode is ON. -rounded_corners = True - -#* Default symbols to use for graph creation, "braille", "block" or "tty". -#* "braille" offers the highest resolution but might not be included in all fonts. -#* "block" has half the resolution of braille but uses more common characters. -#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY. -#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view. -graph_symbol = "braille" - -# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". -graph_symbol_cpu = "default" - -# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". -graph_symbol_mem = "default" - -# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". -graph_symbol_net = "default" - -# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". -graph_symbol_proc = "default" - -#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace. -shown_boxes = "cpu mem net proc" - -#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs. -update_ms = 2000 - -#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", -#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. -proc_sorting = "memory" - -#* Reverse sorting order, True or False. -proc_reversed = False - -#* Show processes as a tree. -proc_tree = True - -#* Use the cpu graph colors in the process list. -proc_colors = True - -#* Use a darkening gradient in the process list. -proc_gradient = True - -#* If process cpu usage should be of the core it's running on or usage of the total available cpu power. -proc_per_core = False - -#* Show process memory as bytes instead of percent. -proc_mem_bytes = True - -#* Show cpu graph for each process. -proc_cpu_graphs = True - -#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate) -proc_info_smaps = False - -#* Show proc box on left side of screen instead of right. -proc_left = False - -#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop). -proc_filter_kernel = False - -#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available. -#* Select from a list of detected attributes from the options menu. -cpu_graph_upper = "total" - -#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available. -#* Select from a list of detected attributes from the options menu. -cpu_graph_lower = "total" - -#* Toggles if the lower CPU graph should be inverted. -cpu_invert_lower = True - -#* Set to True to completely disable the lower CPU graph. -cpu_single_graph = False - -#* Show cpu box at bottom of screen instead of top. -cpu_bottom = False - -#* Shows the system uptime in the CPU box. -show_uptime = True - -#* Show cpu temperature. -check_temp = True - -#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors. -cpu_sensor = "Auto" - -#* Show temperatures for cpu cores also if check_temp is True and sensors has been found. -show_coretemp = True - -#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core. -#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine. -#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries. -#* Example: "4:0 5:1 6:3" -cpu_core_map = "" - -#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine". -temp_scale = "celsius" - -#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024. -base_10_sizes = False - -#* Show CPU frequency. -show_cpu_freq = True - -#* Draw a clock at top of screen, formatting according to strftime, empty string to disable. -#* Special formatting: /host = hostname | /user = username | /uptime = system uptime -clock_format = "%X" - -#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort. -background_update = True - -#* Custom cpu model name, empty string to disable. -custom_cpu_name = "" - -#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ". -#* Begin line with "exclude=" to change to exclude filter, otherwise defaults to "most include" filter. Example: disks_filter="exclude=/boot /home/user". -disks_filter = "" - -#* Show graphs instead of meters for memory values. -mem_graphs = True - -#* Show mem box below net box instead of above. -mem_below_net = False - -#* Count ZFS ARC in cached and available memory. -zfs_arc_cached = True - -#* If swap memory should be shown in memory box. -show_swap = True - -#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk. -swap_disk = True - -#* If mem box should be split to also show disks info. -show_disks = True - -#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar. -only_physical = True - -#* Read disks list from /etc/fstab. This also disables only_physical. -use_fstab = True - -#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool) -zfs_hide_datasets = False - -#* Set to true to show available disk space for privileged users. -disk_free_priv = False - -#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view. -show_io_stat = True - -#* Toggles io mode for disks, showing big graphs for disk read/write speeds. -io_mode = False - -#* Set to True to show combined read/write io graphs in io mode. -io_graph_combined = False - -#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ". -#* Example: "/mnt/media:100 /:20 /boot:1". -io_graph_speeds = "" - -#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False. -net_download = 100 - -net_upload = 100 - -#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest. -net_auto = True - -#* Sync the auto scaling for download and upload to whichever currently has the highest scale. -net_sync = True - -#* Starts with the Network Interface specified here. -net_iface = "" - -#* Show battery stats in top right if battery is present. -show_battery = True - -#* Which battery to use if multiple are present. "Auto" for auto detection. -selected_battery = "Auto" - -#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG". -#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info. -log_level = "WARNING" diff --git a/config/hyprland/tofi/themes/colors b/config/hyprland/tofi/themes/colors deleted file mode 100644 index 3c35fc2..0000000 --- a/config/hyprland/tofi/themes/colors +++ /dev/null @@ -1,14 +0,0 @@ -# tofi -text-color = #d1dae6 -prompt-color = #999CA9 -placeholder-color = #999CA9 -input-color = #d1dae6 -default-result-color = #9CB3D4 -selection-color = #9298a1 -selection-match-color = #d1dae6 - -background-color = #0f1114f0 - -outline-color = #999CA9 - -border-color = #9CB3D4 diff --git a/config/theme/gtk-3.0/bookmarks b/config/theme/gtk-3.0/bookmarks deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3 From fc99e76d7cb26bc2f32109b8239e76b8404029b4 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 7 May 2023 20:48:02 +0200 Subject: added scripts --- bin/extra/fzwin | 5 +++++ bin/guiscripts/favwal | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100755 bin/extra/fzwin create mode 100755 bin/guiscripts/favwal diff --git a/bin/extra/fzwin b/bin/extra/fzwin new file mode 100755 index 0000000..4e1cc79 --- /dev/null +++ b/bin/extra/fzwin @@ -0,0 +1,5 @@ +#!/bin/sh +hyprctl clients -j | + jq '.[].pid' | + fzf --preview "hyprctl clients -j | + jq '.[] | select(.pid == {}) | {class, title, workspace, xwayland}'" diff --git a/bin/guiscripts/favwal b/bin/guiscripts/favwal new file mode 100755 index 0000000..f27123d --- /dev/null +++ b/bin/guiscripts/favwal @@ -0,0 +1,6 @@ +#!/bin/sh +pics=$(xdg-user-dir PICTURES")" +mkdir -p "${pics:=$HOME/pics}/favorites" +wal="$(realpath "pics/wallpaper")" +cp "$wal" "$pics/favorites" +echo "$wal" -- cgit v1.2.3 From ae06a21eb66ee2acce2324f855bd001079be19a9 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 8 May 2023 16:23:50 +0200 Subject: add cliphist at start --- config/hyprland/hypr/hyprland.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/config/hyprland/hypr/hyprland.conf b/config/hyprland/hypr/hyprland.conf index e7048ae..3f3cd6f 100644 --- a/config/hyprland/hypr/hyprland.conf +++ b/config/hyprland/hypr/hyprland.conf @@ -6,6 +6,7 @@ source = ./env.conf exec-once = gammastep & waybar exec-once = swaybg -i ~/pics/wallpaper +exec-once = wl-paste --watch cliphist store input { kb_layout = us -- cgit v1.2.3 From 24106f70cd624269af29889f6264c581a6442227 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 8 May 2023 16:24:00 +0200 Subject: change long date format --- config/hyprland/waybar/config.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index a052e59..8c1c89e 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -63,7 +63,7 @@ }, "clock": { "format": "{:%H:%M}", - "format-alt": " {:%A, %B %d, %Y (%R)}", + "format-alt": "{:%R %A %d %B}", "interval": 1, }, "tray": { -- cgit v1.2.3 From e05e81dceb50d408ae1b0dab5e713403f6fe230a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 8 May 2023 16:36:13 +0200 Subject: added diff to favwal and fixed some issues --- bin/guiscripts/favwal | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/guiscripts/favwal b/bin/guiscripts/favwal index f27123d..94ee709 100755 --- a/bin/guiscripts/favwal +++ b/bin/guiscripts/favwal @@ -1,6 +1,8 @@ #!/bin/sh -pics=$(xdg-user-dir PICTURES")" +pics="$(xdg-user-dir PICTURES)" mkdir -p "${pics:=$HOME/pics}/favorites" -wal="$(realpath "pics/wallpaper")" +wal="$(realpath "$pics/wallpaper")" +diff "$wal" "$pics/favorites/$(realpath "$wal" | xargs basename)" && + exit cp "$wal" "$pics/favorites" echo "$wal" -- cgit v1.2.3 From 1da48110238d7fb4e42c7d8cd605f54c770048a4 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 8 May 2023 20:17:09 +0200 Subject: don't save password to clipboard history --- bin/menuscripts/mpass | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/bin/menuscripts/mpass b/bin/menuscripts/mpass index ebe3956..870efb1 100755 --- a/bin/menuscripts/mpass +++ b/bin/menuscripts/mpass @@ -10,10 +10,16 @@ then else menucmd="fzf --prompt pass:" fi -while [ -d "${store}/${file}" ] +while [ -d "$store/$file" ] do - choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $menucmd)" + choice="$($lscmd "$store/$file" | sed 's/\.gpg$//'| $menucmd)" [ "$choice" ] || break - file="${file}/${choice}" + file="$file/$choice" done -pass show -c "${file}" + +pass show -c "$file" + +test -n "$WAYLAND_DISPLAY" && pgrep -f "cliphist" && + cliphist list | + tail -1 | + cliphist delete -- cgit v1.2.3 From f825a4ed3262f37511bd2161372cb97b5b1a2808 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 8 May 2023 20:17:32 +0200 Subject: fixed typo error --- bin/guiscripts/favwal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/guiscripts/favwal b/bin/guiscripts/favwal index 94ee709..4be5c9c 100755 --- a/bin/guiscripts/favwal +++ b/bin/guiscripts/favwal @@ -2,7 +2,7 @@ pics="$(xdg-user-dir PICTURES)" mkdir -p "${pics:=$HOME/pics}/favorites" wal="$(realpath "$pics/wallpaper")" -diff "$wal" "$pics/favorites/$(realpath "$wal" | xargs basename)" && +diff "$wal" "$pics/favorites/$(realpath "$wal" | xargs basename)" > /dev/null 2>&1 && exit cp "$wal" "$pics/favorites" echo "$wal" -- cgit v1.2.3 From 338e58b97a662a0522f12d85da7672ac0c2d3f19 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 8 May 2023 20:20:29 +0200 Subject: added copyhist! --- bin/guiscripts/copyhist | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/guiscripts/copyhist diff --git a/bin/guiscripts/copyhist b/bin/guiscripts/copyhist new file mode 100755 index 0000000..f6a177a --- /dev/null +++ b/bin/guiscripts/copyhist @@ -0,0 +1,16 @@ +#!/bin/sh + +if [ "$MENUCMD" = "tofi" ] +then + menucmd="tofi --width 30% --height 20% --padding-left 2% --matching-algorithm normal" +elif [ "$MENUCMD" = "dmenu" ] +then + menucmd="dmenu -l 10 -g 1 -x -i" +else + menucmd="fzf" +fi + +cliphist list | + $menucmd | + cliphist decode | + wl-copy -n -- cgit v1.2.3 From af77adcc95e6ea9c60f6fb580260d20c35ce32c6 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 8 May 2023 20:27:56 +0200 Subject: fixed cliphist still saving password --- bin/menuscripts/mpass | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/menuscripts/mpass b/bin/menuscripts/mpass index 870efb1..01c40e3 100755 --- a/bin/menuscripts/mpass +++ b/bin/menuscripts/mpass @@ -17,9 +17,8 @@ do file="$file/$choice" done -pass show -c "$file" - -test -n "$WAYLAND_DISPLAY" && pgrep -f "cliphist" && - cliphist list | - tail -1 | - cliphist delete +pass show -c "$file" && + if [ -n "$WAYLAND_DISPLAY" ] && cliphist list >/dev/null +then + cliphist list | head -n 1 | cliphist delete +fi -- cgit v1.2.3 From 3692a291fbc9e3a0aaaf6e847cf7ef2a1072e9fd Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 9 May 2023 00:00:52 +0200 Subject: added support for both nord and pywal16 theme --- config/essentials/nvim/after/plugin/colors.lua | 40 ++++++++++++++------------ config/essentials/nvim/lua/user/packer.lua | 2 +- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/config/essentials/nvim/after/plugin/colors.lua b/config/essentials/nvim/after/plugin/colors.lua index a7dc515..048f60d 100644 --- a/config/essentials/nvim/after/plugin/colors.lua +++ b/config/essentials/nvim/after/plugin/colors.lua @@ -1,19 +1,21 @@ --- function ColorMyPencils(color) --- color = color or "pywal" --- vim.cmd.colorscheme(color) --- -- vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) --- -- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) --- -- vim.cmd.highlight("SignColumn guibg=none") - --- -- vim.g.nord_uniform_diff_background = true --- -- vim.g.nord_contrast = true --- -- vim.g.nord_borders = true --- -- local highlights = require("nord").bufferline.highlights({ --- -- italic = true, --- -- bold = true, --- -- }) --- end --- ColorMyPencils() --- -local pywal16 = require('pywal16') -pywal16.setup() + function ColorMyPencils(color) + if color == "nord" then + vim.cmd.colorscheme(color) + vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) + vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) + vim.cmd.highlight("SignColumn guibg=none") + vim.g.nord_uniform_diff_background = true + vim.g.nord_contrast = true + vim.g.nord_borders = true + local highlights = require("nord").bufferline.highlights({ + italic = true, + bold = true, + }) + elseif color == "pywal" then + local pywal16 = require('pywal16') + pywal16.setup() + else + vim.cmd("colorscheme " .. color) + end +end +ColorMyPencils("nord") diff --git a/config/essentials/nvim/lua/user/packer.lua b/config/essentials/nvim/lua/user/packer.lua index a38dcd9..5193f05 100644 --- a/config/essentials/nvim/lua/user/packer.lua +++ b/config/essentials/nvim/lua/user/packer.lua @@ -13,7 +13,7 @@ return require('packer').startup(function(use) use('theprimeagen/harpoon') -- colors - -- use('shaunsingh/nord.nvim') + use('shaunsingh/nord.nvim') use { 'uZer/pywal16.nvim', as = 'pywal16' } use('norcalli/nvim-colorizer.lua') -- cgit v1.2.3 From 4cadb19a3cbb342fdb7256f182a5e3a682a17cb2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 9 May 2023 00:02:33 +0200 Subject: added nordtheme script! --- bin/guiscripts/nordtheme | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/guiscripts/nordtheme diff --git a/bin/guiscripts/nordtheme b/bin/guiscripts/nordtheme new file mode 100755 index 0000000..898c5d5 --- /dev/null +++ b/bin/guiscripts/nordtheme @@ -0,0 +1,14 @@ +#!/bin/sh +if test -z "$1" +then + ln -sf /usr/share/foot/themes/nord ~/.config/foot/colors + ln -sf ~/.config/waybar/colors/colors-nord ~/.config/waybar/colors.css + ln -sf ~/pics/wallpapers/nord/nord_background3.jpg ~/pics/wallpaper + swaybg -i ~/pics/wallpaper & + pkill -USR2 waybar + sed -i 's/ColorMyPencils("[^"]\+")/ColorMyPencils("nord")/g' ~/.config/nvim/after/plugin/colors.lua +else + ln -sf ~/.cache/wal/colors-waybar.css ~/.config/waybar/colors.css + newwal + sed -i 's/ColorMyPencils("[^"]\+")/ColorMyPencils("pywal")/g' ~/.config/nvim/after/plugin/colors.lua +fi -- cgit v1.2.3 From cd8c1225892e6855078e25b6a72a33c3c47cb70e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 9 May 2023 00:14:17 +0200 Subject: changed nvim aliases --- config/essentials/zsh/aliases.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index ba35c35..8a63b3f 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -21,7 +21,7 @@ else fi # Programs -alias nv='nvim' +alias vi='nvim' alias nb='newsboat' alias sr='surfraw' alias ccu='calcurse' @@ -89,8 +89,8 @@ alias grub-update='doas grub-mkconfig -o /boot/grub/grub.cfg' alias scr='nvim +"setlocal buftype=nofile bufhidden=hide noswapfile filetype=txt" scratch' alias vimp="vim '+PlugInstall'" alias nvimp="nvim '+PackerSync'" -alias nvg='git status > /dev/null 2>&1 && nv "+Git"' -alias nvn='nv "+Telekasten panel"' +alias nvg='git status > /dev/null 2>&1 && nvim "+Git"' +alias nvn='nvim "+Telekasten panel"' alias xrandr-rpgmaker='xrandr --auto --output VGA-1 --mode 1024x768 --left-of HDMI-1 && ~/.fehbg' alias xrandr-default='xrandr --auto --output VGA-1 --mode 1920x1080 --left-of HDMI-1 --output HDMI-1 --mode 1920x1080 && ~/.fehbg' -- cgit v1.2.3 From be69b27d36c3c19c380bfd16aeca7cbc8f4a9c57 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 9 May 2023 00:26:58 +0200 Subject: added height and changed anchor --- bin/guiscripts/copyhist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/guiscripts/copyhist b/bin/guiscripts/copyhist index f6a177a..19dfb59 100755 --- a/bin/guiscripts/copyhist +++ b/bin/guiscripts/copyhist @@ -2,7 +2,7 @@ if [ "$MENUCMD" = "tofi" ] then - menucmd="tofi --width 30% --height 20% --padding-left 2% --matching-algorithm normal" + menucmd="tofi --width 30% --height 50% --anchor bottom-right --matching-algorithm normal" elif [ "$MENUCMD" = "dmenu" ] then menucmd="dmenu -l 10 -g 1 -x -i" -- cgit v1.2.3 From 7584bcba18b8236a10e3833140de09ad5e7c83a1 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 9 May 2023 00:29:44 +0200 Subject: added copyhist keybind --- config/hyprland/hypr/binds.conf | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/config/hyprland/hypr/binds.conf b/config/hyprland/hypr/binds.conf index 315a9dd..d373483 100644 --- a/config/hyprland/hypr/binds.conf +++ b/config/hyprland/hypr/binds.conf @@ -75,34 +75,34 @@ bindm = $mainMod, mouse:273, resizewindow bind = $mainMod, M, submap, menuscripts submap = menuscripts -bind =, A, exec, dmask -bind =, C, exec, dmclip -bind =, D, exec, mdsktp -bind =, E, exec, memoji -bind =, F, exec, dmfm -bind =, G, exec, mpassgen -bind =, H, exec, mhelp -bind =, I, exec, mapimg -bind =, L, exec, dmlang -bind =, M, exec, mpass -bind =, P, exec, mpdf -bind =, O, exec, mpower -bind =, U, exec, mcurs -bind =, V, exec, mvid bind = $mainMod, A, exec, dmask -bind = $mainMod, C, exec, dmclip +bind =, A, exec, dmask +bind = $mainMod, C, exec, copyhist +bind =, C, exec, copyhist bind = $mainMod, D, exec, mdsktp +bind =, D, exec, mdsktp bind = $mainMod, E, exec, memoji +bind =, E, exec, memoji bind = $mainMod, F, exec, dmfm +bind =, F, exec, dmfm bind = $mainMod, G, exec, mpassgen +bind =, G, exec, mpassgen bind = $mainMod, H, exec, mhelp +bind =, H, exec, mhelp bind = $mainMod, I, exec, mapimg +bind =, I, exec, mapimg bind = $mainMod, L, exec, dmlang +bind =, L, exec, dmlang bind = $mainMod, M, exec, mpass +bind =, M, exec, mpass bind = $mainMod, P, exec, mpdf +bind =, P, exec, mpdf bind = $mainMod, O, exec, mpower +bind =, O, exec, mpower bind = $mainMod, U, exec, mcurs +bind =, U, exec, mcurs bind = $mainMod, V, exec, mvid +bind =, V, exec, mvid source = ./reset-submap.conf submap = reset -- cgit v1.2.3 From fcdb68fc3e2e7f082c74237153f70e714009077c Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 10 May 2023 00:18:43 +0200 Subject: use variable for favorites dir --- bin/guiscripts/favwal | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/guiscripts/favwal b/bin/guiscripts/favwal index 4be5c9c..f3222a2 100755 --- a/bin/guiscripts/favwal +++ b/bin/guiscripts/favwal @@ -1,8 +1,10 @@ #!/bin/sh pics="$(xdg-user-dir PICTURES)" -mkdir -p "${pics:=$HOME/pics}/favorites" +favs="wallpapers/favorites" + +mkdir -p "${pics:=$HOME/pics}/$favs" wal="$(realpath "$pics/wallpaper")" -diff "$wal" "$pics/favorites/$(realpath "$wal" | xargs basename)" > /dev/null 2>&1 && +diff "$wal" "$pics/$favs/$(realpath "$wal" | xargs basename)" > /dev/null 2>&1 && exit -cp "$wal" "$pics/favorites" +cp "$wal" "$pics/$favs" echo "$wal" -- cgit v1.2.3 From 0fa0ecfb8ace18dc5b308cc2ba4a45207b68176e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 10 May 2023 20:40:39 +0200 Subject: changed systemctl aliases --- config/essentials/zsh/aliases.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 8a63b3f..fcd510f 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -138,7 +138,8 @@ alias kll='killall' alias pi='ping archlinux.org -c4' alias -g sba='source env/bin/activate || source bin/activate' alias -g smc='systemctl' -alias smcu='systemctl --user' +alias ssc='doas smc' +alias smcu='smc --user' alias zsr='source ${ZDOTDIR:-$HOME}/.zshrc && rehash' alias rh='rehash' alias wf='doas wipefs -a' -- cgit v1.2.3 From fbdb5aba68311aee6f00d08420b027ca6b958bbb Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 10 May 2023 20:42:05 +0200 Subject: remove mouse timeout --- config/hyprland/hypr/hyprland.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hyprland/hypr/hyprland.conf b/config/hyprland/hypr/hyprland.conf index 3f3cd6f..36f85a5 100644 --- a/config/hyprland/hypr/hyprland.conf +++ b/config/hyprland/hypr/hyprland.conf @@ -33,7 +33,7 @@ general { layout = dwindle - cursor_inactive_timeout = 2 + cursor_inactive_timeout = 0 } misc { -- cgit v1.2.3 From 871b70c9a481af8c5b7d386dd8c58aa0e4f22fcd Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 10 May 2023 22:25:34 +0200 Subject: added tofi reset to nordtheme --- bin/guiscripts/nordtheme | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/guiscripts/nordtheme b/bin/guiscripts/nordtheme index 898c5d5..5efb853 100755 --- a/bin/guiscripts/nordtheme +++ b/bin/guiscripts/nordtheme @@ -2,6 +2,7 @@ if test -z "$1" then ln -sf /usr/share/foot/themes/nord ~/.config/foot/colors + ln -sf ~/.config/tofi/themes/nord ~/.config/tofi/config ln -sf ~/.config/waybar/colors/colors-nord ~/.config/waybar/colors.css ln -sf ~/pics/wallpapers/nord/nord_background3.jpg ~/pics/wallpaper swaybg -i ~/pics/wallpaper & -- cgit v1.2.3 From d91226b5128340f2239de69019f0d45e547dbb15 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 11 May 2023 12:41:00 +0200 Subject: added sqlls --- config/essentials/nvim/lua/user/cmp/sql.lua | 1 + 1 file changed, 1 insertion(+) create mode 100644 config/essentials/nvim/lua/user/cmp/sql.lua diff --git a/config/essentials/nvim/lua/user/cmp/sql.lua b/config/essentials/nvim/lua/user/cmp/sql.lua new file mode 100644 index 0000000..71f6bdf --- /dev/null +++ b/config/essentials/nvim/lua/user/cmp/sql.lua @@ -0,0 +1 @@ +require'lspconfig'.sqlls.setup{} -- cgit v1.2.3 From 4f41176e6402d3ef45f6da83cf5f70c4e0ba68aa Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 11 May 2023 12:41:27 +0200 Subject: edited and added snippet --- config/essentials/nvim/after/plugin/luasnip.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index e692d37..bba2f9f 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -161,7 +161,8 @@ ls.add_snippets("sh", { ls.add_snippets("javascript", { -- print - s("pt", fmt("console.log({}){}", { i(1, "\"Hello World!\"") , i(0) })), + s("pt", fmt("console.log({});{}", { i(1, "\"Hello World!\"") , i(0) })), + s("rq", fmt("var {} = require('{}');", { i(1), rep(1) })), }) ls.add_snippets("telekasten", { -- cgit v1.2.3 From 39b2337fb47404d7109999df816ea5d0a326753c Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 12 May 2023 01:34:53 +0200 Subject: added aliases --- config/essentials/zsh/aliases.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index fcd510f..874919c 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -212,6 +212,9 @@ alias -s z80="$EDITOR" alias -s zip='unzip -l' alias -s tar='tar tf' +alias dob='docker build' +alias doe='docker exec' + alias cfg='git --git-dir=$HOME/src/dotfiles/.git --work-tree=$HOME/src/dotfiles' # oh-my-zsh git aliases alias g='git' -- cgit v1.2.3 From 4f1331e8332e9250e61f819bb6cb7aa315edde1e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 12 May 2023 01:36:43 +0200 Subject: added alias --- config/essentials/zsh/aliases.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 874919c..81a51d8 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -212,8 +212,9 @@ alias -s z80="$EDITOR" alias -s zip='unzip -l' alias -s tar='tar tf' -alias dob='docker build' -alias doe='docker exec' +alias dcb='docker build' +alias dcbt='docker build -t' +alias dce='docker exec' alias cfg='git --git-dir=$HOME/src/dotfiles/.git --work-tree=$HOME/src/dotfiles' # oh-my-zsh git aliases -- cgit v1.2.3 From 400c95c749b8d3def955575af1dfadee23172537 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 13 May 2023 13:36:40 +0200 Subject: added aliases --- config/essentials/zsh/aliases.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index fcd510f..f3067fc 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -115,6 +115,7 @@ alias vidlen='ffprobe -show_entries format=duration -v quiet -of csv="p=0" -i' alias whatsmyip='curl -s "ifconfig.co"' alias icognito='unset HISTFILE' alias webcam='v4l2-ctl --set-fmt-video=width=1280,height=720; mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o-set=input_format=mjpeg av://v4l2:/dev/video0 --profile=low-latency --untimed --no-resume-playback' +alias qrclipo='qrencode -s 16 "$(clipo)" -o - | imv -w "imv - $(clipo)" -' alias airpods='bluetoothctl connect 60:93:16:24:00:10' alias hotpsot='nmcli dev wifi hotspot ifname wlan0 ssid wiefie password "peepeepoopoo"' alias wtip='wt ip -c -brief addr' @@ -123,6 +124,7 @@ ls $HOME/.config/mutt/configs | fzf | tee /dev/stderr | xargs -I {} ln -sf "$HOME/.config/mutt/configs/{}" $HOME/.config/mutt/muttrc' +alias fusephone='sshfs myphone: /media/phone' # Python alias penv='python3 -m venv env' -- cgit v1.2.3 From f3129cd4687ee0b66ffc44288010ab0207ead887 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 13 May 2023 17:05:55 +0200 Subject: added aliases --- config/essentials/zsh/aliases.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 81a51d8..ed55a14 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -168,6 +168,7 @@ alias cfd='$EDITOR config.def.h' # quick cd alias cda='cd $HOME/docs/android/projects' alias cds='cd $HOME/src/' +alias cdsw='cd $HOME/src/WheelAdvisor' alias cdw='cd $HOME/src/dwm' alias cddm='cd $HOME/src/dmenu' alias cdslo='cd $HOME/src/slock' @@ -215,6 +216,7 @@ alias -s tar='tar tf' alias dcb='docker build' alias dcbt='docker build -t' alias dce='docker exec' +alias dcet='docker exec -it' alias cfg='git --git-dir=$HOME/src/dotfiles/.git --work-tree=$HOME/src/dotfiles' # oh-my-zsh git aliases -- cgit v1.2.3 From e0ba0fb4c965c50bfadc30b93f5c8217cfe5c22c Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 14 May 2023 21:32:18 +0200 Subject: added snippets --- bin/guiscripts/nordtheme | 1 + config/essentials/nvim/after/plugin/luasnip.lua | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/guiscripts/nordtheme b/bin/guiscripts/nordtheme index 5efb853..5d118c4 100755 --- a/bin/guiscripts/nordtheme +++ b/bin/guiscripts/nordtheme @@ -10,6 +10,7 @@ then sed -i 's/ColorMyPencils("[^"]\+")/ColorMyPencils("nord")/g' ~/.config/nvim/after/plugin/colors.lua else ln -sf ~/.cache/wal/colors-waybar.css ~/.config/waybar/colors.css + ln -sf ~/.config/tofi/themes/base16 ~/.config/tofi/config newwal sed -i 's/ColorMyPencils("[^"]\+")/ColorMyPencils("pywal")/g' ~/.config/nvim/after/plugin/colors.lua fi diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index bba2f9f..13f4432 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -137,6 +137,7 @@ ls.add_snippets("java", { }) ls.add_snippets("sh", { + s("TD", t "THISDIR=$(dirname $(readlink -f \"$0\"))"), parse("fn", "$1 ()\n{\n\t$2\n}$0", {}), parse("fdie", [[ @@ -162,7 +163,14 @@ ls.add_snippets("sh", { ls.add_snippets("javascript", { -- print s("pt", fmt("console.log({});{}", { i(1, "\"Hello World!\"") , i(0) })), - s("rq", fmt("var {} = require('{}');", { i(1), rep(1) })), + s("rq", fmt("const {} = require('{}');", { i(1), rep(1) })), + s("apr", fmt( + [[ + app.get('{}', (req, res) => {{ + {} + }});{} + ]], + { i(1), i(2, "app.get(\"Hello world!\")"), i(0) })), }) ls.add_snippets("telekasten", { -- cgit v1.2.3 From a13598bd132fa7de6c0998059daccc081674c23b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 14 May 2023 21:32:29 +0200 Subject: added keymap --- config/essentials/nvim/lua/user/aucommands.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config/essentials/nvim/lua/user/aucommands.vim b/config/essentials/nvim/lua/user/aucommands.vim index 79ffc36..873f9c9 100644 --- a/config/essentials/nvim/lua/user/aucommands.vim +++ b/config/essentials/nvim/lua/user/aucommands.vim @@ -21,3 +21,15 @@ autocmd BufReadPost * " Makes vim-commentary work autocmd FileType dosini setlocal commentstring=#\ %s + +funct! Filter(command) + redir =>output + silent exec a:command + redir END + let @o = output + execute "put o" + redraw! + return '' +endfunct! + +nnoremap F :silent call Filter('g/') -- cgit v1.2.3 From 87d27187ed6c764551a5b0faa6ffa32962d10166 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 14 May 2023 21:32:46 +0200 Subject: added alias --- config/essentials/zsh/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index be26fc2..2f19eab 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -106,6 +106,7 @@ alias fif='find . -type "f" | grep' alias fid='find . -type "d" | grep' alias sxt='sxiv -t' alias wgsh='wget --quiet --show-progress' +alias ss4='ss -tln4p | cut -f1 -d,' # ssh alias sha='ssh-add' -- cgit v1.2.3 From 557983a9691cdcfa7f566ff9d32dd578cae5dd2c Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 14 May 2023 21:32:54 +0200 Subject: remade bookmarks --- config/extra/tridactyl/tridactylrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/config/extra/tridactyl/tridactylrc b/config/extra/tridactyl/tridactylrc index b041d1c..fa6ed1d 100644 --- a/config/extra/tridactyl/tridactylrc +++ b/config/extra/tridactyl/tridactylrc @@ -40,17 +40,22 @@ set searchurls.gentoo_wiki https://wiki.gentoo.org/index.php?title=Special%3ASea set searchurls.qwant https://www.qwant.com/?q= " Binds +" vim macro: +" Ibind gnp tabopen yy2pwwdtojRwinbblrwkro bind J tabnext bind K tabprev -bind gna tabopen moz-extension://7cf2fd76-6055-4053-bb4b-f518030f6240/static/docs/classes/_src_lib_config_.default_config.html -bind goa open moz-extension://7cf2fd76-6055-4053-bb4b-f518030f6240/static/docs/classes/_src_lib_config_.default_config.html -bind gwa winopen moz-extension://7cf2fd76-6055-4053-bb4b-f518030f6240/static/docs/classes/_src_lib_config_.default_config.html +" chat gpt bind gnc tabopen https://chat.openai.com/chat bind goc open https://chat.openai.com/chat bind gwc winopen https://chat.openai.com/chat +" awesome pixel tutorials bind gnp tabopen https://github.com/Siilwyn/awesome-pixel-art#tutorials bind gop open https://github.com/Siilwyn/awesome-pixel-art#tutorials bind gwp winopen https://github.com/Siilwyn/awesome-pixel-art#tutorials +" deluge +bind gnd tabopen http://192.168.178.52:8112/ +bind god open http://192.168.178.52:8112/ +bind gwd winopen http://192.168.178.52:8112/ " For syntax highlighting see https://github.com/tridactyl/vim-tridactyl " vim: set filetype=tridactyl -- cgit v1.2.3 From 6d88dfc0e8ed4481607695ae8b057e7442a9fb4a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 15 May 2023 00:52:23 +0200 Subject: added alias --- config/essentials/zsh/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 2f19eab..48a68bc 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -111,6 +111,7 @@ alias ss4='ss -tln4p | cut -f1 -d,' # ssh alias sha='ssh-add' alias ssh-start='eval "$(ssh-agent)" && ssh-add' +alias keyadd='find ~/.ssh -iname "*.pub" | sed "s,$HOME/.ssh/,," | cut -f1 -d. | fzf | tee /dev/stderr | read key && ssh-add ~/.ssh/$key' alias vidlen='ffprobe -show_entries format=duration -v quiet -of csv="p=0" -i' alias whatsmyip='curl -s "ifconfig.co"' -- cgit v1.2.3 From a2238f99ff1f977a47610637b26a14433482582a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 15 May 2023 22:47:20 +0200 Subject: use read to ask for login details --- bin/extra/ehbvpn | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/extra/ehbvpn b/bin/extra/ehbvpn index 5d5643c..b9a9f45 100755 --- a/bin/extra/ehbvpn +++ b/bin/extra/ehbvpn @@ -10,12 +10,11 @@ which pptpsetup > /dev/null 2>&1 || name="ehb_tunnel" ip="193.190.238.38" -pass="e-mails/luca.raymaekers@student.ehb.be" -username="$(su aluc -c "pass show $pass" | - grep "^login:" | - cut -f 2- -d ' ')" -password="$(su aluc -c "pass show $pass" | - head -1)" +read -p "username: " username +stty -echo # disable terminal output +read -p "password: " password +stty echo +echo pptpsetup \ --create "$name" \ -- cgit v1.2.3 From 148ae72a5da7e6c145076d43ac53824dbee3de25 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 15 May 2023 22:47:39 +0200 Subject: made error more clean --- bin/extra/ehbvpn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/extra/ehbvpn b/bin/extra/ehbvpn index b9a9f45..d3e587c 100755 --- a/bin/extra/ehbvpn +++ b/bin/extra/ehbvpn @@ -5,8 +5,11 @@ then exit 1 fi -which pptpsetup > /dev/null 2>&1 || +if ! which pptpsetup > /dev/null 2>&1 +then echo "Please install pptpsetup..." >&2 + exit 1 +fi name="ehb_tunnel" ip="193.190.238.38" @@ -27,4 +30,3 @@ Created tunnel: $name activate it with # pon ehb_tunnel debug dump logfd 2 nodetach EOF - -- cgit v1.2.3 From 2380c5a1b7991f8b2800fcaddeef4f41074727be Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 15 May 2023 23:57:01 +0200 Subject: removed y2chid, updated y2feed --- bin/common/y2chid | 7 ------- bin/common/y2feed | 13 +++++++------ 2 files changed, 7 insertions(+), 13 deletions(-) delete mode 100755 bin/common/y2chid diff --git a/bin/common/y2chid b/bin/common/y2chid deleted file mode 100755 index 68ba6bc..0000000 --- a/bin/common/y2chid +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -test -z "${chidot:=$1}" \ - && chidot="$(cat /dev/stdin)" - -echo "chidot: ${chidot}" 1>&2 -curl -s "https://www.youtube.com/${chidot}/"| pup 'meta[itemprop="channelId"] attr{content}' diff --git a/bin/common/y2feed b/bin/common/y2feed index 0f27d68..8d2f9d9 100755 --- a/bin/common/y2feed +++ b/bin/common/y2feed @@ -1,8 +1,9 @@ -#!/usr/bin/env sh +#!/bin/sh +ua="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" -test -z "${url:=$1}" \ - && url="$(cat /dev/stdin)" +test -z "${url:=$1}" && + url="$(cat /dev/stdin)" -echo "url: ${url}" 1>&2 - -curl -s "$url" | pup 'link attr{href}' | grep 'feeds' +echo "url: $url" >&2 +curl -s -H "$ua" "$url"| + pup 'link[title=RSS] attr{href}' -- cgit v1.2.3 From 96d6a9fa2db43ca1c1cbad795355f75627c0fca7 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 00:49:21 +0200 Subject: use pixelate instead of imagemagick --- bin/guiscripts/locker | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/guiscripts/locker b/bin/guiscripts/locker index 0070a86..972843b 100755 --- a/bin/guiscripts/locker +++ b/bin/guiscripts/locker @@ -1,8 +1,8 @@ #!/bin/sh -which swaylock convert grim > /dev/null || +which swaylock grim pixelate > /dev/null || exit 1 umask 077 file=/tmp/bg.png grim -l 0 - > $file -convert -resize 10% -resize 1000% $file $file -swaylock -i $file +pixelate $file $file +swaylock -u -i $file -- cgit v1.2.3 From f437dee2bec320fcbab0c0aba45a50976d565ee8 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 00:49:56 +0200 Subject: added user-agent generation and fixed curl command --- bin/common/y2feed | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/common/y2feed b/bin/common/y2feed index 8d2f9d9..196ecb7 100755 --- a/bin/common/y2feed +++ b/bin/common/y2feed @@ -1,9 +1,12 @@ #!/bin/sh -ua="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36" +ua="$(yt-dlp --dump-user-agent)" test -z "${url:=$1}" && url="$(cat /dev/stdin)" +url="http://youtube.com/$(echo "$url" | + awk -F '/' '{print $NF}')" echo "url: $url" >&2 -curl -s -H "$ua" "$url"| + +curl -L -s -H "$ua" "$url" | pup 'link[title=RSS] attr{href}' -- cgit v1.2.3 From 1d0d4ac1d9349a0c478b242022c91424155695c1 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 01:43:25 +0200 Subject: added more scripts --- bin/extra/passvar | 2 ++ bin/guiscripts/keyadd | 24 ++++++++++++++++++++++++ bin/guiscripts/wintitle | 3 +++ 3 files changed, 29 insertions(+) create mode 100755 bin/extra/passvar create mode 100755 bin/guiscripts/keyadd create mode 100755 bin/guiscripts/wintitle diff --git a/bin/extra/passvar b/bin/extra/passvar new file mode 100755 index 0000000..b309ff4 --- /dev/null +++ b/bin/extra/passvar @@ -0,0 +1,2 @@ +#!/bin/sh +pass show $PASSWORD diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd new file mode 100755 index 0000000..87d844d --- /dev/null +++ b/bin/guiscripts/keyadd @@ -0,0 +1,24 @@ +#!/bin/sh +die () +{ + echo "$1" >&2 +} + +key="$(find ~/.ssh -iname "*.pub" | + sed "s,$HOME/.ssh/,," | + cut -f1 -d. | + $MENUCMD)" +die "key: $key" + +HOST=$(hostnamectl hostname | sed 's/forlure/fl/;s/montecristo/mc/') + +if ! ssh-add -l | grep -q "$(ssh-keygen -lf $HOME/.ssh/$key)" +then + export SSH_ASKPASS="passvar" + export PASSWORD="keys/fl/ssh/$key" + ssh-add - < $HOME/.ssh/$key + notify-send "$0" "added $key" +else + die "key already added." + notify-send "$0" "key already added." +fi diff --git a/bin/guiscripts/wintitle b/bin/guiscripts/wintitle new file mode 100755 index 0000000..64938a5 --- /dev/null +++ b/bin/guiscripts/wintitle @@ -0,0 +1,3 @@ +#!/bin/sh + +notify-send "wintitle" "$(hyprctl activewindow -j | jq -r '.title')" -- cgit v1.2.3 From 1342b640b6fc15d9ce88c14ee9f379e1a54dbbd4 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 01:53:02 +0200 Subject: added addedkeys function --- config/essentials/zsh/functions.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index 8b7dbef..a63bf69 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -238,3 +238,14 @@ mime-default () xargs -I {} xdg-mime default "$1" "{}" die "Done." } + +addedkeys () { + find ~/.ssh -iname "*.pub" | while read key + do + local fingerprint="$(ssh-keygen -lf "$key" 2>/dev/null)" + if ssh-add -l | grep -q "$fingerprint" + then + echo "$key" + fi + done | sed "s,$HOME/.ssh/,," +} -- cgit v1.2.3 From b02d85f46978f4e87e71ab54edbd19e361cc4e77 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 06:33:44 +0200 Subject: remove bg img after unlocking --- bin/guiscripts/locker | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/guiscripts/locker b/bin/guiscripts/locker index 972843b..f464617 100755 --- a/bin/guiscripts/locker +++ b/bin/guiscripts/locker @@ -6,3 +6,4 @@ file=/tmp/bg.png grim -l 0 - > $file pixelate $file $file swaylock -u -i $file +shred -uz $file -- cgit v1.2.3 From d204513a3eed40976c6212b56bb674cc55811d87 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 06:34:02 +0200 Subject: don't continue if key does not exist --- bin/guiscripts/keyadd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd index 87d844d..3f0baa4 100755 --- a/bin/guiscripts/keyadd +++ b/bin/guiscripts/keyadd @@ -10,6 +10,8 @@ key="$(find ~/.ssh -iname "*.pub" | $MENUCMD)" die "key: $key" +test ! -f "$HOME/.ssh/$key" && exit 1 + HOST=$(hostnamectl hostname | sed 's/forlure/fl/;s/montecristo/mc/') if ! ssh-add -l | grep -q "$(ssh-keygen -lf $HOME/.ssh/$key)" -- cgit v1.2.3 From e1b9863683a9f4ec791ba462175f6d3c17b35da9 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 06:34:56 +0200 Subject: added delete option --- bin/guiscripts/keyadd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd index 3f0baa4..5962e07 100755 --- a/bin/guiscripts/keyadd +++ b/bin/guiscripts/keyadd @@ -14,7 +14,11 @@ test ! -f "$HOME/.ssh/$key" && exit 1 HOST=$(hostnamectl hostname | sed 's/forlure/fl/;s/montecristo/mc/') -if ! ssh-add -l | grep -q "$(ssh-keygen -lf $HOME/.ssh/$key)" +if [ "$1" = "-d" ] +then + ssh-add -d - < $HOME/.ssh/$key.pub && + notify-send "$0" "delted $key" +elif ! ssh-add -l | grep -q "$(ssh-keygen -lf $HOME/.ssh/$key)" then export SSH_ASKPASS="passvar" export PASSWORD="keys/fl/ssh/$key" -- cgit v1.2.3 From 5acfacf76f22948e50aad35557ca67dc54a343df Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 06:35:03 +0200 Subject: cleanup --- bin/guiscripts/keyadd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd index 5962e07..53475dc 100755 --- a/bin/guiscripts/keyadd +++ b/bin/guiscripts/keyadd @@ -22,8 +22,8 @@ elif ! ssh-add -l | grep -q "$(ssh-keygen -lf $HOME/.ssh/$key)" then export SSH_ASKPASS="passvar" export PASSWORD="keys/fl/ssh/$key" - ssh-add - < $HOME/.ssh/$key - notify-send "$0" "added $key" + ssh-add - < $HOME/.ssh/$key && + notify-send "$0" "added $key" else die "key already added." notify-send "$0" "key already added." -- cgit v1.2.3 From 38175529ba8523af24b57226dbf82fbe617211e5 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 06:35:21 +0200 Subject: alias no longer needed --- config/essentials/zsh/aliases.zsh | 1 - 1 file changed, 1 deletion(-) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 48a68bc..2f19eab 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -111,7 +111,6 @@ alias ss4='ss -tln4p | cut -f1 -d,' # ssh alias sha='ssh-add' alias ssh-start='eval "$(ssh-agent)" && ssh-add' -alias keyadd='find ~/.ssh -iname "*.pub" | sed "s,$HOME/.ssh/,," | cut -f1 -d. | fzf | tee /dev/stderr | read key && ssh-add ~/.ssh/$key' alias vidlen='ffprobe -show_entries format=duration -v quiet -of csv="p=0" -i' alias whatsmyip='curl -s "ifconfig.co"' -- cgit v1.2.3 From 0c740d8dbc8a1e0ea78da6a567d1024091d61c59 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 09:45:28 +0200 Subject: fixed not using $HOST variable --- bin/guiscripts/keyadd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd index 53475dc..1b024eb 100755 --- a/bin/guiscripts/keyadd +++ b/bin/guiscripts/keyadd @@ -21,7 +21,7 @@ then elif ! ssh-add -l | grep -q "$(ssh-keygen -lf $HOME/.ssh/$key)" then export SSH_ASKPASS="passvar" - export PASSWORD="keys/fl/ssh/$key" + export PASSWORD="keys/$HOST/ssh/$key" ssh-add - < $HOME/.ssh/$key && notify-send "$0" "added $key" else -- cgit v1.2.3 From 8301dab64e215ffc16c1fb7bb7c635f797cbbabb Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 18:59:15 +0200 Subject: use keyadd instead of passvar --- bin/extra/passvar | 2 -- bin/guiscripts/keyadd | 10 +++++++++- 2 files changed, 9 insertions(+), 3 deletions(-) delete mode 100755 bin/extra/passvar diff --git a/bin/extra/passvar b/bin/extra/passvar deleted file mode 100755 index b309ff4..0000000 --- a/bin/extra/passvar +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -pass show $PASSWORD diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd index 53475dc..21a3668 100755 --- a/bin/guiscripts/keyadd +++ b/bin/guiscripts/keyadd @@ -4,6 +4,14 @@ die () echo "$1" >&2 } +# For when script calls itself +if [ -n "$PASSWORD" ] +then + pass show "$PASSWORD" && + exit + exit 1 +fi + key="$(find ~/.ssh -iname "*.pub" | sed "s,$HOME/.ssh/,," | cut -f1 -d. | @@ -20,8 +28,8 @@ then notify-send "$0" "delted $key" elif ! ssh-add -l | grep -q "$(ssh-keygen -lf $HOME/.ssh/$key)" then - export SSH_ASKPASS="passvar" export PASSWORD="keys/fl/ssh/$key" + export SSH_ASKPASS="$0" ssh-add - < $HOME/.ssh/$key && notify-send "$0" "added $key" else -- cgit v1.2.3 From 6f7a492a03deb61bf37e3b5b6574c696912144d1 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 18:59:29 +0200 Subject: fixed typo --- bin/guiscripts/keyadd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd index 21a3668..aac7cdf 100755 --- a/bin/guiscripts/keyadd +++ b/bin/guiscripts/keyadd @@ -25,7 +25,7 @@ HOST=$(hostnamectl hostname | sed 's/forlure/fl/;s/montecristo/mc/') if [ "$1" = "-d" ] then ssh-add -d - < $HOME/.ssh/$key.pub && - notify-send "$0" "delted $key" + notify-send "$0" "deleted $key" elif ! ssh-add -l | grep -q "$(ssh-keygen -lf $HOME/.ssh/$key)" then export PASSWORD="keys/fl/ssh/$key" -- cgit v1.2.3 From 19a368ddeacebfc3adb6be328ec95fd0d864d53d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 16 May 2023 19:32:04 +0200 Subject: added pywalfox command --- bin/guiscripts/newwal | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/guiscripts/newwal b/bin/guiscripts/newwal index 4d64a6e..b913552 100755 --- a/bin/guiscripts/newwal +++ b/bin/guiscripts/newwal @@ -69,3 +69,4 @@ EOF # waybar ln -sf "$walcache/colors-waybar.css" "$HOME/.config/waybar/colors.css" pkill -USR2 waybar +pywalfox update -- cgit v1.2.3 From 65c06054415a0206c4cda0e95eeddeaa7e9598d3 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 17 May 2023 11:07:30 +0200 Subject: updated icons --- config/hyprland/waybar/config.jsonc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index 8c1c89e..c3ecf2c 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -10,11 +10,11 @@ "tooltip": false, "format": "{artist} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})", "artist-len": 24, - "format-disconnected": "ﳌ", - "format-stopped": "", + "format-disconnected": "", + "format-stopped": "", "state-icons": { - "playing": "", - "paused": "", + "playing": "", + "paused": "", }, "on-click": "mpc toggle", "on-scroll-up": "mpc volume +5", @@ -31,9 +31,9 @@ "pulseaudio": { "tooltip": false, "scroll-step": 5, - "format": "{icon} {volume}%", + "format": "{icon} {volume:3}%", "format-icons": { - "default": ["奄", "奔", "墳"] + "default": ["", "", ""] }, "on-click": "pavucontrol", }, @@ -49,7 +49,7 @@ "tooltip-format-wifi": "{ifname} {essid}", "format-ethernet": "", "tooltip-format-ethernet": "{ifname} {ipaddr}", - "format-disconnected": "裏", + "format-disconnected": "", }, "cpu": { "tooltip": false, -- cgit v1.2.3 From 19e51dd7322587aac0007fdfc31573f1b526fd2a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 17 May 2023 11:17:25 +0200 Subject: added extra menu command --- config/hyprland/hypr/binds.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/hyprland/hypr/binds.conf b/config/hyprland/hypr/binds.conf index d373483..32ff88c 100644 --- a/config/hyprland/hypr/binds.conf +++ b/config/hyprland/hypr/binds.conf @@ -3,9 +3,11 @@ $mainMod = SUPER $term = foot $menu = $(tofi-run) +$menu_opt = $(tofi-run --auto-accept-single=false) bind = $mainMod, Return, exec, $term bind = $mainMod SHIFT, Return, exec, $menu +bind = $mainMod CTRL, Return, exec, $menu_opt bind = $mainMod, C, killactive, bind = $mainMod SHIFT, C, exec, hyprctl kill bind = $mainMod, Q, exit, -- cgit v1.2.3 From ffa80c324e5b26b2cbaf154b5b3f2731bfa55f00 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 17 May 2023 11:17:49 +0200 Subject: added menucmd handling and SSHFOLDER variable --- bin/guiscripts/keyadd | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd index aac7cdf..7412199 100755 --- a/bin/guiscripts/keyadd +++ b/bin/guiscripts/keyadd @@ -1,8 +1,4 @@ #!/bin/sh -die () -{ - echo "$1" >&2 -} # For when script calls itself if [ -n "$PASSWORD" ] @@ -12,25 +8,42 @@ then exit 1 fi -key="$(find ~/.ssh -iname "*.pub" | - sed "s,$HOME/.ssh/,," | - cut -f1 -d. | - $MENUCMD)" + +if [ "$MENUCMD" = "tofi" ] +then + menucmd="tofi --matching-algorithm=normal" +else + menucmd="$MENUCMD" +fi + + +die () +{ + echo "$1" >&2 +} + +SSHFOLDER="$HOME/.ssh" + +key="$(find "$SSHFOLDER" -iname "*.pub" | + sed "s,$SSHFOLDER/,," | # Clean + sed 's/\.pub$//' | + $menucmd)" die "key: $key" -test ! -f "$HOME/.ssh/$key" && exit 1 +test ! -f "$SSHFOLDER/$key" && exit 1 HOST=$(hostnamectl hostname | sed 's/forlure/fl/;s/montecristo/mc/') if [ "$1" = "-d" ] then - ssh-add -d - < $HOME/.ssh/$key.pub && - notify-send "$0" "deleted $key" -elif ! ssh-add -l | grep -q "$(ssh-keygen -lf $HOME/.ssh/$key)" + ssh-add -d - < "$SSHFOLDER"/$key.pub && + notify-send "$0" "deleted $key" || + notify-send "$0" "could not delete." +elif ! ssh-add -l | grep -q "$(ssh-keygen -lf "$SSHFOLDER"/$key)" then export PASSWORD="keys/fl/ssh/$key" export SSH_ASKPASS="$0" - ssh-add - < $HOME/.ssh/$key && + ssh-add - < "$SSHFOLDER"/$key && notify-send "$0" "added $key" else die "key already added." -- cgit v1.2.3 From 5638d25af55736ded479373401bce51885e29123 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 17 May 2023 11:59:06 +0200 Subject: fixed HOST variable not used --- bin/guiscripts/keyadd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd index 7412199..b5bc4d9 100755 --- a/bin/guiscripts/keyadd +++ b/bin/guiscripts/keyadd @@ -33,6 +33,7 @@ die "key: $key" test ! -f "$SSHFOLDER/$key" && exit 1 HOST=$(hostnamectl hostname | sed 's/forlure/fl/;s/montecristo/mc/') +die "HOST: $HOST" if [ "$1" = "-d" ] then @@ -41,7 +42,7 @@ then notify-send "$0" "could not delete." elif ! ssh-add -l | grep -q "$(ssh-keygen -lf "$SSHFOLDER"/$key)" then - export PASSWORD="keys/fl/ssh/$key" + export PASSWORD="keys/$HOST/ssh/$key" export SSH_ASKPASS="$0" ssh-add - < "$SSHFOLDER"/$key && notify-send "$0" "added $key" -- cgit v1.2.3 From c16934898bd9c47bbee25eab9bd64c648cdf8ea6 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 17 May 2023 12:59:13 +0200 Subject: changed alias --- config/essentials/zsh/aliases.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 2f19eab..4b912b2 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -162,7 +162,7 @@ alias eto='$EDITOR ~/sync/TODO' alias edw='$EDITOR ~/src/dwm/config.def.h' alias edm='$EDITOR ~/src/dmenu/config.def.h' alias ehst='$EDITOR $ZDOTDIR/histfile' -alias ezh=' $EDITOR $HOME/.config/hypr/hyprland.conf' +alias ezh=' $EDITOR $HISTFILE' alias est='$EDITOR ~/src/st/config.def.h' alias esl='$EDITOR ~/src/slock/config.def.h' alias esls='$EDITOR ~/src/slstatus/config.def.h' -- cgit v1.2.3 From 52de9a6a1d96deda90d6c92f1fecfbd3ebb032d2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 19 May 2023 12:15:31 +0200 Subject: removed remaps --- config/essentials/nvim/ftplugin/telekasten.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/config/essentials/nvim/ftplugin/telekasten.lua b/config/essentials/nvim/ftplugin/telekasten.lua index c920492..622972f 100644 --- a/config/essentials/nvim/ftplugin/telekasten.lua +++ b/config/essentials/nvim/ftplugin/telekasten.lua @@ -10,9 +10,6 @@ vim.cmd("hi link CalNavi CalRuler") vim.cmd("hi tkTagSep ctermfg=gray guifg=gray") vim.cmd("hi tkTag ctermfg=175 guifg=#d3869B") -vim.keymap.set("i", "(", "()") -vim.keymap.set("i", "[", "[]") - vim.keymap.set("n", "a", "Telekasten show_tags") vim.keymap.set("n", "b", "Telekasten show_backlinks") vim.keymap.set("n", "c", "Telekasten show_calendar") -- cgit v1.2.3 From 0ddd1deab38e477c161dece38978d7d13a968ca5 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 19 May 2023 12:15:45 +0200 Subject: added remap --- config/essentials/nvim/lua/user/zk.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua index 9de8b87..dc39596 100644 --- a/config/essentials/nvim/lua/user/zk.lua +++ b/config/essentials/nvim/lua/user/zk.lua @@ -53,5 +53,6 @@ vim.keymap.set("n", "zm", "Telekasten browse_media") vim.keymap.set("n", "zn", "Telekasten new_note") vim.keymap.set("n", "zp", "Telekasten preview_img") vim.keymap.set("n", "zs", "Telekasten switch_vault") +vim.keymap.set("n", "zt", "Telekasten panel") vim.keymap.set("n", "zw", "Telekasten find_weekly_notes") vim.keymap.set("n", "#", "Telekasten show_tags") -- cgit v1.2.3 From 00a5303f191a86d3b5f973d5f428785371018674 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 19 May 2023 12:15:51 +0200 Subject: added vault --- config/essentials/nvim/lua/user/zk.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua index dc39596..2d6d01b 100644 --- a/config/essentials/nvim/lua/user/zk.lua +++ b/config/essentials/nvim/lua/user/zk.lua @@ -39,6 +39,11 @@ require('telekasten').setup({ rename_update_links = true, media_previewer = "telescope-media-files", follow_url_fallback = nil, + vaults = { + businessIT = { + home = home .. "/" .. "businessIT" + } + } }) vim.keymap.set("n", "z", "Telekasten panel") -- cgit v1.2.3 From 4eb68b70152f884d2c458e097108f3dd26bd7ff4 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 19 May 2023 12:16:01 +0200 Subject: added mariadb alias --- config/essentials/zsh/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 4b912b2..e253c47 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -148,6 +148,7 @@ alias rh='rehash' alias wf='doas wipefs -a' alias dmci="doas make clean install" alias rmd='rm -f *.{orig,rej}' +alias mdbw='mariadb -h 0.0.0.0 -P 4033 -u padmin -pbulbizarre padmindb' alias vbm='vboxmanage' alias vbls='vbm list vms' -- cgit v1.2.3 From 7436c88abf47f4caef5a051e1bf7255b34cf3435 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 19 May 2023 12:16:18 +0200 Subject: added shift to quit bind --- config/hyprland/hypr/binds.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hyprland/hypr/binds.conf b/config/hyprland/hypr/binds.conf index 32ff88c..5c2dd99 100644 --- a/config/hyprland/hypr/binds.conf +++ b/config/hyprland/hypr/binds.conf @@ -10,7 +10,7 @@ bind = $mainMod SHIFT, Return, exec, $menu bind = $mainMod CTRL, Return, exec, $menu_opt bind = $mainMod, C, killactive, bind = $mainMod SHIFT, C, exec, hyprctl kill -bind = $mainMod, Q, exit, +bind = $mainMod SHIFT, Q, exit, bind = $mainMod, F, togglefloating, bind = $mainMod SHIFT, P, pseudo bind = $mainMod, S, togglesplit -- cgit v1.2.3 From 70e4464ee282fdcb38a6c5dd262a81679eb6bba1 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 19 May 2023 12:21:57 +0200 Subject: added window title back --- config/hyprland/waybar/config.jsonc | 4 ++-- config/hyprland/waybar/schemes/base16.css | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index c3ecf2c..e0289c8 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -1,7 +1,7 @@ { "layer": "top", - "modules-left": ["battery", "wlr/workspaces", "mpd"], - "modules-center": ["clock"], + "modules-left": ["battery", "clock", "wlr/workspaces", "mpd"], + "modules-center": ["hyprland/window"], "modules-right": ["network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"], "wlr/workspaces": { "on-click": "activate", diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css index 170a72c..eced638 100644 --- a/config/hyprland/waybar/schemes/base16.css +++ b/config/hyprland/waybar/schemes/base16.css @@ -38,6 +38,7 @@ window#waybar.PCSX2 #window { } #mpd, #battery, +#window, #network, #pulseaudio, #temperature, #cpu, #custom-memory { margin-left: 8px; padding-left: 16px; @@ -45,8 +46,9 @@ window#waybar.PCSX2 #window { border-radius: 26px; } -#workspaces, #mpd, #battery, -#network, #pulseaudio, #temperature, #cpu, #custom-memory, #clock, #tray { +#workspaces, #mpd, #battery, #clock, +#window, +#network, #pulseaudio, #temperature, #cpu, #custom-memory, #tray { border: solid @background 2px; margin-top: 4px; margin-bottom: 2px; @@ -105,6 +107,11 @@ window#waybar.PCSX2 #window { border-color: @color4; } +#window { + color: @background; + background: @color4; +} + #network { color: @background; background: @color5; -- cgit v1.2.3 From 9560f3bdbf94484e669cf1abc9cccc4815a32d99 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 19 May 2023 12:22:13 +0200 Subject: fixed conflicting keybind --- config/hyprland/foot/foot.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hyprland/foot/foot.ini b/config/hyprland/foot/foot.ini index 11bc728..8caee75 100644 --- a/config/hyprland/foot/foot.ini +++ b/config/hyprland/foot/foot.ini @@ -125,7 +125,7 @@ search-start=Control+Shift+r # pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none # pipe-selected=[xargs -r firefox] none # show-urls-launch=Control+Shift+u -show-urls-copy=Mod1+l +show-urls-copy=Mod1+Shift+l # show-urls-persistent=none # prompt-prev=Control+Shift+z # prompt-next=Control+Shift+x -- cgit v1.2.3 From 4e65fd1d1aa0ee4aa328eea4eac37f2580490fac Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 21 May 2023 11:38:53 +0200 Subject: added multmonitor support --- bin/guiscripts/locker | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/bin/guiscripts/locker b/bin/guiscripts/locker index f464617..c35f6d4 100755 --- a/bin/guiscripts/locker +++ b/bin/guiscripts/locker @@ -2,8 +2,21 @@ which swaylock grim pixelate > /dev/null || exit 1 umask 077 -file=/tmp/bg.png -grim -l 0 - > $file -pixelate $file $file -swaylock -u -i $file -shred -uz $file + +monitors="$(hyprctl monitors -j | + jq -r '.[].name' | + tr '\n' ' ' | + sed 's,.$,,')" + +for monitor in $monitors +do + file="/tmp/locker-$monitor.png" + grim -l 0 -o "$monitor" "$file" + pixelate "$file" "$file" + # Create image command for swaylock + icmd="$icmd --image $monitor:$file" + files="$files $file" +done + +swaylock -f -u $icmd +shred -uz -- $files -- cgit v1.2.3 From c26604169fa54f15cecb6b196805949e0de3afe2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:26:08 +0200 Subject: change default screen to browser --- config/common/ncmpcpp/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/common/ncmpcpp/config b/config/common/ncmpcpp/config index 277679c..9a87787 100644 --- a/config/common/ncmpcpp/config +++ b/config/common/ncmpcpp/config @@ -445,7 +445,7 @@ ## ## Note: You can define startup screen by choosing screen from the list above. ## -#startup_screen = playlist +startup_screen = browser # ## ## Note: You can define startup slave screen by choosing screen from the list -- cgit v1.2.3 From 8c97fa55bc54311cf1668f5dcf9fbd44ebc135ad Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:26:17 +0200 Subject: fixed sninppet --- config/essentials/nvim/after/plugin/luasnip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index 13f4432..7fcedc7 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -170,7 +170,7 @@ ls.add_snippets("javascript", { {} }});{} ]], - { i(1), i(2, "app.get(\"Hello world!\")"), i(0) })), + { i(1), i(2, "res.send(\"Hello world!\")"), i(0) })), }) ls.add_snippets("telekasten", { -- cgit v1.2.3 From 9843edb41f6ecd09266b82de49d67af50c52ea8c Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:26:28 +0200 Subject: added vinfo plugin --- config/essentials/nvim/lua/user/packer.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/nvim/lua/user/packer.lua b/config/essentials/nvim/lua/user/packer.lua index 5193f05..3933838 100644 --- a/config/essentials/nvim/lua/user/packer.lua +++ b/config/essentials/nvim/lua/user/packer.lua @@ -39,6 +39,7 @@ return require('packer').startup(function(use) use('renerocksai/calendar-vim') use('ojroques/vim-oscyank', {branch = "main"}) use("potamides/pantran.nvim") + use('alx741/vinfo') -- objects use('michaeljsmith/vim-indent-object') -- cgit v1.2.3 From 89c83898ae1f29517eab638b3276ea5e4c5b48ad Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:26:58 +0200 Subject: changed clock format --- config/hyprland/waybar/config.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index e0289c8..2314fab 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -63,7 +63,7 @@ }, "clock": { "format": "{:%H:%M}", - "format-alt": "{:%R %A %d %B}", + "format-alt": "{:(%R) %A %d %B}", "interval": 1, }, "tray": { -- cgit v1.2.3 From bf4782e24e2b171c8e514c72a868afb3f79369e3 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:28:03 +0200 Subject: removed pikaur.conf --- .gitignore | 1 + config/extra/pikaur.conf | 50 ------------------------------------------------ 2 files changed, 1 insertion(+), 50 deletions(-) delete mode 100644 config/extra/pikaur.conf diff --git a/.gitignore b/.gitignore index e076328..27c119b 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ config/essentials/zsh/histfile config/essentials/zsh/.zcompdump config/extra/jftui/settings config/extra/mutt/muttrc +config/extra/pikaur.conf config/hyprland/foot/colors config/hyprland/tofi/themes/colors config/hyprland/waybar/colors.css diff --git a/config/extra/pikaur.conf b/config/extra/pikaur.conf deleted file mode 100644 index 3dad848..0000000 --- a/config/extra/pikaur.conf +++ /dev/null @@ -1,50 +0,0 @@ -[sync] -alwaysshowpkgorigin = no -develpkgsexpiration = -1 -upgradesorting = versiondiff -showdownloadsize = no -ignoreoutofdateaurupgrades = no - -[build] -keepbuilddir = no -keepdevbuilddir = yes -keepbuilddeps = no -gpgdir = -skipfailedbuild = no -alwaysusedynamicusers = no -ignorearch = no - -[review] -noedit = no -donteditbydefault = no -nodiff = no -gitdiffargs = --ignore-space-change,--ignore-all-space -diffpager = auto -hidedifffiles = .SRCINFO - -[colors] -version = 10 -versiondiffold = 11 -versiondiffnew = 9 - -[ui] -requireenterconfirm = yes -printcommands = no -aursearchsorting = hottest -displaylastupdated = no -groupbyrepository = yes -reversesearchsorting = no -warnaboutpackageupdates = - -[misc] -sudoloopinterval = 59 -pacmanpath = pacman -privilegeescalationtool = sudo - -[network] -aururl = https://aur.archlinux.org -newsurl = https://www.archlinux.org/feeds/news/ -socks5proxy = -aurhttpproxy = -aurhttpsproxy = - -- cgit v1.2.3 From ebdf74f4c666159d747ae7944d4e5e58facd8209 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:28:11 +0200 Subject: added ttyper alias --- config/essentials/zsh/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index e253c47..5bae273 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -126,6 +126,7 @@ fzf | tee /dev/stderr | xargs -I {} ln -sf "$HOME/.config/mutt/configs/{}" $HOME/.config/mutt/muttrc' alias fusephone='sshfs myphone: /media/phone' +alias ttyper='ttyper -l english1000 -w 100' # Python alias penv='python3 -m venv env' -- cgit v1.2.3 From 8ec7246168046a9424e7b15d9fd8080ebf74d261 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:28:20 +0200 Subject: added vault for business IT --- config/essentials/nvim/lua/user/zk.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua index 2d6d01b..8e1d142 100644 --- a/config/essentials/nvim/lua/user/zk.lua +++ b/config/essentials/nvim/lua/user/zk.lua @@ -41,7 +41,9 @@ require('telekasten').setup({ follow_url_fallback = nil, vaults = { businessIT = { - home = home .. "/" .. "businessIT" + home = home .. "/" .. "businessIT", + template_new_note = home .. "/" .. "templates/new_note.md", + new_note_filename = "title", } } }) -- cgit v1.2.3 From 23400ddb9428117dbadf4bd95f3f6b4f6db0f518 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:37:07 +0200 Subject: converted fzh to an alias --- config/essentials/zsh/aliases.zsh | 1 + config/essentials/zsh/functions.zsh | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 5bae273..a9d3181 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -210,6 +210,7 @@ alias fzps='ps aux | tail +2 | fzf --bind \ 4:execute(echo -n {} | awk '\''{print \$9}'\'' | xclip -sel c -r),\ 5:execute(echo -n {} | tr -s '\'' '\'' | cut -f 11- -d '\'' '\'' | xclip -sel c -r)"' alias asf='alias | fzf' +alias fzh="tac $HISTFILE | fzf | tee /dev/stderr | clipp" alias -s conf="$EDITOR" alias -s txt="$EDITOR" diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index a63bf69..aa1d640 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -86,13 +86,6 @@ clip () { fi } -fzh () { - choice="$(tac $HOME/.config/zsh/histfile | fzf)" - test -z "${choice}" && return - echo "${choice}" >> "${HOME}/.config/zsh/histfile" - eval "${choice}" -} - unzipp () { file=$1 shift -- cgit v1.2.3 From 7309f597c4e2023026be748dc01caacc44c76242 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:45:31 +0200 Subject: added http playback to mpd --- config/common/mpd/mpd.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/common/mpd/mpd.conf b/config/common/mpd/mpd.conf index 4e047ba..7ea7137 100644 --- a/config/common/mpd/mpd.conf +++ b/config/common/mpd/mpd.conf @@ -10,3 +10,11 @@ audio_output { type "pulse" name "pulse audio" } + +audio_output { + type "httpd" + name "My HTTP Stream" + port "8000" + always_on "yes" # prevent MPD from disconnecting all listeners when playback is stopped. + tags "yes" # httpd supports sending tags to listening streams. +} -- cgit v1.2.3 From 0e356be698dd538d6969e9d19f0b7f52ec4e864a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:45:44 +0200 Subject: added mdbw alias --- config/essentials/zsh/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 4b912b2..a72700c 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -107,6 +107,7 @@ alias fid='find . -type "d" | grep' alias sxt='sxiv -t' alias wgsh='wget --quiet --show-progress' alias ss4='ss -tln4p | cut -f1 -d,' +alias mdbw='mariadb -h 0.0.0.0 -P 4033 -u padmin -pbulbizarre padmindb' # ssh alias sha='ssh-add' -- cgit v1.2.3 From d5fec9f48a202beee4c2aaf1854ac8412a662e80 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:45:52 +0200 Subject: added findpass function --- config/essentials/zsh/functions.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index a63bf69..7dd0112 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -249,3 +249,11 @@ addedkeys () { fi done | sed "s,$HOME/.ssh/,," } + +fpass () { + find $HOME/.password-store -type f -not -path ".git" | + grep "\.gpg$" | + sed "s,$HOME/.password-store/,,;s,\.gpg$,," | + fzf | + xargs pass show -c +} -- cgit v1.2.3 From 10651d6fa2e300293c03d0087781f1ac8772ee1e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:46:21 +0200 Subject: updated upfile url --- config/essentials/zsh/functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index 7dd0112..dcf0f7c 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -110,10 +110,10 @@ esc () { } delfile () { - curl ${2:-"https://up.kallipso.be/delete/$1"} + curl "${2:-https://up.kallipso.be/delete/$1}" } upfile () { - curl -F "file=@\"$1\"" ${2:-"https://up.kallipso.be"} + curl -F "file=@\"$1\"" ${2:-http://0x0.st} } sgd () { -- cgit v1.2.3 From 1ac5c4538e481c7baecf2e2374fa685e968956ab Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 23 May 2023 00:46:46 +0200 Subject: changed wifi icon --- config/hyprland/waybar/config.jsonc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index c3ecf2c..72a6872 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -45,7 +45,7 @@ }, }, "network": { - "format-wifi": "", + "format-wifi": " ", "tooltip-format-wifi": "{ifname} {essid}", "format-ethernet": "", "tooltip-format-ethernet": "{ifname} {ipaddr}", -- cgit v1.2.3 From 42c9bf18ff81d382f9362db3f8fa175564e9b2bf Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 24 May 2023 00:37:42 +0200 Subject: more generic error text --- config/essentials/nvim/after/plugin/luasnip.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index 7fcedc7..bade3be 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -171,6 +171,7 @@ ls.add_snippets("javascript", { }});{} ]], { i(1), i(2, "res.send(\"Hello world!\")"), i(0) })), + s("cerr", t "console.error('Error:', err);"), }) ls.add_snippets("telekasten", { -- cgit v1.2.3 From 182d39bed877d90abcc87de6dfd5375289e1d317 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 26 May 2023 17:42:28 +0200 Subject: added aliases --- config/essentials/zsh/aliases.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 8b2da5c..171114e 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -108,6 +108,7 @@ alias sxt='sxiv -t' alias wgsh='wget --quiet --show-progress' alias ss4='ss -tln4p | cut -f1 -d,' alias mdbw='mariadb -h 0.0.0.0 -P 4033 -u padmin -pbulbizarre padmindb' +alias mdbwa='mariadb -h 10.3.50.5 -u padmin -pbulbizarre padmindb' # ssh alias sha='ssh-add' @@ -129,6 +130,9 @@ xargs -I {} ln -sf "$HOME/.config/mutt/configs/{}" $HOME/.config/mutt/muttrc' alias fusephone='sshfs myphone: /media/phone' alias ttyper='ttyper -l english1000 -w 100' +# NPM +alias npi="npm init --yes" + # Python alias penv='python3 -m venv env' alias pipreq='pip install -r requirements.txt' -- cgit v1.2.3 From 6861ccd62fb8b15b842b9181bc46e2d07fe24b0f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 27 May 2023 11:20:10 +0200 Subject: added chpwd hook --- config/essentials/zsh/.zshrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index b2cda54..d5d5465 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -87,6 +87,16 @@ set_wt () { print -Pn "\e]0;%n@%m on %~\a" } add-zsh-hook -Uz precmd set_wt +function osc7 { + local LC_ALL=C + export LC_ALL + + setopt localoptions extendedglob + input=( ${(s::)PWD} ) + uri=${(j::)input/(#b)([^A-Za-z0-9_.\!~*\'\(\)-\/])/%${(l:2::0:)$(([##16]#match))}} + print -n "\e]7;file://${HOSTNAME}${uri}\e\\" +} +add-zsh-hook -Uz chpwd osc7 # prompt -- cgit v1.2.3 From 685e5a5090c830f2764d7bfb1fad01ef1b9b02e8 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 27 May 2023 11:20:30 +0200 Subject: updated aliases --- config/essentials/zsh/aliases.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 171114e..c9ea751 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -107,7 +107,7 @@ alias fid='find . -type "d" | grep' alias sxt='sxiv -t' alias wgsh='wget --quiet --show-progress' alias ss4='ss -tln4p | cut -f1 -d,' -alias mdbw='mariadb -h 0.0.0.0 -P 4033 -u padmin -pbulbizarre padmindb' +alias mdbw='mariadb -h 0.0.0.0 -u padmin -pbulbizarre padmindb' alias mdbwa='mariadb -h 10.3.50.5 -u padmin -pbulbizarre padmindb' # ssh @@ -154,7 +154,7 @@ alias rh='rehash' alias wf='doas wipefs -a' alias dmci="doas make clean install" alias rmd='rm -f *.{orig,rej}' -alias mdbw='mariadb -h 0.0.0.0 -P 4033 -u padmin -pbulbizarre padmindb' +alias cdzot='mkdir -p /tmp/zottesite && cd /tmp/zottesite' alias vbm='vboxmanage' alias vbls='vbm list vms' -- cgit v1.2.3 From c9d472cceabb1b9612219ad77ced69e48ce9a0d7 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 29 May 2023 01:45:19 +0200 Subject: fixed commands executing two times --- config/essentials/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index d5d5465..8ba4ece 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -80,7 +80,7 @@ rehash_precmd() { # window title hooks add-zsh-hook -Uz precmd rehash_precmd set_wt_action () { - print -Pn "\e]0;$1\a" + print -Pn '\e]0;$1\a' } add-zsh-hook -Uz preexec set_wt_action set_wt () { -- cgit v1.2.3 From a8bf1aa2c503b29b194d17ebbeb48c7d8cc4db76 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 29 May 2023 01:46:13 +0200 Subject: removed tofi config symlink --- config/hyprland/tofi/config | 1 - 1 file changed, 1 deletion(-) delete mode 120000 config/hyprland/tofi/config diff --git a/config/hyprland/tofi/config b/config/hyprland/tofi/config deleted file mode 120000 index 75daa23..0000000 --- a/config/hyprland/tofi/config +++ /dev/null @@ -1 +0,0 @@ -/home/aluc/.config/tofi/themes/base16 \ No newline at end of file -- cgit v1.2.3 From bea8608275f4e6585781ad9607f57dda5094eabf Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 29 May 2023 01:46:37 +0200 Subject: changed javascript print remaps --- config/essentials/nvim/ftplugin/javascript.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/essentials/nvim/ftplugin/javascript.lua b/config/essentials/nvim/ftplugin/javascript.lua index c6869e1..3a52ffb 100644 --- a/config/essentials/nvim/ftplugin/javascript.lua +++ b/config/essentials/nvim/ftplugin/javascript.lua @@ -1,4 +1,4 @@ vim.keymap.set("n", "t", "s/\\(\\s*\\)\\(.*\\)/\\1console.log(\\2);setlocal nohls") -vim.keymap.set("n", "i", "s/\\(\\s*\\)\\(.*\\)/\\1console.log(`\\2: ${\\2}`);setlocal nohls") +vim.keymap.set("n", "i", "s/\\(\\s*\\)\\(.*\\)/\\1console.log('\\2:', \\2);setlocal nohls") vim.keymap.set("i", "t", "s/\\(\\s*\\)\\(.*\\)/\\1console.log(\\2);setlocal nohlsA") -vim.keymap.set("i", "i", "s/\\(\\s*\\)\\(.*\\)/\\1console.log(`\\2: ${\\2}`);setlocal nohlsA") +vim.keymap.set("i", "i", "s/\\(\\s*\\)\\(.*\\)/\\1console.log('\\2:', \\2);setlocal nohlsA") -- cgit v1.2.3 From dc87cb2fb42ff45b93c07ed25da41750f535f914 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 29 May 2023 01:46:56 +0200 Subject: added javascript dbconnect snippet --- config/essentials/nvim/after/plugin/luasnip.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index bade3be..eabc0be 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -164,6 +164,17 @@ ls.add_snippets("javascript", { -- print s("pt", fmt("console.log({});{}", { i(1, "\"Hello World!\"") , i(0) })), s("rq", fmt("const {} = require('{}');", { i(1), rep(1) })), + s("dbconn", fmt( + [[ + let conn = null; + try {{ + conn = await dbConnect();{} + conn.end() + }} catch(err) {{ + console.error('Error:', err); + }} + ]], + { i(0) })), s("apr", fmt( [[ app.get('{}', (req, res) => {{ -- cgit v1.2.3 From 8c8025e60fed41899e98b643390795664511615a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 29 May 2023 10:18:24 +0200 Subject: updated gitignore --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 27c119b..6817ec3 100644 --- a/.gitignore +++ b/.gitignore @@ -6,14 +6,16 @@ config/common/mpv/watch_later/* config/common/newsboat/nb_urls config/common/newsboat/urls config/essentials/gnupg/* +config/essentials/nvim/lua/.luarc.json config/essentials/nvim/plugin/ config/essentials/nvim/spell/ -config/essentials/zsh/histfile config/essentials/zsh/.zcompdump +config/essentials/zsh/histfile config/extra/jftui/settings config/extra/mutt/muttrc config/extra/pikaur.conf config/hyprland/foot/colors +config/hyprland/tofi/config config/hyprland/tofi/themes/colors config/hyprland/waybar/colors.css config/old/vim/plugged/ -- cgit v1.2.3 From 416ef1efa7c509955c3ffe983e892510f0c33bfa Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 30 May 2023 07:36:08 +0200 Subject: ignore tofi config symlink --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 27c119b..d264398 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,7 @@ config/extra/jftui/settings config/extra/mutt/muttrc config/extra/pikaur.conf config/hyprland/foot/colors +config/hyprland/tofi/config config/hyprland/tofi/themes/colors config/hyprland/waybar/colors.css config/old/vim/plugged/ -- cgit v1.2.3 From bb60e3bb77810fc989a50d4a3eef27272e6ffd12 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 7 Jun 2023 12:26:26 +0200 Subject: use startup script --- config/hyprland/hypr/hyprland.conf | 4 +--- config/hyprland/hypr/startup.sh | 5 +++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100755 config/hyprland/hypr/startup.sh diff --git a/config/hyprland/hypr/hyprland.conf b/config/hyprland/hypr/hyprland.conf index 36f85a5..8aa437e 100644 --- a/config/hyprland/hypr/hyprland.conf +++ b/config/hyprland/hypr/hyprland.conf @@ -4,9 +4,7 @@ monitor=,preferred,auto,1 source = ./env.conf -exec-once = gammastep & waybar -exec-once = swaybg -i ~/pics/wallpaper -exec-once = wl-paste --watch cliphist store +exec-once = $HOME/.config/hypr/startup.sh input { kb_layout = us diff --git a/config/hyprland/hypr/startup.sh b/config/hyprland/hypr/startup.sh new file mode 100755 index 0000000..ab0e48b --- /dev/null +++ b/config/hyprland/hypr/startup.sh @@ -0,0 +1,5 @@ +#!/bin/sh +swaybg -i ~/pics/wallpaper & +waybar & +gammastep & +wl-paste --watch cliphist store & -- cgit v1.2.3 From 1c154e484b507d0d7a4e6e50b96b1e0b1c7d8c0e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 7 Jun 2023 12:27:00 +0200 Subject: added remap --- config/essentials/nvim/lua/user/remap.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/nvim/lua/user/remap.lua b/config/essentials/nvim/lua/user/remap.lua index 25052f7..0fe4164 100644 --- a/config/essentials/nvim/lua/user/remap.lua +++ b/config/essentials/nvim/lua/user/remap.lua @@ -64,6 +64,7 @@ vim.keymap.set("n", "x", "!chmod +x %", { noremap = true, silen -- replace vim.keymap.set("n", "sf", [[:%s/\<\>//gI]]) vim.keymap.set("n", "sl", [[:s/\<\>//gI]]) +vim.keymap.set("n", "f", ".!fold -w 80 -s") -- write vim.keymap.set("n", "w", "write", { noremap = true }) -- cgit v1.2.3 From 5a82c13c615965161eb6ce930f6392ec4849a5e3 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 11 Jun 2023 21:14:07 +0200 Subject: added opening textfile by name --- config/essentials/zsh/.zshrc | 25 ++++++++++++++++++++++++- config/essentials/zsh/aliases.zsh | 4 ---- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 8ba4ece..b603a04 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -15,6 +15,20 @@ then exit fi +isTextFile() +{ + if [ -n "$1" ] + then + local file_type=$(file -b --mime-type "$1") + if [[ $file_type == text/* ]] + then + return + else + return 1 + fi + fi +} + autoload -U select-word-style autoload -z edit-command-line zle -N edit-command-line @@ -97,7 +111,16 @@ function osc7 { print -n "\e]7;file://${HOSTNAME}${uri}\e\\" } add-zsh-hook -Uz chpwd osc7 - +command_not_found_handler () { + isTextFile "$1" || + echo "zsh: command not found: $1" >&2 +} +# open file with file name +open_file() { + isTextFile "$1" && + "$EDITOR" "$1" +} +add-zsh-hook -Uz preexec open_file # prompt PS1=' %B%(#.%F{1}.%F{13})[%n%b%f@%B%F{6}%m]%b%f %3~ ' diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index c9ea751..cd4c021 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -217,10 +217,6 @@ alias fzps='ps aux | tail +2 | fzf --bind \ alias asf='alias | fzf' alias fzh="tac $HISTFILE | fzf | tee /dev/stderr | clipp" -alias -s conf="$EDITOR" -alias -s txt="$EDITOR" -alias -s c="$EDITOR" -alias -s z80="$EDITOR" alias -s zip='unzip -l' alias -s tar='tar tf' -- cgit v1.2.3 From 34ad05634aba96818fca33610288dbe85fb081c0 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 12 Jun 2023 02:12:25 +0200 Subject: fix not being able to execute files --- config/essentials/zsh/.zshrc | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index b603a04..8f37225 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -79,6 +79,21 @@ bindkey "^Xe" edit-command-line bindkey "^[." insert-last-word bindkey "^['" quote-line +isTextFile() +{ + if [ ! -f "$1" ] + then + return 1 + fi + + file_type=$(file -b --mime-type "$1") + if [[ "$file_type" == text/* ]] + then + return + fi + return 1 +} + # rehash hook zshcache_time="$(date +%s%N)" autoload -Uz add-zsh-hook @@ -117,8 +132,10 @@ command_not_found_handler () { } # open file with file name open_file() { - isTextFile "$1" && + if [ ${1:0:2} != "./" ] && isTextFile "$1" + then "$EDITOR" "$1" + fi } add-zsh-hook -Uz preexec open_file -- cgit v1.2.3 From 8ed3d9161cdb7ecb38bd2c4a7546ebf3d065e861 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 13 Jun 2023 10:33:06 +0200 Subject: added 'sty' snippet for html --- config/essentials/nvim/after/plugin/luasnip.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index eabc0be..2c1123a 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -72,6 +72,11 @@ ls.add_snippets("html", { ]], {i(1, "title"), i(2), i(3, "Header"), i(0)})), + s("sty", fmt( + [[ + {} + ]], + { i(1), i(0) })), }) ls.add_snippets("java", { -- cgit v1.2.3 From 3665833b8ab479cb460e0bd1bc5cf3102ae144c0 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 13 Jun 2023 10:33:21 +0200 Subject: added 'gel' snippet for javascript --- config/essentials/nvim/after/plugin/luasnip.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index 2c1123a..d1da9b3 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -188,6 +188,11 @@ ls.add_snippets("javascript", { ]], { i(1), i(2, "res.send(\"Hello world!\")"), i(0) })), s("cerr", t "console.error('Error:', err);"), + s("gel", fmt( + [[ + let {} = document.getElementById('{}');{} + ]], + { i(1), rep(1), i(0) })), }) ls.add_snippets("telekasten", { -- cgit v1.2.3 From f084b79a71d527250c6796760799671ef5ff62f8 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 13 Jun 2023 10:34:21 +0200 Subject: added copilot plugin --- config/essentials/nvim/lua/user/packer.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/nvim/lua/user/packer.lua b/config/essentials/nvim/lua/user/packer.lua index 3933838..c9e27a2 100644 --- a/config/essentials/nvim/lua/user/packer.lua +++ b/config/essentials/nvim/lua/user/packer.lua @@ -40,6 +40,7 @@ return require('packer').startup(function(use) use('ojroques/vim-oscyank', {branch = "main"}) use("potamides/pantran.nvim") use('alx741/vinfo') + use('github/copilot.vim') -- objects use('michaeljsmith/vim-indent-object') -- cgit v1.2.3 From 9ed72228b2b8443f8672c051e826f7b82900be2d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 13 Jun 2023 10:34:33 +0200 Subject: added softwareDesign vault --- config/essentials/nvim/lua/user/zk.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua index 8e1d142..e1c9bcc 100644 --- a/config/essentials/nvim/lua/user/zk.lua +++ b/config/essentials/nvim/lua/user/zk.lua @@ -40,6 +40,11 @@ require('telekasten').setup({ media_previewer = "telescope-media-files", follow_url_fallback = nil, vaults = { + SoftwareDesign = { + home = home .. "/" .. "SoftwareDesign", + template_new_note = home .. "/" .. "templates/new_note.md", + new_note_filename = "title", + }, businessIT = { home = home .. "/" .. "businessIT", template_new_note = home .. "/" .. "templates/new_note.md", -- cgit v1.2.3 From 02e6f3719d2a19a5aa35439819a37ad92c2751aa Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 13 Jun 2023 10:34:46 +0200 Subject: removed double declaration of function --- config/essentials/zsh/.zshrc | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 8f37225..4a28ce2 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -15,20 +15,6 @@ then exit fi -isTextFile() -{ - if [ -n "$1" ] - then - local file_type=$(file -b --mime-type "$1") - if [[ $file_type == text/* ]] - then - return - else - return 1 - fi - fi -} - autoload -U select-word-style autoload -z edit-command-line zle -N edit-command-line -- cgit v1.2.3 From 588a4769ddadf81be196e4f88fe9adad693d71e8 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 13 Jun 2023 10:35:13 +0200 Subject: added 'czo' alias --- config/essentials/zsh/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index cd4c021..5237b48 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -196,6 +196,7 @@ alias cdd='cd $HOME/dl' alias cdp='cd $HOME/pics' alias cdrs='cd /srv/' alias cdng='cd /etc/nginx' +alias czo='cd $HOME/zot/' # googoo aliases alias o.='o .' -- cgit v1.2.3 From 8c5d85923a970bd60657848e1c2c6f627c4329d9 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 13 Jun 2023 10:35:23 +0200 Subject: added 'capture' alias for hyprland --- config/essentials/zsh/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.zsh b/config/essentials/zsh/aliases.zsh index 5237b48..78d9067 100644 --- a/config/essentials/zsh/aliases.zsh +++ b/config/essentials/zsh/aliases.zsh @@ -118,6 +118,7 @@ alias vidlen='ffprobe -show_entries format=duration -v quiet -of csv="p=0" -i' alias whatsmyip='curl -s "ifconfig.co"' alias icognito='unset HISTFILE' alias webcam='v4l2-ctl --set-fmt-video=width=1280,height=720; mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o-set=input_format=mjpeg av://v4l2:/dev/video0 --profile=low-latency --untimed --no-resume-playback' +alias capture='echo "Y" | wf-recorder -o "$(hyprctl -j monitors | jq -r '\''.[].name'\'' | fzf)" --codec=vp8_vaapi --device=/dev/dri/renderD128 -f output.webm -D' alias qrclipo='qrencode -s 16 "$(clipo)" -o - | imv -w "imv - $(clipo)" -' alias airpods='bluetoothctl connect 60:93:16:24:00:10' alias hotpsot='nmcli dev wifi hotspot ifname wlan0 ssid wiefie password "peepeepoopoo"' -- cgit v1.2.3