This commit is contained in:
tavo 2025-09-20 17:41:35 -06:00
parent cd27cb3ca6
commit d1c30ce73d
9 changed files with 1743 additions and 119 deletions

1630
emoji Normal file

File diff suppressed because it is too large Load diff

139
i3/config
View file

@ -1,67 +1,28 @@
# Preferences set $term alacritty
#output * { set $filemgr thunar
# bg ~/.config/backgrounds/default.jpg fill set $browser firefox
#}
#output HDMI-A-1 pos 0 0 set $col_nb #1e2326
set $col_nf #374145
set $col_sb #7fbbb3
set $col_sf #1e2326
#input type:touchpad { set $font pango:JetBrainsMono Medium 8
# natural_scroll enabled
# dwt disabled
# tap enabled
#}
#input type:pointer {
# accel_profile flat
#}
#input type:keyboard {
# xkb_layout latam,us
# xkb_options grp:win_space_toggle
# repeat_delay 300
# repeat_rate 70
#}
#set $opacity 0.9
smart_gaps on
hide_edge_borders smart
set $mod Mod4 set $mod Mod4
floating_modifier $mod
set $alt Mod1 set $alt Mod1
set $left h set $left h
set $down j set $down j
set $up k set $up k
set $right l set $right l
# -
set $term alacritty
set $menu exec $(~/.config/scripts/menu/menu run "Run:")
set $menu-input ~/.config/scripts/menu/menu-input
set $menu-output ~/.config/scripts/menu/menu-output
set $menu-copy-bookmark ~/.config/scripts/menu/menu-copy-bookmark
set $passmgr ~/.config/scripts/dwm/dwmpass
set $passotp ~/.config/scripts/dwm/dwmotp
set $prtsc exec ~/.config/scripts/prtsc
set $filemgr thunar
set $browser firefox
# -
# -
set $col_fg #7a8478
set $col_bg #121212
set $col_ac #606060
# Keybinds
floating_modifier $mod
# -
bindsym $mod+space exec setxkbmap-next bindsym $mod+space exec setxkbmap-next
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+r exec $menu bindsym $mod+r exec $(menu run "")
bindsym $mod+Shift+p exec $passmgr
bindsym $mod+Shift+o exec $passotp
bindsym $mod+e exec $filemgr bindsym $mod+e exec $filemgr
bindsym $mod+w exec $browser bindsym $mod+w exec $browser
bindsym $mod+b exec $menu-copy-bookmark bindsym $mod+b exec menu-start
bindsym $mod+i exec $menu-input
bindsym $mod+o exec $menu-output
bindsym XF86AudioRaiseVolume exec volup bindsym XF86AudioRaiseVolume exec volup
bindsym XF86AudioLowerVolume exec voldown bindsym XF86AudioLowerVolume exec voldown
bindsym XF86AudioMute exec mute bindsym XF86AudioMute exec mute
@ -71,29 +32,8 @@ bindsym Shift+XF86AudioMute exec micmute
bindsym XF86MonBrightnessUp exec brightup bindsym XF86MonBrightnessUp exec brightup
bindsym XF86MonBrightnessDown exec brightdown bindsym XF86MonBrightnessDown exec brightdown
bindsym Print exec $prtsc bindsym Print exec $prtsc
# - #bindsym $mod+Shift+c exec clipman pick -t wofi -T'--show dmenu -I'
bindsym $mod+Shift+q reload
bindsym $mod+p exec menu-power
bindsym $mod+c kill
# -
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# -
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# -
bindsym $mod+1 workspace " 1 " bindsym $mod+1 workspace " 1 "
bindsym $mod+2 workspace " 2 " bindsym $mod+2 workspace " 2 "
bindsym $mod+3 workspace " 3 " bindsym $mod+3 workspace " 3 "
@ -104,46 +44,55 @@ bindsym $mod+Shift+2 move container to workspace " 2 "
bindsym $mod+Shift+3 move container to workspace " 3 " bindsym $mod+Shift+3 move container to workspace " 3 "
bindsym $mod+Shift+4 move container to workspace " 4 " bindsym $mod+Shift+4 move container to workspace " 4 "
bindsym $mod+Shift+5 move container to workspace " 5 " bindsym $mod+Shift+5 move container to workspace " 5 "
# -
bindsym $mod+comma workspace next_on_output bindsym $mod+comma workspace next_on_output
bindsym $mod+period workspace prev_on_output bindsym $mod+period workspace prev_on_output
# -
bindsym $mod+Shift+q reload
bindsym $mod+p exec menu-power
bindsym $mod+c kill
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
bindsym $mod+Shift+t layout toggle tabbed split bindsym $mod+Shift+t layout toggle tabbed split
bindsym $mod+f fullscreen bindsym $mod+f fullscreen
bindsym $mod+Shift+f floating toggle bindsym $mod+Shift+f floating toggle
bindsym $mod+Shift+b bar mode toggle bindsym $mod+Shift+b bar mode toggle
# -
#bindsym $mod+Shift+c exec clipman pick -t wofi -T'--show dmenu -I'
bindsym $mod+n split horizontal; layout tabbed bindsym $mod+n split horizontal; layout tabbed
bindsym $mod+s sticky toggle bindsym $mod+s sticky toggle
# Layout smart_gaps on
client.focused $col_fg $col_fg $col_bg $col_fg $col_fg hide_edge_borders smart
client.unfocused $col_bg $col_bg $col_ac $col_bg $col_bg client.focused $col_sb $col_sb $col_sf $col_nb $col_sb
client.unfocused $col_nf $col_nb $col_nf $col_nb $col_nb
default_border pixel 1 default_border pixel 1
#titlebar_border_thickness 2 font $font
#titlebar_padding 2
# gaps inner 5
font pango:JetBrainsMono Medium 8
bar { bar {
position bottom position bottom
font pango:JetBrainsMono Medium 8 font $font
status_command ~/.config/scripts/i3/i3status status_command ~/.config/scripts/i3/i3status
tray_padding 4 tray_padding 4
colors { colors {
background #00000000 background #000000
statusline #7a847890 statusline $col_nf
focused_workspace $col_fg $col_fg $col_bg focused_workspace $col_sb $col_sb $col_sf
inactive_workspace #00000000 #00000000 #ebdbb270 inactive_workspace $col_nf $col_nb $col_nf
} }
} }
for_window [class="Display-im*"] floating enable for_window [class="Display-im*"] floating enable
# Autostart
#exec wl-paste -t text --watch clipman store
#exec wl-paste -p -t text --watch clipman store --histpath="~/.local/share/clipman.json"
#exec_always dbus-update-activation-environment WAYLAND_DISPLAY
#exec_always --no-startup-id /usr/libexec/xdg-desktop-portal -r

