Commit 01eedf5a authored by Franciszek Madej's avatar Franciszek Madej 🤞

Merge branch 'master' of https://gitlab.com/franek_madej/dotfiles

parents 9aa6102d f8dab2de
......@@ -52,6 +52,7 @@ network-interface = enp2s0
[bar/toplane-diana]
inherit = bar/toplane-x200
width = 1888
monitor = HDMI-0
modules-left = xworkspaces
modules-right = pulseaudio ethernet time date
......@@ -61,8 +62,6 @@ network-interface = enp3s0
type = internal/xworkspaces
; very light on not used
label-empty-foreground = #30
; underline and orange colored on selection
label-active-foreground = ${colors.black}
label-active-underline = ${colors.black}
; icons are smaller
icon-default = ▲
......@@ -76,11 +75,11 @@ type = internal/battery
time-format = %H:%M
label-charging = 🔌 %percentage%% (%time%)
label-full = 🔌 100%
label-discharging = 🔋 %percentage%% (%time%)
format-charging-underline = ${colors.black}
format-discharging-underline = ${colors.black}
format-charging-foreground = ${colors.black}
format-discharging-foreground = ${colors.black}
format-full-underline = ${colors.black}
format-discharging-padding = 1
format-charging-padding = 1
......
......@@ -200,6 +200,10 @@ keys += [
[mod, "control"], 'l',
lazy.spawn('xautolock -locknow')
),
Key(
[], 'XF86Launch5',
lazy.spawn(home + '/documents/scripts/rotate-x200')
),
]
screens = [
......
......@@ -2,6 +2,9 @@
set -g @plugin "tmux-plugins/tpm"
set -g @plugin "tmux-plugins/tmux-sensible"
set -g @plugin "tmux-plugins/tmux-online-status"
set -g @plugin "tmux-plugins/tmux-yank"
set -g @plugin "tmux-plugins/tmux-prefix-highlight"
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @online_icon "↑"
set -g @offline_icon "↓"
......@@ -41,42 +44,48 @@ setw -g window-status-current-fg "colour16"
setw -g window-status-current-attr "none"
# Status line:
set -g status-left "#[fg=colour18 bold,bg=colour2] #{online_status} "
set -g status-left "#[fg=colour18 bold,bg=colour2] #{online_status} #{prefix_highlight}"
set -g window-status-format "#[fg=colour20,bg=colour18] #I #[fg=colour20,bg=colour19] #W "
set -g window-status-current-format "#[fg=colour18 bold,bg=colour17] #I #[fg=colour18,bg=colour16] #W "
set -g status-right "#[fg=colour18 bold,bg=colour13] #(whoami) #[fg=colour18 bold,bg=colour12] #H "
set -g @prefix_highlight_show_copy_mode "on"
set -g @prefix_highlight_prefix_prompt "prefix"
set -g @prefix_highlight_fg "colour231 bold"
set -g @prefix_highlight_bg "colour9"
set -g @prefix_highlight_copy_prompt "visual"
# Keybindings
# remap prefix from "C-b" to "C-a"
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# bind | split-window -h
# bind - split-window -v
# unbind '"'
# unbind %
# enable mouse control
set -g mouse on
# set -g mouse on
# disable windows renaming. use , (comma)
set-window-option -g automatic-rename off
set-option -g allow-rename off
# set-window-option -g automatic-rename off
# set-option -g allow-rename off
# vim-like navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# bind h select-pane -L
# bind j select-pane -D
# bind k select-pane -U
# bind l select-pane -R
# copy tmux buffer to clipboard
bind C-y run "tmux show-buffer | xclip -selection clipboard"
# bind C-y run "tmux show-buffer | xclip -selection clipboard"
# move x clipboard into tmux paste buffer
bind C-p run "tmux set-buffer \"$(xclip -selection clipboard)\"; tmux paste-buffer"
# bind C-p run "tmux set-buffer \"$(xclip -selection clipboard)\"; tmux paste-buffer"
# nested sessions - Ctrl+t
bind-key -n C-t send-prefix
......
......@@ -16,7 +16,7 @@ if ! zgen saved; then
zgen oh-my-zsh plugins/taskwarrior
zgen load Tarrasch/zsh-bd
if which rg 1>/dev/null 2>&1; then
zgen load jedahan/ripz
# zgen load jedahan/ripz
fi
zgen load chrissicool/zsh-256color
zgen load eendroroy/zed-zsh
......@@ -121,6 +121,10 @@ elif [[ $OSTYPE != 'linux-android' ]]; then
echo "trash-cli is not installed!"
fi
if which exa 1>/dev/null 2>&1; then
alias l="exa --git -h -g -H -@ -l"
fi
# configuration files editing
alias zshrc="vim ~/.zshrc"
alias vimrc="vim ~/.vimrc"
......@@ -140,7 +144,7 @@ function ssh() {
function list-missing() {
autoload -U colors;
colors;
test=("mosh" "fzf" "rg" "fd" "z" "bc"
test=("mosh" "fzf" "rg" "fd" "z" "bc" "exa"
"dtrx" "yadm" "zgen" "nvim" "diff-so-fancy")
if cat /etc/os-release | grep "Arch Linux" > /dev/null; then
test+=("yay" "pacmatic" "reflector")
......
#!/bin/sh
xautolock -time 1 -locker ~/documents/scripts/i3lock-custom
xautolock -time 5 -locker ~/documents/scripts/i3lock-custom
......@@ -16,7 +16,7 @@ if [ "$HOSTNAME" = "lucian" ]; then
elif [ "$HOSTNAME" = "zilean" ]; then
LOCKPAPER="$HOME/.config/misc/wallpaper-lock.jpg"
elif [ "$HOSTNAME" = "diana" ]; then
LOCKPAPER="$HOME/.config/misc/wallpaper-tile-lock.png"
LOCKPAPER="$HOME/.config/misc/wallpaper-tile-lock-light.png"
fi
# Enable compton's fade-in effect so that the lockscreen gets a nice fade-in
......@@ -26,7 +26,6 @@ dbus-send --print-reply --dest=com.github.chjj.compton.${DISPLAY/:/_} / com.gith
pkill -u $USER -USR1 dunst
i3lock \
--force-clock \
-B=300 \
--time-font="Fira Code Retina" \
--date-font="Fira Code Retina" \
......@@ -65,6 +64,7 @@ i3lock \
--bshlcolor="$SEABLUE" \
-i "$LOCKPAPER" \
-t \
# --force-clock \
1>/dev/null 2>&1
pkill -u $USER -USR2 dunst
......
......@@ -12,18 +12,18 @@ mpDris2 &
mconnect -d &
redshift &
feh --bg-tile ~/.config/misc/wallpaper-tile-light.png &
if [ "$HOSTNAME" = "lucian" ]; then
feh --bg-tile ~/.config/misc/wallpaper-tile-light.png &
xcalib -d :0 ~/.color/icc/x200.icc &
polybar toplane-x200 &
elif [ "$HOSTNAME" = "zilean" ]; then
feh --bg-tile ~/.config/misc/wallpaper-tile-light.png &
polybar toplane-zilean &
sudo blackwidowcontrol -i &
firefox &
elif [ "$HOSTNAME" = "diana" ]; then
feh --bg-tile ~/.config/misc/wallpaper-tile.png &
polybar toplane-diana &
firefox &
discord &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment