update prep

This commit is contained in:
ackman678
2024-04-17 13:58:46 -04:00
parent bf837a53f5
commit 22c904419a
3 changed files with 44 additions and 33 deletions

View File

@@ -10,7 +10,8 @@
# fi # fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
XKB_DEFAULT_LAYOUT=us exec sway exec sway
#exec sway -d 2> ~/sway.log
fi fi
# if [[ -z $DISPLAY && $(tty) == /dev/tty1 && $XDG_SESSION_TYPE == tty ]]; then # if [[ -z $DISPLAY && $(tty) == /dev/tty1 && $XDG_SESSION_TYPE == tty ]]; then

View File

@@ -75,7 +75,7 @@ source /usr/share/fzf/key-bindings.bash
source /usr/share/fzf/completion.bash source /usr/share/fzf/completion.bash
#use ripgrep with fzf #use ripgrep with fzf
export FZF_DEFAULT_COMMAND='rg -i --files --glob "!.git/*"' #export FZF_DEFAULT_COMMAND='rg -i --files --glob "!.git/*"'
#export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"' #export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
#bat instead of cat #bat instead of cat
@@ -93,6 +93,8 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
#bind ctrl-p to text editor #bind ctrl-p to text editor
alias fzfcmd='fzf --bind "enter:execute($EDITOR {})"' alias fzfcmd='fzf --bind "enter:execute($EDITOR {})"'
bind -x '"\C-p": fzfcmd;' bind -x '"\C-p": fzfcmd;'
#---end fzf setup---
#setup bash history #setup bash history
export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*" export HISTIGNORE="ls*:cd*:exit:ps*:history:pass*:gpg*:start*"
@@ -105,6 +107,7 @@ export HISTCONTROL=ignoreboth:erasedups
shopt -s histappend shopt -s histappend
# export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S | ' # export HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S | '
#
# if [ -d "$HOME/bin/Fiji.app" ]; then # if [ -d "$HOME/bin/Fiji.app" ]; then
# alias fiji="~/bin/Fiji.app/ImageJ-linux64" # alias fiji="~/bin/Fiji.app/ImageJ-linux64"
# fi # fi

View File

@@ -18,12 +18,13 @@ set $alt Mod1
# Your preferred terminal emulator # Your preferred terminal emulator
# set $term urxvt # set $term urxvt
set $term alacritty set $term alacritty
# # set $term foot
# Your preferred application launcher # Your preferred application launcher
# set $menu dmenu_run
# set $menu bemenu-run
# Note: it's recommended that you pass the final command to sway # Note: it's recommended that you pass the final command to sway
set $menu dmenu_path | dmenu | xargs swaymsg exec -- #set $menu dmenu_path | dmenu | xargs swaymsg exec --
set $menu dmenu_path | wmenu | xargs swaymsg exec --
bindsym $mod+d exec $menu
bindsym --release $mod+z exec 'fn=$(date "+%Y-%m-%d-%H%M%S").png; grim -g "$(slurp)" $fn; ~/bin/mv2figs.sh $fn' bindsym --release $mod+z exec 'fn=$(date "+%Y-%m-%d-%H%M%S").png; grim -g "$(slurp)" $fn; ~/bin/mv2figs.sh $fn'
# bindsym --release $mod+z exec scrot '%Y-%m-%d_%H%M%S_$wx$h.png' -e '~/bin/mv2figs.sh $f' # bindsym --release $mod+z exec scrot '%Y-%m-%d_%H%M%S_$wx$h.png' -e '~/bin/mv2figs.sh $f'
@@ -41,6 +42,7 @@ bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute #bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
#bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute #bindsym XF86AudioRaiseVolume exec amixer -q set Master 2dB+ unmute
#bindsym XF86AudioMute exec amixer -q set Master toggle #bindsym XF86AudioMute exec amixer -q set Master toggle
#display brightness #display brightness
#bindsym XF86MonBrightnessDown exec brightnessctl set 5%- #bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
#bindsym XF86MonBrightnessUp exec brightnessctl set +5% #bindsym XF86MonBrightnessUp exec brightnessctl set +5%
@@ -51,12 +53,20 @@ font pango:monospace 8
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
# output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# output * bg #000000 solid_color
#Apple trackpad input device id: #Apple trackpad input device id:
input "1452:657:bcm5974" { input "1452:657:bcm5974" {
tap enabled tap enabled
} }
#typematic delay and rate
input type:keyboard {
xkb_layout us
repeat_delay 600
repeat_rate 60
}
# You can get the names of your inputs by running: swaymsg -t get_inputs # You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section. # Read `man 5 sway-input` for more information about this section.
@@ -81,14 +91,6 @@ bindsym $mod+Return exec $term
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec $menu
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
## change focus
# bindsym $mod+j focus left # bindsym $mod+j focus left
# bindsym $mod+k focus down # bindsym $mod+k focus down
# bindsym $mod+l focus up # bindsym $mod+l focus up
@@ -144,9 +146,6 @@ bindsym $mod+space focus mode_toggle
# focus the parent container # focus the parent container
bindsym $mod+a focus parent bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on. # Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places. # We use variables to avoid repeating the names in multiple places.
set $ws1 "1" set $ws1 "1"
@@ -196,10 +195,10 @@ bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut.
mode "resize" { mode "resize" {
# These bindings trigger as soon as you enter the resize mode # These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width. # Pressing left will shrink the window width.
# Pressing right will grow the windows width. # Pressing right will grow the window width.
# Pressing up will shrink the windows height. # Pressing up will shrink the window height.
# Pressing down will grow the windows height. # Pressing down will grow the window height.
bindsym j resize shrink width 10 px or 10 ppt bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt
@@ -311,6 +310,14 @@ bindsym $mod+Shift+m border pixel 1
# focus windows using only keyboard # focus windows using only keyboard
focus_follows_mouse no focus_follows_mouse no
# set cursor theme and size
#seat seat0 xcursor_theme Simple-and-soft 24
#seat seat0 xcursor_theme Adwaita 12
#hide mouse cursor. Either after msec of inactivity or whenever typing
seat seat0 hide_cursor 2000
# seat seat0 hide_cursor when-typing enable
#Can use the following with custom workspace save files to reload layouts #Can use the following with custom workspace save files to reload layouts
#exec --no-startup-id "i3-msg 'workspace 1; append_layout ~/.config/i3/workspace-1.json'" #exec --no-startup-id "i3-msg 'workspace 1; append_layout ~/.config/i3/workspace-1.json'"
@@ -318,4 +325,4 @@ include /etc/sway/config.d/*
# exec xrdb -load ~/.Xresources # exec xrdb -load ~/.Xresources
# exec mako # exec mako
exec dunst exec dunst
exec_always "systemctl --user import-environment; systemctl --user start sway-session.target" #exec_always "systemctl --user import-environment; systemctl --user start sway-session.target"