diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 5311445..317c96f 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -2,9 +2,10 @@ ### MONITORS ### ################ -monitor= HDMI-A-1, 3840x2160, 2560x0, 1.5 -monitor= DP-1, 2560x2880, 0x0, 2.0 -monitor= eDP-1, 1920x1200, 0x0, 1.0 +monitor=HDMI-A-1,3840x2160,0x0,1.5 +monitor=DP-2,2560x2880,2560x0,2.0 +#monitor=DP-1,2560x2880,0x0,2.0 +monitor=eDP-1,1920x1200,6400x0,1.0 ################### ### MY PROGRAMS ### @@ -160,15 +161,14 @@ device { $mainMod = SUPER # Sets "Windows" key as main modifier - bind = $mainMod, Return, exec, $terminal bind = $mainMod SHIFT, Q, killactive, -bind = $mainMod, M, exit, -bind = $mainMod, E, exec, $fileManager +#bind = $mainMod, M, exit, +bind = $mainMod, F, exec, $fileManager bind = $mainMod, V, togglefloating, bind = $mainMod, D, exec, $menu -bind = $mainMod, P, pseudo, # dwindle -#bind = $mainMod, J, togglesplit, # dwindle +bind = $mainMod SHIFT, P, pseudo, # dwindle +bind = $mainMod SHIFT, S, togglesplit, # dwindle # Move focus with mainMod + arrow keys bind = $mainMod, h, movefocus, l @@ -243,7 +243,6 @@ bindl = , XF86AudioPause, exec, playerctl play-pause bindl = , XF86AudioPlay, exec, playerctl play-pause bindl = , XF86AudioPrev, exec, playerctl previous - # Screenshot (Grimshot) # Captures the currently active window bind = $mainMod, g, exec, grimshot save active @@ -254,7 +253,20 @@ bind = $mainMod ALT, g, exec, grimshot save output # Allows manually selecting a single window bind = $mainMod CTRL, g, exec, grimshot save window +# Gopass password management +bind = $mainMod, y, exec, ~/.local/bin/pass_copy +bind = $mainMod, u, exec, ~/.local/bin/pass_user_copy +bind = $mainMod, p, exec, ~/.local/bin/pass_autofill +# Bookmarks +# Enter selected bookmark into target text field +bind = $mainMod, i, exec, ~/.local/bin/bookmark_insert_into_field.sh + +# Save bookmark +bind = $mainMod SHIFT, i, exec, ~/.local/bin/bookmark_save.sh + +# Emojis +bind = $mainMod SHIFT, e, exec, ~/.local/bin/emoji_insert.sh ############################## ### WINDOWS AND WORKSPACES ### ############################## diff --git a/.config/rofi/launchers.d/rofi_launcher_autofill.sh b/.config/rofi/launchers.d/rofi_launcher_autofill.sh new file mode 100755 index 0000000..12d3d44 --- /dev/null +++ b/.config/rofi/launchers.d/rofi_launcher_autofill.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya (adi1090x) +## Github : @adi1090x +# +## Rofi : Launcher (Modi Drun, Run, File Browser, Window) +# +## Available Styles +# +## style-1 style-2 style-3 style-4 style-5 +## style-6 style-7 style-8 style-9 style-10 +## style-11 style-12 style-13 style-14 style-15 + +dir="$HOME/.config/rofi/launchers/type-2" +theme='style-1' + +## Run +rofi -p "Autofill:" -dmenu -theme ${dir}/${theme}.rasi diff --git a/.config/rofi/launchers.d/rofi_launcher_bookmark_insert.sh b/.config/rofi/launchers.d/rofi_launcher_bookmark_insert.sh new file mode 100755 index 0000000..757bfe8 --- /dev/null +++ b/.config/rofi/launchers.d/rofi_launcher_bookmark_insert.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya (adi1090x) +## Github : @adi1090x +# +## Rofi : Launcher (Modi Drun, Run, File Browser, Window) +# +## Available Styles +# +## style-1 style-2 style-3 style-4 style-5 +## style-6 style-7 style-8 style-9 style-10 +## style-11 style-12 style-13 style-14 style-15 + +dir="$HOME/.config/rofi/launchers/type-4" +theme='style-4' + +## Run +rofi -p "Bookmark:" -dmenu -theme ${dir}/${theme}.rasi diff --git a/.config/rofi/launchers.d/rofi_launcher_emoji.sh b/.config/rofi/launchers.d/rofi_launcher_emoji.sh new file mode 100755 index 0000000..b79f8fa --- /dev/null +++ b/.config/rofi/launchers.d/rofi_launcher_emoji.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya (adi1090x) +## Github : @adi1090x +# +## Rofi : Launcher (Modi Drun, Run, File Browser, Window) +# +## Available Styles +# +## style-1 style-2 style-3 style-4 style-5 +## style-6 style-7 style-8 style-9 style-10 +## style-11 style-12 style-13 style-14 style-15 + +dir="$HOME/.config/rofi/launchers/type-4" +theme='style-4' + +## Run +rofi -p "Emoji:" -dmenu -theme ${dir}/${theme}.rasi diff --git a/.config/rofi/launchers.d/rofi_launcher_pass.sh b/.config/rofi/launchers.d/rofi_launcher_pass.sh new file mode 100755 index 0000000..f57607d --- /dev/null +++ b/.config/rofi/launchers.d/rofi_launcher_pass.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya (adi1090x) +## Github : @adi1090x +# +## Rofi : Launcher (Modi Drun, Run, File Browser, Window) +# +## Available Styles +# +## style-1 style-2 style-3 style-4 style-5 +## style-6 style-7 style-8 style-9 style-10 +## style-11 style-12 style-13 style-14 style-15 + +dir="$HOME/.config/rofi/launchers/type-2" +theme='style-1' + +## Run +rofi -p "Password:" -dmenu -theme ${dir}/${theme}.rasi diff --git a/.config/rofi/launchers.d/rofi_launcher_username.sh b/.config/rofi/launchers.d/rofi_launcher_username.sh new file mode 100755 index 0000000..18c3560 --- /dev/null +++ b/.config/rofi/launchers.d/rofi_launcher_username.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya (adi1090x) +## Github : @adi1090x +# +## Rofi : Launcher (Modi Drun, Run, File Browser, Window) +# +## Available Styles +# +## style-1 style-2 style-3 style-4 style-5 +## style-6 style-7 style-8 style-9 style-10 +## style-11 style-12 style-13 style-14 style-15 + +dir="$HOME/.config/rofi/launchers/type-2" +theme='style-1' + +## Run +rofi -p "Username:" -dmenu -theme ${dir}/${theme}.rasi diff --git a/.config/rofi/launchers/type-2/shared/colors.rasi b/.config/rofi/launchers/type-2/shared/colors.rasi index 103ad63..a522d88 100644 --- a/.config/rofi/launchers/type-2/shared/colors.rasi +++ b/.config/rofi/launchers/type-2/shared/colors.rasi @@ -15,4 +15,4 @@ /* Import color-scheme from `colors` directory */ -@import "~/.config/rofi/colors/onedark.rasi" +@import "~/.config/rofi/colors/gruvbox.rasi" diff --git a/.config/rofi/launchers/type-4/shared/colors.rasi b/.config/rofi/launchers/type-4/shared/colors.rasi index 103ad63..a522d88 100644 --- a/.config/rofi/launchers/type-4/shared/colors.rasi +++ b/.config/rofi/launchers/type-4/shared/colors.rasi @@ -15,4 +15,4 @@ /* Import color-scheme from `colors` directory */ -@import "~/.config/rofi/colors/onedark.rasi" +@import "~/.config/rofi/colors/gruvbox.rasi" diff --git a/.local/bin/bookmark_insert_into_field.sh b/.local/bin/bookmark_insert_into_field.sh new file mode 100755 index 0000000..cb475c5 --- /dev/null +++ b/.local/bin/bookmark_insert_into_field.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +set -euo pipefail + +BOOKMARKS="$HOME/.local/share/bookmarks/bookmarks" +LAUNCHER="$HOME/.config/rofi/launchers.d/rofi_launcher_bookmark_insert.sh" + +sel="$(grep -v '^#' "$BOOKMARKS" | "$LAUNCHER" | cut -d ' ' -f1)" + +[ -n "$sel" ] && wtype "$sel" diff --git a/.local/bin/bookmark_insert b/.local/bin/bookmark_save.sh similarity index 100% rename from .local/bin/bookmark_insert rename to .local/bin/bookmark_save.sh diff --git a/.local/bin/emoji_insert.sh b/.local/bin/emoji_insert.sh new file mode 100755 index 0000000..80fd854 --- /dev/null +++ b/.local/bin/emoji_insert.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +set -euo pipefail + +EMOJIS_DIR="$HOME/.local/share/chars" +LAUNCHER="$HOME/.config/rofi/launchers.d/rofi_launcher_emoji.sh" + +sel="$(cat "$EMOJIS_DIR"/emojis | + "$LAUNCHER" | + awk '{print $1}')" + +[ -n "${sel:-}" ] && exec wtype "$sel" diff --git a/.local/bin/pass_autofill b/.local/bin/pass_autofill index eba7f81..594b89d 100755 --- a/.local/bin/pass_autofill +++ b/.local/bin/pass_autofill @@ -1,6 +1,6 @@ #!/bin/sh -entry=$(gopass list --flat | bemenu -p Autofill: -l 25 -c -M 500 --fn 'Monospace 14' --tf '#ff4e00' --ff '#dbc077' --hf '#ff4e00') +entry=$(gopass list --flat | ~/.config/rofi/launchers.d/rofi_launcher_autofill.sh) if [ -n "$entry" ]; then username=$(gopass show "$entry" | grep '^username:' | cut -d' ' -f2-) diff --git a/.local/bin/pass_copy b/.local/bin/pass_copy index 7da4912..f37db4a 100755 --- a/.local/bin/pass_copy +++ b/.local/bin/pass_copy @@ -1,8 +1,7 @@ #!/bin/sh -entry=$(gopass list --flat | bemenu -p Password: -l 25 -c -M 500 --fn 'Monospace 14' --tf '#ff4e00' --ff '#dbc077' --hf '#ff4e00') +entry=$(gopass list --flat | ~/.config/rofi/launchers.d/rofi_launcher_pass.sh) if [ -n "$entry" ]; then gopass show -c "$entry" 2>/dev/null || notify-send "Gopass Error" "Failed to copy: $entry" fi - diff --git a/.local/bin/pass_user_copy b/.local/bin/pass_user_copy index 0a23be5..a1c7e5e 100755 --- a/.local/bin/pass_user_copy +++ b/.local/bin/pass_user_copy @@ -1,6 +1,6 @@ #!/bin/sh -entry=$(gopass list --flat | bemenu -p Username: -l 25 -c -M 500 --fn 'Monospace 14' --tf '#ff4e00' --ff '#dbc077' --hf '#ff4e00') +entry=$(gopass list --flat | ~/.config/rofi/launchers.d/rofi_launcher_username.sh) if [ -n "$entry" ]; then if gopass show -c "$entry" username 2>/dev/null; then diff --git a/.zshenv b/.zshenv index 826714b..01ec92a 100644 --- a/.zshenv +++ b/.zshenv @@ -1 +1,8 @@ export ZDOTDIR="$HOME/.config/zsh" + +HISTFILE=$ZDOTDIR/.zsh_history +HISTSIZE=10000 +SAVEHIST=10000 + +# Options to make history nicer +setopt HIST_IGNORE_DUPS HIST_IGNORE_SPACE