Compare commits

...

4 Commits

Author SHA1 Message Date
a084750335 Redirect find errors to /dev/null 2023-06-05 01:46:30 +01:00
b19ab6990b Add vimtex 2023-06-05 01:44:48 +01:00
570189f87c Add window title for alacritty. 2023-06-05 01:39:37 +01:00
9e5180ceec Update sway config 2023-06-05 01:29:47 +01:00
4 changed files with 15 additions and 9 deletions

View File

@ -28,3 +28,6 @@ font:
style: Bold Italic style: Bold Italic
size: 11.0 size: 11.0
window:
title: Terminal

View File

@ -43,4 +43,6 @@ return require('packer').startup(function(use)
{'L3MON4D3/LuaSnip'}, -- Required {'L3MON4D3/LuaSnip'}, -- Required
} }
} }
use 'lervag/vimtex'
end) end)

View File

@ -7,7 +7,7 @@
# directory. # directory.
goto() goto()
{ {
path=$(find $1 | fzf) path=$(find $1 2> /dev/null | fzf)
[ -f "$path" ] && path=$(dirname "$path") [ -f "$path" ] && path=$(dirname "$path")
cd "$path" cd "$path"
} }
@ -15,7 +15,7 @@ goto()
# Quickly find and edit a file within ~/.config or ~/Documents # Quickly find and edit a file within ~/.config or ~/Documents
cfg() cfg()
{ {
file=$(find $HOME/.config $HOME/Documents -type f | fzf) file=$(find $HOME/.config $HOME/Documents -type f 2> /dev/null | fzf)
[ -z "$file" ] && return [ -z "$file" ] && return
$EDITOR "$file" $EDITOR "$file"
} }
@ -24,7 +24,7 @@ cfg()
# session there with the name of the directory. # session there with the name of the directory.
ts() ts()
{ {
dir=$(find -L $HOME/.config $HOME/Documents -type d | fzf) dir=$(find -L $HOME/.config $HOME/Documents -type d 2> /dev/null | fzf)
[ -z "$dir" ] && return [ -z "$dir" ] && return
tmux new -s $(basename "$dir") -c "$dir" tmux new -s $(basename "$dir") -c "$dir"
} }

View File

@ -294,10 +294,10 @@ bindsym $mod+g mode "gaming"
font pango:$font font pango:$font
titlebar_padding 3 titlebar_padding 3
bar { bar {
position top position bottom
#gaps 20 900 #gaps 20 900
#mode hide mode hide
output $mon1 output $mon1
# When the status_command prints a new line to stdout, swaybar updates. # When the status_command prints a new line to stdout, swaybar updates.
@ -338,12 +338,13 @@ smart_gaps inverse_outer
gaps inner 2 gaps inner 2
default_border pixel 3 default_border pixel 3
smart_borders on
# #
# Startup programs: # Startup programs:
# #
exec wayland-run-on-new-display set-correct-monitor 1920+0 exec wayland-run-on-new-display set-correct-monitor 1920+0
exec gentoo-pipewire-launcher &> $HOME/.config/pipewire/pipewire.log exec gentoo-pipewire-launcher restart &> $HOME/.config/pipewire/pipewire.log
exec dunst exec dunst
exec wlsunset -l 55.0 -L -1.6 exec wlsunset -l 55.0 -L -1.6
@ -372,7 +373,7 @@ for_window [class="^.*"] inhibit_idle fullscreen
for_window [class="WebCord"] inhibit_idle focus for_window [class="WebCord"] inhibit_idle focus
for_window [app_id="org.jellyfin.jellyfinmediaplayer"] inhibit_idle focus for_window [app_id="org.jellyfin.jellyfinmediaplayer"] inhibit_idle focus
# Floating windows # Floating windows
for_window [title="^Firefox — Sharing Indicator$"] floating enable, move position 50ppt 0px; for_window [title="^Firefox — Sharing Indicator$"] floating enable, move position 50ppt 0px, move container to workspace trash;
for_window [class="^Steam$"] floating enable for_window [class="^Steam$"] floating enable
for_window [class="^steamwebhelper$"] floating enable for_window [class="^steamwebhelper$"] floating enable
for_window [class="^Steam$" title="^Steam$"] floating disable for_window [class="^Steam$" title="^Steam$"] floating disable