View file

@ -47,7 +47,6 @@ zathura-ps
obs-studio obs-studio
# Tools # Tools
neovim
curl curl
fzf fzf
eza eza
@ -73,6 +72,7 @@ lazygit
shellcheck shellcheck
jq jq
android-sdk-platform-tools android-sdk-platform-tools
scrot
# Appearance # Appearance
gnome-themes-extra gnome-themes-extra

View file

@ -2,13 +2,13 @@
MENU_BACKEND="${MENU_BACKEND:-menu_bemenu}" MENU_BACKEND="${MENU_BACKEND:-menu_bemenu}"
# Configuration # Configuration
font="JetbrainsMono" font="JetbrainsMono Medium"
font_size="10" font_size="12"
col_white="#ebdbb2" # White col_white="#ebdbb2" # White
col_nb="#1e2326" # Normal background
col_nf="#374145" # Normal foreground
col_sb="#7fbbb3" # Selected background col_sb="#7fbbb3" # Selected background
col_sf="#1e2326" # Selected foreground col_sf="#1e2326" # Selected foreground
col_nb="#1e2326" # Normal background
col_nf="#374145" # Normal foreground
_help() { _help() {
printf "Usage: menu [run/dmenu/pass] [prompt]\nDefault backend: %s\n" "$MENU_BACKEND" printf "Usage: menu [run/dmenu/pass] [prompt]\nDefault backend: %s\n" "$MENU_BACKEND"
@ -22,6 +22,7 @@ menu_bemenu() {
-l 10 \ -l 10 \
-W 0.4 \ -W 0.4 \
-B 2 \ -B 2 \
-H 30 \
--cw 1 \ --cw 1 \
--tb $col_sb \ --tb $col_sb \
--tf $col_sf \ --tf $col_sf \

View file

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# Open URLs from bookmarks file # Echo URI from bookmark's name
BOOKMARKS="$HOME/Documents/bookmarks.json" BOOKMARKS="$HOME/Documents/bookmarks.json"
_folders() { _folders() {
@ -28,14 +28,19 @@ _uri_from_title() {
} }
opt="$1" opt="$1"
output=
case "$opt" in case "$opt" in
folders) folders)
folder="$(_folders | menu "dmenu" "Folder:")" folder="$(_folders | menu "dmenu" "Folder:")"
_bookmarks_in_folder "$folder" output="$(_bookmarks_in_folder "$folder")"
;; ;;
*) *)
title="$(_bookmarks | menu "dmenu" "Bookmark:")" title="$(_bookmarks | menu "dmenu" "Bookmark:")"
_uri_from_title "$title" output="$(_uri_from_title "$title")"
;; ;;
esac esac
if [ -n "$output" ]; then
echo "$output"
fi

