summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradamstuck <adam.moloney.stuck@gmail.com>2021-10-11 11:10:37 +0200
committeradamstuck <adam.moloney.stuck@gmail.com>2021-10-11 11:10:37 +0200
commitd7d28a71cec270d00742c9037a109ffa4040933c (patch)
tree4fec860de49238bfa81250de0127cb889b973f8d
parentb436f74ce94928b13cd6d52799d0e04403af14e2 (diff)
Updated laptop to be like main. Still missing nvim setup update.
-rw-r--r--.bash_profile7
-rw-r--r--.config/alacritty/alacritty.yml3
-rw-r--r--.config/i3/config1
-rwxr-xr-x.config/i3/custom/screenshot5
-rw-r--r--.config/picom/picom.conf3
-rw-r--r--.profile27
-rw-r--r--.vimrc171
7 files changed, 16 insertions, 201 deletions
diff --git a/.bash_profile b/.bash_profile
new file mode 100644
index 0000000..b82ed01
--- /dev/null
+++ b/.bash_profile
@@ -0,0 +1,7 @@
+#
+# ~/.bash_profile
+#
+
+[[ -f ~/.bashrc ]] && . ~/.bashrc
+
+[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
index 285dba0..a4a329a 100644
--- a/.config/alacritty/alacritty.yml
+++ b/.config/alacritty/alacritty.yml
@@ -316,8 +316,7 @@ font:
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
-#background_opacity: 1.0
-background_opacity: 0.9
+# background_opacity: 1.0
#colors:
# Default colors
# primary:
diff --git a/.config/i3/config b/.config/i3/config
index c60d279..16aa323 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -14,6 +14,7 @@ bindsym $mod+b exec --no-startup-id firefox
bindsym $mod+e exec --no-startup-id pcmanfm
bindsym $mod+f fullscreen toggle
bindsym $mod+c exec gnome-control-center --class=floating_window
+bindsym $mod+Shift+s exec --no-startup-id ~/.config/i3/custom/screenshot
# Rofi
bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons -drun-display-format {name}
diff --git a/.config/i3/custom/screenshot b/.config/i3/custom/screenshot
new file mode 100755
index 0000000..0e22b5d
--- /dev/null
+++ b/.config/i3/custom/screenshot
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+sleep 0.2
+scrot -sfe 'mv $f ~/Pictures/screenshots/'
+
diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf
index 496ac30..4f0d925 100644
--- a/.config/picom/picom.conf
+++ b/.config/picom/picom.conf
@@ -41,7 +41,8 @@ opacity-rule = [
"100:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_FULLSCREEN'",
"100:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_FULLSCREEN'",
"100:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_FULLSCREEN'",
- "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'"
+ "100:_NET_WM_STATE@[4]:32a = '_NET_WM_STATE_FULLSCREEN'",
+ "90:class_g = 'Alacritty' && !focused"
];
diff --git a/.profile b/.profile
deleted file mode 100644
index d89ea5a..0000000
--- a/.profile
+++ /dev/null
@@ -1,27 +0,0 @@
-# ~/.profile: executed by the command interpreter for login shells.
-# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
-# exists.
-# see /usr/share/doc/bash/examples/startup-files for examples.
-# the files are located in the bash-doc package.
-
-# the default umask is set in /etc/profile; for setting the umask
-# for ssh logins, install and configure the libpam-umask package.
-#umask 022
-
-# if running bash
-if [ -n "$BASH_VERSION" ]; then
- # include .bashrc if it exists
- if [ -f "$HOME/.bashrc" ]; then
- . "$HOME/.bashrc"
- fi
-fi
-
-# set PATH so it includes user's private bin if it exists
-if [ -d "$HOME/bin" ] ; then
- PATH="$HOME/bin:$PATH"
-fi
-
-# set PATH so it includes user's private bin if it exists
-if [ -d "$HOME/.local/bin" ] ; then
- PATH="$HOME/.local/bin:$PATH"
-fi
diff --git a/.vimrc b/.vimrc
deleted file mode 100644
index 1a2984d..0000000
--- a/.vimrc
+++ /dev/null
@@ -1,171 +0,0 @@
-" URL: https://vim.wikia.com/wiki/Example_vimrc
-" Authors: https://vim.wikia.com/wiki/Vim_on_Libera_Chat
-" Description: A minimal, but feature rich, example .vimrc. If you are a
-" newbie, basing your first .vimrc on this file is a good choice.
-" If you're a more advanced user, building your own .vimrc based
-" on this file is still a good idea.
-
-"------------------------------------------------------------
-" Features {{{1
-"
-" These options and commands enable some very useful features in Vim, that
-" no user should have to live without.
-
-" Set 'nocompatible' to ward off unexpected things that your distro might
-" have made, as well as sanely reset options when re-sourcing .vimrc
-set nocompatible
-
-" Attempt to determine the type of a file based on its name and possibly its
-" contents. Use this to allow intelligent auto-indenting for each filetype,
-" and for plugins that are filetype specific.
-if has('filetype')
- filetype indent plugin on
-endif
-
-" Enable syntax highlighting
-if has('syntax')
- syntax on
-endif
-
-"------------------------------------------------------------
-" Must have options {{{1
-"
-" These are highly recommended options.
-
-" Vim with default settings does not allow easy switching between multiple files
-" in the same editor window. Users can use multiple split windows or multiple
-" tab pages to edit multiple files, but it is still best to enable an option to
-" allow easier switching between files.
-"
-" One such option is the 'hidden' option, which allows you to re-use the same
-" window and switch from an unsaved buffer without saving it first. Also allows
-" you to keep an undo history for multiple files when re-using the same window
-" in this way. Note that using persistent undo also lets you undo in multiple
-" files even in the same window, but is less efficient and is actually designed
-" for keeping undo history after closing Vim entirely. Vim will complain if you
-" try to quit without saving, and swap files will keep you safe if your computer
-" crashes.
-set hidden
-
-" Note that not everyone likes working this way (with the hidden option).
-" Alternatives include using tabs or split windows instead of re-using the same
-" window as mentioned above, and/or either of the following options:
-" set confirm
-" set autowriteall
-
-" Better command-line completion
-set wildmenu
-
-" Show partial commands in the last line of the screen
-set showcmd
-
-" Highlight searches (use <C-L> to temporarily turn off highlighting; see the
-" mapping of <C-L> below)
-set hlsearch
-
-" Modelines have historically been a source of security vulnerabilities. As
-" such, it may be a good idea to disable them and use the securemodelines
-" script, <http://www.vim.org/scripts/script.php?script_id=1876>.
-" set nomodeline
-
-
-"------------------------------------------------------------
-" Usability options {{{1
-"
-" These are options that users frequently set in their .vimrc. Some of them
-" change Vim's behaviour in ways which deviate from the true Vi way, but
-" which are considered to add usability. Which, if any, of these options to
-" use is very much a personal preference, but they are harmless.
-
-" Use case insensitive search, except when using capital letters
-set ignorecase
-set smartcase
-
-" Allow backspacing over autoindent, line breaks and start of insert action
-set backspace=indent,eol,start
-
-" When opening a new line and no filetype-specific indenting is enabled, keep
-" the same indent as the line you're currently on. Useful for READMEs, etc.
-set autoindent
-
-" Stop certain movements from always going to the first character of a line.
-" While this behaviour deviates from that of Vi, it does what most users
-" coming from other editors would expect.
-set nostartofline
-
-" Display the cursor position on the last line of the screen or in the status
-" line of a window
-set ruler
-set laststatus=0
-
-" Instead of failing a command because of unsaved changes, instead raise a
-" dialogue asking if you wish to save changed files.
-set confirm
-
-" Use visual bell instead of beeping when doing something wrong
-set visualbell
-
-" And reset the terminal code for the visual bell. If visualbell is set, and
-" this line is also included, vim will neither flash nor beep. If visualbell
-" is unset, this does nothing.
-set t_vb=
-
-" Enable use of the mouse for all modes
-if has('mouse')
- set mouse=a
-endif
-
-" Set the command window height to 2 lines, to avoid many cases of having to
-" "press <Enter> to continue"
-set cmdheight=2
-
-" Display line numbers on the left
-set number
-set relativenumber
-
-" Quickly time out on keycodes, but never time out on mappings
-set notimeout ttimeout ttimeoutlen=200
-
-" Use <F11> to toggle between 'paste' and 'nopaste'
-set pastetoggle=<F11>
-
-
-
-"------------------------------------------------------------
-" Indentation options {{{1
-"
-" Indentation settings according to personal preference.
-
-" Indentation settings for using 4 spaces instead of tabs.
-" Do not change 'tabstop' from its default value of 8 with this setup.
-set shiftwidth=4
-set softtabstop=4
-set expandtab
-
-" Indentation settings for using hard tabs for indent. Display tabs as
-" four characters wide.
-"set shiftwidth=4
-"set tabstop=4
-
-
-"------------------------------------------------------------
-" Mappings {{{1
-"
-" Useful mappings
-
-" Map Y to act like D and C, i.e. to yank until EOL, rather than act as yy,
-" which is the default
-map Y y$
-
-" Map <C-L> (redraw screen) to also turn off search highlighting until the
-" next search
-nnoremap <C-L> :nohl<CR><C-L>
-
-nnoremap n nzzzv
-nnoremap N Nzzzv
-
-colorscheme default
-highlight CursorLineNr cterm=bold ctermfg=Yellow
-highlight LineNr ctermfg=Brown
-
-"------------------------------------------------------------