big changes boi

This commit is contained in:
2025-08-16 11:35:38 -07:00
parent 4b9f500923
commit 6936354b97
15 changed files with 143 additions and 15 deletions

View File

@@ -2,9 +2,10 @@
### MONITORS ### ### MONITORS ###
################ ################
monitor= HDMI-A-1, 3840x2160, 2560x0, 1.5 monitor=HDMI-A-1,3840x2160,0x0,1.5
monitor= DP-1, 2560x2880, 0x0, 2.0 monitor=DP-2,2560x2880,2560x0,2.0
monitor= eDP-1, 1920x1200, 0x0, 1.0 #monitor=DP-1,2560x2880,0x0,2.0
monitor=eDP-1,1920x1200,6400x0,1.0
################### ###################
### MY PROGRAMS ### ### MY PROGRAMS ###
@@ -160,15 +161,14 @@ device {
$mainMod = SUPER # Sets "Windows" key as main modifier $mainMod = SUPER # Sets "Windows" key as main modifier
bind = $mainMod, Return, exec, $terminal bind = $mainMod, Return, exec, $terminal
bind = $mainMod SHIFT, Q, killactive, bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod, M, exit, #bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager bind = $mainMod, F, exec, $fileManager
bind = $mainMod, V, togglefloating, bind = $mainMod, V, togglefloating,
bind = $mainMod, D, exec, $menu bind = $mainMod, D, exec, $menu
bind = $mainMod, P, pseudo, # dwindle bind = $mainMod SHIFT, P, pseudo, # dwindle
#bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod SHIFT, S, togglesplit, # dwindle
# Move focus with mainMod + arrow keys # Move focus with mainMod + arrow keys
bind = $mainMod, h, movefocus, l bind = $mainMod, h, movefocus, l
@@ -243,7 +243,6 @@ bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous bindl = , XF86AudioPrev, exec, playerctl previous
# Screenshot (Grimshot) # Screenshot (Grimshot)
# Captures the currently active window # Captures the currently active window
bind = $mainMod, g, exec, grimshot save active 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 # Allows manually selecting a single window
bind = $mainMod CTRL, g, exec, grimshot save 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 ### ### WINDOWS AND WORKSPACES ###
############################## ##############################

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -15,4 +15,4 @@
/* Import color-scheme from `colors` directory */ /* Import color-scheme from `colors` directory */
@import "~/.config/rofi/colors/onedark.rasi" @import "~/.config/rofi/colors/gruvbox.rasi"

View File

@@ -15,4 +15,4 @@
/* Import color-scheme from `colors` directory */ /* Import color-scheme from `colors` directory */
@import "~/.config/rofi/colors/onedark.rasi" @import "~/.config/rofi/colors/gruvbox.rasi"

View File

@@ -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"

11
.local/bin/emoji_insert.sh Executable file
View File

@@ -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"

View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/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 if [ -n "$entry" ]; then
username=$(gopass show "$entry" | grep '^username:' | cut -d' ' -f2-) username=$(gopass show "$entry" | grep '^username:' | cut -d' ' -f2-)

View File

@@ -1,8 +1,7 @@
#!/bin/sh #!/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 if [ -n "$entry" ]; then
gopass show -c "$entry" 2>/dev/null || notify-send "Gopass Error" "Failed to copy: $entry" gopass show -c "$entry" 2>/dev/null || notify-send "Gopass Error" "Failed to copy: $entry"
fi fi

View File

@@ -1,6 +1,6 @@
#!/bin/sh #!/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 [ -n "$entry" ]; then
if gopass show -c "$entry" username 2>/dev/null; then if gopass show -c "$entry" username 2>/dev/null; then

View File

@@ -1 +1,8 @@
export ZDOTDIR="$HOME/.config/zsh" 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