initial checkin

This commit is contained in:
Radar231 2023-12-19 15:27:05 -05:00
commit e7e8e2fb52
12 changed files with 665 additions and 0 deletions

19
.ansible.cfg Normal file
View File

@ -0,0 +1,19 @@
###########################################################################
#
# This is a custom ansible configuration file with select config values set
# as required.
#
###########################################################################
[defaults]
callback_whitelist = profile_tasks
command_warnings = False
deprecation_warnings = False
display_skipped_hosts = False
host_key_checking = False
stdout_callback = default
interpreter_python = auto_silent
ansible_pipelining = True
vault_password_file = ~/bin/vault_pw
# EOF

20
.bash_aliases Normal file
View File

@ -0,0 +1,20 @@
# BEGIN ANSIBLE MANAGED BLOCK
alias ls='/bin/ls -F'
# END ANSIBLE MANAGED BLOCK
alias f='cd $(find ~ -type d -print | fzf)'
# zn aliases
alias zn="zn -p $HOME/.notes/notes"
alias znt="zn -p $HOME/.notes/notes -t"
alias zntl="ztl.sh $HOME/.notes/notes"
alias znts="zts.sh $HOME/.notes/notes"
alias zj="zn -p $HOME/.notes/journal"
alias zjt="zn -p $HOME/.notes/journal -t"
alias zjtl="ztl.sh $HOME/.notes/journal"
alias zjts="zts.sh $HOME/.notes/journal"
alias zw="zn -p $HOME/.notes/wfh-notes"
alias zwt="zn -p $HOME/.notes/wfh-notes -t"
alias zwtl="ztl.sh $HOME/.notes/wfh-notes"
alias zwts="zts.sh $HOME/.notes/wfh-notes"

127
.bashrc Normal file
View File

@ -0,0 +1,127 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# BEGIN ANSIBLE MANAGED BLOCK (.bashrc env vars)
export EDITOR="vim"
# END ANSIBLE MANAGED BLOCK (.bashrc env vars)
# BEGIN ANSIBLE MANAGED BLOCK (.bashrc sops/age env vars)
export SOPS_AGE_RECIPIENTS="age1x7aazmg26qf5vm7hnvxjqy77yvv5lc7jez7untjfnwrg8pa6aqysxlaa42"
export SOPS_AGE_KEY_FILE="${HOME}/bin/age-key.txt"
# END ANSIBLE MANAGED BLOCK (.bashrc sops/age env vars)
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Install Ruby Gems to ~/gems
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"

279
.config/i3/config Normal file
View File

