dotfile update

master
Braydon Kains 9 months ago
parent 0f524ecaa3
commit aa465386e5
No known key found for this signature in database
GPG Key ID: 1F801ECAABAAF78D

@ -1 +1,3 @@
alias gl="git log --oneline --decorate"
alias fuckyou="swaymsg output \* dpms on"
alias fuckyou2="swaymsg output eDP-1 dpms on"

@ -1,4 +1,4 @@
require'nvim-treesitter.configs'.setup {
require 'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the five listed parsers should always be installed)
ensure_installed = { "c", "lua", "vim", "go", "zig", "rust" },

@ -1,9 +1,9 @@
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
vim.opt.smartindent = true

@ -1,10 +1,15 @@
function sync_fork() {
git fetch upstream
BRANCH=$1
if [ -z "$BRANCH" ]; then
BRANCH="main"
fi
git rebase upstream/$BRANCH
git push -f
git fetch upstream
BRANCH=$1
if [ -z "$BRANCH" ]; then
BRANCH="main"
fi
git rebase upstream/$BRANCH
git push -f
}
function unfreeze_laptop() {
swaymsg "output eDP-1 dpms off"
sleep 1
swaymsg "output eDP-1 dpms on"
}

@ -14,7 +14,7 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term foot
set $term mate-terminal
# Locker
set $locker sway_manual_lock
# Your preferred application launcher
@ -25,6 +25,8 @@ set $menu exec wofi --show drun
# Monitors
set $officemonitor 'Lenovo Group Limited LEN T32p-20 VNA70PG1'
set $cottagemonitor 'Dell Inc. DELL P2722H FYH8FC3'
set $laptopdisplay 'Unknown 0x1400 0x00000000'
include /etc/sway/config-vars.d/*
@ -39,6 +41,7 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# You can get the names of your outputs by running: swaymsg -t get_outputs
output $officemonitor scale 1.5
output $laptopdisplay scale 2
### Idle configuration
#
@ -60,8 +63,6 @@ bindsym $mod+Ctrl+l exec $locker
exec swayidle -w \
before-sleep 'playerctl pause' \
timeout 300 '$locker' \
timeout 310 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
### Input configuration
#
@ -285,4 +286,14 @@ bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
# Screenshots
# Ctrl -> selection; Shift -> clipboard
# selection to clipboard
bindsym Print exec grimshot copy area
bindsym Ctrl+Print exec snipit --copy
# Making screenshare work maybe?
#exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=swaykeepassxc XDG_SESSION_DESKTOP=sway XDG_SESSION_TYPE=wayland
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway XDG_SESSION_TYPE=wayland
include /etc/sway/config.d/*

@ -25,12 +25,14 @@ timeout=10
# the script is terminated, so we need to execute it in the background
# to be able to terminate it later (unless you like your screen turning
# off every 10 seconds for some reason?)
swayidle \
timeout $timeout 'swaymsg output \* dpms off' \
resume 'swaymsg output \* dpms on' \
&
playerctl play-pause
# COMMENTING THIS OUT FOR NOW BECAUSE IT"S BEING POOPY
# swayidle \
# timeout $timeout 'swaymsg output \* dpms off' \
# resume 'swaymsg output \* dpms on' \
# &
playerctl pause
# Lock the screen and wait for it to be unlocked.
swaylock -f -e -c 1d2021 --inside-color 000000b3 -s fill -i ~/.cache/lockscreen

@ -1 +1 @@
wofi i3status playerctl brightnessctl pulseaudio-utils
wofi i3status playerctl brightnessctl pulseaudio-utils grimshot

Loading…
Cancel
Save