This commit is contained in:
Daniel Flanagan 2020-07-02 11:17:42 -05:00
parent 6597e6816e
commit cf2116b197
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
7 changed files with 29 additions and 8 deletions

View File

@ -120,6 +120,7 @@ bindsym $mod+Control+Alt+k gaps vertical current plus 5
bindsym $mod+Control+equal gaps inner current set $default_gap
bindsym $mod+Control+Shift+l exec swaylock
bindsym $mod+Control+Shift+s exec lock-and-sleep
mode "resize" {
bindsym $left resize shrink width 10 px or 10 ppt

View File

@ -77,7 +77,7 @@ bspwm.start_bar: 1
! polybar
polybar.primary_font: mono_font:pixelsize=bar_font_size;1
polybar.secondary_font: icon_font:style=Regular:pixelsize=icon_font_size;1
polybar.display_monitor: HDMI-1
polybar.display_monitor: DisplayPort-0
polybar.bottom_of_display: 1
polybar.margin: window_margin
polybar.storage_volume: /

View File

@ -188,6 +188,11 @@ function chat
env WEECHAT_PASSPHRASE=$pass weechat
end
function rgl
# ripgrep | less
rg --color always $argv | less -r
end
# grep aliases
alias rg "rg --text"
alias grep "rg"

View File

@ -16,6 +16,7 @@ set -Ux _JAVA_AWT_WM_NONREPARENTING 1
set -Ux TERMINAL kitty
set -Ux BROWSER firefox-developer-edition
set -Ux ERL_AFLAGS "-kernel shell_history enabled -kernel shell_history_file_bytes 1024000" # iex history
set -Ux LESS "-r"
# set our EDITOR to neovim if we've got it
set -Ux EDITOR vim
@ -64,4 +65,3 @@ mkdir -p $NOTES_PATH $USER_LOGS_PATH $SCROTS_PATH
if has_command tmux && string match -v -q '*tmux*' $TERM && string match -v -q '*screen*' $TERM
tmux attach -t default || tmux new -s default
end

8
bin/lock-and-sleep Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
if is_wayland; then
swaylock &
else
dm-tool switch-to-greeter &
fi
sudo systemctl suspend

View File

@ -3,10 +3,10 @@ workspace 1 output DP-1
workspace 2 output DP-1
workspace 3 output DP-1
# H-format
output DP-1 res 3440x1440@100Hz pos 1440 560
output DP-2 res 2560x1440@60Hz pos 0 0 transform 90
output DP-4 res 2560x1440@60Hz pos 4880 0 transform 270
# --I format
# output DP-1 res 3440x1440@100Hz pos 2560 720
# output DP-2 res 2560x1440@60Hz pos 0 0
# output DP-4 res 2560x1440@60Hz pos 6000 0 transform 270
workspace 4 output DP-2
workspace 5 output DP-2
workspace 6 output DP-2
@ -14,7 +14,14 @@ workspace 7 output DP-4
workspace 8 output DP-4
workspace 9 output DP-4
# iIi-format
# H format
output DP-1 res 3440x1440@100Hz pos 1440 560
output DP-2 res 2560x1440@60Hz pos 0 0 transform 90
output DP-3 res 2560x1440@60Hz pos 0 0 transform 90
output DP-4 res 2560x1440@60Hz pos 4880 0 transform 270
output DP-5 res 2560x1440@60Hz pos 4880 0 transform 270
# iIi format
# output DP-1 res 3440x1440@100Hz pos 1440 0 transform 90
# output DP-2 res 2560x1440@60Hz pos 0 0 transform 90
# output DP-4 res 2560x1440@60Hz pos 2880 0 transform 270

View File

@ -1,7 +1,7 @@
#define bar_font_size 12
# TODO: this needs fixing
polybar.primary_font: iosevka\-lyte:pixelsize=bar_font_size;1
bspwm.num_desktops_per_monitor: 4
bspwm.num_desktops_per_monitor: 3
bspwm.reverse_desktop_ordering: 0
bspwm.reverse_monitor_desktops: 0
polybar.display_monitor: DisplayPort-0