@ -0,0 +1,279 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango:monospace 8
font pango:monospace 10
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesnt scale on retina/hidpi displays.
# Focus follows mouse
focus_follows_mouse no
# Mouse warping (mouse moves to focused window
mouse_warping none
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal -T Terminator
bindsym $mod+Shift+Return exec kitty; focus
bindsym $mod+Return exec terminator; focus
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# 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+Shift+d exec --no-startup-id i3-dmenu-desktop
bindsym $mod+Control+d exec rofi -lines 20 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 10'
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
bindsym $mod+q layout default
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
bindsym $mod+4 workspace 4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 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 semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
#bar {
# status_command i3status
#}
bar {
colors {
background #000000
statusline #ffffff
separator #00ffff
focused_workspace #008fff #007fff #ffffff
active_workspace #333333 #5f676a #ffffff
inactive_workspace #333333 #222222 #888888
urgent_workspace #aa0000 #990000 #ffffff
}
position top
# status_command i3status -c ~/.config/i3/i3status.conf
status_command py3status
}
bindsym Control+mod1+l exec i3lock -c 000000
# bindsym Control+mod1+l exec cinnamon-screensaver-command --lock
# bindsym Control+mod1+l exec mate-screensaver-command --lock
#bindsym Control+mod1+Left workspace prev
#bindsym Control+mod1+Right workspace next
bindsym Control+mod1+Left workspace prev_on_output
bindsym Control+mod1+Right workspace next_on_output
# Create a new workspace on the current screen, with the next available number
bindsym Control+mod1+Up exec --no-startup-id ~/bin/new-ws.sh
#bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
#bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
#bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
#bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+
#bindsym XF86AudioLowerVolume exec amixer sset Master 5%-
#bindsym XF86AudioMute exec amixer sset Master toggle
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
# pavucontrol
bindsym $mod+m exec --no-startup-id pavucontrol
# Screen brightness controls
#bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
#bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
# Touchpad controls
# bindsym XF86TouchpadToggle exec /home/rmorrow/.config/i3/toggletouchpad.sh # toggle touchpad
# Media player controls
#bindsym XF86AudioPlay exec playerctl play
#bindsym XF86AudioPause exec playerctl pause
#bindsym XF86AudioNext exec playerctl next
#bindsym XF86AudioPrev exec playerctl previous
for_window [title="SpaceFM"] floating enable
# Xconq game setup windows
for_window [id="0x7200003"] floating enable
# Xconq main game window
for_window [instance="xconq.exe"] floating enable
bindsym $mod+n exec caja
exec --no-startup-id $HOME/.screenlayout/def.sh
exec --no-startup-id nitrogen --restore
exec --no-startup-id picom -b
#exec --no-startup-id dropbox start
#exec --no-startup-id /home/rmorrow/bin/screens.sh
exec --no-startup-id /opt/Signal/signal-desktop --use-tray-icon --start-in-tray --no-sandbox %U
exec --no-startup-id steam -silent
exec --no-startup-id nextcloud --background
#exec --no-startup-id discord --start-minimized
# exec --no-startup-id syncthing &
# #---Dropdown/Scratchpad Windows---# #
# tmux window for background scripts.
# later bound to mod+u
#for_window [title="dropdown"] floating enable
#for_window [title="dropdown"] resize set 625 400
#for_window [title="dropdown"] move scratchpad
#for_window [title="dropdown"] border pixel 5
#bindsym $mod+t exec i3-sensible-terminal -T dropdown -e tmux
#bindsym $mod+u [title="dropdown"] scratchpad show; [title="dropdown"] move position center
bindsym $mod+Shift+u move scratchpad
bindsym $mod+u scratchpad show
#set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (h) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id /home/rmorrow/bin/i3exit.sh lock, mode "default"
bindsym e exec --no-startup-id /home/rmorrow/bin/i3exit.sh logout, mode "default"
bindsym s exec --no-startup-id /home/rmorrow/bin/i3exit.sh suspend, mode "default"
# bindsym h exec --no-startup-id /home/rmorrow/bin/i3exit hibernate, mode "default"
bindsym r exec --no-startup-id /home/rmorrow/bin/i3exit.sh reboot, mode "default"
bindsym h exec --no-startup-id /home/rmorrow/bin/i3exit.sh shutdown, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Pause mode "$mode_system"

113
.config/i3/i3status.conf Executable file
View File

