diff options
| author | Elis Eriksson <spelis@spelis.li> | 2026-06-04 17:12:21 +0200 |
|---|---|---|
| committer | Elis Eriksson <spelis@spelis.li> | 2026-06-04 17:12:21 +0200 |
| commit | 636540f674a683104d28aadcd44827abb9c86e0a (patch) | |
| tree | 8883eb9c7c379254433df43b7ebf16e343d5d4c2 | |
| parent | 147cbd6724faad8eaa01252e85053f088f939f70 (diff) | |
| download | dotfiles-636540f674a683104d28aadcd44827abb9c86e0a.tar dotfiles-636540f674a683104d28aadcd44827abb9c86e0a.tar.gz dotfiles-636540f674a683104d28aadcd44827abb9c86e0a.tar.bz2 dotfiles-636540f674a683104d28aadcd44827abb9c86e0a.tar.lz dotfiles-636540f674a683104d28aadcd44827abb9c86e0a.tar.xz dotfiles-636540f674a683104d28aadcd44827abb9c86e0a.tar.zst dotfiles-636540f674a683104d28aadcd44827abb9c86e0a.zip | |
use hard links instead of symlinks, hopefully works better
| -rw-r--r--[l---------] | .p10k.zsh | 201 | ||||
| -rw-r--r--[l---------] | .zshrc | 75 | ||||
| -rw-r--r--[l---------] | alacritty.toml | 40 | ||||
| -rw-r--r--[l---------] | fastfetch/config.jsonc | 294 | ||||
| -rw-r--r--[l---------] | i3/config | 145 | ||||
| l--------- | i3blocks | 1 |
6 files changed, 750 insertions, 6 deletions
diff --git a/.p10k.zsh b/.p10k.zsh index 7b607a5..8530266 120000..100644 --- a/.p10k.zsh +++ b/.p10k.zsh @@ -1 +1,200 @@ -/home/spelis/.p10k.zsh
\ No newline at end of file +# Generated by Powerlevel10k configuration wizard on 2026-03-19 at 21:56 CET. +# Based on romkatv/powerlevel10k/config/p10k-pure.zsh. +# Wizard options: nerdfont-v3 + powerline, small icons, pure, 2 lines, compact, +# transient_prompt, instant_prompt=verbose. +# Type `p10k configure` to generate another config. +# +# Config file for Powerlevel10k with the style of Pure (https://github.com/sindresorhus/pure). +# +# Differences from Pure: +# +# - Git: +# - `@c4d3ec2c` instead of something like `v1.4.0~11` when in detached HEAD state. +# - No automatic `git fetch` (the same as in Pure with `PURE_GIT_PULL=0`). +# +# Apart from the differences listed above, the replication of Pure prompt is exact. This includes +# even the questionable parts. For example, just like in Pure, there is no indication of Git status +# being stale; prompt symbol is the same in command, visual and overwrite vi modes; when prompt +# doesn't fit on one line, it wraps around with no attempt to shorten it. +# +# If you like the general style of Pure but not particularly attached to all its quirks, type +# `p10k configure` and pick "Lean" style. This will give you slick minimalist prompt while taking +# advantage of Powerlevel10k features that aren't present in Pure. + +# Temporarily change options. +'builtin' 'local' '-a' 'p10k_config_opts' +[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases') +[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob') +[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand') +'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand' + +() { + emulate -L zsh -o extended_glob + + # Unset all configuration options. + unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR' + + # Zsh >= 5.1 is required. + [[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return + + # Prompt colors. + local grey='242' + local red='1' + local yellow='3' + local blue='4' + local magenta='5' + local cyan='6' + local white='7' + + # Left prompt segments. + typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( + # =========================[ Line #1 ]========================= + status + context # user@host + dir # current directory + vcs # git status + # command_execution_time # previous command duration + # =========================[ Line #2 ]========================= + # newline # \n + prompt_char # prompt symbol + ) + + # Right prompt segments. + typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=( + # =========================[ Line #1 ]========================= + # command_execution_time # previous command duration + # virtualenv # python virtual environment + # context # user@host + # time # current time + # =========================[ Line #2 ]========================= + # newline # \n + ) + + # Basic style options that define the overall prompt look. + typeset -g POWERLEVEL9K_BACKGROUND= # transparent background + typeset -g POWERLEVEL9K_{LEFT,RIGHT}_{LEFT,RIGHT}_WHITESPACE= # no surrounding whitespace + typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SUBSEGMENT_SEPARATOR=' ' # separate segments with a space + typeset -g POWERLEVEL9K_{LEFT,RIGHT}_SEGMENT_SEPARATOR= # no end-of-line symbol + typeset -g POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION= # no segment icons + + # Add an empty line before each prompt except the first. This doesn't emulate the bug + # in Pure that makes prompt drift down whenever you use the Alt-C binding from fzf or similar. + typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=false + + # Magenta prompt symbol if the last command succeeded. + typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS}_FOREGROUND=$magenta + # Red prompt symbol if the last command failed. + typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS}_FOREGROUND=$red + # Default prompt symbol. + typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='λ' + # Prompt symbol in command vi mode. + typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='λ' + # Prompt symbol in visual vi mode is the same as in command mode. + typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='λ' + # Prompt symbol in overwrite vi mode is the same as in command mode. + typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=false + + # Grey Python Virtual Environment. + typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=$grey + # Don't show Python version. + typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false + typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER= + + # Blue current directory. + typeset -g POWERLEVEL9K_DIR_FOREGROUND=$blue + + # Context format when root: user@host. The first part white, the rest grey. + typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE="%F{$white}%n%f%F{$grey}@%m%f" + # Context format when not root: user@host. The whole thing grey. + typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE="%F{$grey}%n@%m%f" + # Don't show context unless root or in SSH. + typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_CONTENT_EXPANSION="%F{$white}%n%f%F{$grey}@%m%f" + + # Show previous command duration only if it's >= 5s. + typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=5 + # Don't show fractional seconds. Thus, 7s rather than 7.3s. + typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0 + # Duration format: 1d 2h 3m 4s. + typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s' + # Yellow previous command duration. + typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=$yellow + + # Grey Git prompt. This makes stale prompts indistinguishable from up-to-date ones. + typeset -g POWERLEVEL9K_VCS_FOREGROUND=$grey + + # Disable async loading indicator to make directories that aren't Git repositories + # indistinguishable from large Git repositories without known state. + typeset -g POWERLEVEL9K_VCS_LOADING_TEXT= + + # Don't wait for Git status even for a millisecond, so that prompt always updates + # asynchronously when Git state changes. + typeset -g POWERLEVEL9K_VCS_MAX_SYNC_LATENCY_SECONDS=0 + + # Cyan ahead/behind arrows. + typeset -g POWERLEVEL9K_VCS_{INCOMING,OUTGOING}_CHANGESFORMAT_FOREGROUND=$cyan + # Don't show remote branch, current tag or stashes. + typeset -g POWERLEVEL9K_VCS_GIT_HOOKS=(vcs-detect-changes git-untracked git-aheadbehind) + # Don't show the branch icon. + typeset -g POWERLEVEL9K_VCS_BRANCH_ICON= + # When in detached HEAD state, show @commit where branch normally goes. + typeset -g POWERLEVEL9K_VCS_COMMIT_ICON='@' + # Don't show staged, unstaged, untracked indicators. + typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED}_ICON= + # Show '*' when there are staged, unstaged or untracked files. + typeset -g POWERLEVEL9K_VCS_DIRTY_ICON='*' + # Show '⇣' if local branch is behind remote. + typeset -g POWERLEVEL9K_VCS_INCOMING_CHANGES_ICON=':⇣' + # Show '⇡' if local branch is ahead of remote. + typeset -g POWERLEVEL9K_VCS_OUTGOING_CHANGES_ICON=':⇡' + # Don't show the number of commits next to the ahead/behind arrows. + typeset -g POWERLEVEL9K_VCS_{COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=1 + # Remove space between '⇣' and '⇡' and all trailing spaces. + typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${${${P9K_CONTENT/⇣* :⇡/⇣⇡}// }//:/ }' + + # Grey current time. + typeset -g POWERLEVEL9K_TIME_FOREGROUND=$grey + # Format for the current time: 09:51:02. See `man 3 strftime`. + typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}' + # If set to true, time will update when you hit enter. This way prompts for the past + # commands will contain the start times of their commands rather than the end times of + # their preceding commands. + typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false + + # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt + # when accepting a command line. Supported values: + # + # - off: Don't change prompt when accepting a command line. + # - always: Trim down prompt when accepting a command line. + # - same-dir: Trim down prompt when accepting a command line unless this is the first command + # typed after changing current working directory. + typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off + + # Instant prompt mode. + # + # - off: Disable instant prompt. Choose this if you've tried instant prompt and found + # it incompatible with your zsh configuration files. + # - quiet: Enable instant prompt and don't print warnings when detecting console output + # during zsh initialization. Choose this if you've read and understood + # https://github.com/romkatv/powerlevel10k#instant-prompt. + # - verbose: Enable instant prompt and print a warning when detecting console output during + # zsh initialization. Choose this if you've never tried instant prompt, haven't + # seen the warning, or if you are unsure what this all means. + typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose + + # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized. + # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload + # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you + # really need it. + typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true + + # If p10k is already loaded, reload configuration. + # This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true. + (( ! $+functions[p10k] )) || p10k reload +} + +# Tell `p10k configure` which file it should overwrite. +typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a} + +(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]} +'builtin' 'unset' 'p10k_config_opts' + @@ -1 +1,74 @@ -/home/spelis/.zshrc
\ No newline at end of file +typeset -g ZSHRC_START=$(date +%s%3N) + +source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme +if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" +fi + +fastfetch +setopt interactivecomments + +eval `ssh-agent` +export PATH="$PATH:/home/spelis/.local/bin" +export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" + +HISTFILE=~/.histfile +HISTSIZE=100000 +SAVEHIST=100000 +export DEBUGINFOD_URLS="https://debuginfod.archlinux.org" + +export SUDO_EDITOR="nvim" +export EDITOR="nvim" + +autoload add-zsh-hook + +bindkey -e + +export PATH=$PATH:/home/elis/.local/bin + +alias \ + yoink='yay -S' \ + yeet='yay -R' \ + x='exit' \ + cls='clear' \ + ls='eza -lh --group-directories-first --color=always --git --icons=auto' \ + tree='ls -T' \ + sudo='sudo -E' \ + cd='z' + +autoload -Uz compinit +compinit +zstyle ':completion:*' menu select +zstyle ':completion:*' verbose yes +source <(fzf --zsh) +# setopt extendedglob + +# source "$HOME/.sdkman/bin/sdkman-init.sh" + +eval "$(zoxide init zsh)" +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +zstyle ':completion:*' completer _complete _ignored _approximate _list _match _prefix +zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' 'm:{A-Z}={a-z}' +zstyle ':completion:*' max-errors 3 prompt 'Errors: %e' +zstyle ':completion:*' menu select=long-list select +zstyle ':completion:*' use-cache on cache-path ~/.zsh/cache +zstyle ':completion:*' auto-description 'specify: %d' verbose yes accept-exact '*(N)' + +mkcd() { + mkdir -p "$1" && cd "$1" +} + +function command_title() { + printf '\033]0;%s\007' "$1" +} + +add-zsh-hook preexec command_title + +source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme + +typeset -g ZSHRC_END=$(date +%s%3N) +echo ".zshrc load time: $((ZSHRC_END - ZSHRC_START)) ms" + +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh diff --git a/alacritty.toml b/alacritty.toml index 47e9a90..462dbe3 120000..100644 --- a/alacritty.toml +++ b/alacritty.toml @@ -1 +1,39 @@ -/home/spelis/.config/alacritty.toml
\ No newline at end of file +[scrolling] +history = 100000 +multiplier = 10 + +[font] +normal = { family = "Iosevka NF", style = "Regular"} +bold = { family = "Iosevka NF", style = "Regular"} +italic = { family = "Iosevka NF", style = "Regular"} +bold_italic = { family = "Iosevka NF", style = "Regular"} + +[colors.bright] +black = "#444b6a" +blue = "#7da6ff" +cyan = "#0db9d7" +green = "#b9f27c" +magenta = "#bb9af7" +red = "#ff7a93" +white = "#acb0d0" +yellow = "#ff9e64" + +[colors.normal] +black = "#32344a" +blue = "#7aa2f7" +cyan = "#449dab" +green = "#9ece6a" +magenta = "#ad8ee6" +red = "#f7768e" +white = "#787c99" +yellow = "#e0af68" + +[colors.primary] +background = "#1a1b26" +foreground = "#a9b1d6" + +[cursor] +style={shape="Underline", blinking = "On"} + +[terminal] +osc52 = "CopyPaste" diff --git a/fastfetch/config.jsonc b/fastfetch/config.jsonc index ab47c28..c86a30d 120000..100644 --- a/fastfetch/config.jsonc +++ b/fastfetch/config.jsonc @@ -1 +1,293 @@ -/home/spelis/.config/fastfetch/config.jsonc
\ No newline at end of file +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json", + "logo": { + "type": "auto", + "source": "", + "color": { + "1": "", + "2": "", + "3": "", + "4": "", + "5": "", + "6": "", + "7": "", + "8": "", + "9": "" + }, + "width": null, + "height": null, + "padding": { + "top": 0, + "left": 0, + "right": 4 + }, + "printRemaining": true, + "preserveAspectRatio": false, + "recache": false, + "position": "left", + "chafa": { + "fgOnly": false, + "symbols": "block+border+space-wide-inverted" + } + }, + "display": { + "stat": false, + "pipe": false, + "showErrors": false, + "disableLinewrap": true, + "hideCursor": false, + "separator": " ", + "color": { + "keys": "", + "title": "", + "output": "", + "separator": "" + }, + "brightColor": true, + "duration": { + "abbreviation": false, + "spaceBeforeUnit": "default" + }, + "size": { + "maxPrefix": "YB", + "binaryPrefix": "iec", + "ndigits": 2, + "spaceBeforeUnit": "default" + }, + "temp": { + "unit": "D", + "ndigits": 1, + "color": { + "green": "32", + "yellow": "93", + "red": "91" + }, + "spaceBeforeUnit": "default" + }, + "percent": { + "type": [ + "num", + "num-color" + ], + "ndigits": 0, + "color": { + "green": "32", + "yellow": "93", + "red": "91" + }, + "spaceBeforeUnit": "default", + "width": 0 + }, + "bar": { + "char": { + "elapsed": "■", + "total": "-" + }, + "border": { + "left": "[ ", + "right": " ]", + "leftElapsed": "", + "rightElapsed": "" + }, + "color": { + "elapsed": "auto", + "total": "97", + "border": "97" + }, + "width": 10 + }, + "fraction": { + "ndigits": 2, + "trailingZeros": "default" + }, + "noBuffer": false, + "key": { + "width": 0, + "type": "icon", + "paddingLeft": 0 + }, + "freq": { + "ndigits": 2, + "spaceBeforeUnit": "default" + }, + "constants": [] + }, + "general": { + "thread": true, + "processingTimeout": 5000, + "detectVersion": true, + "playerName": "", + "dsForceDrm": false + }, + "modules": [ + { + "type": "title", + "key": " ", + "keyIcon": "", + "fqdn": false, + "color": { + "user": "", + "at": "", + "host": "" + } + }, + { + "type": "separator", + "string": "-", + "outputColor": "", + "times": 0 + }, + { + "type": "os", + "keyIcon": "" + }, + { + "type": "host", + "keyIcon": "" + }, + { + "type": "kernel", + "keyIcon": "" + }, + { + "type": "uptime", + "keyIcon": "" + }, + { + "type": "packages", + "keyIcon": "", + "disabled": [ + "apk" + ], + "combined": false + }, + { + "type": "shell", + "keyIcon": "" + }, + { + "type": "display", + "keyIcon": "", + "compactType": "none", + "preciseRefreshRate": false, + "order": null + }, + { + "type": "de", + "keyIcon": "" + }, + { + "type": "wm", + "keyIcon": "", + "detectPlugin": true + }, + { + "type": "terminal", + "keyIcon": "" + }, + { + "type": "cpu", + "keyIcon": "", + "temp": false, + "showPeCoreCount": false, + "tempSensor": "" + }, + { + "type": "gpu", + "keyIcon": "", + "driverSpecific": false, + "detectionMethod": "pci", + "temp": false, + "hideType": "none", + "percent": { + "green": 50, + "yellow": 80, + "type": 0 + } + }, + { + "type": "memory", + "keyIcon": "", + "percent": { + "green": 50, + "yellow": 80, + "type": 0 + } + }, + { + "type": "swap", + "percent": { + "green": 50, + "yellow": 80, + "type": 0 + }, + "keyIcon": "", + "separate": false + }, + { + "type": "disk", + "keyIcon": "", + "showRegular": true, + "showExternal": true, + "showHidden": false, + "showSubvolumes": false, + "showReadOnly": true, + "showUnknown": false, + "folders": "", + "hideFolders": "/efi:/boot:/boot/*", + "hideFS": "", + "useAvailable": false, + "percent": { + "green": 50, + "yellow": 80, + "type": 0 + } + }, + { + "type": "localip", + "keyIcon": "", + "showIpv4": true, + "showIpv6": false, + "showMac": false, + "showLoop": false, + "showPrefixLen": true, + "showMtu": false, + "showSpeed": false, + "showFlags": false, + "compact": false, + "defaultRouteOnly": true, + "showAllIps": false, + "namePrefix": "" + }, + { + "type": "battery", + "keyIcon": "", + "temp": false, + "percent": { + "green": 50, + "yellow": 20, + "type": 0 + } + }, + { + "type": "poweradapter", + "keyIcon": "" + }, + "break", + { + "type": "colors", + "key": " ", + "keyIcon": "", + "symbol": "block", + "paddingLeft": 0, + "block": { + "width": 5, + "range": [ + 0, + 15 + ] + }, + "brightness": "default" + } + ] +} diff --git a/i3/config b/i3/config index 043dfa4..3e99a12 120000..100644 --- a/i3/config +++ b/i3/config @@ -1 +1,144 @@ -/home/spelis/.config/i3/config
\ No newline at end of file +set $mod Mod4 + +font pango:KodeMono 8 + +exec --no-startup-id nm-tray +exec --no-startup-id picom +exec --no-startup-id xset s off -dpms +exec --no-startup-id setxkbmap -layout us +exec --no-startup-id feh --bg-fill /home/spelis/Documents/Wallpapers/Iteration2/spelis.1.1.png +exec --no-startup-id xrandr --output DP-4 --mode 3440x1440 --rate 165 + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +floating_modifier $mod + +tiling_drag modifier titlebar +focus_follows_mouse yes + +bindsym $mod+Return exec alacritty + +bindsym $mod+q kill + +bindsym $mod+d exec --no-startup-id rofi -show drun + +bindsym Print exec --no-startup-id spectacle -b -r -c + +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right + +bindsym $mod+f fullscreen toggle + +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +bindsym $mod+Shift+space floating toggle + +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + +bindsym $mod+1 workspace number $ws1 +bindsym $mod+2 workspace number $ws2 +bindsym $mod+3 workspace number $ws3 +bindsym $mod+4 workspace number $ws4 +bindsym $mod+5 workspace number $ws5 +bindsym $mod+6 workspace number $ws6 +bindsym $mod+7 workspace number $ws7 +bindsym $mod+8 workspace number $ws8 +bindsym $mod+9 workspace number $ws9 +bindsym $mod+0 workspace number $ws10 + +bindsym $mod+Shift+1 move container to workspace number $ws1 +bindsym $mod+Shift+2 move container to workspace number $ws2 +bindsym $mod+Shift+3 move container to workspace number $ws3 +bindsym $mod+Shift+4 move container to workspace number $ws4 +bindsym $mod+Shift+5 move container to workspace number $ws5 +bindsym $mod+Shift+6 move container to workspace number $ws6 +bindsym $mod+Shift+7 move container to workspace number $ws7 +bindsym $mod+Shift+8 move container to workspace number $ws8 +bindsym $mod+Shift+9 move container to workspace number $ws9 +bindsym $mod+Shift+0 move container to workspace number $ws10 + +# 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" { + bindsym h resize shrink width 10 px or 10 ppt + bindsym j resize grow height 10 px or 10 ppt + bindsym k resize shrink height 10 px or 10 ppt + bindsym l 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 or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# for_window [class="^.*"] border pixel 2 +# new_window pixel 2 + +# --base: #151617; +# --base-2: #1d2123; +# --base-3: #2a3039; +# --text: #d2e7efff; +# --code: #1d2123; +# --code-text: #abd1de; +# --accent: #278db6; + + +set $base #101010 +set $base2 #202020 +set $base3 #ffffff +set $text #b0b0b0 +set $accent #303030 + +client.focused $accent $accent $text $accent $accent +client.unfocused $base2 $base $text $base $base2 +client.focused_inactive $base2 $base $text $base2 $base2 +client.urgent $base3 $base $text $base3 $base3 + +bar { + status_command i3blocks + position bottom + colors { + background $base + statusline $text + focused_workspace $accent $accent $base + active_workspace $base $text + inactive_workspace $text $base + urgent_workspace $base3 $text $base + } +} diff --git a/i3blocks b/i3blocks deleted file mode 120000 index e3bed59..0000000 --- a/i3blocks +++ /dev/null @@ -1 +0,0 @@ -/home/spelis/.config/i3blocks
\ No newline at end of file |