7
scripts/menu/menu-copy-emoji Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
e="$(menu-emoji)"
if [ -n "$e" ]; then
printf '%s' "$e" | clip
fi

View file

@ -1,19 +1,16 @@
#!/bin/sh #!/bin/sh
emoji="$HOME/.config/emoji"
# Custom version of Luke Smith's if ! [ -f "$emoji" ]; then
# famous "get a menu of emojis to copy" script. echo "no emoji file"
exit 1
# Get user selection via menu from emoji file. fi
chosen=$(cut -d ';' -f1 ~/.local/share/chars/* | menu "Emoji:" | sed "s/ .*//")
chosen="$(while read line; do
# Exit if none chosen. echo "$line"
[ -z "$chosen" ] && exit done <"$emoji" | menu dmenu)"
chosen="${chosen%% *}"
# If you run this command with an argument, it will automatically insert the
# character. Otherwise, show a message that the emoji has been copied. if [ -n "$chosen" ]; then
if [ -n "$1" ]; then echo "$chosen"
xdotool type "$chosen"
else
printf "$chosen" | xsel -ib
notify-send "'$chosen' copied to clipboard." &
fi fi

View file

@ -0,0 +1,7 @@
#!/bin/sh
bm="$(menu-bookmarks)"
if [ -n "$bm" ]; then
xdg-open "$bm"
fi

28
scripts/menu/menu-start Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
options="󰀻:Run 󰌾:Password 󰦯:OTP 󰕾:Output 󰍬:Input 󰱱:Emoji 󰃀:Open_Bookmark 󰆏:Copy_Bookmark 󰐥:Power"
separator=" "
chosen="$(for o in $options; do
printf '%s%s%s\n' "${o%%:*}" "$separator" "${o##*:}"
done | menu dmenu '')"
chosen="${chosen#*"$separator"}"
case "$chosen" in
Run) menu "run" "" ;;
Password) menu-pass ;;
OTP) menu-otp ;;
Output) menu-output ;;
Input) menu-input ;;
Emoji) menu-copy-emoji ;;
Open_Bookmark) menu-open-bookmark ;;
Copy_Bookmark) menu-copy-bookmark ;;
Power) menu-power ;;
*) ;;
esac