Skip to content

Commit

Permalink
Fix sway screen sharing
Browse files Browse the repository at this point in the history
Signed-off-by: Petro Mozil <mozil.petryk@gmail.com>
  • Loading branch information
pmozil committed May 8, 2024
1 parent 19747c4 commit 821f161
Showing 4 changed files with 21 additions and 17 deletions.
16 changes: 10 additions & 6 deletions data/bashrc
Original file line number Diff line number Diff line change
@@ -2,15 +2,16 @@
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

shopt -s autocd

function smart_cd() {
if [[ $# -eq 1 ]]; then mkdir -p $1; fi
cd $1
}

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

shopt -s autocd

# Aliases
alias doas="doas --"
@@ -35,16 +36,19 @@ YELLOW="\[\033[1;33m\]"
PS1="[\u@\h $YELLOW\W$NORMAL]$ $RESET"

# Exports
export ALL_JOBS="-j $(($(nproc) + 1))"
export LIBSEAT_BASKEND=logind
export GTK_THEME="gruveye"
export LANG=en_US.UTF-8
export PATH=$PATH:$HOME/.local/bin/:$HOME/.local/bin/scripts/:$HOME/.cargo/bin/
export CARGO_NET_GIT_FETCH_WITH_CLI="true"
export EDITOR=vim
export MOZ_ENABLE_WAYLAND=1
export GDK_BACKEND=wayland
export XDG_RUNTIME_DIR=/run/user/$(id -u)
export XDG_CURRENT_DESKTOP=Unity

export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP="${XDG_CURRENT_DESKTOP:-sway}"
export MOZ_ENABLE_WAYLAND=1

mkdir -p $XDG_RUNTIME_DIR
chmod 0700 $XDG_RUNTIME_DIR
2 changes: 1 addition & 1 deletion data/nvim/configs/conform.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require("conform").formatters["clang-format"] = {
-- command = "clang-gormat",
command = "clang-gormat",
prepend_args = { "-style=file:" .. os.getenv("HOME") .. "/.config/clang-format/conf" },
}

14 changes: 7 additions & 7 deletions data/nvim/plugins/init.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
return {
{
"stevearc/conform.nvim",
event = { "BufReadPre", "BufNewFile" },
config = function()
require "configs.conform"
end,
},
-- {
-- "stevearc/conform.nvim",
-- event = { "BufReadPre", "BufNewFile" },
-- config = function()
-- require "configs.conform"
-- end,
-- },

-- These are some examples, uncomment them if you want to see them work!
-- {
6 changes: 3 additions & 3 deletions data/vimrc
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ set cinoptions=(0
" Allow tabs in Makefiles.
autocmd FileType make,automake set noexpandtab shiftwidth=8 softtabstop=8
" Trailing whitespace and tabs are forbidden, so highlight them.
" highlight ForbiddenWhitespace ctermbg=red guibg=red
" match ForbiddenWhitespace /\s\+$\|\t/
highlight ForbiddenWhitespace ctermbg=red guibg=red
match ForbiddenWhitespace /\s\+$\|\t/
" Do not highlight spaces at the end of line while typing on that line.
" autocmd InsertEnter * match ForbiddenWhitespace /\t\|\s\+\%#\@<!$/
autocmd InsertEnter * match ForbiddenWhitespace /\t\|\s\+\%#\@<!$/

0 comments on commit 821f161

Please sign in to comment.