@ -0,0 +1,113 @@
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 1
}
#order += "run_watch VPN"
order += "external_script sun"
order += "external_script wx"
#order += "external_script cntdwn_lv"
#order += "external_script cntdwn_ret"
order += "memory"
order += "disk /"
order += "disk /home"
order += "cpu_usage"
order += "cpu_temperature 0"
order += "load"
#order += "wireless wlp3s0"
#order += "ethernet enp2s0"
order += "volume master"
#order += "battery 0"
order += "tztime local"
order += "tztime UTC"
memory {
format = " Mem: %used Used "
}
external_script wx {
format = " ({output}) "
script_path = "/home/rmorrow/bin/ck_wx.sh"
}
external_script sun {
format = " ({output}) "
script_path = "/home/rmorrow/bin/sunrise-sunset.sh"
}
external_script cntdwn_lv {
format = " ({output}) "
script_path = "/home/rmorrow/bin/cntdwn_lv-b.py"
cache_timeout = 1
}
external_script cntdwn_ret {
format = " ({output}) "
script_path = "/home/rmorrow/bin/cntdwn_ret-b.py"
cache_timeout = 1
}
volume master {
format = " V: %volume "
format_muted = " V: muted (%volume) "
device = "default"
mixer = "Master"
mixer_idx = 0
}
cpu_temperature 0 {
format = " T: %degrees °C "
path = "/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input"
}
battery 0 {
format = " %status %percentage %remaining "
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
tztime local {
format = " %Y-%m-%d %H:%M:%S "
}
tztime UTC {
format = " (%H:%M:%SZ) "
timezone = "UTC"
}
cpu_usage {
format = " CPU: %usage "
}
wireless wlp3s0 {
format_up = " W: (%quality at %essid, %bitrate) "
format_down = "W: down "
}
ethernet enp2s0 {
# if you use %speed, i3status requires the cap_net_admin capability
format_up = " E: %ip (%speed) "
format_down = " E: down "
}
disk "/" {
format = " /: %free Free "
}
disk "/home" {
format = " /home: %free Free "
}
load {
format = " load: %1min, %5min, %15min "
}

View File

@ -0,0 +1,4 @@
[xin_-1]
file=/home/rmorrow/.local/wallpapers/Polygon-Landscape-Wallpaper-5760x1080-48-Triple-Monitor-.jpg
mode=0
bgcolor=#000000

View File

@ -0,0 +1,12 @@
[geometry]
posx=1920
posy=42
sizex=1916
sizey=1036
[nitrogen]
view=icon
recurse=true
sort=alpha
icon_caps=false
dirs=/usr/share/wallpapers;/home/rmorrow/.local/wallpapers;

30
.config/tmux/tmux.conf Normal file
View File

@ -0,0 +1,30 @@
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'dracula/tmux'
set -g @dracula-show-powerline true
#set -g @dracula-plugins "weather time"
set -g @dracula-plugins "time"
set -g @dracula-show-flags true
set -g @dracula-show-left-icon session
set -g @dracula-fixed-location "Kemptville,Ontario"
set -g @dracula-show-location false
set -g @dracula-show-fahrenheit false
set -g @dracula-military-time true
set -g @dracula-show-timezone false
set -g @dracula-time-format "%Y-%m-%d %H:%M"
set -g status-position bottom
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.config/tmux/plugins/tpm/tpm'

10
.gitconfig Normal file
View File

@ -0,0 +1,10 @@
[user]
email = radar231@gmail.com
name = Radar231
[core]
editor = vim
[init]
defaultBranch = main
[pull]
ff = only

5
.radio-active-alias Normal file
View File

@ -0,0 +1,5 @@
CBC Radio 1 Ottawa (CBO-FM)==https://cbcradiolive.akamaized.net/hls/live/2041037/ES_R1ETT/adaptive_128/chunklist_ao.m3u8
CJOT "Boom 99.7" Ottawa, ON==http://live.leanstream.co/CJOTFM-MP3
CKVV 97.5 "Moose FM" Kemptville, ON==https://vistaradio.streamb.live/SB00108
106.1 CHEZ==https://rogers-hls.leanstream.co/rogers/ott1061.stream/playlist.m3u8
WAMC==http://playerservices.streamtheworld.com/api/livestream-redirect/WAMCFM.mp3

View File

@ -0,0 +1 @@
{"name": "CJOT \"Boom 99.7\" Ottawa, ON", "uuid_or_url": "http://live.leanstream.co/CJOTFM-MP3"}

45
.vimrc Normal file
View File

@ -0,0 +1,45 @@
" #########################################################################
" use vim settings, rather than vi settings
" must be at start of vimrc as it changes other options as a side effect
set nocompatible
" make backspace behave in a sane manner
set backspace=indent,eol,start
" switch syntax highlighting on
syntax on
set smartindent
set autoindent
set softtabstop=4
set tabstop=4
set shiftwidth=4
set expandtab
set number
set relativenumber
set showmatch
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch
" turn on full python highlighting
let python_highlight_all = 1
" set 256 colors and use specific color scheme
set t_Co=256
color calmar256-dark
set background=dark
" from no-plugin page
set path+=**
set wildmenu