Compare commits

...

10 commits

Author SHA1 Message Date
Sencyy
7b30c813c7
improve readability 2024-08-13 19:03:52 -03:00
Sencyy
f9c110b057
add nsxiv alias 2024-08-11 10:50:56 -03:00
Sencyy
bb74261090
set Bibata cursor theme 2024-08-10 20:07:18 -03:00
Sencyy
ceb8a53702 add installation instructions 2024-08-10 14:59:57 -03:00
Sencyy
aef60818e3 update README (again) 2024-08-10 14:25:22 -03:00
Sencyy
37c1eb3178 update README 2024-08-10 14:23:34 -03:00
Sencyy
d1e9d852b0 improving installation 2024-08-10 12:45:20 -03:00
Sencyy
de01771fb3 add custom xdg user directories 2024-08-10 11:56:31 -03:00
Sencyy
ce9af40a83 fix i3status load 2024-08-10 11:56:07 -03:00
Sencyy
00fa83b7b2 set maximum cpu load theshold to 12 2024-08-10 11:24:23 -03:00
6 changed files with 43 additions and 26 deletions

View file

@ -2,8 +2,18 @@
These are my dotfiles for my Arch Linux installation!
## Installation instructions
You will need stow in order to be able to install the configs, you can install it with
```sudo pacman -S stow ```
if you are on Arch linux, if not you should use your distribution's package manager to do so.
Now just run ```./installdots.sh``` and it's done!
### Dependencies
- stow (of course)
- sway
- [sway-screenshot](https://github.com/Gustash/sway-screenshot)
- foot

View file

@ -16,6 +16,7 @@ alias ip='ip -c'
alias vim='nvim'
alias cat='bat'
alias grep='rg'
alias sxiv='nsxiv'
# Directory management alaiases
alias cp='cp -v'

View file

@ -28,6 +28,8 @@ disk "/" {
load {
format = "%1min"
max_threshold = 12
format_above_threshold = "High load: %1min"
}
memory {
@ -37,5 +39,5 @@ memory {
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
format = "%d-%m-%Y %H:%M:%S"
}

View file

@ -1,11 +1,7 @@
#!/bin/bash
find -mindepth 1 -maxdepth 1 -type d | while read dir; do
fmtdir="$(sed -e s/\\.\\///g <<<$dir)"
if [ $(echo $fmtdir) != ".git" ]; then
stow -t "$HOME" "$fmtdir"
echo "installed $fmtdir configuration"
else
echo "ommiting $fmtdir directory"
fi
find -mindepth 1 -maxdepth 1 -type d -not -path '*/\.*' | while read dir; do
fmtdir="$(sed s/\\.\\///g <<<$dir)"
stow -t "$HOME" "$fmtdir"
echo "installed $fmtdir configuration"
done

View file

@ -8,20 +8,27 @@
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term foot
# Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu dmenu_path | wmenu | xargs swaymsg exec --
# Define browser command
set $browser librewolf
# Define the preferred cursor theme
set $cursor Bibata-Modern-Classic
# Startup applications
#
@ -31,6 +38,9 @@ exec ollama serve
# Run fnott notification daemon
exec fnott
# Set desired cursor theme
seat seat0 xcursor_theme $cursor
@ -38,6 +48,7 @@ exec fnott
#
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
# Example configuration:
#
@ -51,7 +62,7 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
#
exec swayidle -w \
timeout 300 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
timeout 60 'swaylock -f -c 000000'' \
timeout 60 'swaylock -f -c 000000' \
before-sleep 'swaylock -f -c 000000'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
@ -59,18 +70,6 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# resumed. It will also lock your screen before your computer goes to sleep.
### Input configuration
#
# Example configuration:
#
# input "2:14:SynPS/2_Synaptics_TouchPad" {
# dwt enabled
# tap enabled
# natural_scroll enabled
# middle_emulation enabled
# }
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
input * {
xkb_layout "br"
@ -81,13 +80,12 @@ input type:pointer {
}
### Key bindings
#
# Basics:
#
# Take screenshot
bindsym Print exec slurp | grim -g - - | wl-copy
bindsym $mod+Shift+s exec slurp | grim -g - - | wl-copy
# Start a terminal
# Start a terminal
bindsym $mod+Return exec $term
# Start browser
@ -119,6 +117,7 @@ input type:pointer {
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
bindsym $mod+Down focus down
@ -130,6 +129,7 @@ input type:pointer {
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
@ -149,6 +149,7 @@ input type:pointer {
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
# Move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2

View file

@ -1,3 +1,10 @@
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/.desk"
XDG_DOCUMENTS_DIR="$HOME/doc"
XDG_DOWLOAD_DIR="$HOME/down"