Skip to content

Commit

Permalink
Updated a few settings
Browse files Browse the repository at this point in the history
- Went from fasd to zoxide.
- Got rid of auto sleeping in sway.
- gpg was cool and all, but I didn't get it to work.
  • Loading branch information
dat-adi committed Jun 15, 2022
1 parent dc3cea2 commit 5d17274
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
9 changes: 7 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export PATH="$HOME/bin:/home/dat-adi/.local/bin:$PATH"
export ZSH="/home/dat-adi/.oh-my-zsh"

# Plugins for zsh
plugins=(git fzf zsh-autosuggestions fasd)
plugins=(zoxide git fzf zsh-autosuggestions)

source $ZSH/oh-my-zsh.sh

Expand All @@ -24,6 +24,7 @@ alias ls='exa'
alias sl='exa -la'
alias grep='rg'
alias rm='trash-put'
alias cd='z'

# editors
alias vi='nvim'
Expand All @@ -41,6 +42,11 @@ alias roficonf="nvim ~/.config/rofi/config.rasi"
alias nvimconf="nvim ~/.config/nvim/"
alias reload="source ~/dotfiles/.zshrc"

# system performance changers
alias cpu-max='tuned-adm profile latency-performance'
alias cpu-balanced='tuned-adm profile balanced'
alias cpu-min='tuned-adm profile laptop-battery-powersave'

# Setting up SSH for git?
export SSH_ENV="$HOME/.ssh/environment"

Expand Down Expand Up @@ -89,7 +95,6 @@ fi

source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
eval "$(starship init zsh)"
eval "$(fasd --init auto)"

if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
exec sway
Expand Down
17 changes: 8 additions & 9 deletions config/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ exec element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland
#
# Example configuration:
#
exec swayidle -w \
timeout 300 'swaylock -i /home/dat-adi/Pictures/Wallpapers/HornetFight1080p.jpg' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -i /home/dat-adi/Pictures/Wallpapers/HornetFight1080p.jpg'
# exec swayidle -w \
# timeout 300 'swaylock -i /home/dat-adi/Pictures/Wallpapers/HornetFight1080p.jpg' \
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
# before-sleep 'swaylock -i /home/dat-adi/Pictures/Wallpapers/HornetFight1080p.jpg'
#
# This will lock your screen after 300 seconds of inactivity, then turn off
# your displays after another 300 seconds, and turn your screens back on when
Expand Down Expand Up @@ -110,7 +110,7 @@ input type:touchpad {
bindsym $mod+Shift+r reload

# Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
bindsym $mod+Shift+e exec swaynag -t warning -m 'Onee-chan, you trying to exit sway?' -B 'Yes, exit sway' 'swaymsg exit'
#
# Moving around:
#
Expand Down Expand Up @@ -138,8 +138,6 @@ input type:touchpad {
#
# Workspaces:
#
# Workspace opts
workspace_auto_back_and_forth yes
# Switch to workspace
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
Expand Down Expand Up @@ -182,14 +180,15 @@ input type:touchpad {
assign [class="firefox"] 3
assign [class="element"] 8
assign [class="Element"] 8
assign [class="element-desktop"] 8
#
# Layout stuff:
#
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
# bindsym $mod+b splith
# bindsym $mod+v splitv
bindsym $mod+ctrl+v splith
bindsym $mod+ctrl+h splitv

# Switch the current container between different layout styles
# bindsym $mod+t layout stacking
Expand Down
2 changes: 2 additions & 0 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
rebase = false
[filter "indent"]
clean = black
[commit]
gpgsign = false
3 changes: 3 additions & 0 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ set -g default-terminal 'screen-256color'
# Customize the status line
set -g status-fg green
set -g status-bg black

# Enable scrolling
set -g mouse on

0 comments on commit 5d17274

Please sign in to comment.